highcharts-rails 4.2.7 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.markdown +34 -0
  3. data/Gemfile +4 -0
  4. data/Rakefile +53 -32
  5. data/app/assets/javascripts/highcharts.js +18775 -17176
  6. data/app/assets/javascripts/highcharts/highcharts-3d.js +1849 -1563
  7. data/app/assets/javascripts/highcharts/highcharts-more.js +2162 -1988
  8. data/app/assets/javascripts/highcharts/modules/accessibility.js +1005 -0
  9. data/app/assets/javascripts/highcharts/modules/annotations.js +408 -401
  10. data/app/assets/javascripts/highcharts/modules/boost.js +561 -546
  11. data/app/assets/javascripts/highcharts/modules/broken-axis.js +330 -324
  12. data/app/assets/javascripts/highcharts/modules/data.js +973 -965
  13. data/app/assets/javascripts/highcharts/modules/drilldown.js +783 -723
  14. data/app/assets/javascripts/highcharts/modules/exporting.js +864 -785
  15. data/app/assets/javascripts/highcharts/modules/funnel.js +290 -306
  16. data/app/assets/javascripts/highcharts/modules/heatmap.js +701 -645
  17. data/app/assets/javascripts/highcharts/modules/no-data-to-display.js +150 -132
  18. data/app/assets/javascripts/highcharts/modules/offline-exporting.js +414 -355
  19. data/app/assets/javascripts/highcharts/modules/overlapping-datalabels.js +164 -0
  20. data/app/assets/javascripts/highcharts/modules/series-label.js +473 -448
  21. data/app/assets/javascripts/highcharts/modules/solid-gauge.js +279 -271
  22. data/app/assets/javascripts/highcharts/modules/treemap.js +921 -886
  23. data/app/assets/javascripts/highcharts/themes/dark-blue.js +307 -244
  24. data/app/assets/javascripts/highcharts/themes/dark-green.js +303 -244
  25. data/app/assets/javascripts/highcharts/themes/dark-unica.js +231 -201
  26. data/app/assets/javascripts/highcharts/themes/gray.js +314 -245
  27. data/app/assets/javascripts/highcharts/themes/grid-light.js +91 -66
  28. data/app/assets/javascripts/highcharts/themes/grid.js +124 -96
  29. data/app/assets/javascripts/highcharts/themes/sand-signika.js +119 -94
  30. data/app/assets/javascripts/highcharts/themes/skies.js +108 -85
  31. data/lib/highcharts/version.rb +1 -1
  32. metadata +13 -14
  33. data/app/assets/javascripts/highcharts/adapters/standalone-framework.js +0 -1
  34. data/app/assets/javascripts/highcharts/modules/canvas-tools.js +0 -3115
  35. data/app/assets/javascripts/highcharts/modules/map.js +0 -2117
@@ -1,254 +1,317 @@
1
1
  /**
2
- * Dark blue theme for Highcharts JS
3
- * @author Torstein Honsi
2
+ * @license Highcharts JS v5.0.0 (2016-09-29)
3
+ *
4
+ * (c) 2009-2016 Torstein Honsi
5
+ *
6
+ * License: www.highcharts.com/license
4
7
  */
