highcharts_rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +106 -0
  9. data/Rakefile +6 -0
  10. data/highcharts_rails.gemspec +27 -0
  11. data/lib/highcharts_rails/version.rb +3 -0
  12. data/lib/highcharts_rails.rb +8 -0
  13. data/vendor/assets/javascripts/highcharts-3d.src.js +2139 -0
  14. data/vendor/assets/javascripts/highcharts-more.src.js +2982 -0
  15. data/vendor/assets/javascripts/highcharts.src.js +22947 -0
  16. data/vendor/assets/javascripts/js/highcharts-3d.src.js +2085 -0
  17. data/vendor/assets/javascripts/js/highcharts-more.src.js +2820 -0
  18. data/vendor/assets/javascripts/js/highcharts.src.js +20917 -0
  19. data/vendor/assets/javascripts/js/modules/accessibility.src.js +1072 -0
  20. data/vendor/assets/javascripts/js/modules/annotations.src.js +408 -0
  21. data/vendor/assets/javascripts/js/modules/boost.src.js +652 -0
  22. data/vendor/assets/javascripts/js/modules/broken-axis.src.js +338 -0
  23. data/vendor/assets/javascripts/js/modules/data.src.js +981 -0
  24. data/vendor/assets/javascripts/js/modules/drilldown.src.js +756 -0
  25. data/vendor/assets/javascripts/js/modules/exporting.src.js +953 -0
  26. data/vendor/assets/javascripts/js/modules/funnel.src.js +290 -0
  27. data/vendor/assets/javascripts/js/modules/gantt.src.js +791 -0
  28. data/vendor/assets/javascripts/js/modules/grid-axis.src.js +545 -0
  29. data/vendor/assets/javascripts/js/modules/heatmap.src.js +798 -0
  30. data/vendor/assets/javascripts/js/modules/no-data-to-display.src.js +150 -0
  31. data/vendor/assets/javascripts/js/modules/offline-exporting.src.js +492 -0
  32. data/vendor/assets/javascripts/js/modules/overlapping-datalabels.src.js +164 -0
  33. data/vendor/assets/javascripts/js/modules/series-label.src.js +606 -0
  34. data/vendor/assets/javascripts/js/modules/solid-gauge.src.js +305 -0
  35. data/vendor/assets/javascripts/js/modules/treemap.src.js +881 -0
  36. data/vendor/assets/javascripts/js/modules/xrange-series.src.js +254 -0
  37. data/vendor/assets/javascripts/js/themes/dark-blue.js +317 -0
  38. data/vendor/assets/javascripts/js/themes/dark-green.js +314 -0
  39. data/vendor/assets/javascripts/js/themes/dark-unica.js +243 -0
  40. data/vendor/assets/javascripts/js/themes/gray.js +326 -0
  41. data/vendor/assets/javascripts/js/themes/grid-light.js +99 -0
  42. data/vendor/assets/javascripts/js/themes/grid.js +131 -0
  43. data/vendor/assets/javascripts/js/themes/sand-signika.js +129 -0
  44. data/vendor/assets/javascripts/js/themes/skies.js +112 -0
  45. data/vendor/assets/javascripts/lib/canvg.src.js +3073 -0
  46. data/vendor/assets/javascripts/lib/jspdf.src.js +3031 -0
  47. data/vendor/assets/javascripts/lib/rgbcolor.src.js +299 -0
  48. data/vendor/assets/javascripts/lib/svg2pdf.src.js +1451 -0
  49. data/vendor/assets/javascripts/modules/accessibility.src.js +1072 -0
  50. data/vendor/assets/javascripts/modules/annotations.src.js +408 -0
  51. data/vendor/assets/javascripts/modules/boost.src.js +652 -0
  52. data/vendor/assets/javascripts/modules/broken-axis.src.js +338 -0
  53. data/vendor/assets/javascripts/modules/data.src.js +981 -0
  54. data/vendor/assets/javascripts/modules/drilldown.src.js +797 -0
  55. data/vendor/assets/javascripts/modules/exporting.src.js +882 -0
  56. data/vendor/assets/javascripts/modules/funnel.src.js +304 -0
  57. data/vendor/assets/javascripts/modules/gantt.src.js +815 -0
  58. data/vendor/assets/javascripts/modules/grid-axis.src.js +547 -0
  59. data/vendor/assets/javascripts/modules/heatmap.src.js +810 -0
  60. data/vendor/assets/javascripts/modules/no-data-to-display.src.js +161 -0
  61. data/vendor/assets/javascripts/modules/offline-exporting.src.js +492 -0
  62. data/vendor/assets/javascripts/modules/overlapping-datalabels.src.js +164 -0
  63. data/vendor/assets/javascripts/modules/series-label.src.js +606 -0
  64. data/vendor/assets/javascripts/modules/solid-gauge.src.js +316 -0
  65. data/vendor/assets/javascripts/modules/treemap.src.js +935 -0
  66. data/vendor/assets/javascripts/modules/xrange-series.src.js +276 -0
  67. data/vendor/assets/javascripts/themes/dark-blue.js +317 -0
  68. data/vendor/assets/javascripts/themes/dark-green.js +314 -0
  69. data/vendor/assets/javascripts/themes/dark-unica.js +243 -0
  70. data/vendor/assets/javascripts/themes/gray.js +326 -0
  71. data/vendor/assets/javascripts/themes/grid-light.js +99 -0
  72. data/vendor/assets/javascripts/themes/grid.js +131 -0
  73. data/vendor/assets/javascripts/themes/sand-signika.js +129 -0
  74. data/vendor/assets/javascripts/themes/skies.js +112 -0
  75. data/vendor/assets/stylesheets/highcharts.scss +610 -0
  76. metadata +161 -0
