axisEditor.html 4.6 KB

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