Skip to content

Commit 79ed99a

Browse files
committed
fix(singlestat): fixes font size diffs for gauge
1 parent 9316bcf commit 79ed99a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

public/app/plugins/panel/singlestat/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
341341
value: {
342342
color: panel.colorValue ? getColorForValue(data, data.valueRounded) : null,
343343
formatter: function() { return getValueText(); },
344-
font: { size: getGaugeFontSize() }
344+
font: { size: getGaugeFontSize(), family: 'Helvetica Neue", Helvetica, Arial, sans-serif' }
345345
},
346346
show: true
347347
}
@@ -360,7 +360,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
360360
function getGaugeFontSize() {
361361
if (panel.valueFontSize) {
362362
var num = parseInt(panel.valueFontSize.substring(0, panel.valueFontSize.length - 1));
363-
return 30 * (num / 100);
363+
return (30 * (num / 100)) + 15;
364364
} else {
365365
return 30;
366366
}

public/sass/components/_panel_singlestat.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@
4848
}
4949
}
5050

51+
#flotGagueValue0 {
52+
font-weight: bold; //please dont hurt me for this!
53+
}
54+
5155

0 commit comments

Comments
 (0)