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,74 +1,99 @@
1
1
  /**
2
- * Grid-light 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
+ * Grid-light theme for Highcharts JS
22
+ * @author Torstein Honsi
23
+ */
5
24
 
6
- // Load the fonts
7
- Highcharts.createElement('link', {
8
- href: 'https://fonts.googleapis.com/css?family=Dosis:400,600',
9
- rel: 'stylesheet',
10
- type: 'text/css'
11
- }, null, document.getElementsByTagName('head')[0]);
25
+ 'use strict';
26
+ /* global document */
27
+ // Load the fonts
28
+ Highcharts.createElement('link', {
29
+ href: 'https://fonts.googleapis.com/css?family=Dosis:400,600',
30
+ rel: 'stylesheet',
31
+ type: 'text/css'
32
+ }, null, document.getElementsByTagName('head')[0]);
12
33
 
13
- Highcharts.theme = {
14
- colors: ["#7cb5ec", "#f7a35c", "#90ee7e", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
15
- "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
16
- chart: {
17
- backgroundColor: null,
18
- style: {
19
- fontFamily: "Dosis, sans-serif"
20
- }
21
- },
22
- title: {
23
- style: {
24
- fontSize: '16px',
25
- fontWeight: 'bold',
26
- textTransform: 'uppercase'
27
- }
28
- },
29
- tooltip: {
30
- borderWidth: 0,
31
- backgroundColor: 'rgba(219,219,216,0.8)',
32
- shadow: false
33
- },
34
- legend: {
35
- itemStyle: {
36
- fontWeight: 'bold',
37
- fontSize: '13px'
38
- }
39
- },
40
- xAxis: {
41
- gridLineWidth: 1,
42
- labels: {
43
- style: {
44
- fontSize: '12px'
45
- }
46
- }
47
- },
48
- yAxis: {
49
- minorTickInterval: 'auto',
50
- title: {
51
- style: {
52
- textTransform: 'uppercase'
53
- }
54
- },
55
- labels: {
56
- style: {
57
- fontSize: '12px'
58
- }
59
- }
60
- },
61
- plotOptions: {
62
- candlestick: {
63
- lineColor: '#404048'
64
- }
65
- },
34
+ Highcharts.theme = {
35
+ colors: ['#7cb5ec', '#f7a35c', '#90ee7e', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee',
36
+ '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
37
+ ],
38
+ chart: {
39
+ backgroundColor: null,
40
+ style: {
41
+ fontFamily: 'Dosis, sans-serif'
42
+ }
43
+ },
44
+ title: {
45
+ style: {
46
+ fontSize: '16px',
47
+ fontWeight: 'bold',
48
+ textTransform: 'uppercase'
49
+ }
50
+ },
51
+ tooltip: {
52
+ borderWidth: 0,
53
+ backgroundColor: 'rgba(219,219,216,0.8)',
54
+ shadow: false
55
+ },
56
+ legend: {
57
+ itemStyle: {
58
+ fontWeight: 'bold',
59
+ fontSize: '13px'
60
+ }
61
+ },
62
+ xAxis: {
63
+ gridLineWidth: 1,
64
+ labels: {
65
+ style: {
66
+ fontSize: '12px'
67
+ }
68
+ }
69
+ },
70
+ yAxis: {
71
+ minorTickInterval: 'auto',
72
+ title: {
73
+ style: {
74
+ textTransform: 'uppercase'
75
+ }
76
+ },
77
+ labels: {
78
+ style: {
79
+ fontSize: '12px'
80
+ }
81
+ }
82
+ },
83
+ plotOptions: {
84
+ candlestick: {
85
+ lineColor: '#404048'
86
+ }
87
+ },
66
88
 
67
89
 
68
- // General
69
- background2: '#F0F0EA'
90
+ // General
91
+ background2: '#F0F0EA'
70
92
 
71
- };
93
+ };
72
94
 
73
- // Apply the theme
74
- Highcharts.setOptions(Highcharts.theme);
95
+ // Apply the theme
96
+ Highcharts.setOptions(Highcharts.theme);
97
+
98
+ }(Highcharts));
99
+ }));
@@ -1,103 +1,131 @@
1
1
  /**
2
- * Grid 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
+ * Grid theme for Highcharts JS
22
+ * @author Torstein Honsi
23
+ */
5
24
 
