highstocks-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +7 -0
- data/CHANGELOG.markdown +4 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/README.markdown +27 -0
- data/Rakefile +1 -0
- data/app/assets/graphics/skies.jpg +0 -0
- data/app/assets/graphics/snow.png +0 -0
- data/app/assets/graphics/sun.png +0 -0
- data/app/assets/images/highstocks/skies.jpg +0 -0
- data/app/assets/images/highstocks/snow.png +0 -0
- data/app/assets/images/highstocks/sun.png +0 -0
- data/app/assets/javascripts/highstocks.js +20919 -0
- data/app/assets/javascripts/highstocks/adapters/mootools-adapter.js +13 -0
- data/app/assets/javascripts/highstocks/adapters/mootools-adapter.src.js +316 -0
- data/app/assets/javascripts/highstocks/adapters/prototype-adapter.js +15 -0
- data/app/assets/javascripts/highstocks/adapters/prototype-adapter.src.js +316 -0
- data/app/assets/javascripts/highstocks/adapters/standalone-framework.js +17 -0
- data/app/assets/javascripts/highstocks/adapters/standalone-framework.src.js +583 -0
- data/app/assets/javascripts/highstocks/highstocks-more.js +2439 -0
- data/app/assets/javascripts/highstocks/modules/annotations.js +7 -0
- data/app/assets/javascripts/highstocks/modules/annotations.src.js +401 -0
- data/app/assets/javascripts/highstocks/modules/canvas-tools.js +133 -0
- data/app/assets/javascripts/highstocks/modules/canvas-tools.src.js +3113 -0
- data/app/assets/javascripts/highstocks/modules/data.js +17 -0
- data/app/assets/javascripts/highstocks/modules/data.src.js +582 -0
- data/app/assets/javascripts/highstocks/modules/drilldown.js +11 -0
- data/app/assets/javascripts/highstocks/modules/drilldown.src.js +449 -0
- data/app/assets/javascripts/highstocks/modules/exporting.js +22 -0
- data/app/assets/javascripts/highstocks/modules/exporting.src.js +709 -0
- data/app/assets/javascripts/highstocks/modules/funnel.js +12 -0
- data/app/assets/javascripts/highstocks/modules/funnel.src.js +289 -0
- data/app/assets/javascripts/highstocks/modules/heatmap.js +2 -0
- data/app/assets/javascripts/highstocks/modules/heatmap.src.js +54 -0
- data/app/assets/javascripts/highstocks/modules/map.js +32 -0
- data/app/assets/javascripts/highstocks/modules/map.src.js +1273 -0
- data/app/assets/javascripts/highstocks/modules/no-data-to-display.js +12 -0
- data/app/assets/javascripts/highstocks/modules/no-data-to-display.src.js +128 -0
- data/app/assets/javascripts/highstocks/themes/dark-blue.js +254 -0
- data/app/assets/javascripts/highstocks/themes/dark-green.js +255 -0
- data/app/assets/javascripts/highstocks/themes/gray.js +257 -0
- data/app/assets/javascripts/highstocks/themes/grid.js +103 -0
- data/app/assets/javascripts/highstocks/themes/skies.js +89 -0
- data/highstocks-rails.gemspec +23 -0
- data/lib/highstocks-rails.rb +2 -0
- data/lib/highstocks/rails.rb +6 -0
- data/lib/highstocks/version.rb +3 -0
- metadata +133 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
/**
|
2
|
+
* Gray theme for Highcharts JS
|
3
|
+
* @author Torstein Hønsi
|
4
|
+
*/
|
5
|
+
|
6
|
+
Highcharts.theme = {
|
7
|
+
colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
|
8
|
+
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
|
9
|
+
chart: {
|
10
|
+
backgroundColor: {
|
11
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
12
|
+
stops: [
|
13
|
+
[0, 'rgb(96, 96, 96)'],
|
14
|
+
[1, 'rgb(16, 16, 16)']
|
15
|
+
]
|
16
|
+
},
|
17
|
+
borderWidth: 0,
|
18
|
+
borderRadius: 15,
|
19
|
+
plotBackgroundColor: null,
|
20
|
+
plotShadow: false,
|
21
|
+
plotBorderWidth: 0
|
22
|
+
},
|
23
|
+
title: {
|
24
|
+
style: {
|
25
|
+
color: '#FFF',
|
26
|
+
font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
27
|
+
}
|
28
|
+
},
|
29
|
+
subtitle: {
|
30
|
+
style: {
|
31
|
+
color: '#DDD',
|
32
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
33
|
+
}
|
34
|
+
},
|
35
|
+
xAxis: {
|
36
|
+
gridLineWidth: 0,
|
37
|
+
lineColor: '#999',
|
38
|
+
tickColor: '#999',
|
39
|
+
labels: {
|
40
|
+
style: {
|
41
|
+
color: '#999',
|
42
|
+
fontWeight: 'bold'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
title: {
|
46
|
+
style: {
|
47
|
+
color: '#AAA',
|
48
|
+
font: 'bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
yAxis: {
|
53
|
+
alternateGridColor: null,
|
54
|
+
minorTickInterval: null,
|
55
|
+
gridLineColor: 'rgba(255, 255, 255, .1)',
|
56
|
+
minorGridLineColor: 'rgba(255,255,255,0.07)',
|
57
|
+
lineWidth: 0,
|
58
|
+
tickWidth: 0,
|
59
|
+
labels: {
|
60
|
+
style: {
|
61
|
+
color: '#999',
|
62
|
+
fontWeight: 'bold'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
title: {
|
66
|
+
style: {
|
67
|
+
color: '#AAA',
|
68
|
+
font: 'bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
69
|
+
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
legend: {
|
73
|
+
itemStyle: {
|
74
|
+
color: '#CCC'
|
75
|
+
},
|
76
|
+
itemHoverStyle: {
|
77
|
+
color: '#FFF'
|
78
|
+
},
|
79
|
+
itemHiddenStyle: {
|
80
|
+
color: '#333'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
labels: {
|
84
|
+
style: {
|
85
|
+
color: '#CCC'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
tooltip: {
|
89
|
+
backgroundColor: {
|
90
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
91
|
+
stops: [
|
92
|
+
[0, 'rgba(96, 96, 96, .8)'],
|
93
|
+
[1, 'rgba(16, 16, 16, .8)']
|
94
|
+
]
|
95
|
+
},
|
96
|
+
borderWidth: 0,
|
97
|
+
style: {
|
98
|
+
color: '#FFF'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
|
102
|
+
|
103
|
+
plotOptions: {
|
104
|
+
series: {
|
105
|
+
shadow: true
|
106
|
+
},
|
107
|
+
line: {
|
108
|
+
dataLabels: {
|
109
|
+
color: '#CCC'
|
110
|
+
},
|
111
|
+
marker: {
|
112
|
+
lineColor: '#333'
|
113
|
+
}
|
114
|
+
},
|
115
|
+
spline: {
|
116
|
+
marker: {
|
117
|
+
lineColor: '#333'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
scatter: {
|
121
|
+
marker: {
|
122
|
+
lineColor: '#333'
|
123
|
+
}
|
124
|
+
},
|
125
|
+
candlestick: {
|
126
|
+
lineColor: 'white'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
|
130
|
+
toolbar: {
|
131
|
+
itemStyle: {
|
132
|
+
color: '#CCC'
|
133
|
+
}
|
134
|
+
},
|
135
|
+
|
136
|
+
navigation: {
|
137
|
+
buttonOptions: {
|
138
|
+
symbolStroke: '#DDDDDD',
|
139
|
+
hoverSymbolStroke: '#FFFFFF',
|
140
|
+
theme: {
|
141
|
+
fill: {
|
142
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
143
|
+
stops: [
|
144
|
+
[0.4, '#606060'],
|
145
|
+
[0.6, '#333333']
|
146
|
+
]
|
147
|
+
},
|
148
|
+
stroke: '#000000'
|
149
|
+
}
|
150
|
+
}
|
151
|
+
},
|
152
|
+
|
153
|
+
// scroll charts
|
154
|
+
rangeSelector: {
|
155
|
+
buttonTheme: {
|
156
|
+
fill: {
|
157
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
158
|
+
stops: [
|
159
|
+
[0.4, '#888'],
|
160
|
+
[0.6, '#555']
|
161
|
+
]
|
162
|
+
},
|
163
|
+
stroke: '#000000',
|
164
|
+
style: {
|
165
|
+
color: '#CCC',
|
166
|
+
fontWeight: 'bold'
|
167
|
+
},
|
168
|
+
states: {
|
169
|
+
hover: {
|
170
|
+
fill: {
|
171
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
172
|
+
stops: [
|
173
|
+
[0.4, '#BBB'],
|
174
|
+
[0.6, '#888']
|
175
|
+
]
|
176
|
+
},
|
177
|
+
stroke: '#000000',
|
178
|
+
style: {
|
179
|
+
color: 'white'
|
180
|
+
}
|
181
|
+
},
|
182
|
+
select: {
|
183
|
+
fill: {
|
184
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
185
|
+
stops: [
|
186
|
+
[0.1, '#000'],
|
187
|
+
[0.3, '#333']
|
188
|
+
]
|
189
|
+
},
|
190
|
+
stroke: '#000000',
|
191
|
+
style: {
|
192
|
+
color: 'yellow'
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
},
|
197
|
+
inputStyle: {
|
198
|
+
backgroundColor: '#333',
|
199
|
+
color: 'silver'
|
200
|
+
},
|
201
|
+
labelStyle: {
|
202
|
+
color: 'silver'
|
203
|
+
}
|
204
|
+
},
|
205
|
+
|
206
|
+
navigator: {
|
207
|
+
handles: {
|
208
|
+
backgroundColor: '#666',
|
209
|
+
borderColor: '#AAA'
|
210
|
+
},
|
211
|
+
outlineColor: '#CCC',
|
212
|
+
maskFill: 'rgba(16, 16, 16, 0.5)',
|
213
|
+
series: {
|
214
|
+
color: '#7798BF',
|
215
|
+
lineColor: '#A6C7ED'
|
216
|
+
}
|
217
|
+
},
|
218
|
+
|
219
|
+
scrollbar: {
|
220
|
+
barBackgroundColor: {
|
221
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
222
|
+
stops: [
|
223
|
+
[0.4, '#888'],
|
224
|
+
[0.6, '#555']
|
225
|
+
]
|
226
|
+
},
|
227
|
+
barBorderColor: '#CCC',
|
228
|
+
buttonArrowColor: '#CCC',
|
229
|
+
buttonBackgroundColor: {
|
230
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
231
|
+
stops: [
|
232
|
+
[0.4, '#888'],
|
233
|
+
[0.6, '#555']
|
234
|
+
]
|
235
|
+
},
|
236
|
+
buttonBorderColor: '#CCC',
|
237
|
+
rifleColor: '#FFF',
|
238
|
+
trackBackgroundColor: {
|
239
|
+
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
240
|
+
stops: [
|
241
|
+
[0, '#000'],
|
242
|
+
[1, '#333']
|
243
|
+
]
|
244
|
+
},
|
245
|
+
trackBorderColor: '#666'
|
246
|
+
},
|
247
|
+
|
248
|
+
// special colors for some of the demo examples
|
249
|
+
legendBackgroundColor: 'rgba(48, 48, 48, 0.8)',
|
250
|
+
legendBackgroundColorSolid: 'rgb(70, 70, 70)',
|
251
|
+
dataLabelsColor: '#444',
|
252
|
+
textColor: '#E0E0E0',
|
253
|
+
maskColor: 'rgba(255,255,255,0.3)'
|
254
|
+
};
|
255
|
+
|
256
|
+
// Apply the theme
|
257
|
+
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/**
|
2
|
+
* Grid theme for Highcharts JS
|
3
|
+
* @author Torstein Hønsi
|
4
|
+
*/
|
5
|
+
|
6
|
+
Highcharts.theme = {
|
7
|
+
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
|
8
|
+
chart: {
|
9
|
+
backgroundColor: {
|
10
|
+
linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
|
11
|
+
stops: [
|
12
|
+
[0, 'rgb(255, 255, 255)'],
|
13
|
+
[1, 'rgb(240, 240, 255)']
|
14
|
+
]
|
15
|
+
},
|
16
|
+
borderWidth: 2,
|
17
|
+
plotBackgroundColor: 'rgba(255, 255, 255, .9)',
|
18
|
+
plotShadow: true,
|
19
|
+
plotBorderWidth: 1
|
20
|
+
},
|
21
|
+
title: {
|
22
|
+
style: {
|
23
|
+
color: '#000',
|
24
|
+
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
|
25
|
+
}
|
26
|
+
},
|
27
|
+
subtitle: {
|
28
|
+
style: {
|
29
|
+
color: '#666666',
|
30
|
+
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
|
31
|
+
}
|
32
|
+
},
|
33
|
+
xAxis: {
|
34
|
+
gridLineWidth: 1,
|
35
|
+
lineColor: '#000',
|
36
|
+
tickColor: '#000',
|
37
|
+
labels: {
|
38
|
+
style: {
|
39
|
+
color: '#000',
|
40
|
+
font: '11px Trebuchet MS, Verdana, sans-serif'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
title: {
|
44
|
+
style: {
|
45
|
+
color: '#333',
|
46
|
+
fontWeight: 'bold',
|
47
|
+
fontSize: '12px',
|
48
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
49
|
+
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
yAxis: {
|
54
|
+
minorTickInterval: 'auto',
|
55
|
+
lineColor: '#000',
|
56
|
+
lineWidth: 1,
|
57
|
+
tickWidth: 1,
|
58
|
+
tickColor: '#000',
|
59
|
+
labels: {
|
60
|
+
style: {
|
61
|
+
color: '#000',
|
62
|
+
font: '11px Trebuchet MS, Verdana, sans-serif'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
title: {
|
66
|
+
style: {
|
67
|
+
color: '#333',
|
68
|
+
fontWeight: 'bold',
|
69
|
+
fontSize: '12px',
|
70
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
},
|
74
|
+
legend: {
|
75
|
+
itemStyle: {
|
76
|
+
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
77
|
+
color: 'black'
|
78
|
+
|
79
|
+
},
|
80
|
+
itemHoverStyle: {
|
81
|
+
color: '#039'
|
82
|
+
},
|
83
|
+
itemHiddenStyle: {
|
84
|
+
color: 'gray'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
labels: {
|
88
|
+
style: {
|
89
|
+
color: '#99b'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
|
93
|
+
navigation: {
|
94
|
+
buttonOptions: {
|
95
|
+
theme: {
|
96
|
+
stroke: '#CCCCCC'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
};
|
101
|
+
|
102
|
+
// Apply the theme
|
103
|
+
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/**
|
2
|
+
* Skies theme for Highcharts JS
|
3
|
+
* @author Torstein Hønsi
|
4
|
+
*/
|
5
|
+
|
6
|
+
Highcharts.theme = {
|
7
|
+
colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"],
|
8
|
+
chart: {
|
9
|
+
className: 'skies',
|
10
|
+
borderWidth: 0,
|
11
|
+
plotShadow: true,
|
12
|
+
plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
|
13
|
+
plotBackgroundColor: {
|
14
|
+
linearGradient: [0, 0, 250, 500],
|
15
|
+
stops: [
|
16
|
+
[0, 'rgba(255, 255, 255, 1)'],
|
17
|
+
[1, 'rgba(255, 255, 255, 0)']
|
18
|
+
]
|
19
|
+
},
|
20
|
+
plotBorderWidth: 1
|
21
|
+
},
|
22
|
+
title: {
|
23
|
+
style: {
|
24
|
+
color: '#3E576F',
|
25
|
+
font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
26
|
+
}
|
27
|
+
},
|
28
|
+
subtitle: {
|
29
|
+
style: {
|
30
|
+
color: '#6D869F',
|
31
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
32
|
+
}
|
33
|
+
},
|
34
|
+
xAxis: {
|
35
|
+
gridLineWidth: 0,
|
36
|
+
lineColor: '#C0D0E0',
|
37
|
+
tickColor: '#C0D0E0',
|
38
|
+
labels: {
|
39
|
+
style: {
|
40
|
+
color: '#666',
|
41
|
+
fontWeight: 'bold'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
title: {
|
45
|
+
style: {
|
46
|
+
color: '#666',
|
47
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
yAxis: {
|
52
|
+
alternateGridColor: 'rgba(255, 255, 255, .5)',
|
53
|
+
lineColor: '#C0D0E0',
|
54
|
+
tickColor: '#C0D0E0',
|
55
|
+
tickWidth: 1,
|
56
|
+
labels: {
|
57
|
+
style: {
|
58
|
+
color: '#666',
|
59
|
+
fontWeight: 'bold'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
title: {
|
63
|
+
style: {
|
64
|
+
color: '#666',
|
65
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
},
|
69
|
+
legend: {
|
70
|
+
itemStyle: {
|
71
|
+
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
72
|
+
color: '#3E576F'
|
73
|
+
},
|
74
|
+
itemHoverStyle: {
|
75
|
+
color: 'black'
|
76
|
+
},
|
77
|
+
itemHiddenStyle: {
|
78
|
+
color: 'silver'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
labels: {
|
82
|
+
style: {
|
83
|
+
color: '#3E576F'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
};
|
87
|
+
|
88
|
+
// Apply the theme
|
89
|
+
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|