tab_axes.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="editor-row">
  2. <div class="section gf-form-group" ng-repeat="yaxis in ctrl.panel.yaxes">
  3. <h5 class="section-heading" ng-show="$index === 0">Left Y</h5>
  4. <h5 class="section-heading" ng-show="$index === 1">Right Y</h5>
  5. <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="yaxis.show" on-change="ctrl.render()"></gf-form-switch>
  6. <div ng-if="yaxis.show">
  7. <div class="gf-form">
  8. <label class="gf-form-label width-5">Unit</label>
  9. <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>
  10. </div>
  11. <div class="gf-form">
  12. <label class="gf-form-label width-5">Scale</label>
  13. <div class="gf-form-select-wrapper max-width-15">
  14. <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>
  15. </div>
  16. </div>
  17. <div class="gf-form-inline">
  18. <div class="gf-form max-width-10">
  19. <label class="gf-form-label width-5">Y-Min</label>
  20. <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="yaxis.min" ng-change="ctrl.render()" ng-model-onblur>
  21. </div>
  22. <div class="gf-form max-width-10">
  23. <label class="gf-form-label width-5">Y-Max</label>
  24. <input type="number" class="gf-form-input" placeholder="auto" empty-to-null ng-model="yaxis.max" ng-change="ctrl.render()" ng-model-onblur>
  25. </div>
  26. </div>
  27. <div class="gf-form">
  28. <label class="gf-form-label width-5">Label</label>
  29. <input type="text" class="gf-form-input max-width-20" ng-model="yaxis.label" ng-change="ctrl.render()" ng-model-onblur>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="section gf-form-group">
  34. <h5 class="section-heading">X-Axis</h5>
  35. <gf-form-switch class="gf-form" label="Show" label-class="width-5" checked="ctrl.panel.xaxis.show" on-change="ctrl.render()"></gf-form-switch>
  36. </div>
  37. </div>