6
- Highcharts.theme = {
7
- colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
8
- chart: {
9
- backgroundColor: {
10
- linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
11
- stops: [
12
- [0, 'rgb(255, 255, 255)'],
13
- [1, 'rgb(240, 240, 255)']
14
- ]
15
- },
16
- borderWidth: 2,
17
- plotBackgroundColor: 'rgba(255, 255, 255, .9)',
18
- plotShadow: true,
19
- plotBorderWidth: 1
20
- },
21
- title: {
22
- style: {
23
- color: '#000',
24
- font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
25
- }
26
- },
27
- subtitle: {
28
- style: {
29
- color: '#666666',
30
- font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
31
- }
32
- },
33
- xAxis: {
34
- gridLineWidth: 1,
35
- lineColor: '#000',
36
- tickColor: '#000',
37
- labels: {
38
- style: {
39
- color: '#000',
40
- font: '11px Trebuchet MS, Verdana, sans-serif'
41
- }
42
- },
43
- title: {
44
- style: {
45
- color: '#333',
46
- fontWeight: 'bold',
47
- fontSize: '12px',
48
- fontFamily: 'Trebuchet MS, Verdana, sans-serif'
25
+ 'use strict';
26
+ Highcharts.theme = {
27
+ colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
28
+ chart: {
29
+ backgroundColor: {
30
+ linearGradient: {
31
+ x1: 0,
32
+ y1: 0,
33
+ x2: 1,
34
+ y2: 1
35
+ },
36
+ stops: [
37
+ [0, 'rgb(255, 255, 255)'],
38
+ [1, 'rgb(240, 240, 255)']
39
+ ]
40
+ },
41
+ borderWidth: 2,
42
+ plotBackgroundColor: 'rgba(255, 255, 255, .9)',
43
+ plotShadow: true,
44
+ plotBorderWidth: 1
45
+ },
46
+ title: {
47
+ style: {
48
+ color: '#000',
49
+ font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
50
+ }
51
+ },
52
+ subtitle: {
53
+ style: {
54
+ color: '#666666',
55
+ font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
56
+ }
57
+ },
58
+ xAxis: {
59
+ gridLineWidth: 1,
60
+ lineColor: '#000',
61
+ tickColor: '#000',
62
+ labels: {
63
+ style: {
64
+ color: '#000',
65
+ font: '11px Trebuchet MS, Verdana, sans-serif'
66
+ }
67
+ },
68
+ title: {
69
+ style: {
70
+ color: '#333',
71
+ fontWeight: 'bold',
72
+ fontSize: '12px',
73
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
49
74
 
50
- }
51
- }
52
- },
53
- yAxis: {
54
- minorTickInterval: 'auto',
55
- lineColor: '#000',
56
- lineWidth: 1,
57
- tickWidth: 1,
58
- tickColor: '#000',
59
- labels: {
60
- style: {
61
- color: '#000',
62
- font: '11px Trebuchet MS, Verdana, sans-serif'
63
- }
64
- },
65
- title: {
66
- style: {
67
- color: '#333',
68
- fontWeight: 'bold',
69
- fontSize: '12px',
70
- fontFamily: 'Trebuchet MS, Verdana, sans-serif'
71
- }
72
- }
73
- },
74
- legend: {
75
- itemStyle: {
76
- font: '9pt Trebuchet MS, Verdana, sans-serif',
77
- color: 'black'
75
+ }
76
+ }
77
+ },
78
+ yAxis: {
79
+ minorTickInterval: 'auto',
80
+ lineColor: '#000',
81
+ lineWidth: 1,
82
+ tickWidth: 1,
83
+ tickColor: '#000',
84
+ labels: {
85
+ style: {
86
+ color: '#000',
87
+ font: '11px Trebuchet MS, Verdana, sans-serif'
88
+ }
89
+ },
90
+ title: {
91
+ style: {
92
+ color: '#333',
93
+ fontWeight: 'bold',
94
+ fontSize: '12px',
95
+ fontFamily: 'Trebuchet MS, Verdana, sans-serif'
96
+ }
97
+ }
98
+ },
99
+ legend: {
100
+ itemStyle: {
101
+ font: '9pt Trebuchet MS, Verdana, sans-serif',
102
+ color: 'black'
78
103
 
79
- },
80
- itemHoverStyle: {
81
- color: '#039'
82
- },
83
- itemHiddenStyle: {
84
- color: 'gray'
85
- }
86
- },
87
- labels: {
88
- style: {
89
- color: '#99b'
90
- }
91
- },
104
+ },
105
+ itemHoverStyle: {
106
+ color: '#039'
107
+ },
108
+ itemHiddenStyle: {
109
+ color: 'gray'
110
+ }
111
+ },
112
+ labels: {
113
+ style: {
114
+ color: '#99b'
115
+ }
116
+ },
92
117
 
93
- navigation: {
94
- buttonOptions: {
95
- theme: {
96
- stroke: '#CCCCCC'
97
- }
98
- }
99
- }
100
- };
118
+ navigation: {
119
+ buttonOptions: {
120
+ theme: {
121
+ stroke: '#CCCCCC'
122
+ }
123
+ }
124
+ }
125
+ };
101
126
 
102
- // Apply the theme
103
- var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
127
+ // Apply the theme
128
+ Highcharts.setOptions(Highcharts.theme);
129
+
130
+ }(Highcharts));
131
+ }));
@@ -1,104 +1,129 @@
1
1
  /**
2
- * Sand-Signika 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
+ * Sand-Signika theme for Highcharts JS
22
+ * @author Torstein Honsi
23
+ */
5
24
 
