styleEditor.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <div class="editor-row">
  2. <div class="section">
  3. <h5>Chart Options</h5>
  4. <div class="editor-option">
  5. <label class="small">Bars</label><input type="checkbox" ng-model="panel.bars" ng-checked="panel.bars" ng-change="render()">
  6. </div>
  7. <div class="editor-option">
  8. <label class="small">Lines</label><input type="checkbox" ng-model="panel.lines" ng-checked="panel.lines" ng-change="render()">
  9. </div>
  10. <div class="editor-option">
  11. <label class="small">Points</label><input type="checkbox" ng-model="panel.points" ng-checked="panel.points" ng-change="render()">
  12. </div>
  13. </div>
  14. <div class="section">
  15. <h5>Line options</h5>
  16. <div class="editor-option" ng-show="panel.lines">
  17. <label class="small">Line Fill</label>
  18. <select class="input-mini" ng-model="panel.fill" ng-options="f for f in [0,1,2,3,4,5,6,7,8,9,10]" ng-change="render()"></select>
  19. </div>
  20. <div class="editor-option" ng-show="panel.lines">
  21. <label class="small">Line Width</label>
  22. <select class="input-mini" ng-model="panel.linewidth" ng-options="f for f in [0,1,2,3,4,5,6,7,8,9,10]" ng-change="render()"></select>
  23. </div>
  24. <div class="editor-option" ng-show="panel.points">
  25. <label class="small">Point Radius</label>
  26. <select class="input-mini" ng-model="panel.pointradius" ng-options="f for f in [1,2,3,4,5,6,7,8,9,10]" ng-change="render()"></select>
  27. </div>
  28. <div class="editor-option">
  29. <label class="small">Null point mode <tip>Define how null values should be drawn</tip></label>
  30. <select class="input-medium" ng-model="panel.nullPointMode" ng-options="f for f in ['connected', 'null', 'null as zero']" ng-change="render()"></select>
  31. </div>
  32. <div class="editor-option">
  33. <label class="small">Staircase line</label><input type="checkbox" ng-model="panel.steppedLine" ng-checked="panel.steppedLine" ng-change="render()">
  34. </div>
  35. </div>
  36. <div class="section">
  37. <h5>Multiple Series</h5>
  38. <div class="editor-option">
  39. <label class="small">Stack</label><input type="checkbox" ng-model="panel.stack" ng-checked="panel.stack" ng-change="render()">
  40. </div>
  41. <div class="editor-option" ng-show="panel.stack">
  42. <label style="white-space:nowrap" class="small">Percent <tip>Stack as a percentage of total</tip></label>
  43. <input type="checkbox" ng-model="panel.percentage" ng-checked="panel.percentage" ng-change="render()">
  44. </div>
  45. <div class="editor-option" ng-show="panel.stack">
  46. <label class="small">Stacked Values <tip>How should the values in stacked charts to be calculated?</tip></label>
  47. <select class="input-small" ng-model="panel.tooltip.value_type" ng-options="f for f in ['cumulative','individual']" ng-change="render()"></select>
  48. </div>
  49. </div>
  50. <div class="section">
  51. <h5>Rendering</h5>
  52. <div class="editor-option">
  53. <label class="small">Flot <tip>client side</tip></label>
  54. <input type="radio" class="input-small" ng-model="panel.renderer" value="flot" ng-change="get_data()" />
  55. </div>
  56. <div class="editor-option">
  57. <label class="small">Graphite PNG <tip>server side</tip></label>
  58. <input type="radio" class="input-small" ng-model="panel.renderer" value="png" ng-change="get_data()" />
  59. </div>
  60. </div>
  61. </div>
  62. <div class="editor-row">
  63. <div class="section">
  64. <h5>Series specific overrides <tip>Regex match example: /server[0-3]/i </tip></h5>
  65. <div>
  66. <div class="grafana-target" ng-repeat="override in panel.seriesOverrides" ng-controller="SeriesOverridesCtrl">
  67. <div class="grafana-target-inner-wrapper">
  68. <div class="grafana-target-inner">
  69. <ul class="grafana-target-controls-left">
  70. <li class="grafana-target-segment">
  71. <i class="icon-remove pointer" ng-click="removeSeriesOverride(override)"></i>
  72. </li>
  73. </ul>
  74. <ul class="grafana-segment-list">
  75. <li class="grafana-target-segment">
  76. alias or regex
  77. </li>
  78. <li>
  79. <input type="text"
  80. ng-model="override.alias"
  81. bs-typeahead="getSeriesNames"
  82. ng-blur="render()"
  83. data-min-length=0 data-items=100
  84. class="input-medium grafana-target-segment-input" >
  85. </li>
  86. <li class="grafana-target-segment" ng-repeat="option in currentOverrides">
  87. <i class="pointer icon-remove" ng-click="removeOverride(option)"></i>
  88. {{option.name}}: {{option.value}}
  89. </li>
  90. <li class="dropdown">
  91. <a class="dropdown-toggle grafana-target-segment" data-toggle="dropdown" gf-dropdown="overrideMenu" bs-tooltip="'set option to override'">
  92. <i class="icon-plus"></i>
  93. </a>
  94. </li>
  95. </ul>
  96. <div class="clearfix"></div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <button class="btn btn-success" style="margin-top: 20px" ng-click="addSeriesOverride()">Add series override rule</button>
  102. </div>
  103. </div>