tab_axes.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 class="section gf-form-group">
  38. <h5 class="section-heading">Thresholds</h5>
  39. <div class="gf-form-inline">
  40. <div class="gf-form">
  41. <label class="gf-form-label width-6">Level 1</label>
  42. <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold1" ng-change="ctrl.render()" ng-model-onblur>
  43. </div>
  44. <div class="gf-form">
  45. <label class="gf-form-label width-5">Color</label>
  46. <div class="gf-form-label">
  47. <spectrum-picker ng-model="ctrl.panel.grid.threshold1Color" ng-change="ctrl.render()" ></spectrum-picker>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="gf-form-inline">
  52. <div class="gf-form">
  53. <label class="gf-form-label width-6">Level 2</label>
  54. <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur>
  55. </div>
  56. <div class="gf-form">
  57. <label class="gf-form-label width-5">Color</label>
  58. <div class="gf-form-label">
  59. <spectrum-picker ng-model="ctrl.panel.grid.threshold2Color" ng-change="ctrl.render()" ></spectrum-picker>
  60. </div>
  61. </div>
  62. </div>
  63. <gf-form-switch class="gf-form" label="Line Mode" label-class="width-6" checked="ctrl.panel.grid.thresholdLine" on-change="ctrl.render()"></gf-form-switch>
  64. </div>
  65. </div>