Graph: fix for legend show/hide toggle, broken by recent legend rewrite

pull/1020/merge
Torkel Ödegaard 11 years ago
parent e530e4d4bc
commit 6861dc137f
  1. 2
      src/app/components/timeSeries.js
  2. 2
      src/app/panels/graph/axisEditor.html

@ -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) {

@ -40,7 +40,7 @@
<div class="editor-row">
<div class="section">
<h5>Legend styles</h5>
<editor-opt-bool text="Show legend" model="panel.legend.show" change="render()"></editor-opt-bool>
<editor-opt-bool text="Show legend" model="panel.legend.show" change="get_data();"></editor-opt-bool>
<editor-opt-bool text="Include values" model="panel.legend.values" change="render()"></editor-opt-bool>
<editor-opt-bool text="Align as table" model="panel.legend.alignAsTable" change="render()"></editor-opt-bool>
<editor-opt-bool text="Right side" model="panel.legend.rightSide" change="render()"></editor-opt-bool>

Loading…
Cancel
Save