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,255 +1,314 @@
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
+ */
5
24
 
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'
25
+ 'use strict';
26
+ Highcharts.theme = {
27
+ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee',
28
+ '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
29
+ ],
30
+ chart: {
31
+ backgroundColor: {
32
+ linearGradient: [0, 0, 250, 500],
33
+ stops: [
34
+ [0, 'rgb(48, 96, 48)'],
35
+ [1, 'rgb(0, 0, 0)']
36
+ ]
37
+ },
38
+ borderColor: '#000000',
39
+ borderWidth: 2,
40
+ className: 'dark-container',
41
+ plotBackgroundColor: 'rgba(255, 255, 255, .1)',
42
+ plotBorderColor: '#CCCCCC',
43
+ plotBorderWidth: 1
44
+ },
45
+ title: {
46
+ style: {
47
+ color: '#C0C0C0',
48
+ font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
49
+ }
50
+ },
51
+ subtitle: {
52
+ style: {
53
+ color: '#666666',
54
+ font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
55
+ }
56
+ },
57
+ xAxis: {
58
+ gridLineColor: '#333333',
59
+ gridLineWidth: 1,
60
+ labels: {
61
+ style: {
62
+ color: '#A0A0A0'
63
+ }
64
+ },
65
+ lineColor: '#A0A0A0',
66
+ tickColor: '#A0A0A0',
67
+ title: {
68
+ style: {
69
+ color: '#CCC',
70
+ fontWeight: 'bold',
71
+ fontSize: '12px',
72
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
52
73
 
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
- },
74
+ }
75
+ }
76
+ },
77
+ yAxis: {
78
+ gridLineColor: '#333333',
79
+ labels: {
80
+ style: {
81
+ color: '#A0A0A0'
82
+ }
83
+ },
84
+ lineColor: '#A0A0A0',
85
+ minorTickInterval: null,
86
+ tickColor: '#A0A0A0',
87
+ tickWidth: 1,
88
+ title: {
89
+ style: {
90
+ color: '#CCC',
91
+ fontWeight: 'bold',
92
+ fontSize: '12px',
93
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
94
+ }
95
+ }
96
+ },
97
+ tooltip: {
98
+ backgroundColor: 'rgba(0, 0, 0, 0.75)',
99
+ style: {
100
+ color: '#F0F0F0'
101
+ }
102
+ },
103
+ toolbar: {
104
+ itemStyle: {
105
+ color: 'silver'
106
+ }
107
+ },
108
+ plotOptions: {
109
+ line: {
110
+ dataLabels: {
111
+ color: '#CCC'
112
+ },
113
+ marker: {
114
+ lineColor: '#333'
115
+ }
116
+ },
117
+ spline: {
118
+ marker: {
119
+ lineColor: '#333'
120
+ }
121
+ },
122
+ scatter: {
123
+ marker: {
124
+ lineColor: '#333'
125
+ }
126
+ },
127
+ candlestick: {
128
+ lineColor: 'white'
129
+ }
130
+ },
131
+ legend: {
132
+ itemStyle: {
133
+ font: '9pt Trebuchet MS, Verdana, sans-serif',
134
+ color: '#A0A0A0'
135
+ },
136
+ itemHoverStyle: {
137
+ color: '#FFF'
138
+ },
139
+ itemHiddenStyle: {
140
+ color: '#444'
141
+ }
142
+ },
143
+ credits: {
144
+ style: {
145
+ color: '#666'
146
+ }
147
+ },
148
+ labels: {
149
+ style: {
150
+ color: '#CCC'
151
+ }
152
+ },
132
153
 
