styleEditor.html 4.4 KB

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