-
Notifications
You must be signed in to change notification settings - Fork 0
/
barra.js
68 lines (58 loc) · 1.49 KB
/
barra.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
$(function () {
$('#container').highcharts({
exporting: {enabled: false},
credits: {enabled: false},
data: {
csv: document.getElementById('csv').innerHTML
},
chart: {
type: 'heatmap',
inverted: true
},
title: {
text: 'Bushing 2 April 2017',
align: 'left'
},
subtitle: {
text: 'Environment Temperature Variation',
align: 'right'
},
xAxis: {
tickPixelInterval: 50,
min: Date.UTC(2017, 3, 1),
max: Date.UTC(2017, 3, 30)
},
yAxis: {
title: {
text: null
},
labels: {
format: '{value}:00'
},
minPadding: 0,
maxPadding: 0,
startOnTick: false,
endOnTick: false,
tickPositions: [0, 6, 12, 18, 24],
tickWidth: 1,
min: 0,
max: 23
},
colorAxis: {
stops: [
[0, '#3060cf'],
[0.5, '#fffbbc'],
[0.9, '#c4463a']
],
min: -5
},
series: [{
borderWidth: 0,
colsize: 24 * 36e5, // one day
tooltip: {
headerFormat: 'Temperature<br/>',
pointFormat: '{point.x:%e %b, %Y} {point.y}:00: <b>{point.value} ℃</b>'
}
}]
});
});