|
|
@@ -1,116 +1,87 @@
|
|
|
<div class="editor-row gf-form-group">
|
|
|
- <div class="section">
|
|
|
- <h5 class="section-heading">Left Y</h5>
|
|
|
+ <div class="section" ng-repeat="yaxis in ctrl.panel.yaxes">
|
|
|
|
|
|
- <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="ctrl.panel.grid.leftShow" on-change="ctrl.render()"></gf-form-switch>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Unit</label>
|
|
|
- <div class="gf-form-dropdown-typeahead max-width-15" ng-model="ctrl.panel.y_formats[0]" dropdown-typeahead2="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat(0, $subItem)"></div>
|
|
|
- </div>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Scale</label>
|
|
|
- <div class="gf-form-select-wrapper max-width-15">
|
|
|
- <select class="gf-form-input" ng-model="ctrl.panel.grid.leftLogBase" ng-options="v as k for (k, v) in ctrl.logScales" ng-change="ctrl.render()"></select>
|
|
|
+ <h5 class="section-heading" ng-show="$index === 0">Left Y</h5>
|
|
|
+ <h5 class="section-heading" ng-show="$index === 1">Right Y</h5>
|
|
|
+
|
|
|
+ <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="yaxis.show" on-change="ctrl.render()"></gf-form-switch>
|
|
|
+
|
|
|
+ <div ng-if="yaxis.show">
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-5">Unit</label>
|
|
|
+ <div class="gf-form-dropdown-typeahead max-width-15" ng-model="yaxis.format" dropdown-typeahead2="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat(yaxis, $subItem)"></div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="gf-form-inline">
|
|
|
- <div class="gf-form max-width-10">
|
|
|
- <label class="gf-form-label width-5">Y-Min</label>
|
|
|
- <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="ctrl.panel.grid.leftMin" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-5">Scale</label>
|
|
|
+ <div class="gf-form-select-wrapper max-width-15">
|
|
|
+ <select class="gf-form-input" ng-model="yaxis.logBase" ng-options="v as k for (k, v) in ctrl.logScales" ng-change="ctrl.render()"></select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="gf-form max-width-10">
|
|
|
- <label class="gf-form-label width-5">Y-Max</label>
|
|
|
- <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="ctrl.panel.grid.leftMax" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+
|
|
|
+ <div class="gf-form-inline">
|
|
|
+ <div class="gf-form max-width-10">
|
|
|
+ <label class="gf-form-label width-5">Y-Min</label>
|
|
|
+ <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="yaxis.min" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+ </div>
|
|
|
+ <div class="gf-form max-width-10">
|
|
|
+ <label class="gf-form-label width-5">Y-Max</label>
|
|
|
+ <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="yaxis.max" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-5">Label</label>
|
|
|
+ <input type="text" class="gf-form-input max-width-20" ng-model="yaxis.label" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Label</label>
|
|
|
- <input type="text" class="gf-form-input max-width-20" ng-model="ctrl.panel.leftYAxisLabel" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
|
- <h5 class="section-heading">Right Y</h5>
|
|
|
- <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="ctrl.panel.grid.rightShow" on-change="ctrl.render()"></gf-form-switch>
|
|
|
+ <h5 class="section-heading">X-Axis</h5>
|
|
|
+ <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="ctrl.panel.xaxis.show" on-change="ctrl.render()"></gf-form-switch>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class="section gf-form-group">
|
|
|
+ <h5 class="section-heading">Thresholds</h5>
|
|
|
+ <div class="gf-form-inline">
|
|
|
<div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Unit</label>
|
|
|
- <div class="gf-form-dropdown-typeahead max-width-15" ng-model="ctrl.panel.y_formats[1]" dropdown-typeahead2="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat(1, $subItem)"></div>
|
|
|
+ <label class="gf-form-label width-5">Level 1</label>
|
|
|
+ <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold1" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</div>
|
|
|
<div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Scale</label>
|
|
|
- <div class="gf-form-select-wrapper max-width-15">
|
|
|
- <select class="gf-form-input" ng-model="ctrl.panel.grid.rightLogBase" ng-options="v as k for (k, v) in ctrl.logScales" ng-change="ctrl.render()"></select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="gf-form-inline">
|
|
|
- <div class="gf-form max-width-10">
|
|
|
- <label class="gf-form-label width-5">Y-Min</label>
|
|
|
- <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="ctrl.panel.grid.rightMin" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
- </div>
|
|
|
- <div class="gf-form max-width-10">
|
|
|
- <label class="gf-form-label width-5">Y-Max</label>
|
|
|
- <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="ctrl.panel.grid.rightMax" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+ <label class="gf-form-label width-5">Color</label>
|
|
|
+ <div class="gf-form-label">
|
|
|
+ <spectrum-picker ng-model="ctrl.panel.grid.threshold1Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="gf-form">
|
|
|
- <label class="gf-form-label width-5">Label</label>
|
|
|
- <input type="text" class="gf-form-input max-width-20" ng-model="ctrl.panel.rightYAxisLabel" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
+ <label class="gf-form-label width-5">Level 2</label>
|
|
|
+ <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-
|
|
|
-<div class="section" style="margin-bottom: 20px">
|
|
|
- <div class="tight-form">
|
|
|
- <ul class="tight-form-list">
|
|
|
- <li class="tight-form-item" style="width: 80px">
|
|
|
- Show Axis
|
|
|
- </li>
|
|
|
- <li class="tight-form-item">
|
|
|
- X-Axis
|
|
|
- <input class="cr1" id="hideXAxis" type="checkbox"
|
|
|
- ng-model="ctrl.panel['x-axis']" ng-checked="ctrl.panel['x-axis']" ng-change="ctrl.render()">
|
|
|
- <label for="hideXAxis" class="cr1"></label>
|
|
|
- </li>
|
|
|
- <li class="tight-form-item last">
|
|
|
- Y-Axis
|
|
|
- <input class="cr1" id="hideYAxis" type="checkbox"
|
|
|
- ng-model="ctrl.panel['y-axis']" ng-checked="ctrl.panel['y-axis']" ng-change="ctrl.render()">
|
|
|
- <label for="hideYAxis" class="cr1"></label>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="clearfix"></div>
|
|
|
- </div>
|
|
|
- <div class="tight-form last">
|
|
|
- <ul class="tight-form-list">
|
|
|
- <li class="tight-form-item" style="width: 80px">
|
|
|
- Thresholds
|
|
|
- </li>
|
|
|
- <li class="tight-form-item">
|
|
|
- Level 1
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <input type="number" class="input-small tight-form-input"
|
|
|
- ng-model="ctrl.panel.grid.threshold1" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
- </li>
|
|
|
- <li class="tight-form-item">
|
|
|
- <spectrum-picker ng-model="ctrl.panel.grid.threshold1Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
- </li>
|
|
|
- <li class="tight-form-item">
|
|
|
- Level 2
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <input type="number" class="input-small tight-form-input"
|
|
|
- ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur>
|
|
|
- </li>
|
|
|
- <li class="tight-form-item">
|
|
|
- <spectrum-picker ng-model="ctrl.panel.grid.threshold2Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
- </li>
|
|
|
- <li class="tight-form-item last">
|
|
|
- <editor-checkbox text="Line mode" model="ctrl.panel.grid.thresholdLine" change="ctrl.render()"></editor-checkbox>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="clearfix"></div>
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-5">Color</label>
|
|
|
+ <div class="gf-form-label">
|
|
|
+ <spectrum-picker ng-model="ctrl.panel.grid.threshold2Color" ng-change="ctrl.render()" ></spectrum-picker>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <!-- <li class="tight-form-item"> -->
|
|
|
+ <!-- Level 2 -->
|
|
|
+ <!-- </li> -->
|
|
|
+ <!-- <li> -->
|
|
|
+ <!-- <input type="number" class="input-small tight-form-input" -->
|
|
|
+ <!-- ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur> -->
|
|
|
+ <!-- </li> -->
|
|
|
+ <!-- <li class="tight-form-item"> -->
|
|
|
+ <!-- <spectrum-picker ng-model="ctrl.panel.grid.threshold2Color" ng-change="ctrl.render()" ></spectrum-picker> -->
|
|
|
+ <!-- </li> -->
|
|
|
+ <!-- <li class="tight-form-item last"> -->
|
|
|
+ <!-- <editor-checkbox text="Line mode" model="ctrl.panel.grid.thresholdLine" change="ctrl.render()"></editor-checkbox> -->
|
|
|
+ <!-- </li> -->
|
|
|
+ <!-- </ul> -->
|
|
|
+ <!-- <div class="clearfix"></div> -->
|
|
|
+ <!-- </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|