From: Philipp Klaus Date: Thu, 24 Aug 2017 13:38:02 +0000 (+0200) Subject: DASH: only sparkline source: json X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=bbe203fe035284fd765ceb1e0d79f28c4acc5514;p=mvd_epics.git DASH: only sparkline source: json --- diff --git a/python_suite/dashboard/static/js/sparkline.js b/python_suite/dashboard/static/js/sparkline.js index 61ca92b..3f87dc9 100644 --- a/python_suite/dashboard/static/js/sparkline.js +++ b/python_suite/dashboard/static/js/sparkline.js @@ -108,11 +108,7 @@ function sparkline() { }) } - if (chart.dataSourceType().toLowerCase() === 'csv') { - d3.csv(chart.dataSource(), drawChart); - } else if (chart.dataSourceType().toLowerCase() === 'tsv') { - d3.tsv(chart.dataSource(), drawChart); - } else { + if (chart.dataSourceType().toLowerCase() === 'json') { d3.json(chart.dataSource(), function(error, json) { if (error) return drawChart(error, json); chart.precision(json.precision);