8
+ (function(factory) {
9
+ if (typeof module === 'object' && module.exports) {
10
+ module.exports = factory;
11
+ } else {
12
+ factory(Highcharts);
13
+ }
14
+ }(function(Highcharts) {
15
+ (function(Highcharts) {
16
+ /**
17
+ * (c) 2010-2016 Torstein Honsi
18
+ *
19
+ * License: www.highcharts.com/license
20
+ *
21
+ * Dark blue theme for Highcharts JS
22
+ * @author Torstein Honsi
23
+ */
24
+ 'use strict';
25
+ Highcharts.theme = {
26
+ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee',
27
+ '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
28
+ ],
29
+ chart: {
30
+ backgroundColor: {
31
+ linearGradient: {
32
+ x1: 0,
33
+ y1: 0,
34
+ x2: 1,
35
+ y2: 1
36
+ },
37
+ stops: [
38
+ [0, 'rgb(48, 48, 96)'],
39
+ [1, 'rgb(0, 0, 0)']
40
+ ]
41
+ },
42
+ borderColor: '#000000',
43
+ borderWidth: 2,
44
+ className: 'dark-container',
45
+ plotBackgroundColor: 'rgba(255, 255, 255, .1)',
46
+ plotBorderColor: '#CCCCCC',
47
+ plotBorderWidth: 1
48
+ },
49
+ title: {
50
+ style: {
51
+ color: '#C0C0C0',
52
+ font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
53
+ }
54
+ },
55
+ subtitle: {
56
+ style: {
57
+ color: '#666666',
58
+ font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
59
+ }
60
+ },
61
+ xAxis: {
62
+ gridLineColor: '#333333',
63
+ gridLineWidth: 1,
64
+ labels: {
65
+ style: {
66
+ color: '#A0A0A0'
67
+ }
68
+ },
69
+ lineColor: '#A0A0A0',
70
+ tickColor: '#A0A0A0',
71
+ title: {
72
+ style: {
73
+ color: '#CCC',
74
+ fontWeight: 'bold',
75
+ fontSize: '12px',
76
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
5
77
 
6
- Highcharts.theme = {
7
- colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
8
- "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
9
- chart: {
10
- backgroundColor: {
11
- linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
12
- stops: [
13
- [0, 'rgb(48, 48, 96)'],
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'
78
+ }
79
+ }
80
+ },
81
+ yAxis: {
82
+ gridLineColor: '#333333',
83
+ labels: {
84
+ style: {
85
+ color: '#A0A0A0'
86
+ }
87
+ },
88
+ lineColor: '#A0A0A0',
89
+ minorTickInterval: null,
90
+ tickColor: '#A0A0A0',
91
+ tickWidth: 1,
92
+ title: {
93
+ style: {
94
+ color: '#CCC',
95
+ fontWeight: 'bold',
96
+ fontSize: '12px',
97
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
98
+ }
99
+ }
100
+ },
101
+ tooltip: {
102
+ backgroundColor: 'rgba(0, 0, 0, 0.75)',
103
+ style: {
104
+ color: '#F0F0F0'
105
+ }
106
+ },
107
+ toolbar: {
108
+ itemStyle: {
109
+ color: 'silver'
110
+ }
111
+ },
112
+ plotOptions: {
113
+ line: {
114
+ dataLabels: {
115
+ color: '#CCC'
116
+ },
117
+ marker: {
118
+ lineColor: '#333'
119
+ }
120
+ },
121
+ spline: {
122
+ marker: {
123
+ lineColor: '#333'
124
+ }
125
+ },
126
+ scatter: {
127
+ marker: {
128
+ lineColor: '#333'
129
+ }
130
+ },
131
+ candlestick: {
132
+ lineColor: 'white'
133
+ }
134
+ },
135
+ legend: {
136
+ itemStyle: {
137
+ font: '9pt Trebuchet MS, Verdana, sans-serif',
138
+ color: '#A0A0A0'
139
+ },
140
+ itemHoverStyle: {
141
+ color: '#FFF'
142
+ },
143
+ itemHiddenStyle: {
144
+ color: '#444'
145
+ }
146
+ },
147
+ credits: {
148
+ style: {
149
+ color: '#666'
150
+ }
151
+ },
152
+ labels: {
153
+ style: {
154
+ color: '#CCC'
155
+ }
156
+ },
52
157
 
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
- },
158
+ navigation: {
159
+ buttonOptions: {
160
+ symbolStroke: '#DDDDDD',
161
+ hoverSymbolStroke: '#FFFFFF',
162
+ theme: {
163
+ fill: {
164
+ linearGradient: {
165
+ x1: 0,
166
+ y1: 0,
167
+ x2: 0,
168
+ y2: 1
169
+ },
170
+ stops: [
171
+ [0.4, '#606060'],
172
+ [0.6, '#333333']
173
+ ]
174
+ },
175
+ stroke: '#000000'
176
+ }
177
+ }
178
+ },
132
179
 
133
- navigation: {
134
- buttonOptions: {
135
- symbolStroke: '#DDDDDD',
136
- hoverSymbolStroke: '#FFFFFF',
137
- theme: {
138
- fill: {
139
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
140
- stops: [
141
- [0.4, '#606060'],
142
- [0.6, '#333333']
143
- ]
144
- },
145
- stroke: '#000000'
146
- }
147
- }
148
- },
180
+ // scroll charts
181
+ rangeSelector: {
182
+ buttonTheme: {
183
+ fill: {
184
+ linearGradient: {
185
+ x1: 0,
186
+ y1: 0,
187
+ x2: 0,
188
+ y2: 1
189
+ },
190
+ stops: [
191
+ [0.4, '#888'],
192
+ [0.6, '#555']
193
+ ]
194
+ },
195
+ stroke: '#000000',
196
+ style: {
197
+ color: '#CCC',
198
+ fontWeight: 'bold'
199
+ },
200
+ states: {
201
+ hover: {
202
+ fill: {
203
+ linearGradient: {
204
+ x1: 0,
205
+ y1: 0,
206
+ x2: 0,
207
+ y2: 1
208
+ },
209
+ stops: [
210
+ [0.4, '#BBB'],
211
+ [0.6, '#888']
212
+ ]
213
+ },
214
+ stroke: '#000000',
215
+ style: {
216
+ color: 'white'
217
+ }
218
+ },
219
+ select: {
220
+ fill: {
221
+ linearGradient: {
222
+ x1: 0,
223
+ y1: 0,
224
+ x2: 0,
225
+ y2: 1
226
+ },
227
+ stops: [
228
+ [0.1, '#000'],
229
+ [0.3, '#333']
230
+ ]
231
+ },
232
+ stroke: '#000000',
233
+ style: {
234
+ color: 'yellow'
235
+ }
236
+ }
237
+ }
238
+ },
239
+ inputStyle: {
240
+ backgroundColor: '#333',
241
+ color: 'silver'
242
+ },
243
+ labelStyle: {
244
+ color: 'silver'
245
+ }
246
+ },
149
247
 
150
- // scroll charts
151
- rangeSelector: {
152
- buttonTheme: {
153
- fill: {
154
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
155
- stops: [
156
- [0.4, '#888'],
157
- [0.6, '#555']
158
- ]
159
- },
160
- stroke: '#000000',
161
- style: {
162
- color: '#CCC',
163
- fontWeight: 'bold'
164
- },
165
- states: {
166
- hover: {
167
- fill: {
168
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
169
- stops: [
170
- [0.4, '#BBB'],
171
- [0.6, '#888']
172
- ]
173
- },
174
- stroke: '#000000',
175
- style: {
176
- color: 'white'
177
- }
178
- },
179
- select: {
180
- fill: {
181
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
182
- stops: [
183
- [0.1, '#000'],
184
- [0.3, '#333']
185
- ]
186
- },
187
- stroke: '#000000',
188
- style: {
189
- color: 'yellow'
190
- }
191
- }
192
- }
193
- },
194
- inputStyle: {
195
- backgroundColor: '#333',
196
- color: 'silver'
197
- },
198
- labelStyle: {
199
- color: 'silver'
200
- }
201
- },
248
+ navigator: {
249
+ handles: {
250
+ backgroundColor: '#666',
251
+ borderColor: '#AAA'
252
+ },
253
+ outlineColor: '#CCC',
254
+ maskFill: 'rgba(16, 16, 16, 0.5)',
255
+ series: {
256
+ color: '#7798BF',
257
+ lineColor: '#A6C7ED'
258
+ }
259
+ },
202
260
 
203
- navigator: {
204
- handles: {
205
- backgroundColor: '#666',
206
- borderColor: '#AAA'
207
- },
208
- outlineColor: '#CCC',
209
- maskFill: 'rgba(16, 16, 16, 0.5)',
210
- series: {
211
- color: '#7798BF',
212
- lineColor: '#A6C7ED'
213
- }
214
- },
261
+ scrollbar: {
262
+ barBackgroundColor: {
263
+ linearGradient: {
264
+ x1: 0,
265
+ y1: 0,
266
+ x2: 0,
267
+ y2: 1
268
+ },
269
+ stops: [
270
+ [0.4, '#888'],
271
+ [0.6, '#555']
272
+ ]
273
+ },
274
+ barBorderColor: '#CCC',
275
+ buttonArrowColor: '#CCC',
276
+ buttonBackgroundColor: {
277
+ linearGradient: {
278
+ x1: 0,
279
+ y1: 0,
280
+ x2: 0,
281
+ y2: 1
282
+ },
283
+ stops: [
284
+ [0.4, '#888'],
285
+ [0.6, '#555']
286
+ ]
287
+ },
288
+ buttonBorderColor: '#CCC',
289
+ rifleColor: '#FFF',
290
+ trackBackgroundColor: {
291
+ linearGradient: {
292
+ x1: 0,
293
+ y1: 0,
294
+ x2: 0,
295
+ y2: 1
296
+ },
297
+ stops: [
298
+ [0, '#000'],
299
+ [1, '#333']
300
+ ]
301
+ },
302
+ trackBorderColor: '#666'
303
+ },
215
304
 
216
- scrollbar: {
217
- barBackgroundColor: {
218
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
219
- stops: [
220
- [0.4, '#888'],
221
- [0.6, '#555']
222
- ]
223
- },
224
- barBorderColor: '#CCC',
225
- buttonArrowColor: '#CCC',
226
- buttonBackgroundColor: {
227
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
228
- stops: [
229
- [0.4, '#888'],
230
- [0.6, '#555']
231
- ]
232
- },
233
- buttonBorderColor: '#CCC',
234
- rifleColor: '#FFF',
235
- trackBackgroundColor: {
236
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
237
- stops: [
238
- [0, '#000'],
239
- [1, '#333']
240
- ]
241
- },
242
- trackBorderColor: '#666'
243
- },
305
+ // special colors for some of the
306
+ legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
307
+ background2: 'rgb(35, 35, 70)',
308
+ dataLabelsColor: '#444',
309
+ textColor: '#C0C0C0',
310
+ maskColor: 'rgba(255,255,255,0.3)'
311
+ };
244
312
 
245
- // special colors for some of the
246
- legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
247
- background2: 'rgb(35, 35, 70)',
248
- dataLabelsColor: '#444',
249
- textColor: '#C0C0C0',
250
- maskColor: 'rgba(255,255,255,0.3)'
251
- };
313
+ // Apply the theme
314
+ Highcharts.setOptions(Highcharts.theme);
252
315
 
253
- // Apply the theme
254
- var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
316
+ }(Highcharts));
317
+ }));