]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: make sure sparklines don't contain null values
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 24 Aug 2017 13:39:07 +0000 (15:39 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 24 Aug 2017 13:39:07 +0000 (15:39 +0200)
python_suite/dashboard/static/js/sparkline.js

index 3f87dc9063f3e673e300b91bcfaa0dd0a3e7b0fe..4ca9b2b894d03d857f17b45b6c8c4be6ee6fc827 100644 (file)
@@ -77,6 +77,7 @@ function sparkline() {
 
     // Define the line
     var valueline = d3.svg.line()
+      .defined(function (d) { return d[1] !== null; })
       .x(function (d) { return x(d[0]); })
       .y(function (d) { return y(d[1]); });