From: Philipp Klaus Date: Fri, 25 Aug 2017 10:02:05 +0000 (+0200) Subject: DASH: use d3.curveStepAfter for sparkline interpolation X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=248f26deb7ecbceb470dff3a1f49eb4e940df3d3;p=mvd_epics.git 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. --- 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]); });