@@ -0,0 +1,314 @@
1
+ /**
2
+ * @license Highcharts JS v5.0.6 (2016-12-07)
3
+ *
4
+ * (c) 2009-2016 Torstein Honsi
5
+ *
6
+ * License: www.highcharts.com/license
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
+
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'
73
+
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
+ },
153
+
154
+
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
+ },
176
+
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
+ },
244
+
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
+ },
257
+
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
+ },
301
+
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
+ };
309
+
310
+ // Apply the theme
311
+ Highcharts.setOptions(Highcharts.theme);
312
+
313
+ }(Highcharts));
314
+ }));
@@ -0,0 +1,243 @@
1
+ /**
2
+ * @license Highcharts JS v5.0.6 (2016-12-07)
3
+ *
4
+ * (c) 2009-2016 Torstein Honsi
5
+ *
6
+ * License: www.highcharts.com/license
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 theme for Highcharts JS
22
+ * @author Torstein Honsi
23
+ */
24
+
25
+ 'use strict';
26
+ /* global document */
27
+ // Load the fonts
28
+ Highcharts.createElement('link', {
29
+ href: 'https://fonts.googleapis.com/css?family=Unica+One',
30
+ rel: 'stylesheet',
31
+ type: 'text/css'
32
+ }, null, document.getElementsByTagName('head')[0]);
33
+
34
+ Highcharts.theme = {
35
+ colors: ['#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee',
36
+ '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
37
+ ],
38
+ chart: {
39
+ backgroundColor: {
40
+ linearGradient: {
41
+ x1: 0,
42
+ y1: 0,
43
+ x2: 1,
44
+ y2: 1
45
+ },
46
+ stops: [
47
+ [0, '#2a2a2b'],
48
+ [1, '#3e3e40']
49
+ ]
50
+ },
51
+ style: {
52
+ fontFamily: '\'Unica One\', sans-serif'
53
+ },
54
+ plotBorderColor: '#606063'
55
+ },
56
+ title: {
57
+ style: {
58
+ color: '#E0E0E3',
59
+ textTransform: 'uppercase',
60
+ fontSize: '20px'
61
+ }
62
+ },
63
+ subtitle: {
64
+ style: {
65
+ color: '#E0E0E3',
66
+ textTransform: 'uppercase'
67
+ }
68
+ },
69
+ xAxis: {
70
+ gridLineColor: '#707073',
71
+ labels: {
72
+ style: {
73
+ color: '#E0E0E3'
74
+ }
75
+ },
76
+ lineColor: '#707073',
77
+ minorGridLineColor: '#505053',
78
+ tickColor: '#707073',
79
+ title: {
80
+ style: {
81
+ color: '#A0A0A3'
82
+
83
+ }
84
+ }
85
+ },
86
+ yAxis: {
87
+ gridLineColor: '#707073',
88
+ labels: {
89
+ style: {
90
+ color: '#E0E0E3'
91
+ }
92
+ },
93
+ lineColor: '#707073',
94
+ minorGridLineColor: '#505053',
95
+ tickColor: '#707073',
96
+ tickWidth: 1,
97
+ title: {
98
+ style: {
99
+ color: '#A0A0A3'
100
+ }
101
+ }
102
+ },
103
+ tooltip: {
104
+ backgroundColor: 'rgba(0, 0, 0, 0.85)',
105
+ style: {
106
+ color: '#F0F0F0'
107
+ }
108
+ },
109
+ plotOptions: {
110
+ series: {
111
+ dataLabels: {
112
+ color: '#B0B0B3'
113
+ },
114
+ marker: {
115
+ lineColor: '#333'
116
+ }
117
+ },
118
+ boxplot: {
119
+ fillColor: '#505053'
120
+ },
121
+ candlestick: {
122
+ lineColor: 'white'
123
+ },
124
+ errorbar: {
125
+ color: 'white'
126
+ }
127
+ },
128
+ legend: {
129
+ itemStyle: {
130
+ color: '#E0E0E3'
131
+ },
132
+ itemHoverStyle: {
133
+ color: '#FFF'
134
+ },
135
+ itemHiddenStyle: {
136
+ color: '#606063'
137
+ }
138
+ },
139
+ credits: {
140
+ style: {
141
+ color: '#666'
142
+ }
143
+ },
144
+ labels: {
145
+ style: {
146
+ color: '#707073'
147
+ }
148
+ },
149
+
150
+ drilldown: {
151
+ activeAxisLabelStyle: {
152
+ color: '#F0F0F3'
153
+ },
154
+ activeDataLabelStyle: {
155
+ color: '#F0F0F3'
156
+ }
157
+ },
158
+
159
+ navigation: {
160
+ buttonOptions: {
161
+ symbolStroke: '#DDDDDD',
162
+ theme: {
163
+ fill: '#505053'
164
+ }
165
+ }
166
+ },
167
+
168
+ // scroll charts
169
+ rangeSelector: {
170
+ buttonTheme: {
171
+ fill: '#505053',
172
+ stroke: '#000000',
173
+ style: {
174
+ color: '#CCC'
175
+ },
176
+ states: {
177
+ hover: {
178
+ fill: '#707073',
179
+ stroke: '#000000',
180
+ style: {
181
+ color: 'white'
182
+ }
183
+ },
184
+ select: {
185
+ fill: '#000003',
186
+ stroke: '#000000',
187
+ style: {
188
+ color: 'white'
189
+ }
190
+ }
191
+ }
192
+ },
193
+ inputBoxBorderColor: '#505053',
194
+ inputStyle: {
195
+ backgroundColor: '#333',
196
+ color: 'silver'
197
+ },
198
+ labelStyle: {
199
+ color: 'silver'
200
+ }
201
+ },
202
+
203
+ navigator: {
204
+ handles: {
205
+ backgroundColor: '#666',
206
+ borderColor: '#AAA'
207
+ },
208
+ outlineColor: '#CCC',
209
+ maskFill: 'rgba(255,255,255,0.1)',
210
+ series: {
211
+ color: '#7798BF',
212
+ lineColor: '#A6C7ED'
213
+ },
214
+ xAxis: {
215
+ gridLineColor: '#505053'
216
+ }
217
+ },
218
+
219
+ scrollbar: {
220
+ barBackgroundColor: '#808083',
221
+ barBorderColor: '#808083',
222
+ buttonArrowColor: '#CCC',
223
+ buttonBackgroundColor: '#606063',
224
+ buttonBorderColor: '#606063',
225
+ rifleColor: '#FFF',
226
+ trackBackgroundColor: '#404043',
227
+ trackBorderColor: '#404043'
228
+ },
229
+
230
+ // special colors for some of the
231
+ legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
232
+ background2: '#505053',
233
+ dataLabelsColor: '#B0B0B3',
234
+ textColor: '#C0C0C0',
235
+ contrastTextColor: '#F0F0F3',
236
+ maskColor: 'rgba(255,255,255,0.3)'
237
+ };
238
+
239
+ // Apply the theme
240
+ Highcharts.setOptions(Highcharts.theme);
241
+
242
+ }(Highcharts));
243
+ }));