lazy_high_charts 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +8 -3
  4. data/GEM_VERSION +1 -1
  5. data/Gemfile +1 -1
  6. data/Guardfile +2 -2
  7. data/README.md +4 -4
  8. data/Rakefile +36 -1
  9. data/lazy_high_charts.gemspec +11 -11
  10. data/lib/lazy_high_charts.rb +4 -2
  11. data/lib/lazy_high_charts/core_ext/string.rb +4 -4
  12. data/lib/lazy_high_charts/high_chart.rb +32 -17
  13. data/lib/lazy_high_charts/layout_helper.rb +9 -9
  14. data/lib/lazy_high_charts/railtie.rb +6 -6
  15. data/spec/high_chart_spec.rb +56 -41
  16. data/spec/lazy_high_charts_spec.rb +49 -43
  17. data/spec/spec_helper.rb +1 -1
  18. data/vendor/assets/javascripts/highcharts/adapters/mootools-adapter.js +13 -0
  19. data/vendor/assets/javascripts/highcharts/adapters/prototype-adapter.js +15 -0
  20. data/vendor/assets/javascripts/highcharts/highcharts-more.js +51 -0
  21. data/vendor/assets/javascripts/highcharts/highcharts.js +272 -0
  22. data/vendor/assets/javascripts/highcharts/highstock.js +334 -0
  23. data/vendor/assets/javascripts/highcharts/modules/exporting.js +10 -10
  24. data/vendor/assets/javascripts/highcharts/stock/adapters/mootools-adapter.js +13 -0
  25. data/vendor/assets/javascripts/highcharts/stock/adapters/prototype-adapter.js +15 -0
  26. data/vendor/assets/javascripts/highcharts/stock/highcharts-more.js +51 -0
  27. data/vendor/assets/javascripts/highcharts/stock/modules/exporting.js +22 -0
  28. metadata +59 -52
  29. metadata.gz.sig +3 -2
  30. checksums.yaml +0 -7
  31. checksums.yaml.gz.sig +0 -2
  32. data/lib/generators/lazy_high_charts/install/install_generator.rb +0 -31
  33. data/vendor/assets/javascripts/exporting.js +0 -22
  34. data/vendor/assets/javascripts/highcharts-more.js +0 -50
  35. data/vendor/assets/javascripts/highcharts.js +0 -270
  36. data/vendor/assets/javascripts/highcharts/modules/canvas-tools.js +0 -133
  37. data/vendor/assets/javascripts/highcharts/modules/canvas-tools.src.js +0 -3113
  38. data/vendor/assets/javascripts/highcharts/modules/data.js +0 -16
  39. data/vendor/assets/javascripts/highcharts/modules/data.src.js +0 -537
  40. data/vendor/assets/javascripts/highcharts/modules/exporting.src.js +0 -703
  41. data/vendor/assets/javascripts/highcharts/modules/funnel.js +0 -12
  42. data/vendor/assets/javascripts/highcharts/modules/funnel.src.js +0 -284
  43. data/vendor/assets/javascripts/highcharts/themes/dark-blue.js +0 -254
  44. data/vendor/assets/javascripts/highcharts/themes/dark-green.js +0 -255
  45. data/vendor/assets/javascripts/highcharts/themes/gray.js +0 -257
  46. data/vendor/assets/javascripts/highcharts/themes/grid.js +0 -103
  47. data/vendor/assets/javascripts/highcharts/themes/skies.js +0 -89
  48. data/vendor/assets/javascripts/highstock.js +0 -332
@@ -1,255 +0,0 @@
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);
@@ -1,257 +0,0 @@
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);