highstock-rails 1.3.7

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