highstock-rails 2.1.10 → 5.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/css/highcharts.css +760 -0
  3. data/app/assets/javascripts/highstock.js +511 -419
  4. data/app/assets/javascripts/highstock/highstock.js +472 -0
  5. data/app/assets/javascripts/highstock/highstock.js.map +8 -0
  6. data/app/assets/javascripts/highstock/highstock.src.js +28809 -0
  7. data/app/assets/javascripts/highstock/modules/accessibility.js +48 -0
  8. data/app/assets/javascripts/highstock/modules/accessibility.js.map +8 -0
  9. data/app/assets/javascripts/highstock/modules/accessibility.src.js +1131 -0
  10. data/app/assets/javascripts/highstock/modules/annotations.js +14 -0
  11. data/app/assets/javascripts/highstock/modules/annotations.js.map +8 -0
  12. data/app/assets/javascripts/highstock/modules/annotations.src.js +407 -0
  13. data/app/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
  14. data/app/assets/javascripts/highstock/modules/boost-canvas.js.map +8 -0
  15. data/app/assets/javascripts/highstock/modules/boost-canvas.src.js +771 -0
  16. data/app/assets/javascripts/highstock/modules/boost.js +51 -12
  17. data/app/assets/javascripts/highstock/modules/boost.js.map +8 -0
  18. data/app/assets/javascripts/highstock/modules/boost.src.js +2580 -492
  19. data/app/assets/javascripts/highstock/modules/broken-axis.js.map +8 -0
  20. data/app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map +8 -0
  21. data/app/assets/javascripts/highstock/modules/data.js +19 -19
  22. data/app/assets/javascripts/highstock/modules/data.js.map +8 -0
  23. data/app/assets/javascripts/highstock/modules/data.src.js +974 -950
  24. data/app/assets/javascripts/highstock/modules/drilldown.js +25 -17
  25. data/app/assets/javascripts/highstock/modules/drilldown.js.map +8 -0
  26. data/app/assets/javascripts/highstock/modules/drilldown.src.js +790 -709
  27. data/app/assets/javascripts/highstock/modules/export-data.js +17 -0
  28. data/app/assets/javascripts/highstock/modules/export-data.js.map +8 -0
  29. data/app/assets/javascripts/highstock/modules/export-data.src.js +417 -0
  30. data/app/assets/javascripts/highstock/modules/exporting.js +21 -18
  31. data/app/assets/javascripts/highstock/modules/exporting.js.map +8 -0
  32. data/app/assets/javascripts/highstock/modules/exporting.src.js +1013 -768
  33. data/app/assets/javascripts/highstock/modules/funnel.js +6 -7
  34. data/app/assets/javascripts/highstock/modules/funnel.js.map +8 -0
  35. data/app/assets/javascripts/highstock/modules/funnel.src.js +284 -308
  36. data/app/assets/javascripts/highstock/modules/gantt.js +24 -0
  37. data/app/assets/javascripts/highstock/modules/gantt.js.map +8 -0
  38. data/app/assets/javascripts/highstock/modules/gantt.src.js +793 -0
  39. data/app/assets/javascripts/highstock/modules/grid-axis.js +19 -0
  40. data/app/assets/javascripts/highstock/modules/grid-axis.js.map +8 -0
  41. data/app/assets/javascripts/highstock/modules/grid-axis.src.js +545 -0
  42. data/app/assets/javascripts/highstock/modules/heatmap.js +20 -18
  43. data/app/assets/javascripts/highstock/modules/heatmap.js.map +8 -0
  44. data/app/assets/javascripts/highstock/modules/heatmap.src.js +738 -633
  45. data/app/assets/javascripts/highstock/modules/map-parser.js.map +8 -0
  46. data/app/assets/javascripts/highstock/modules/map.js.map +8 -0
  47. data/app/assets/javascripts/highstock/modules/no-data-to-display.js +5 -5
  48. data/app/assets/javascripts/highstock/modules/no-data-to-display.js.map +8 -0
  49. data/app/assets/javascripts/highstock/modules/no-data-to-display.src.js +140 -133
  50. data/app/assets/javascripts/highstock/modules/offline-exporting.js +12 -7
  51. data/app/assets/javascripts/highstock/modules/offline-exporting.js.map +8 -0
  52. data/app/assets/javascripts/highstock/modules/offline-exporting.src.js +543 -270
  53. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js +10 -0
  54. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +8 -0
  55. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +187 -0
  56. data/app/assets/javascripts/highstock/modules/series-label.js +19 -0
  57. data/app/assets/javascripts/highstock/modules/series-label.js.map +8 -0
  58. data/app/assets/javascripts/highstock/modules/series-label.src.js +606 -0
  59. data/app/assets/javascripts/highstock/modules/solid-gauge.js +9 -8
  60. data/app/assets/javascripts/highstock/modules/solid-gauge.js.map +8 -0
  61. data/app/assets/javascripts/highstock/modules/solid-gauge.src.js +334 -266
  62. data/app/assets/javascripts/highstock/modules/static-scale.js +12 -0
  63. data/app/assets/javascripts/highstock/modules/static-scale.js.map +8 -0
  64. data/app/assets/javascripts/highstock/modules/static-scale.src.js +64 -0
  65. data/app/assets/javascripts/highstock/modules/stock.js +123 -0
  66. data/app/assets/javascripts/highstock/modules/stock.js.map +8 -0
  67. data/app/assets/javascripts/highstock/modules/stock.src.js +6247 -0
  68. data/app/assets/javascripts/highstock/modules/treemap.js +22 -23
  69. data/app/assets/javascripts/highstock/modules/treemap.js.map +8 -0
  70. data/app/assets/javascripts/highstock/modules/treemap.src.js +884 -859
  71. data/app/assets/javascripts/highstock/modules/xrange-series.js +15 -0
  72. data/app/assets/javascripts/highstock/modules/xrange-series.js.map +8 -0
  73. data/app/assets/javascripts/highstock/modules/xrange-series.src.js +258 -0
  74. data/app/assets/javascripts/highstock/themes/dark-blue.js +307 -244
  75. data/app/assets/javascripts/highstock/themes/dark-green.js +303 -244
  76. data/app/assets/javascripts/highstock/themes/dark-unica.js +231 -201
  77. data/app/assets/javascripts/highstock/themes/gray.js +314 -245
  78. data/app/assets/javascripts/highstock/themes/grid-light.js +91 -66
  79. data/app/assets/javascripts/highstock/themes/grid.js +124 -96
  80. data/app/assets/javascripts/highstock/themes/sand-signika.js +119 -94
  81. data/app/assets/javascripts/highstock/themes/skies.js +108 -85
  82. data/lib/highstock/rails/version.rb +1 -1
  83. metadata +54 -11
  84. data/app/assets/javascripts/highstock/adapters/standalone-framework.js +0 -18
  85. data/app/assets/javascripts/highstock/adapters/standalone-framework.src.js +0 -635
  86. data/app/assets/javascripts/highstock/highcharts-3d.js +0 -48
  87. data/app/assets/javascripts/highstock/highcharts-3d.src.js +0 -1711
  88. data/app/assets/javascripts/highstock/highcharts-more.js +0 -55
  89. data/app/assets/javascripts/highstock/highstock-all.js +0 -637
  90. data/app/assets/javascripts/highstock/modules/canvas-tools.js +0 -133
  91. data/app/assets/javascripts/highstock/modules/canvas-tools.src.js +0 -3114
