Commit 79ed99a9 by bergquist

fix(singlestat): fixes font size diffs for gauge

parent 9316bcf3
......@@ -341,7 +341,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
value: {
color: panel.colorValue ? getColorForValue(data, data.valueRounded) : null,
formatter: function() { return getValueText(); },
font: { size: getGaugeFontSize() }
font: { size: getGaugeFontSize(), family: 'Helvetica Neue", Helvetica, Arial, sans-serif' }
},
show: true
}
......@@ -360,7 +360,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
function getGaugeFontSize() {
if (panel.valueFontSize) {
var num = parseInt(panel.valueFontSize.substring(0, panel.valueFontSize.length - 1));
return 30 * (num / 100);
return (30 * (num / 100)) + 15;
} else {
return 30;
}
......
......@@ -48,4 +48,8 @@
}
}
#flotGagueValue0 {
font-weight: bold; //please dont hurt me for this!
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment