|
@@ -10,22 +10,22 @@
|
|
|
Unit
|
|
Unit
|
|
|
</li>
|
|
</li>
|
|
|
<li class="dropdown" style="width: 140px;"
|
|
<li class="dropdown" style="width: 140px;"
|
|
|
- ng-model="panel.y_formats[0]"
|
|
|
|
|
- dropdown-typeahead="unitFormats"
|
|
|
|
|
- dropdown-typeahead-on-select="setUnitFormat(0, $subItem)">
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.y_formats[0]"
|
|
|
|
|
+ dropdown-typeahead="ctrl.unitFormats"
|
|
|
|
|
+ dropdown-typeahead-on-select="ctrl.setUnitFormat(0, $subItem)">
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Scale type
|
|
Scale type
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <select class="input-small tight-form-input" style="width: 113px" ng-model="panel.grid.leftLogBase" ng-options="v as k for (k, v) in logScales" ng-change="render()"></select>
|
|
|
|
|
|
|
+ <select class="input-small tight-form-input" style="width: 113px" ng-model="ctrl.panel.grid.leftLogBase" ng-options="v as k for (k, v) in ctrl.logScales" ng-change="ctrl.render()"></select>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Label
|
|
Label
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="text" class="input-small tight-form-input last"
|
|
<input type="text" class="input-small tight-form-input last"
|
|
|
- ng-model="panel.leftYAxisLabel" ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.leftYAxisLabel" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -40,16 +40,16 @@
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto"
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto"
|
|
|
- empty-to-null ng-model="panel.grid.leftMax"
|
|
|
|
|
- ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ empty-to-null ng-model="ctrl.panel.grid.leftMax"
|
|
|
|
|
+ ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item" style="width: 115px; text-align: right;">
|
|
<li class="tight-form-item" style="width: 115px; text-align: right;">
|
|
|
Y-Min
|
|
Y-Min
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto" style="width: 113px;"
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto" style="width: 113px;"
|
|
|
- empty-to-null ng-model="panel.grid.leftMin"
|
|
|
|
|
- ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ empty-to-null ng-model="ctrl.panel.grid.leftMin"
|
|
|
|
|
+ ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -63,22 +63,22 @@
|
|
|
Unit
|
|
Unit
|
|
|
</li>
|
|
</li>
|
|
|
<li class="dropdown" style="width: 140px"
|
|
<li class="dropdown" style="width: 140px"
|
|
|
- ng-model="panel.y_formats[1]"
|
|
|
|
|
- dropdown-typeahead="unitFormats"
|
|
|
|
|
- dropdown-typeahead-on-select="setUnitFormat(1, $subItem)">
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.y_formats[1]"
|
|
|
|
|
+ dropdown-typeahead="ctrl.unitFormats"
|
|
|
|
|
+ dropdown-typeahead-on-select="ctrl.setUnitFormat(1, $subItem)">
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Scale type
|
|
Scale type
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <select class="input-small tight-form-input" style="width: 113px" ng-model="panel.grid.rightLogBase" ng-options="v as k for (k, v) in logScales" ng-change="render()"></select>
|
|
|
|
|
|
|
+ <select class="input-small tight-form-input" style="width: 113px" ng-model="ctrl.panel.grid.rightLogBase" ng-options="v as k for (k, v) in ctrl.logScales" ng-change="ctrl.render()"></select>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Label
|
|
Label
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="text" class="input-small tight-form-input last"
|
|
<input type="text" class="input-small tight-form-input last"
|
|
|
- ng-model="panel.rightYAxisLabel" ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.rightYAxisLabel" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -93,16 +93,16 @@
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto"
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto"
|
|
|
- empty-to-null ng-model="panel.grid.rightMax"
|
|
|
|
|
- ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ empty-to-null ng-model="ctrl.panel.grid.rightMax"
|
|
|
|
|
+ ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item" style="width: 115px; text-align: right;">
|
|
<li class="tight-form-item" style="width: 115px; text-align: right;">
|
|
|
Y-Min
|
|
Y-Min
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto" style="width: 113px;"
|
|
<input type="number" class="input-small tight-form-input" placeholder="auto" style="width: 113px;"
|
|
|
- empty-to-null ng-model="panel.grid.rightMin"
|
|
|
|
|
- ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ empty-to-null ng-model="ctrl.panel.grid.rightMin"
|
|
|
|
|
+ ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -119,13 +119,13 @@
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
X-Axis
|
|
X-Axis
|
|
|
<input class="cr1" id="hideXAxis" type="checkbox"
|
|
<input class="cr1" id="hideXAxis" type="checkbox"
|
|
|
- ng-model="panel['x-axis']" ng-checked="panel['x-axis']" ng-change="render()">
|
|
|
|
|
|
|
+ ng-model="ctrl.panel['x-axis']" ng-checked="ctrl.panel['x-axis']" ng-change="ctrl.render()">
|
|
|
<label for="hideXAxis" class="cr1"></label>
|
|
<label for="hideXAxis" class="cr1"></label>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item last">
|
|
<li class="tight-form-item last">
|
|
|
Y-Axis
|
|
Y-Axis
|
|
|
<input class="cr1" id="hideYAxis" type="checkbox"
|
|
<input class="cr1" id="hideYAxis" type="checkbox"
|
|
|
- ng-model="panel['y-axis']" ng-checked="panel['y-axis']" ng-change="render()">
|
|
|
|
|
|
|
+ ng-model="ctrl.panel['y-axis']" ng-checked="ctrl.panel['y-axis']" ng-change="ctrl.render()">
|
|
|
<label for="hideYAxis" class="cr1"></label>
|
|
<label for="hideYAxis" class="cr1"></label>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -141,23 +141,23 @@
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input"
|
|
<input type="number" class="input-small tight-form-input"
|
|
|
- ng-model="panel.grid.threshold1" ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.grid.threshold1" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <spectrum-picker ng-model="panel.grid.threshold1Color" ng-change="render()" ></spectrum-picker>
|
|
|
|
|
|
|
+ <spectrum-picker ng-model="ctrl.panel.grid.threshold1Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Level 2
|
|
Level 2
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="number" class="input-small tight-form-input"
|
|
<input type="number" class="input-small tight-form-input"
|
|
|
- ng-model="panel.grid.threshold2" ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <spectrum-picker ng-model="panel.grid.threshold2Color" ng-change="render()" ></spectrum-picker>
|
|
|
|
|
|
|
+ <spectrum-picker ng-model="ctrl.panel.grid.threshold2Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item last">
|
|
<li class="tight-form-item last">
|
|
|
- <editor-checkbox text="Line mode" model="panel.grid.thresholdLine" change="render()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Line mode" model="ctrl.panel.grid.thresholdLine" change="ctrl.render()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -173,20 +173,20 @@
|
|
|
Legend
|
|
Legend
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Show" model="panel.legend.show" change="get_data()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Show" model="ctrl.panel.legend.show" change="ctrl.refresh()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Table" model="panel.legend.alignAsTable" change="render()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Table" model="ctrl.panel.legend.alignAsTable" change="ctrl.render()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<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="ctrl.panel.legend.rightSide" change="ctrl.render()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li ng-if="panel.legend.rightSide" class="tight-form-item">
|
|
<li ng-if="panel.legend.rightSide" class="tight-form-item">
|
|
|
Side width
|
|
Side width
|
|
|
</li>
|
|
</li>
|
|
|
<li ng-if="panel.legend.rightSide" style="width: 105px">
|
|
<li ng-if="panel.legend.rightSide" style="width: 105px">
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="250" bs-tooltip="'Set a min-width for the legend side table/block'" data-placement="right"
|
|
<input type="number" class="input-small tight-form-input" placeholder="250" bs-tooltip="'Set a min-width for the legend side table/block'" data-placement="right"
|
|
|
- ng-model="panel.legend.sideWidth" ng-change="render()" ng-model-onblur>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.legend.sideWidth" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -197,10 +197,10 @@
|
|
|
Hide series
|
|
Hide series
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="With only nulls" model="panel.legend.hideEmpty" change="render()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="With only nulls" model="ctrl.panel.legend.hideEmpty" change="ctrl.render()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item last">
|
|
<li class="tight-form-item last">
|
|
|
- <editor-checkbox text="With only zeroes" model="panel.legend.hideZero" change="render()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="With only zeroes" model="ctrl.panel.legend.hideZero" change="ctrl.render()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -212,26 +212,26 @@
|
|
|
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="ctrl.panel.legend.min" change="ctrl.legendValuesOptionChanged()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Max" model="panel.legend.max" change="legendValuesOptionChanged()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Max" model="ctrl.panel.legend.max" change="ctrl.legendValuesOptionChanged()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Avg" model="panel.legend.avg" change="legendValuesOptionChanged()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Avg" model="ctrl.panel.legend.avg" change="ctrl.legendValuesOptionChanged()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Current" model="panel.legend.current" change="legendValuesOptionChanged()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Current" model="ctrl.panel.legend.current" change="ctrl.legendValuesOptionChanged()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
- <editor-checkbox text="Total" model="panel.legend.total" change="legendValuesOptionChanged()"></editor-checkbox>
|
|
|
|
|
|
|
+ <editor-checkbox text="Total" model="ctrl.panel.legend.total" change="ctrl.legendValuesOptionChanged()"></editor-checkbox>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="tight-form-item">
|
|
<li class="tight-form-item">
|
|
|
Decimals
|
|
Decimals
|
|
|
</li>
|
|
</li>
|
|
|
<li style="width: 105px">
|
|
<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"
|
|
<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>
|
|
|
|
|
|
|
+ ng-model="ctrl.panel.decimals" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|