@@ -1,89 +1,112 @@
1
1
  /**
2
- * Skies theme for Highcharts JS
3
- * @author Torstein Honsi
2
+ * @license Highcharts JS v5.0.11 (2017-05-04)
3
+ *
4
+ * (c) 2009-2017 Torstein Honsi
5
+ *
6
+ * License: www.highcharts.com/license
4
7
  */
8
+ 'use strict';
9
+ (function(factory) {
10
+ if (typeof module === 'object' && module.exports) {
11
+ module.exports = factory;
12
+ } else {
13
+ factory(Highcharts);
14
+ }
15
+ }(function(Highcharts) {
16
+ (function(Highcharts) {
17
+ /**
18
+ * (c) 2010-2017 Torstein Honsi
19
+ *
20
+ * License: www.highcharts.com/license
21
+ *
22
+ * Skies theme for Highcharts JS
23
+ * @author Torstein Honsi
24
+ */
5
25
 
6
- Highcharts.theme = {
7
- colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"],
8
- chart: {
9
- className: 'skies',
10
- borderWidth: 0,
11
- plotShadow: true,
12
- plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
13
- plotBackgroundColor: {
14
- linearGradient: [0, 0, 250, 500],
15
- stops: [
16
- [0, 'rgba(255, 255, 255, 1)'],
17
- [1, 'rgba(255, 255, 255, 0)']
18
- ]
19
- },
20
- plotBorderWidth: 1
21
- },
22
- title: {
23
- style: {
24
- color: '#3E576F',
25
- font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
26
- }
27
- },
28
- subtitle: {
29
- style: {
30
- color: '#6D869F',
31
- font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
32
- }
33
- },
34
- xAxis: {
35
- gridLineWidth: 0,
36
- lineColor: '#C0D0E0',
37
- tickColor: '#C0D0E0',
38
- labels: {
39
- style: {
40
- color: '#666',
41
- fontWeight: 'bold'
42
- }
43
- },
44
- title: {
45
- style: {
46
- color: '#666',
47
- font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
48
- }
49
- }
50
- },
51
- yAxis: {
52
- alternateGridColor: 'rgba(255, 255, 255, .5)',
53
- lineColor: '#C0D0E0',
54
- tickColor: '#C0D0E0',
55
- tickWidth: 1,
56
- labels: {
57
- style: {
58
- color: '#666',
59
- fontWeight: 'bold'
60
- }
61
- },
62
- title: {
63
- style: {
64
- color: '#666',
65
- font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
66
- }
67
- }
68
- },
69
- legend: {
70
- itemStyle: {
71
- font: '9pt Trebuchet MS, Verdana, sans-serif',
72
- color: '#3E576F'
73
- },
74
- itemHoverStyle: {
75
- color: 'black'
76
- },
77
- itemHiddenStyle: {
78
- color: 'silver'
79
- }
80
- },
81
- labels: {
82
- style: {
83
- color: '#3E576F'
84
- }
85
- }
86
- };
26
+ Highcharts.theme = {
27
+ colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A', '#82914E', '#86777F', '#42A07B'],
28
+ chart: {
29
+ className: 'skies',
30
+ borderWidth: 0,
31
+ plotShadow: true,
32
+ plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
33
+ plotBackgroundColor: {
34
+ linearGradient: [0, 0, 250, 500],
35
+ stops: [
36
+ [0, 'rgba(255, 255, 255, 1)'],
37
+ [1, 'rgba(255, 255, 255, 0)']
38
+ ]
39
+ },
40
+ plotBorderWidth: 1
41
+ },
42
+ title: {
43
+ style: {
44
+ color: '#3E576F',
45
+ font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
46
+ }
47
+ },
48
+ subtitle: {
49
+ style: {
50
+ color: '#6D869F',
51
+ font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
52
+ }
53
+ },
54
+ xAxis: {
55
+ gridLineWidth: 0,
56
+ lineColor: '#C0D0E0',
57
+ tickColor: '#C0D0E0',
58
+ labels: {
59
+ style: {
60
+ color: '#666',
61
+ fontWeight: 'bold'
62
+ }
63
+ },
64
+ title: {
65
+ style: {
66
+ color: '#666',
67
+ font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
68
+ }
69
+ }
70
+ },
71
+ yAxis: {
72
+ alternateGridColor: 'rgba(255, 255, 255, .5)',
73
+ lineColor: '#C0D0E0',
74
+ tickColor: '#C0D0E0',
75
+ tickWidth: 1,
76
+ labels: {
77
+ style: {
78
+ color: '#666',
79
+ fontWeight: 'bold'
80
+ }
81
+ },
82
+ title: {
83
+ style: {
84
+ color: '#666',
85
+ font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
86
+ }
87
+ }
88
+ },
89
+ legend: {
90
+ itemStyle: {
91
+ font: '9pt Trebuchet MS, Verdana, sans-serif',
92
+ color: '#3E576F'
93
+ },
94
+ itemHoverStyle: {
95
+ color: 'black'
96
+ },
97
+ itemHiddenStyle: {
98
+ color: 'silver'
99
+ }
100
+ },
101
+ labels: {
102
+ style: {
103
+ color: '#3E576F'
104
+ }
105
+ }
106
+ };
87
107
 
88
- // Apply the theme
89
- var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
108
+ // Apply the theme
109
+ Highcharts.setOptions(Highcharts.theme);
110
+
111
+ }(Highcharts));
112
+ }));
@@ -1,5 +1,5 @@
1
1
  module Highstock
