mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(singlestat): fixes font size diffs for gauge
This commit is contained in:
parent
9316bcf307
commit
79ed99a940
@ -341,7 +341,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
|||||||
value: {
|
value: {
|
||||||
color: panel.colorValue ? getColorForValue(data, data.valueRounded) : null,
|
color: panel.colorValue ? getColorForValue(data, data.valueRounded) : null,
|
||||||
formatter: function() { return getValueText(); },
|
formatter: function() { return getValueText(); },
|
||||||
font: { size: getGaugeFontSize() }
|
font: { size: getGaugeFontSize(), family: 'Helvetica Neue", Helvetica, Arial, sans-serif' }
|
||||||
},
|
},
|
||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
@ -360,7 +360,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
|||||||
function getGaugeFontSize() {
|
function getGaugeFontSize() {
|
||||||
if (panel.valueFontSize) {
|
if (panel.valueFontSize) {
|
||||||
var num = parseInt(panel.valueFontSize.substring(0, panel.valueFontSize.length - 1));
|
var num = parseInt(panel.valueFontSize.substring(0, panel.valueFontSize.length - 1));
|
||||||
return 30 * (num / 100);
|
return (30 * (num / 100)) + 15;
|
||||||
} else {
|
} else {
|
||||||
return 30;
|
return 30;
|
||||||
}
|
}
|
||||||
|
@ -48,4 +48,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#flotGagueValue0 {
|
||||||
|
font-weight: bold; //please dont hurt me for this!
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user