axisEditor.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <div class="editor-row">
  2. <div class="section">
  3. <h5>Left Y Axis</h5>
  4. <div class="editor-option">
  5. <label class="small">Format <tip>Y-axis formatting</tip></label>
  6. <select class="input-small" ng-model="panel.y_formats[0]" ng-options="f for f in ['none','short','bytes', 'bits', 'bps', 's', 'ms', 'µs', 'ns', 'percent']" ng-change="render()"></select>
  7. </div>
  8. <div class="editor-option">
  9. <label class="small">Min / <a ng-click="toggleGridMinMax('leftMin')">Auto <i class="icon-star" ng-show="_.isNull(panel.grid.leftMin)"></i></a></label>
  10. <input type="number" class="input-small" ng-model="panel.grid.leftMin" ng-change="render()" ng-model-onblur />
  11. </div>
  12. <div class="editor-option">
  13. <label class="small">Max / <a ng-click="toggleGridMinMax('leftMax')">Auto <i class="icon-star" ng-show="_.isNull(panel.grid.leftMax)"></i></a></label>
  14. <input type="number" class="input-small" ng-model="panel.grid.leftMax" ng-change="render()" ng-model-onblur />
  15. </div>
  16. <div class="editor-option">
  17. <label class="small">Label</label>
  18. <input ng-change="get_data()" ng-model-onblur placeholder="" type="text" class="input-medium" ng-model="panel.leftYAxisLabel">
  19. </div>
  20. </div>
  21. <div class="section">
  22. <h5>Right Y Axis</h5>
  23. <div class="editor-option">
  24. <label class="small">Format <tip>Y-axis formatting</tip></label>
  25. <select class="input-small" ng-model="panel.y_formats[1]" ng-options="f for f in ['none','short','bytes', 'bits', 'bps', 's', 'ms', 'µs', 'ns', 'percent']" ng-change="render()"></select>
  26. </div>
  27. <div class="editor-option">
  28. <label class="small">Min / <a ng-click="toggleGridMinMax('rightMin')">Auto <i class="icon-star" ng-show="_.isNull(panel.grid.rightMin)"></i></a></label>
  29. <input type="number" class="input-small" ng-model="panel.grid.rightMin" ng-change="render()" ng-model-onblur />
  30. </div>
  31. <div class="editor-option">
  32. <label class="small">Max / <a ng-click="toggleGridMinMax('rightMax')">Auto <i class="icon-star" ng-show="_.isNull(panel.grid.rightMax)"></i></a></label>
  33. <input type="number" class="input-small" ng-model="panel.grid.rightMax" ng-change="render()" ng-model-onblur />
  34. </div>
  35. </div>
  36. </div>
  37. <div class="editor-row">
  38. <div class="section">
  39. <h5>Legend styles</h5>
  40. <editor-opt-bool text="Show legend" model="panel.legend.show" change="render()"></editor-opt-bool>
  41. <editor-opt-bool text="Include values" model="panel.legend.values" change="render()"></editor-opt-bool>
  42. <editor-opt-bool text="Align as table" model="panel.legend.alignAsTable" change="render()"></editor-opt-bool>
  43. <editor-opt-bool text="Right side" model="panel.legend.rightSide" change="render()"></editor-opt-bool>
  44. </div>
  45. <div class="section" ng-if="panel.legend.values">
  46. <h5>Legend values</h5>
  47. <editor-opt-bool text="Min" model="panel.legend.min" change="render()"></editor-opt-bool>
  48. <editor-opt-bool text="Max" model="panel.legend.max" change="render()"></editor-opt-bool>
  49. <editor-opt-bool text="Current" model="panel.legend.current" change="render()"></editor-opt-bool>
  50. <editor-opt-bool text="Total" model="panel.legend.total" change="render()"></editor-opt-bool>
  51. <editor-opt-bool text="Avg" model="panel.legend.avg" change="render()"></editor-opt-bool>
  52. </div>
  53. <div class="section">
  54. <h5>Grid thresholds</h5>
  55. <div class="editor-option">
  56. <label class="small">Level1</label>
  57. <input type="number" class="input-small" ng-model="panel.grid.threshold1" ng-change="render()" ng-model-onblur />
  58. </div>
  59. <div class="editor-option">
  60. <label class="small">Color</label>
  61. <spectrum-picker ng-model="panel.grid.threshold1Color" ng-change="render()" ></spectrum-picker>
  62. </div>
  63. <div class="editor-option">
  64. <label class="small">Level2</label>
  65. <input type="number" class="input-small" ng-model="panel.grid.threshold2" ng-change="render()" ng-model-onblur />
  66. </div>
  67. <div class="editor-option">
  68. <label class="small">Color</label>
  69. <spectrum-picker ng-model="panel.grid.threshold2Color" ng-change="render()" ></spectrum-picker>
  70. </div>
  71. <editor-opt-bool text="Line mode" model="panel.grid.thresholdLine" change="render()"></editor-opt-bool>
  72. </div>
  73. <div class="section">
  74. <h5>Show Axes</h5>
  75. <editor-opt-bool text="X-Axis" model="panel['x-axis']" change="render()"></editor-opt-bool>
  76. <editor-opt-bool text="Y-axis" model="panel['y-axis']" change="render()"></editor-opt-bool>
  77. </div>
  78. </div>