axisEditor.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <div class="editor-row">
  2. <div class="section" style="margin-bottom: 20px">
  3. <div class="tight-form">
  4. <ul class="tight-form-list">
  5. <li class="tight-form-item" style="width: 80px">
  6. <strong>Left Y</strong>
  7. </li>
  8. <li class="tight-form-item">
  9. Unit
  10. </li>
  11. <li class="dropdown" style="width: 140px;"
  12. ng-model="panel.y_formats[0]"
  13. dropdown-typeahead="unitFormats"
  14. dropdown-typeahead-on-select="setUnitFormat(0, $subItem)">
  15. </li>
  16. <li class="tight-form-item">
  17. &nbsp;&nbsp; Grid Max
  18. </li>
  19. <li>
  20. <input type="number" class="input-small tight-form-input" placeholder="auto"
  21. empty-to-null ng-model="panel.grid.leftMax"
  22. ng-change="render()" ng-model-onblur>
  23. </li>
  24. <li class="tight-form-item">
  25. Min
  26. </li>
  27. <li>
  28. <input type="number" class="input-small tight-form-input" placeholder="auto"
  29. empty-to-null ng-model="panel.grid.leftMin"
  30. ng-change="render()" ng-model-onblur>
  31. </li>
  32. <li class="tight-form-item">
  33. Scale type
  34. </li>
  35. <li>
  36. <select class="input-small tight-form-input" style="width: 113px" ng-model="panel.grid.leftLogBase" ng-options="v as k for (k, v) in logScales" ng-change="render()"></select>
  37. </li>
  38. <li class="tight-form-item">
  39. Label
  40. </li>
  41. <li>
  42. <input type="text" class="input-small tight-form-input last"
  43. ng-model="panel.leftYAxisLabel" ng-change="render()" ng-model-onblur>
  44. </li>
  45. </ul>
  46. <div class="clearfix"></div>
  47. </div>
  48. <div class="tight-form">
  49. <ul class="tight-form-list">
  50. <li class="tight-form-item" style="width: 80px">
  51. <strong>Right Y</strong>
  52. </li>
  53. <li class="tight-form-item">
  54. Unit
  55. </li>
  56. <li class="dropdown" style="width: 140px"
  57. ng-model="panel.y_formats[1]"
  58. dropdown-typeahead="unitFormats"
  59. dropdown-typeahead-on-select="setUnitFormat(1, $subItem)">
  60. </li>
  61. <li class="tight-form-item">
  62. &nbsp;&nbsp; Grid Max
  63. </li>
  64. <li>
  65. <input type="number" class="input-small tight-form-input" placeholder="auto"
  66. empty-to-null ng-model="panel.grid.rightMax"
  67. ng-change="render()" ng-model-onblur>
  68. </li>
  69. <li class="tight-form-item">
  70. Min
  71. </li>
  72. <li>
  73. <input type="number" class="input-small tight-form-input" placeholder="auto"
  74. empty-to-null ng-model="panel.grid.rightMin"
  75. ng-change="render()" ng-model-onblur>
  76. </li>
  77. <li class="tight-form-item">
  78. Scale type
  79. </li>
  80. <li>
  81. <select class="input-small tight-form-input" style="width: 113px" ng-model="panel.grid.rightLogBase" ng-options="v as k for (k, v) in logScales" ng-change="render()"></select>
  82. </li>
  83. <li class="tight-form-item">
  84. Label
  85. </li>
  86. <li>
  87. <input type="text" class="input-small tight-form-input last"
  88. ng-model="panel.rightYAxisLabel" ng-change="render()" ng-model-onblur>
  89. </li>
  90. </ul>
  91. <div class="clearfix"></div>
  92. </div>
  93. </div>
  94. <div class="section" style="margin-bottom: 20px">
  95. <div class="tight-form">
  96. <ul class="tight-form-list">
  97. <li class="tight-form-item" style="width: 80px">
  98. <strong>Show Axis</strong>
  99. </li>
  100. <li class="tight-form-item">
  101. X-Axis&nbsp;
  102. <input class="cr1" id="hideXAxis" type="checkbox"
  103. ng-model="panel['x-axis']" ng-checked="panel['x-axis']" ng-change="render()">
  104. <label for="hideXAxis" class="cr1"></label>
  105. </li>
  106. <li class="tight-form-item last">
  107. Y-Axis&nbsp;
  108. <input class="cr1" id="hideYAxis" type="checkbox"
  109. ng-model="panel['y-axis']" ng-checked="panel['y-axis']" ng-change="render()">
  110. <label for="hideYAxis" class="cr1"></label>
  111. </li>
  112. </ul>
  113. <div class="clearfix"></div>
  114. </div>
  115. <div class="tight-form">
  116. <ul class="tight-form-list">
  117. <li class="tight-form-item" style="width: 80px">
  118. <strong>Thresholds</strong>
  119. </li>
  120. <li class="tight-form-item">
  121. Level 1
  122. </li>
  123. <li>
  124. <input type="number" class="input-small tight-form-input"
  125. ng-model="panel.grid.threshold1" ng-change="render()" ng-model-onblur>
  126. </li>
  127. <li class="tight-form-item">
  128. <spectrum-picker ng-model="panel.grid.threshold1Color" ng-change="render()" ></spectrum-picker>
  129. </li>
  130. <li class="tight-form-item">
  131. Level 2
  132. </li>
  133. <li>
  134. <input type="number" class="input-small tight-form-input"
  135. ng-model="panel.grid.threshold2" ng-change="render()" ng-model-onblur>
  136. </li>
  137. <li class="tight-form-item">
  138. <spectrum-picker ng-model="panel.grid.threshold2Color" ng-change="render()" ></spectrum-picker>
  139. </li>
  140. <li class="tight-form-item last">
  141. Line mode&nbsp;
  142. <input class="cr1" id="panel.grid.thresholdLine" type="checkbox"
  143. ng-model="panel.grid.thresholdLine" ng-checked="panel.grid.thresholdLine" ng-change="render()">
  144. <label for="panel.grid.thresholdLine" class="cr1"></label>
  145. </li>
  146. </ul>
  147. <div class="clearfix"></div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="editor-row">
  152. <div class="section">
  153. <div class="tight-form last">
  154. <ul class="tight-form-list">
  155. <li class="tight-form-item" style="width: 110px">
  156. <strong>Legend</strong>
  157. </li>
  158. <li class="tight-form-item">
  159. Show&nbsp;
  160. <input class="cr1" id="panel.legend.show" type="checkbox"
  161. ng-model="panel.legend.show" ng-checked="panel.legend.show" ng-change="get_data()">
  162. <label for="panel.legend.show" class="cr1"></label>
  163. </li>
  164. <li class="tight-form-item">
  165. Table&nbsp;
  166. <input class="cr1" id="panel.legend.alignAsTable" type="checkbox"
  167. ng-model="panel.legend.alignAsTable" ng-checked="panel.legend.alignAsTable" ng-change="render()">
  168. <label for="panel.legend.alignAsTable" class="cr1"></label>
  169. </li>
  170. <li class="tight-form-item">
  171. Right side&nbsp;
  172. <input class="cr1" id="panel.legend.rightSide" type="checkbox"
  173. ng-model="panel.legend.rightSide" ng-checked="panel.legend.rightSide" ng-change="render()">
  174. <label for="panel.legend.rightSide" class="cr1"></label>
  175. </li>
  176. <li class="tight-form-item last">
  177. <span bs-tooltip="'Hides series with only null values'">Hide empty&nbsp;<span>
  178. <input class="cr1" id="panel.legend.hideEmpty" type="checkbox"
  179. ng-model="panel.legend.hideEmpty" ng-checked="panel.legend.hideEmpty" ng-change="render()">
  180. <label for="panel.legend.hideEmpty" class="cr1"></label>
  181. </li>
  182. </ul>
  183. <div class="clearfix"></div>
  184. </div>
  185. </div>
  186. <div class="section">
  187. <div class="tight-form">
  188. <ul class="tight-form-list">
  189. <li class="tight-form-item" style="width: 105px">
  190. <strong>Legend values</strong>
  191. </li>
  192. <li class="tight-form-item">
  193. Min&nbsp;
  194. <input class="cr1" id="panel.legend.min" type="checkbox"
  195. ng-model="panel.legend.min" ng-checked="panel.legend.min" ng-change="legendValuesOptionChanged()">
  196. <label for="panel.legend.min" class="cr1"></label>
  197. </li>
  198. <li class="tight-form-item">
  199. Max&nbsp;
  200. <input class="cr1" id="panel.legend.max" type="checkbox"
  201. ng-model="panel.legend.max" ng-checked="panel.legend.max" ng-change="legendValuesOptionChanged()">
  202. <label for="panel.legend.max" class="cr1"></label>
  203. </li>
  204. <li class="tight-form-item">
  205. Avg&nbsp;
  206. <input class="cr1" id="panel.legend.avg" type="checkbox"
  207. ng-model="panel.legend.avg" ng-checked="panel.legend.avg" ng-change="legendValuesOptionChanged()">
  208. <label for="panel.legend.avg" class="cr1"></label>
  209. </li>
  210. <li class="tight-form-item">
  211. Current&nbsp;
  212. <input class="cr1" id="panel.legend.current" type="checkbox"
  213. ng-model="panel.legend.current" ng-checked="panel.legend.current" ng-change="legendValuesOptionChanged()">
  214. <label for="panel.legend.current" class="cr1"></label>
  215. </li>
  216. <li class="tight-form-item last">
  217. Total&nbsp;
  218. <input class="cr1" id="panel.legend.total" type="checkbox"
  219. ng-model="panel.legend.total" ng-checked="panel.legend.total" ng-change="legendValuesOptionChanged()">
  220. <label for="panel.legend.total" class="cr1"></label>
  221. </li>
  222. </ul>
  223. <div class="clearfix"></div>
  224. </div>
  225. <div class="tight-form last">
  226. <ul class="tight-form-list">
  227. <li class="tight-form-item" style="width: 105px">
  228. <strong>Decimals</strong>
  229. </li>
  230. <li style="width: 105px">
  231. <input type="number" class="input-small tight-form-input" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right"
  232. ng-model="panel.decimals" ng-change="render()" ng-model-onblur>
  233. </li>
  234. </ul>
  235. <div class="clearfix"></div>
  236. </div>
  237. </div>
  238. </div>