133
154
 
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
- },
155
+ navigation: {
156
+ buttonOptions: {
157
+ symbolStroke: '#DDDDDD',
158
+ hoverSymbolStroke: '#FFFFFF',
159
+ theme: {
160
+ fill: {
161
+ linearGradient: {
162
+ x1: 0,
163
+ y1: 0,
164
+ x2: 0,
165
+ y2: 1
166
+ },
167
+ stops: [
168
+ [0.4, '#606060'],
169
+ [0.6, '#333333']
170
+ ]
171
+ },
172
+ stroke: '#000000'
173
+ }
174
+ }
175
+ },
150
176
 
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
- },
177
+ // scroll charts
178
+ rangeSelector: {
179
+ buttonTheme: {
180
+ fill: {
181
+ linearGradient: {
182
+ x1: 0,
183
+ y1: 0,
184
+ x2: 0,
185
+ y2: 1
186
+ },
187
+ stops: [
188
+ [0.4, '#888'],
189
+ [0.6, '#555']
190
+ ]
191
+ },
192
+ stroke: '#000000',
193
+ style: {
194
+ color: '#CCC',
195
+ fontWeight: 'bold'
196
+ },
197
+ states: {
198
+ hover: {
199
+ fill: {
200
+ linearGradient: {
201
+ x1: 0,
202
+ y1: 0,
203
+ x2: 0,
204
+ y2: 1
205
+ },
206
+ stops: [
207
+ [0.4, '#BBB'],
208
+ [0.6, '#888']
209
+ ]
210
+ },
211
+ stroke: '#000000',
212
+ style: {
213
+ color: 'white'
214
+ }
215
+ },
216
+ select: {
217
+ fill: {
218
+ linearGradient: {
219
+ x1: 0,
220
+ y1: 0,
221
+ x2: 0,
222
+ y2: 1
223
+ },
224
+ stops: [
225
+ [0.1, '#000'],
226
+ [0.3, '#333']
227
+ ]
228
+ },
229
+ stroke: '#000000',
230
+ style: {
231
+ color: 'yellow'
232
+ }
233
+ }
234
+ }
235
+ },
236
+ inputStyle: {
237
+ backgroundColor: '#333',
238
+ color: 'silver'
239
+ },
240
+ labelStyle: {
241
+ color: 'silver'
242
+ }
243
+ },
203
244
 
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
- },
245
+ navigator: {
246
+ handles: {
247
+ backgroundColor: '#666',
248
+ borderColor: '#AAA'
249
+ },
250
+ outlineColor: '#CCC',
251
+ maskFill: 'rgba(16, 16, 16, 0.5)',
252
+ series: {
253
+ color: '#7798BF',
254
+ lineColor: '#A6C7ED'
255
+ }
256
+ },
216
257
 
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
- },
258
+ scrollbar: {
259
+ barBackgroundColor: {
260
+ linearGradient: {
261
+ x1: 0,
262
+ y1: 0,
263
+ x2: 0,
264
+ y2: 1
265
+ },
266
+ stops: [
267
+ [0.4, '#888'],
268
+ [0.6, '#555']
269
+ ]
270
+ },
271
+ barBorderColor: '#CCC',
272
+ buttonArrowColor: '#CCC',
273
+ buttonBackgroundColor: {
274
+ linearGradient: {
275
+ x1: 0,
276
+ y1: 0,
277
+ x2: 0,
278
+ y2: 1
279
+ },
280
+ stops: [
281
+ [0.4, '#888'],
282
+ [0.6, '#555']
283
+ ]
284
+ },
285
+ buttonBorderColor: '#CCC',
286
+ rifleColor: '#FFF',
287
+ trackBackgroundColor: {
288
+ linearGradient: {
289
+ x1: 0,
290
+ y1: 0,
291
+ x2: 0,
292
+ y2: 1
293
+ },
294
+ stops: [
295
+ [0, '#000'],
296
+ [1, '#333']
297
+ ]
298
+ },
299
+ trackBorderColor: '#666'
300
+ },
245
301
 
246
- // special colors for some of the
247
- legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
248
- background2: 'rgb(35, 35, 70)',
249
- dataLabelsColor: '#444',
250
- textColor: '#C0C0C0',
251
- maskColor: 'rgba(255,255,255,0.3)'
252
- };
302
+ // special colors for some of the
303
+ legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
304
+ background2: 'rgb(35, 35, 70)',
305
+ dataLabelsColor: '#444',
306
+ textColor: '#C0C0C0',
307
+ maskColor: 'rgba(255,255,255,0.3)'
308
+ };
253
309
 
254
- // Apply the theme
255
- var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
310
+ // Apply the theme
311
+ Highcharts.setOptions(Highcharts.theme);
312
+
313
+ }(Highcharts));
314
+ }));