Przeglądaj źródła

Sparklines should scale to the data range (#12010)

* Add a full range option to sparklines

* line zero=false
Ryan McKinley 7 lat temu
rodzic
commit
17b9609209
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      public/app/plugins/panel/singlestat/module.ts

+ 1 - 0
public/app/plugins/panel/singlestat/module.ts

@@ -580,6 +580,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
           lines: {
           lines: {
             show: true,
             show: true,
             fill: 1,
             fill: 1,
+            zero: false,
             lineWidth: 1,
             lineWidth: 1,
             fillColor: panel.sparkline.fillColor,
             fillColor: panel.sparkline.fillColor,
           },
           },