From 6861dc137f92620683dc75eaffcfe98ae2979f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 7 Nov 2014 13:39:47 +0100 Subject: [PATCH] Graph: fix for legend show/hide toggle, broken by recent legend rewrite --- src/app/components/timeSeries.js | 2 ++ src/app/panels/graph/axisEditor.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/timeSeries.js b/src/app/components/timeSeries.js index 4422e744d45..6a4e03ae80b 100644 --- a/src/app/components/timeSeries.js +++ b/src/app/components/timeSeries.js @@ -70,6 +70,7 @@ function (_, kbn) { this.stats.min = Number.MAX_VALUE; this.stats.avg = null; this.stats.current = null; + this.allIsNull = true; var ignoreNulls = fillStyle === 'connected'; var nullAsZero = fillStyle === 'null as zero'; @@ -89,6 +90,7 @@ function (_, kbn) { if (_.isNumber(currentValue)) { this.stats.total += currentValue; + this.allIsNull = false; } if (currentValue > this.stats.max) { diff --git a/src/app/panels/graph/axisEditor.html b/src/app/panels/graph/axisEditor.html index 3aec233f6be..1c25fb26aab 100644 --- a/src/app/panels/graph/axisEditor.html +++ b/src/app/panels/graph/axisEditor.html @@ -40,7 +40,7 @@
Legend styles
- +