styleEditor.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <editor-opt-bool
  47. text="All series" model="panel.tooltip.shared" change="render()"
  48. tip="Show all series on same tooltip and a x croshair to help follow all series">
  49. </editor-opt-bool>
  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 class="tight-form-container">
  60. <div class="tight-form" ng-repeat="override in panel.seriesOverrides" ng-controller="SeriesOverridesCtrl">
  61. <ul class="tight-form-list">
  62. <li class="tight-form-item">
  63. <i class="fa fa-remove pointer" ng-click="removeSeriesOverride(override)"></i>
  64. </li>
  65. <li class="tight-form-item">
  66. alias or regex
  67. </li>
  68. <li>
  69. <input type="text" ng-model="override.alias" bs-typeahead="getSeriesNames" ng-blur="render()" data-min-length=0 data-items=100 class="input-medium tight-form-input" >
  70. </li>
  71. <li class="tight-form-item" ng-repeat="option in currentOverrides">
  72. <i class="pointer fa fa-remove" ng-click="removeOverride(option)"></i>
  73. <span ng-show="option.propertyName === 'color'">
  74. Color: <i class="fa fa-circle" ng-style="{color:option.value}"></i>
  75. </span>
  76. <span ng-show="option.propertyName !== 'color'">
  77. {{option.name}}: {{option.value}}
  78. </span>
  79. </li>
  80. <li class="dropdown" dropdown-typeahead="overrideMenu" dropdown-typeahead-on-select="setOverride($item, $subItem)">
  81. </li>
  82. </ul>
  83. <div class="clearfix"></div>
  84. </div>
  85. </div>
  86. <button class="btn btn-inverse" style="margin-top: 20px" ng-click="addSeriesOverride()">
  87. Add series specific option
  88. </button>
  89. </div>
  90. </div>