fix(singlestat): fixes font size diffs for gauge

This commit is contained in:
bergquist 2016-04-26 10:00:13 +02:00
parent 9316bcf307
commit 79ed99a940
2 changed files with 6 additions and 2 deletions

View File

@ -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;
} }

View File

@ -48,4 +48,8 @@
} }
} }
#flotGagueValue0 {
font-weight: bold; //please dont hurt me for this!
}