From bbe203fe035284fd765ceb1e0d79f28c4acc5514 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Thu, 24 Aug 2017 15:38:02 +0200 Subject: [PATCH] DASH: only sparkline source: json --- python_suite/dashboard/static/js/sparkline.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); -- 2.43.0