Przeglądaj źródła

histogram: option to set point radius

Van Eenwyk, Jonathan 12 lat temu
rodzic
commit
f6bc9d0c33

+ 2 - 1
src/app/panels/histogram/module.js

@@ -91,6 +91,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
       intervals     : ['auto','1s','1m','5m','10m','30m','1h','3h','12h','1d','1w','1y'],
       fill          : 0,
       linewidth     : 3,
+      pointradius   : 5,
       timezone      : 'browser', // browser, utc or a standard timezone
       spyable       : true,
       zoomlinks     : true,
@@ -437,7 +438,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
                   show: scope.panel.points,
                   fill: 1,
                   fillColor: false,
-                  radius: 5
+                  radius: scope.panel.pointradius
                 },
                 shadowSize: 1
               },

+ 4 - 0
src/app/panels/histogram/styleEditor.html

@@ -25,6 +25,10 @@
       <label class="small">Line Width</label>
       <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]"></select>
     </div>
+    <div class="editor-option" ng-show="panel.points">
+      <label class="small">Point Radius</label>
+      <select class="input-mini" ng-model="panel.pointradius" ng-options="f for f in [1,2,3,4,5,6,7,8,9,10]"></select>
+    </div>
   </div>
   <div class="section">
     <h5>Multiple Series</h5>