-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraph.js
116 lines (105 loc) · 3.02 KB
/
graph.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// JavaScript Document
// Data retrieved from http://vikjavev.no/ver/index.php?spenn=2d&sluttid=16.06.2015.
$(function () {
$('#container').highcharts({
chart: {
type: 'spline'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
type: '',
labels: {
overflow: 'justify'
}
},
yAxis: {
title: {
text: ''
},
minorGridLineWidth: 0,
gridLineWidth: 0,
alternateGridColor: null,
plotBands: [{ //Newbie
from: 0,
to: 1200,
color: 'rgba(128,128,128, 0.4)',
}, { // Pupil
from: 1200,
to: 1400,
color: 'rgba(0,128, 0, 0.9)'
}, { // Gentle breeze
from: 1400,
to: 1600,
color: 'rgba(3,168,158,0.5)',
}, { // Moderate breeze
from: 1600,
to: 1900,
color: 'rgba(0, 0, 255, 0.5)',
}, { // Fresh breeze
from: 1900,
to: 2200,
color: 'rgba(170,0,170,0.5)',
}, { // Strong breeze
from: 2200,
to: 2300,
color: 'rgba(255, 140, 0, 0.5)',
}, { // High wind
from: 2300,
to: 2400,
color: 'rgba(255, 140,0, 0.6)',
},{ // Strong breeze
from: 2400,
to: 2600,
color: 'rgba(255,0, 0, 0.4)',
},{ // Strong breeze
from: 2600,
to: 2900,
color: 'rgba(255, 0, 0, 0.6)',
},{ // Strong breeze
from: 2900,
to: 3300,
color: 'rgba(255, 0, 0,1)',
}]
},
tooltip: {
},
plotOptions: {
series: {
dataLabels: {
color: '#FFFFFF'
},
marker: {
lineColor: '#FFFFFF'
}
},
spline: {
lineWidth: 3,
states: {
hover: {
lineWidth: 4
}
},
color: '#FFFFFF',
marker: {
enabled: true
},
pointInterval: 3600000, // one hour
pointStart: Date.UTC(2015, 4, 31, 0, 0, 0)
}
},
series: [{
name: 'Hestavollane',
data: [1200, 1400, 1600, 1800,2400,2600,2800]
}],
navigation: {
menuItemStyle: {
fontSize: '10px'
}
}
});
});