Commit 82d8e3c2 by Torkel Ödegaard

feat(graph panel): refactoring of hide zero option, #3336

parent c351f46e
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
### Enhancements ### Enhancements
* **CloudWatch**: Support for multiple AWS Credentials, closes [#3053](https://github.com/grafana/grafana/issues/3053), [#3080](https://github.com/grafana/grafana/issues/3080) * **CloudWatch**: Support for multiple AWS Credentials, closes [#3053](https://github.com/grafana/grafana/issues/3053), [#3080](https://github.com/grafana/grafana/issues/3080)
* **Elasticsearch**: Support for dynamic daily indices for annotations, closes [#3061](https://github.com/grafana/grafana/issues/3061) * **Elasticsearch**: Support for dynamic daily indices for annotations, closes [#3061](https://github.com/grafana/grafana/issues/3061)
* **Graph Panel**: Option to hide series with all zeroes from legend and tooltip, closes [#1381](https://github.com/grafana/grafana/issues/1381), [#3336](https://github.com/grafana/grafana/issues/3336)
### Bug Fixes ### Bug Fixes
* **cloudwatch**: fix for handling of period for long time ranges, fixes [#3086](https://github.com/grafana/grafana/issues/3086) * **cloudwatch**: fix for handling of period for long time ranges, fixes [#3086](https://github.com/grafana/grafana/issues/3086)
......
...@@ -150,9 +150,9 @@ ...@@ -150,9 +150,9 @@
<div class="editor-row"> <div class="editor-row">
<div class="section"> <div class="section">
<div class="tight-form last"> <div class="tight-form">
<ul class="tight-form-list"> <ul class="tight-form-list">
<li class="tight-form-item" style="width: 110px"> <li class="tight-form-item" style="width: 80px">
Legend Legend
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item">
...@@ -164,21 +164,13 @@ ...@@ -164,21 +164,13 @@
<li class="tight-form-item"> <li class="tight-form-item">
<editor-checkbox text="Right side" model="panel.legend.rightSide" change="render()"></editor-checkbox> <editor-checkbox text="Right side" model="panel.legend.rightSide" change="render()"></editor-checkbox>
</li> </li>
<li class="tight-form-item last">
<editor-checkbox text="Hide empty" model="panel.legend.hideEmpty" change="render()"></editor-checkbox>
</li>
<li class="tight-form-item last">
<editor-checkbox text="Hide zero" model="panel.legend.hideZero" change="render()"></editor-checkbox>
</li>
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</div>
<div class="section">
<div class="tight-form"> <div class="tight-form">
<ul class="tight-form-list"> <ul class="tight-form-list">
<li class="tight-form-item" style="width: 105px"> <li class="tight-form-item" style="width: 80px">
Legend values Values
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item">
<editor-checkbox text="Min" model="panel.legend.min" change="legendValuesOptionChanged()"></editor-checkbox> <editor-checkbox text="Min" model="panel.legend.min" change="legendValuesOptionChanged()"></editor-checkbox>
...@@ -195,22 +187,29 @@ ...@@ -195,22 +187,29 @@
<li class="tight-form-item last"> <li class="tight-form-item last">
<editor-checkbox text="Total" model="panel.legend.total" change="legendValuesOptionChanged()"></editor-checkbox> <editor-checkbox text="Total" model="panel.legend.total" change="legendValuesOptionChanged()"></editor-checkbox>
</li> </li>
<li class="tight-form-item">
Decimals
</li>
<li style="width: 105px">
<input type="number" class="input-small tight-form-input" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right"
ng-model="panel.decimals" ng-change="render()" ng-model-onblur>
</li>
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<div class="tight-form last"> <div class="tight-form">
<ul class="tight-form-list"> <ul class="tight-form-list">
<li class="tight-form-item" style="width: 105px"> <li class="tight-form-item" style="width: 80px">
<strong>Decimals</strong> Hide
</li> </li>
<li style="width: 105px"> <li class="tight-form-item last">
<input type="number" class="input-small tight-form-input" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right" <editor-checkbox text="All null series" model="panel.legend.hideEmpty" change="render()"></editor-checkbox>
ng-model="panel.decimals" ng-change="render()" ng-model-onblur>
</li> </li>
<li class="tight-form-item last">
<editor-checkbox text="All zero series" model="panel.legend.hideZero" change="render()"></editor-checkbox>
</li>
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</div> </div>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment