-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstrumentPanel.js
73 lines (72 loc) · 1.54 KB
/
instrumentPanel.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
var instrumentPanel = {id:"instrumentPanel" , cols:[
{view: "template", id:"speed", template: "<canvas id='speed'></canvas>"},
{view: "template", id:"revs", template: "<canvas id='revs'></canvas>"},
{view: "template", id:"temp", template: "<canvas id='temp'></canvas>"}
]
};
var tempGaugeDef = {renderTo: 'temp',
width: 300,
height: 300,
units: "°C",
title: "Temperature",
minValue: -50,
maxValue: 50,
majorTicks: [
-50,
-40,
-30,
-20,
-10,
0,
10,
20,
30,
40,
50
],
minorTicks: 2,
strokeTicks: true,
highlights: [
{
"from": -50,
"to": 0,
"color": "rgba(0,0, 255, .3)"
},
{
"from": 0,
"to": 50,
"color": "rgba(255, 0, 0, .3)"
}
],
ticksAngle: 225,
startAngle: 67.5,
colorMajorTicks: "#ddd",
colorMinorTicks: "#ddd",
colorTitle: "#eee",
colorUnits: "#ccc",
colorNumbers: "#eee",
colorPlate: "#222",
borderShadowWidth: 0,
borders: true,
needleType: "arrow",
needleWidth: 2,
needleCircleSize: 7,
needleCircleOuter: true,
needleCircleInner: false,
animationDuration: 1500,
animationRule: "linear",
colorBorderOuter: "#333",
colorBorderOuterEnd: "#111",
colorBorderMiddle: "#222",
colorBorderMiddleEnd: "#111",
colorBorderInner: "#111",
colorBorderInnerEnd: "#333",
colorNeedleShadowDown: "#333",
colorNeedleCircleOuter: "#333",
colorNeedleCircleOuterEnd: "#111",
colorNeedleCircleInner: "#111",
colorNeedleCircleInnerEnd: "#222",
valueBoxBorderRadius: 0,
colorValueBoxRect: "#222",
colorValueBoxRectEnd: "#333"
};