2
2
  module Rails
3
- VERSION = "2.1.10"
3
+ VERSION = "5.0.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highstock-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.10
4
+ version: 5.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Kuepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2017-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -78,39 +78,82 @@ files:
78
78
  - LICENSE.txt
79
79
  - README.md
80
80
  - Rakefile
81
+ - app/assets/css/highcharts.css
81
82
  - app/assets/images/highstock/meteogram-symbols-30px.png
82
83
  - app/assets/images/highstock/skies.jpg
83
84
  - app/assets/images/highstock/snow.png
84
85
  - app/assets/images/highstock/sun.png
85
86
  - app/assets/javascripts/highstock.js
86
- - app/assets/javascripts/highstock/adapters/standalone-framework.js
87
- - app/assets/javascripts/highstock/adapters/standalone-framework.src.js
88
- - app/assets/javascripts/highstock/highcharts-3d.js
89
- - app/assets/javascripts/highstock/highcharts-3d.src.js
90
- - app/assets/javascripts/highstock/highcharts-more.js
91
- - app/assets/javascripts/highstock/highstock-all.js
87
+ - app/assets/javascripts/highstock/highstock.js
88
+ - app/assets/javascripts/highstock/highstock.js.map
89
+ - app/assets/javascripts/highstock/highstock.src.js
90
+ - app/assets/javascripts/highstock/modules/accessibility.js
91
+ - app/assets/javascripts/highstock/modules/accessibility.js.map
92
+ - app/assets/javascripts/highstock/modules/accessibility.src.js
93
+ - app/assets/javascripts/highstock/modules/annotations.js
94
+ - app/assets/javascripts/highstock/modules/annotations.js.map
95
+ - app/assets/javascripts/highstock/modules/annotations.src.js
96
+ - app/assets/javascripts/highstock/modules/boost-canvas.js
97
+ - app/assets/javascripts/highstock/modules/boost-canvas.js.map
98
+ - app/assets/javascripts/highstock/modules/boost-canvas.src.js
92
99
  - app/assets/javascripts/highstock/modules/boost.js
100
+ - app/assets/javascripts/highstock/modules/boost.js.map
93
101
  - app/assets/javascripts/highstock/modules/boost.src.js
94
- - app/assets/javascripts/highstock/modules/canvas-tools.js
95
- - app/assets/javascripts/highstock/modules/canvas-tools.src.js
102
+ - app/assets/javascripts/highstock/modules/broken-axis.js.map
103
+ - app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map
96
104
  - app/assets/javascripts/highstock/modules/data.js
105
+ - app/assets/javascripts/highstock/modules/data.js.map
97
106
  - app/assets/javascripts/highstock/modules/data.src.js
98
107
  - app/assets/javascripts/highstock/modules/drilldown.js
108
+ - app/assets/javascripts/highstock/modules/drilldown.js.map
99
109
  - app/assets/javascripts/highstock/modules/drilldown.src.js
110
+ - app/assets/javascripts/highstock/modules/export-data.js
111
+ - app/assets/javascripts/highstock/modules/export-data.js.map
112
+ - app/assets/javascripts/highstock/modules/export-data.src.js
100
113
  - app/assets/javascripts/highstock/modules/exporting.js
114
+ - app/assets/javascripts/highstock/modules/exporting.js.map
101
115
  - app/assets/javascripts/highstock/modules/exporting.src.js
102
116
  - app/assets/javascripts/highstock/modules/funnel.js
117
+ - app/assets/javascripts/highstock/modules/funnel.js.map
103
118
  - app/assets/javascripts/highstock/modules/funnel.src.js
