|
@@ -67,6 +67,8 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
|
|
sparkline: {
|
|
sparkline: {
|
|
|
show: false,
|
|
show: false,
|
|
|
full: false,
|
|
full: false,
|
|
|
|
|
+ ymin: null,
|
|
|
|
|
+ ymax: null,
|
|
|
lineColor: 'rgb(31, 120, 193)',
|
|
lineColor: 'rgb(31, 120, 193)',
|
|
|
fillColor: 'rgba(31, 118, 189, 0.18)',
|
|
fillColor: 'rgba(31, 118, 189, 0.18)',
|
|
|
},
|
|
},
|
|
@@ -548,12 +550,15 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
|
|
lines: {
|
|
lines: {
|
|
|
show: true,
|
|
show: true,
|
|
|
fill: 1,
|
|
fill: 1,
|
|
|
- zero: false,
|
|
|
|
|
lineWidth: 1,
|
|
lineWidth: 1,
|
|
|
fillColor: getColorFromHexRgbOrName(panel.sparkline.fillColor, config.theme.type),
|
|
fillColor: getColorFromHexRgbOrName(panel.sparkline.fillColor, config.theme.type),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- yaxes: { show: false },
|
|
|
|
|
|
|
+ yaxes: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ min: panel.sparkline.ymin,
|
|
|
|
|
+ max: panel.sparkline.ymax,
|
|
|
|
|
+ },
|
|
|
xaxis: {
|
|
xaxis: {
|
|
|
show: false,
|
|
show: false,
|
|
|
mode: 'time',
|
|
mode: 'time',
|