6
- // Load the fonts
7
- Highcharts.createElement('link', {
8
- href: 'https://fonts.googleapis.com/css?family=Signika:400,700',
9
- rel: 'stylesheet',
10
- type: 'text/css'
11
- }, null, document.getElementsByTagName('head')[0]);
25
+ 'use strict';
26
+ /* global document */
27
+ // Load the fonts
28
+ Highcharts.createElement('link', {
29
+ href: 'https://fonts.googleapis.com/css?family=Signika:400,700',
30
+ rel: 'stylesheet',
31
+ type: 'text/css'
32
+ }, null, document.getElementsByTagName('head')[0]);
12
33
 
13
- // Add the background image to the container
14
- Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function (proceed) {
15
- proceed.call(this);
16
- this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)';
17
- });
34
+ // Add the background image to the container
35
+ Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function(proceed) {
36
+ proceed.call(this);
37
+ this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)';
38
+ });
18
39
 
19
40
 
20
- Highcharts.theme = {
21
- colors: ["#f45b5b", "#8085e9", "#8d4654", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
22
- "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
23
- chart: {
24
- backgroundColor: null,
25
- style: {
26
- fontFamily: "Signika, serif"
27
- }
28
- },
29
- title: {
30
- style: {
31
- color: 'black',
32
- fontSize: '16px',
33
- fontWeight: 'bold'
34
- }
35
- },
36
- subtitle: {
37
- style: {
38
- color: 'black'
39
- }
40
- },
41
- tooltip: {
42
- borderWidth: 0
43
- },
44
- legend: {
45
- itemStyle: {
46
- fontWeight: 'bold',
47
- fontSize: '13px'
48
- }
49
- },
50
- xAxis: {
51
- labels: {
52
- style: {
53
- color: '#6e6e70'
54
- }
55
- }
56
- },
57
- yAxis: {
58
- labels: {
59
- style: {
60
- color: '#6e6e70'
61
- }
62
- }
63
- },
64
- plotOptions: {
65
- series: {
66
- shadow: true
67
- },
68
- candlestick: {
69
- lineColor: '#404048'
70
- },
71
- map: {
72
- shadow: false
73
- }
74
- },
41
+ Highcharts.theme = {
42
+ colors: ['#f45b5b', '#8085e9', '#8d4654', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee',
43
+ '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
44
+ ],
45
+ chart: {
46
+ backgroundColor: null,
47
+ style: {
48
+ fontFamily: 'Signika, serif'
49
+ }
50
+ },
51
+ title: {
52
+ style: {
53
+ color: 'black',
54
+ fontSize: '16px',
55
+ fontWeight: 'bold'
56
+ }
57
+ },
58
+ subtitle: {
59
+ style: {
60
+ color: 'black'
61
+ }
62
+ },
63
+ tooltip: {
64
+ borderWidth: 0
65
+ },
66
+ legend: {
67
+ itemStyle: {
68
+ fontWeight: 'bold',
69
+ fontSize: '13px'
70
+ }
71
+ },
72
+ xAxis: {
73
+ labels: {
74
+ style: {
75
+ color: '#6e6e70'
76
+ }
77
+ }
78
+ },
79
+ yAxis: {
80
+ labels: {
81
+ style: {
82
+ color: '#6e6e70'
83
+ }
84
+ }
85
+ },
86
+ plotOptions: {
87
+ series: {
88
+ shadow: true
89
+ },
90
+ candlestick: {
91
+ lineColor: '#404048'
92
+ },
93
+ map: {
94
+ shadow: false
95
+ }
96
+ },
75
97
 
76
- // Highstock specific
77
- navigator: {
78
- xAxis: {
79
- gridLineColor: '#D0D0D8'
80
- }
81
- },
82
- rangeSelector: {
83
- buttonTheme: {
84
- fill: 'white',
85
- stroke: '#C0C0C8',
86
- 'stroke-width': 1,
87
- states: {
88
- select: {
89
- fill: '#D0D0D8'
90
- }
91
- }
92
- }
93
- },
94
- scrollbar: {
95
- trackBorderColor: '#C0C0C8'
96
- },
98
+ // Highstock specific
99
+ navigator: {
100
+ xAxis: {
101
+ gridLineColor: '#D0D0D8'
102
+ }
103
+ },
104
+ rangeSelector: {
105
+ buttonTheme: {
106
+ fill: 'white',
107
+ stroke: '#C0C0C8',
108
+ 'stroke-width': 1,
109
+ states: {
110
+ select: {
111
+ fill: '#D0D0D8'
112
+ }
113
+ }
114
+ }
115
+ },
116
+ scrollbar: {
117
+ trackBorderColor: '#C0C0C8'
118
+ },
97
119
 
98
- // General
99
- background2: '#E0E0E8'
120
+ // General
121
+ background2: '#E0E0E8'
100
122
 
101
- };
123
+ };
102
124
 
103
- // Apply the theme
104
- Highcharts.setOptions(Highcharts.theme);
125
+ // Apply the theme
126
+ Highcharts.setOptions(Highcharts.theme);
127
+
128
+ }(Highcharts));
129
+ }));