From 248f26deb7ecbceb470dff3a1f49eb4e940df3d3 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 25 Aug 2017 12:02:05 +0200 Subject: [PATCH] DASH: use d3.curveStepAfter for sparkline interpolation Available interpolations include (see ): * d3.curveLinear * d3.curveMonotoneX * d3.curveStepAfter Maybe the appropriate interpolation should be specified for every individual PV (part of the config file) in the future. --- python_suite/dashboard/static/js/sparkline.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python_suite/dashboard/static/js/sparkline.js b/python_suite/dashboard/static/js/sparkline.js index 6a0ba84..7a34139 100644 --- a/python_suite/dashboard/static/js/sparkline.js +++ b/python_suite/dashboard/static/js/sparkline.js @@ -77,6 +77,9 @@ function sparkline() { // Define the line var valueline = d3.line() + //.curve(d3.curveLinear) + //.curve(d3.curveMonotoneX) + .curve(d3.curveStepAfter) .defined(function (d) { return d[1] !== null; }) .x(function (d) { return x(d[0]); }) .y(function (d) { return y(d[1]); }); -- 2.43.0