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.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +34 -0
- data/Gemfile +4 -0
- data/Rakefile +53 -32
- data/app/assets/javascripts/highcharts.js +18775 -17176
- data/app/assets/javascripts/highcharts/highcharts-3d.js +1849 -1563
- data/app/assets/javascripts/highcharts/highcharts-more.js +2162 -1988
- data/app/assets/javascripts/highcharts/modules/accessibility.js +1005 -0
- data/app/assets/javascripts/highcharts/modules/annotations.js +408 -401
- data/app/assets/javascripts/highcharts/modules/boost.js +561 -546
- data/app/assets/javascripts/highcharts/modules/broken-axis.js +330 -324
- data/app/assets/javascripts/highcharts/modules/data.js +973 -965
- data/app/assets/javascripts/highcharts/modules/drilldown.js +783 -723
- data/app/assets/javascripts/highcharts/modules/exporting.js +864 -785
- data/app/assets/javascripts/highcharts/modules/funnel.js +290 -306
- data/app/assets/javascripts/highcharts/modules/heatmap.js +701 -645
- data/app/assets/javascripts/highcharts/modules/no-data-to-display.js +150 -132
- data/app/assets/javascripts/highcharts/modules/offline-exporting.js +414 -355
- data/app/assets/javascripts/highcharts/modules/overlapping-datalabels.js +164 -0
- data/app/assets/javascripts/highcharts/modules/series-label.js +473 -448
- data/app/assets/javascripts/highcharts/modules/solid-gauge.js +279 -271
- data/app/assets/javascripts/highcharts/modules/treemap.js +921 -886
- data/app/assets/javascripts/highcharts/themes/dark-blue.js +307 -244
- data/app/assets/javascripts/highcharts/themes/dark-green.js +303 -244
- data/app/assets/javascripts/highcharts/themes/dark-unica.js +231 -201
- data/app/assets/javascripts/highcharts/themes/gray.js +314 -245
- data/app/assets/javascripts/highcharts/themes/grid-light.js +91 -66
- data/app/assets/javascripts/highcharts/themes/grid.js +124 -96
- data/app/assets/javascripts/highcharts/themes/sand-signika.js +119 -94
- data/app/assets/javascripts/highcharts/themes/skies.js +108 -85
- data/lib/highcharts/version.rb +1 -1
- metadata +13 -14
- data/app/assets/javascripts/highcharts/adapters/standalone-framework.js +0 -1
- data/app/assets/javascripts/highcharts/modules/canvas-tools.js +0 -3115
- data/app/assets/javascripts/highcharts/modules/map.js +0 -2117
@@ -1,74 +1,99 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
*
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
69
|
-
|
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
|
-
*
|
3
|
-
*
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
};
|
118
|
+
navigation: {
|
119
|
+
buttonOptions: {
|
120
|
+
theme: {
|
121
|
+
stroke: '#CCCCCC'
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
};
|
101
126
|
|
102
|
-
// Apply the theme
|
103
|
-
|
127
|
+
// Apply the theme
|
128
|
+
Highcharts.setOptions(Highcharts.theme);
|
129
|
+
|
130
|
+
}(Highcharts));
|
131
|
+
}));
|
@@ -1,104 +1,129 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
*
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
15
|
-
|
16
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
-
|
99
|
-
|
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
|
+
}));
|