119
+ - app/assets/javascripts/highstock/modules/gantt.js
120
+ - app/assets/javascripts/highstock/modules/gantt.js.map
121
+ - app/assets/javascripts/highstock/modules/gantt.src.js
122
+ - app/assets/javascripts/highstock/modules/grid-axis.js
123
+ - app/assets/javascripts/highstock/modules/grid-axis.js.map
124
+ - app/assets/javascripts/highstock/modules/grid-axis.src.js
104
125
  - app/assets/javascripts/highstock/modules/heatmap.js
126
+ - app/assets/javascripts/highstock/modules/heatmap.js.map
105
127
  - app/assets/javascripts/highstock/modules/heatmap.src.js
128
+ - app/assets/javascripts/highstock/modules/map-parser.js.map
129
+ - app/assets/javascripts/highstock/modules/map.js.map
106
130
  - app/assets/javascripts/highstock/modules/no-data-to-display.js
131
+ - app/assets/javascripts/highstock/modules/no-data-to-display.js.map
107
132
  - app/assets/javascripts/highstock/modules/no-data-to-display.src.js
108
133
  - app/assets/javascripts/highstock/modules/offline-exporting.js
134
+ - app/assets/javascripts/highstock/modules/offline-exporting.js.map
109
135
  - app/assets/javascripts/highstock/modules/offline-exporting.src.js
136
+ - app/assets/javascripts/highstock/modules/overlapping-datalabels.js
137
+ - app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map
138
+ - app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js
139
+ - app/assets/javascripts/highstock/modules/series-label.js
140
+ - app/assets/javascripts/highstock/modules/series-label.js.map
141
+ - app/assets/javascripts/highstock/modules/series-label.src.js
110
142
  - app/assets/javascripts/highstock/modules/solid-gauge.js
143
+ - app/assets/javascripts/highstock/modules/solid-gauge.js.map
111
144
  - app/assets/javascripts/highstock/modules/solid-gauge.src.js
145
+ - app/assets/javascripts/highstock/modules/static-scale.js
146
+ - app/assets/javascripts/highstock/modules/static-scale.js.map
147
+ - app/assets/javascripts/highstock/modules/static-scale.src.js
148
+ - app/assets/javascripts/highstock/modules/stock.js
149
+ - app/assets/javascripts/highstock/modules/stock.js.map
150
+ - app/assets/javascripts/highstock/modules/stock.src.js
112
151
  - app/assets/javascripts/highstock/modules/treemap.js
152
+ - app/assets/javascripts/highstock/modules/treemap.js.map
113
153
  - app/assets/javascripts/highstock/modules/treemap.src.js
154
+ - app/assets/javascripts/highstock/modules/xrange-series.js
155
+ - app/assets/javascripts/highstock/modules/xrange-series.js.map
156
+ - app/assets/javascripts/highstock/modules/xrange-series.src.js
114
157
  - app/assets/javascripts/highstock/themes/dark-blue.js
115
158
  - app/assets/javascripts/highstock/themes/dark-green.js
116
159
  - app/assets/javascripts/highstock/themes/dark-unica.js
@@ -142,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
185
  version: '0'
143
186
  requirements: []
144
187
  rubyforge_project:
145
- rubygems_version: 2.5.1
188
+ rubygems_version: 2.6.10
146
189
  signing_key:
147
190
  specification_version: 4
148
191
  summary: Adds Highstock to Rails Asset Pipeline
