]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: only sparkline source: json
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 24 Aug 2017 13:38:02 +0000 (15:38 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 24 Aug 2017 13:38:02 +0000 (15:38 +0200)
python_suite/dashboard/static/js/sparkline.js

index 61ca92b748a8c005af8dce81e49662dbe291ca3b..3f87dc9063f3e673e300b91bcfaa0dd0a3e7b0fe 100644 (file)
@@ -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);