forked from ottopaulsen/MMM-Tibber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgauge_options.js
59 lines (55 loc) · 1.07 KB
/
gauge_options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const gaugeOptions = function(config) {
return {
chart: {
type: "solidgauge",
backgroundColor: "#000"
},
title: null,
pane: {
center: ["50%", "85%"],
size: "140%",
startAngle: -90,
endAngle: 90,
background: {
backgroundColor: "#000",
borderColor: "#444",
innerRadius: "60%",
outerRadius: "100%",
shape: "arc"
}
},
// the value axis
yAxis: {
lineWidth: 0,
tickWidth: 0,
minorTickInterval: null,
tickAmount: 2,
categories: [],
title: {
y: 28,
style: {
fontSize: config.gaugesTitleFontSize
}
},
labels: {
style: {
fontSize: config.gaugesLabelFontSize + "px"
}
}
},
plotOptions: {
solidgauge: {
dataLabels: {
enabled: false,
y: 25,
borderWidth: 0,
useHTML: true,
style: {
color: "#777",
fontSize: config.gaugesLabelFontSize
}
}
}
}
};
};