@@ -1,18 +0,0 @@
1
- /*
2
- Highstock JS v2.1.10 (2015-12-07)
3
-
4
- Standalone Highcharts Framework
5
-
6
- License: MIT License
7
- */
8
- (function(j,l){typeof module==="object"&&module.exports?module.exports=j.document?l(j):function(j){return l(j)}:j.HighchartsAdapter=l()})(typeof window!=="undefined"?window:this,function(j){function l(c){function a(a,b,d){a.removeEventListener(b,d,!1)}function d(a,b,d){d=a.HCProxiedMethods[d.toString()];a.detachEvent("on"+b,d)}function b(b,c){var f=b.HCEvents,k,h,p,g;if(b.removeEventListener)k=a;else if(b.attachEvent)k=d;else return;c?(h={},h[c]=!0):h=f;for(g in h)if(f[g])for(p=f[g].length;p--;)k(b,
9
- g,f[g][p])}if(!c.HCExtended)c.HCExtended=!0,c.HCEvents={},c.bind=function(a,b){var d=this,c=this.HCEvents,h;if(d.addEventListener)d.addEventListener(a,b,!1);else if(d.attachEvent){h=function(a){a.target=a.srcElement||m;b.call(d,a)};if(!d.HCProxiedMethods)d.HCProxiedMethods={};d.HCProxiedMethods[b.toString()]=h;d.attachEvent("on"+a,h)}c[a]===u&&(c[a]=[]);c[a].push(b)},c.unbind=function(c,i){var f,k;c?(f=this.HCEvents[c]||[],i?(k=s.inArray(i,f),k>-1&&(f.splice(k,1),this.HCEvents[c]=f),this.removeEventListener?
10
- a(this,c,i):this.attachEvent&&d(this,c,i)):(b(this,c),this.HCEvents[c]=[])):(b(this),this.HCEvents={})},c.trigger=function(a,b){var d=this.HCEvents[a]||[],c=d.length,h,g,j;g=function(){b.defaultPrevented=!0};for(h=0;h<c;h++){j=d[h];if(b.stopped)break;b.preventDefault=g;b.target=this;if(!b.type)b.type=a;j.call(this,b)===!1&&b.preventDefault()}};return c}var u,m=j||window,n=m.document,t=[],o,g=[],q={},s,r;Math.easeInOutSine=function(c,a,d,b){return-d/2*(Math.cos(Math.PI*c/b)-1)+a};o=function(c,a){var d=
11
- m.getComputedStyle(c,void 0);return d&&d.getPropertyValue(a)};return s={init:function(c){if(!n.defaultView)o=function(a,d){var b;if(a.style[d])return a.style[d];d==="opacity"&&(d="filter");b=a.currentStyle[d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];d==="filter"&&(b=b.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100}));return b===""?1:b},this.adapterRun=function(a,d){var b={width:"clientWidth",height:"clientHeight"}[d];if(b)return a.style.zoom=1,a[b]-2*parseInt(o(a,"padding"),
12
- 10)};if(!Array.prototype.forEach)this.each=function(a,d){for(var b=0,c=a.length;b<c;b++)if(d.call(a[b],a[b],b,a)===!1)return b};if(!Array.prototype.indexOf)this.inArray=function(a,d){var b,c=0;if(d)for(b=d.length;c<b;c++)if(d[c]===a)return c;return-1};if(!Array.prototype.filter)this.grep=function(a,d){for(var b=[],c=0,i=a.length;c<i;c++)d(a[c],c)&&b.push(a[c]);return b};r=function(a,c,b){this.options=c;this.elem=a;this.prop=b};r.prototype={update:function(){var a;a=this.paths;var d=this.elem,b=d.element,
13
- e;if(q[this.prop])q[this.prop](this);else if(a&&b)d.attr("d",c.step(a[0],a[1],this.now,this.toD));else if(d.attr)b&&d.attr(this.prop,this.now);else for(e in a={},a[this.prop]=this.now+this.unit,a)d.style[e]=a[e];this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(a,c,b){var e=this,i=function(a){return e.step(a)},f;this.startTime=+new Date;this.start=a;this.end=c;this.unit=b;this.now=this.start;this.pos=this.state=0;i.elem=this.elem;if(i()&&g.push(i)===1)i.timerId=setInterval(function(){for(f=
14
- 0;f<g.length;f++)g[f]()||g.splice(f--,1);g.length||clearInterval(i.timerId)},13)},step:function(a){var c=+new Date,b;b=this.options;var e=this.elem,i;if(e.attr&&!e.element)b=!1;else if(a||c>=b.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=!0;for(i in b.curAnim)b.curAnim[i]!==!0&&(a=!1);a&&b.complete&&b.complete.call(e);b=!1}else e=c-this.startTime,this.state=e/b.duration,this.pos=b.easing(e,0,1,b.duration),this.now=this.start+(this.end-
15
- this.start)*this.pos,this.update(),b=!0;return b}};this.animate=function(a,d,b){var e,i="",f,g,h;if(typeof b!=="object"||b===null)e=arguments,b={duration:e[2],easing:e[3],complete:e[4]};if(typeof b.duration!=="number")b.duration=400;b.easing=Math[b.easing]||Math.easeInOutSine;b.curAnim={};for(f in d)b.curAnim[f]=d[f];for(h in d)g=new r(a,b,h),f=null,h==="d"?(g.paths=c.init(a,a.d,d.d),g.toD=d.d,e=0,f=1):a.attr?e=a.attr(h):(e=parseFloat(o(a,h))||0,h!=="opacity"&&(i="px")),f||(f=d[h]),f.match&&f.match("px")&&
16
- (f=f.replace(/px/g,"")),g.custom(e,f,i)}},addAnimSetter:function(c,a){q[c]=a},getScript:function(c,a){var d=n.getElementsByTagName("head")[0],b=n.createElement("script");b.type="text/javascript";b.src=c;b.onload=a;d.appendChild(b)},inArray:function(c,a){return a.indexOf?a.indexOf(c):t.indexOf.call(a,c)},adapterRun:function(c,a){return parseInt(o(c,a),10)},grep:function(c,a){return t.filter.call(c,a)},map:function(c,a){for(var d=[],b=0,e=c.length;b<e;b++)d[b]=a.call(c[b],c[b],b,c);return d},offset:function(c){var a=
17
- document.documentElement,c=c.getBoundingClientRect();return{top:c.top+(m.pageYOffset||a.scrollTop)-(a.clientTop||0),left:c.left+(m.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}},addEvent:function(c,a,d){l(c).bind(a,d)},removeEvent:function(c,a,d){l(c).unbind(a,d)},fireEvent:function(c,a,d,b){var e,g;if(n.createEvent&&(c.dispatchEvent||c.fireEvent)){e=n.createEvent("Events");e.initEvent(a,!0,!0);e.target=c;for(g in d)e[g]=d[g];c.dispatchEvent?c.dispatchEvent(e):c.fireEvent(a,e)}else c.HCExtended===
18
- !0&&(d=d||{},c.trigger(a,d));d&&d.defaultPrevented&&(b=null);b&&b(d)},washMouseEvent:function(c){return c},stop:function(c){for(var a=g.length,d;a--;)d=g[a],d.elem===c&&g.splice(a,1)},each:function(c,a){return Array.prototype.forEach.call(c,a)}}});
@@ -1,635 +0,0 @@
1
- /**
2
- * @license Highstock JS v2.1.10 (2015-12-07)
3
- *
4
- * Standalone Highcharts Framework
5
- *
6
- * License: MIT License
7
- */
8
-
9
- (function (root, factory) {
10
- if (typeof module === 'object' && module.exports) {
11
- module.exports = root.document ?
12
- factory(root) :
13
- function (w) {
14
- return factory(w);
15
- };
16
- } else {
17
- root.HighchartsAdapter = factory();
18
- }
19
- }(typeof window !== 'undefined' ? window : this, function (w) {
20
-
21
- var UNDEFINED,
22
- win = w || window,
23
- doc = win.document,
24
- emptyArray = [],
25
- _getStyle,
26
- timers = [],
27
- animSetters = {},
28
- HighchartsAdapter,
29
- Fx;
30
-
31
- Math.easeInOutSine = function (t, b, c, d) {
32
- return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
33
- };
34
-
35
- /**
36
- * Internal method to return CSS value for given element and property
37
- */
38
- _getStyle = function (el, prop) {
39
- var style = win.getComputedStyle(el, undefined);
40
- return style && style.getPropertyValue(prop);
41
- };
42
-
43
-
44
- /**
45
- * Extend given object with custom events
46
- */
47
- function augment(obj) {
48
- function removeOneEvent(el, type, fn) {
49
- el.removeEventListener(type, fn, false);
50
- }
51
-
52
- function IERemoveOneEvent(el, type, fn) {
53
- fn = el.HCProxiedMethods[fn.toString()];
54
- el.detachEvent('on' + type, fn);
55
- }
56
-
57
- function removeAllEvents(el, type) {
58
- var events = el.HCEvents,
59
- remove,
60
- types,
61
- len,
62
- n;
63
-
64
- if (el.removeEventListener) {
65
- remove = removeOneEvent;
66
- } else if (el.attachEvent) {
67
- remove = IERemoveOneEvent;
68
- } else {
69
- return; // break on non-DOM events
70
- }
71
-
72
-
73
- if (type) {
74
- types = {};
75
- types[type] = true;
76
- } else {
77
- types = events;
78
- }
79
-
80
- for (n in types) {
81
- if (events[n]) {
82
- len = events[n].length;
83
- while (len--) {
84
- remove(el, n, events[n][len]);
85
- }
86
- }
87
- }
88
- }
89
-
90
- if (!obj.HCExtended) {
91
- obj.HCExtended = true;
92
-
93
- obj.HCEvents = {};
94
-
95
- obj.bind = function (name, fn) {
96
- var el = this,
97
- events = this.HCEvents,
98
- wrappedFn;
99
-
100
- // handle DOM events in modern browsers
101
- if (el.addEventListener) {
102
- el.addEventListener(name, fn, false);
103
-
104
- // handle old IE implementation
105
- } else if (el.attachEvent) {
106
-
107
- wrappedFn = function (e) {
108
- e.target = e.srcElement || win; // #2820
109
- fn.call(el, e);
110
- };
111
-
112
- if (!el.HCProxiedMethods) {
113
- el.HCProxiedMethods = {};
114
- }
115
-
116
- // link wrapped fn with original fn, so we can get this in removeEvent
117
- el.HCProxiedMethods[fn.toString()] = wrappedFn;
118
-
119
- el.attachEvent('on' + name, wrappedFn);
120
- }
121
-
122
-
123
- if (events[name] === UNDEFINED) {
124
- events[name] = [];
125
- }
126
-
127
- events[name].push(fn);
128
- };
129
-
130
- obj.unbind = function (name, fn) {
131
- var events,
132
- index;
133
-
134
- if (name) {
135
- events = this.HCEvents[name] || [];
136
- if (fn) {
137
- index = HighchartsAdapter.inArray(fn, events);
138
- if (index > -1) {
139
- events.splice(index, 1);
140
- this.HCEvents[name] = events;
141
- }
142
- if (this.removeEventListener) {
143
- removeOneEvent(this, name, fn);
144
- } else if (this.attachEvent) {
145
- IERemoveOneEvent(this, name, fn);
146
- }
147
- } else {
148
- removeAllEvents(this, name);
149
- this.HCEvents[name] = [];
150
- }
151
- } else {
152
- removeAllEvents(this);
153
- this.HCEvents = {};
154
- }
155
- };
156
-
157
- obj.trigger = function (name, args) {
158
- var events = this.HCEvents[name] || [],
159
- target = this,
160
- len = events.length,
161
- i,
162
- preventDefault,
163
- fn;
164
-
165
- // Attach a simple preventDefault function to skip default handler if called
166
- preventDefault = function () {
167
- args.defaultPrevented = true;
168
- };
169
-
170
- for (i = 0; i < len; i++) {
171
- fn = events[i];
172
-
173
- // args is never null here
174
- if (args.stopped) {
175
- return;
176
- }
177
-
178
- args.preventDefault = preventDefault;
179
- args.target = target;
180
-
181
- // If the type is not set, we're running a custom event (#2297). If it is set,
182
- // we're running a browser event, and setting it will cause en error in
183
- // IE8 (#2465).
184
- if (!args.type) {
185
- args.type = name;
186
- }
187
-
188
-
189
-
190
- // If the event handler return false, prevent the default handler from executing
191
- if (fn.call(this, args) === false) {
192
- args.preventDefault();
193
- }
194
- }
195
- };
196
- }
197
-
198
- return obj;
199
- }
200
-
201
-
202
- HighchartsAdapter = {
203
-
204
- /**
205
- * Initialize the adapter. This is run once as Highcharts is first run.
206
- */
207
- init: function (pathAnim) {
208
-
209
- /**
210
- * Compatibility section to add support for legacy IE. This can be removed if old IE
211
- * support is not needed.
212
- */
213
- if (!doc.defaultView) {
214
- _getStyle = function (el, prop) {
215
- var val;
216
- if (el.style[prop]) {
217
- return el.style[prop];
218
- }
219
- if (prop === 'opacity') {
220
- prop = 'filter';
221
- }
222
-
223
- val = el.currentStyle[prop.replace(/\-(\w)/g, function (a, b) {
224
- return b.toUpperCase();
225
- })];
226
- if (prop === 'filter') {
227
- val = val.replace(
228
- /alpha\(opacity=([0-9]+)\)/,
229
- function (a, b) {
230
- return b / 100;
231
- }
232
- );
233
- }
234
-
235
- return val === '' ? 1 : val;
236
- };
237
- this.adapterRun = function (elem, method) {
238
- var alias = { width: 'clientWidth', height: 'clientHeight' }[method];
239
-
240
- if (alias) {
241
- elem.style.zoom = 1;
242
- return elem[alias] - 2 * parseInt(_getStyle(elem, 'padding'), 10);
243
- }
244
- };
245
- }
246
-
247
- if (!Array.prototype.forEach) {
248
- this.each = function (arr, fn) { // legacy
249
- var i = 0,
250
- len = arr.length;
251
- for (; i < len; i++) {
252
- if (fn.call(arr[i], arr[i], i, arr) === false) {
253
- return i;
254
- }
255
- }
256
- };
257
- }
258
-
259
- if (!Array.prototype.indexOf) {
260
- this.inArray = function (item, arr) {
261
- var len,
262
- i = 0;
263
-
264
- if (arr) {
265
- len = arr.length;
266
-
267
- for (; i < len; i++) {
268
- if (arr[i] === item) {
269
- return i;
270
- }
271
- }
272
- }
273
-
274
- return -1;
275
- };
276
- }
277
-
278
- if (!Array.prototype.filter) {
279
- this.grep = function (elements, fn) {
280
- var ret = [],
281
- i = 0,
282
- length = elements.length;
283
-
284
- for (; i < length; i++) {
285
- if (!!fn(elements[i], i)) {
286
- ret.push(elements[i]);
287
- }
288
- }
289
-
290
- return ret;
291
- };
292
- }
293
-
294
- //--- End compatibility section ---
295
-
296
-
297
- /**
298
- * Start of animation specific code
299
- */
300
- Fx = function (elem, options, prop) {
301
- this.options = options;
302
- this.elem = elem;
303
- this.prop = prop;
304
- };
305
- Fx.prototype = {
306
-
307
- update: function () {
308
- var styles,
309
- paths = this.paths,
310
- elem = this.elem,
311
- elemelem = elem.element,
312
- prop; // if destroyed, it is null
313
-
314
- // Animation setter defined from outside
315
- if (animSetters[this.prop]) {
316
- animSetters[this.prop](this);
317
-
318
- // Animating a path definition on SVGElement
319
- } else if (paths && elemelem) {
320
- elem.attr('d', pathAnim.step(paths[0], paths[1], this.now, this.toD));
321
-
322
- // Other animations on SVGElement
323
- } else if (elem.attr) {
324
- if (elemelem) {
325
- elem.attr(this.prop, this.now);
326
- }
327
-
328
- // HTML styles, raw HTML content like container size
329
- } else {
330
- styles = {};
331
- styles[this.prop] = this.now + this.unit;
332
- for (prop in styles) {
333
- elem.style[prop] = styles[prop];
334
- }
335
- }
336
-
337
- if (this.options.step) {
338
- this.options.step.call(this.elem, this.now, this);
339
- }
340
-
341
- },
342
- custom: function (from, to, unit) {
343
- var self = this,
344
- t = function (gotoEnd) {
345
- return self.step(gotoEnd);
346
- },
347
- i;
348
-
349
- this.startTime = +new Date();
350
- this.start = from;
351
- this.end = to;
352
- this.unit = unit;
353
- this.now = this.start;
354
- this.pos = this.state = 0;
355
-
356
- t.elem = this.elem;
357
-
358
- if (t() && timers.push(t) === 1) {
359
- t.timerId = setInterval(function () {
360
-
361
- for (i = 0; i < timers.length; i++) {
362
- if (!timers[i]()) {
363
- timers.splice(i--, 1);
364
- }
365
- }
366
-
367
- if (!timers.length) {
368
- clearInterval(t.timerId);
369
- }
370
- }, 13);
371
- }
372
- },
373
-
374
- step: function (gotoEnd) {
375
- var t = +new Date(),
376
- ret,
377
- done,
378
- options = this.options,
379
- elem = this.elem,
380
- i;
381
-
382
- if (elem.attr && !elem.element) { // #2616, element including flag is destroyed
383
- ret = false;
384
-
385
- } else if (gotoEnd || t >= options.duration + this.startTime) {
386
- this.now = this.end;
387
- this.pos = this.state = 1;
388
- this.update();
389
-
390
- this.options.curAnim[this.prop] = true;
391
-
392
- done = true;
393
- for (i in options.curAnim) {
394
- if (options.curAnim[i] !== true) {
395
- done = false;
396
- }
397
- }
398
-
399
- if (done) {
400
- if (options.complete) {
401
- options.complete.call(elem);
402
- }
403
- }
404
- ret = false;
405
-
406
- } else {
407
- var n = t - this.startTime;
408
- this.state = n / options.duration;
409
- this.pos = options.easing(n, 0, 1, options.duration);
410
- this.now = this.start + ((this.end - this.start) * this.pos);
411
- this.update();
412
- ret = true;
413
- }
414
- return ret;
415
- }
416
- };
417
-
418
- /**
419
- * The adapter animate method
420
- */
421
- this.animate = function (el, prop, opt) {
422
- var start,
423
- unit = '',
424
- end,
425
- fx,
426
- args,
427
- name,
428
- key,
429
- PX = 'px';
430
-
431
- if (typeof opt !== 'object' || opt === null) {
432
- args = arguments;
433
- opt = {
434
- duration: args[2],
435
- easing: args[3],
436
- complete: args[4]
437
- };
438
- }
439
- if (typeof opt.duration !== 'number') {
440
- opt.duration = 400;
441
- }
442
- opt.easing = Math[opt.easing] || Math.easeInOutSine;
443
- opt.curAnim = {};
444
- for (key in prop) {
445
- opt.curAnim[key] = prop[key];
446
- }
447
-
448
- for (name in prop) {
449
- fx = new Fx(el, opt, name);
450
- end = null;
451
-
452
- if (name === 'd') {
453
- fx.paths = pathAnim.init(
454
- el,
455
- el.d,
456
- prop.d
457
- );
458
- fx.toD = prop.d;
459
- start = 0;
460
- end = 1;
461
- } else if (el.attr) {
462
- start = el.attr(name);
463
- } else {
464
- start = parseFloat(_getStyle(el, name)) || 0;
465
- if (name !== 'opacity') {
466
- unit = PX;
467
- }
468
- }
469
-
470
- if (!end) {
471
- end = prop[name];
472
- }
473
- if (end.match && end.match(PX)) {
474
- end = end.replace(/px/g, ''); // #4351
475
- }
476
- fx.custom(start, end, unit);
477
- }
478
- };
479
- },
480
-
481
- /**
482
- * Add an animation setter for a specific property
483
- */
484
- addAnimSetter: function (prop, fn) {
485
- animSetters[prop] = fn;
486
- },
487
-
488
- /**
489
- * Downloads a script and executes a callback when done.
490
- * @param {String} scriptLocation
491
- * @param {Function} callback
492
- */
493
- getScript: function (scriptLocation, callback) {
494
- // We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script.
495
- var head = doc.getElementsByTagName('head')[0],
496
- script = doc.createElement('script');
497
-
498
- script.type = 'text/javascript';
499
- script.src = scriptLocation;
500
- script.onload = callback;
501
-
502
- head.appendChild(script);
503
- },
504
-
505
- /**
506
- * Return the index of an item in an array, or -1 if not found
507
- */
508
- inArray: function (item, arr) {
509
- return arr.indexOf ? arr.indexOf(item) : emptyArray.indexOf.call(arr, item);
510
- },
511
-
512
-
513
- /**
514
- * A direct link to adapter methods
515
- */
516
- adapterRun: function (elem, method) {
517
- return parseInt(_getStyle(elem, method), 10);
518
- },
519
-
520
- /**
521
- * Filter an array
522
- */
523
- grep: function (elements, callback) {
524
- return emptyArray.filter.call(elements, callback);
525
- },
526
-
527
- /**
528
- * Map an array
529
- */
530
- map: function (arr, fn) {
531
- var results = [], i = 0, len = arr.length;
532
-
533
- for (; i < len; i++) {
534
- results[i] = fn.call(arr[i], arr[i], i, arr);
535
- }
536
-
537
- return results;
538
- },
539
-
540
- /**
541
- * Get the element's offset position, corrected by overflow:auto. Loosely based on jQuery's offset method.
542
- */
543
- offset: function (el) {
544
- var docElem = document.documentElement,
545
- box = el.getBoundingClientRect();
546
-
547
- return {
548
- top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
549
- left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0)
550
- };
551
- },
552
-
553
- /**
554
- * Add an event listener
555
- */
556
- addEvent: function (el, type, fn) {
557
- augment(el).bind(type, fn);
558
- },
559
-
560
- /**
561
- * Remove event added with addEvent
562
- */
563
- removeEvent: function (el, type, fn) {
564
- augment(el).unbind(type, fn);
565
- },
566
-
567
- /**
568
- * Fire an event on a custom object
569
- */
570
- fireEvent: function (el, type, eventArguments, defaultFunction) {
571
- var e,
572
- key;
573
-
574
- if (doc.createEvent && (el.dispatchEvent || el.fireEvent)) {
575
- e = doc.createEvent('Events');
576
- e.initEvent(type, true, true);
577
- e.target = el;
578
-
579
- for (key in eventArguments) {
580
- e[key] = eventArguments[key];
581
- }
582
-
583
- if (el.dispatchEvent) {
584
- el.dispatchEvent(e);
585
- } else {
586
- el.fireEvent(type, e);
587
- }
588
-
589
- } else if (el.HCExtended === true) {
590
- eventArguments = eventArguments || {};
591
- el.trigger(type, eventArguments);
592
- }
593
-
594
- if (eventArguments && eventArguments.defaultPrevented) {
595
- defaultFunction = null;
596
- }
597
-
598
- if (defaultFunction) {
599
- defaultFunction(eventArguments);
600
- }
601
- },
602
-
603
- washMouseEvent: function (e) {
604
- return e;
605
- },
606
-
607
-
608
- /**
609
- * Stop running animation
610
- */
611
- stop: function (el) {
612
-
613
- var i = timers.length,
614
- timer;
615
-
616
- // Remove timers related to this element (#4519)
617
- while (i--) {
618
- timer = timers[i];
619
- if (timer.elem === el) {
620
- timers.splice(i, 1);
621
- }
622
- }
623
- },
624
-
625
- /**
626
- * Utility for iterating over an array. Parameters are reversed compared to jQuery.
627
- * @param {Array} arr
628
- * @param {Function} fn
629
- */
630
- each: function (arr, fn) { // modern browsers
631
- return Array.prototype.forEach.call(arr, fn);
632
- }
633
- };
634
- return HighchartsAdapter;
635
- }));