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.
- checksums.yaml +4 -4
- data/app/assets/css/highcharts.css +760 -0
- data/app/assets/javascripts/highstock.js +511 -419
- data/app/assets/javascripts/highstock/highstock.js +472 -0
- data/app/assets/javascripts/highstock/highstock.js.map +8 -0
- data/app/assets/javascripts/highstock/highstock.src.js +28809 -0
- data/app/assets/javascripts/highstock/modules/accessibility.js +48 -0
- data/app/assets/javascripts/highstock/modules/accessibility.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/accessibility.src.js +1131 -0
- data/app/assets/javascripts/highstock/modules/annotations.js +14 -0
- data/app/assets/javascripts/highstock/modules/annotations.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/annotations.src.js +407 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.src.js +771 -0
- data/app/assets/javascripts/highstock/modules/boost.js +51 -12
- data/app/assets/javascripts/highstock/modules/boost.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/boost.src.js +2580 -492
- data/app/assets/javascripts/highstock/modules/broken-axis.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/data.js +19 -19
- data/app/assets/javascripts/highstock/modules/data.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/data.src.js +974 -950
- data/app/assets/javascripts/highstock/modules/drilldown.js +25 -17
- data/app/assets/javascripts/highstock/modules/drilldown.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/drilldown.src.js +790 -709
- data/app/assets/javascripts/highstock/modules/export-data.js +17 -0
- data/app/assets/javascripts/highstock/modules/export-data.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/export-data.src.js +417 -0
- data/app/assets/javascripts/highstock/modules/exporting.js +21 -18
- data/app/assets/javascripts/highstock/modules/exporting.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/exporting.src.js +1013 -768
- data/app/assets/javascripts/highstock/modules/funnel.js +6 -7
- data/app/assets/javascripts/highstock/modules/funnel.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/funnel.src.js +284 -308
- data/app/assets/javascripts/highstock/modules/gantt.js +24 -0
- data/app/assets/javascripts/highstock/modules/gantt.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/gantt.src.js +793 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.js +19 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.src.js +545 -0
- data/app/assets/javascripts/highstock/modules/heatmap.js +20 -18
- data/app/assets/javascripts/highstock/modules/heatmap.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/heatmap.src.js +738 -633
- data/app/assets/javascripts/highstock/modules/map-parser.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/map.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/no-data-to-display.js +5 -5
- data/app/assets/javascripts/highstock/modules/no-data-to-display.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/no-data-to-display.src.js +140 -133
- data/app/assets/javascripts/highstock/modules/offline-exporting.js +12 -7
- data/app/assets/javascripts/highstock/modules/offline-exporting.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/offline-exporting.src.js +543 -270
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js +10 -0
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +187 -0
- data/app/assets/javascripts/highstock/modules/series-label.js +19 -0
- data/app/assets/javascripts/highstock/modules/series-label.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/series-label.src.js +606 -0
- data/app/assets/javascripts/highstock/modules/solid-gauge.js +9 -8
- data/app/assets/javascripts/highstock/modules/solid-gauge.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/solid-gauge.src.js +334 -266
- data/app/assets/javascripts/highstock/modules/static-scale.js +12 -0
- data/app/assets/javascripts/highstock/modules/static-scale.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/static-scale.src.js +64 -0
- data/app/assets/javascripts/highstock/modules/stock.js +123 -0
- data/app/assets/javascripts/highstock/modules/stock.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/stock.src.js +6247 -0
- data/app/assets/javascripts/highstock/modules/treemap.js +22 -23
- data/app/assets/javascripts/highstock/modules/treemap.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/treemap.src.js +884 -859
- data/app/assets/javascripts/highstock/modules/xrange-series.js +15 -0
- data/app/assets/javascripts/highstock/modules/xrange-series.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/xrange-series.src.js +258 -0
- data/app/assets/javascripts/highstock/themes/dark-blue.js +307 -244
- data/app/assets/javascripts/highstock/themes/dark-green.js +303 -244
- data/app/assets/javascripts/highstock/themes/dark-unica.js +231 -201
- data/app/assets/javascripts/highstock/themes/gray.js +314 -245
- data/app/assets/javascripts/highstock/themes/grid-light.js +91 -66
- data/app/assets/javascripts/highstock/themes/grid.js +124 -96
- data/app/assets/javascripts/highstock/themes/sand-signika.js +119 -94
- data/app/assets/javascripts/highstock/themes/skies.js +108 -85
- data/lib/highstock/rails/version.rb +1 -1
- metadata +54 -11
- data/app/assets/javascripts/highstock/adapters/standalone-framework.js +0 -18
- data/app/assets/javascripts/highstock/adapters/standalone-framework.src.js +0 -635
- data/app/assets/javascripts/highstock/highcharts-3d.js +0 -48
- data/app/assets/javascripts/highstock/highcharts-3d.src.js +0 -1711
- data/app/assets/javascripts/highstock/highcharts-more.js +0 -55
- data/app/assets/javascripts/highstock/highstock-all.js +0 -637
- data/app/assets/javascripts/highstock/modules/canvas-tools.js +0 -133
- data/app/assets/javascripts/highstock/modules/canvas-tools.src.js +0 -3114
@@ -1,14 +1,15 @@
|
|
1
1
|
/*
|
2
|
-
|
2
|
+
Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
Solid angular gauge module
|
4
4
|
|
5
|
-
(c) 2010-
|
5
|
+
(c) 2010-2017 Torstein Honsi
|
6
6
|
|
7
7
|
License: www.highcharts.com/license
|
8
8
|
*/
|
9
|
-
(function(
|
10
|
-
a.
|
11
|
-
|
12
|
-
a
|
13
|
-
c.translate(a.y,null,null,null,!0),
|
14
|
-
r:
|
9
|
+
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(f){var l=f.pInt,u=f.pick,m=f.each,v=f.isNumber,w=f.wrap,n;w(f.Renderer.prototype.symbols,"arc",function(a,c,e,d,f,g){a=a(c,e,d,f,g);g.rounded&&(d=((g.r||d)-g.innerR)/2,g=["A",d,d,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",d,d,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(g)));return a});n={initDataClasses:function(a){var c=this,e=this.chart,d,t=0,g=this.options;this.dataClasses=
|
10
|
+
d=[];m(a.dataClasses,function(h,b){h=f.merge(h);d.push(h);h.color||("category"===g.dataClassColor?(b=e.options.colors,h.color=b[t++],t===b.length&&(t=0)):h.color=c.tweenColors(f.color(g.minColor),f.color(g.maxColor),b/(a.dataClasses.length-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];m(this.stops,function(a){a.color=f.color(a[1])})},toColor:function(a,c){var e=this.stops,d,f,g=this.dataClasses,h,b;if(g)for(b=g.length;b--;){if(h=g[b],d=h.from,
|
11
|
+
e=h.to,(void 0===d||a>=d)&&(void 0===e||a<=e)){f=h.color;c&&(c.dataClass=b);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(b=e.length;b--&&!(a>e[b][0]););d=e[b]||e[b+1];e=e[b+1]||d;a=1-(e[0]-a)/(e[0]-d[0]||1);f=this.tweenColors(d.color,e.color,a)}return f},tweenColors:function(a,c,e){var d;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,d=1!==c[3]||1!==a[3],a=(d?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-e))+","+Math.round(c[1]+(a[1]-c[1])*(1-e))+","+Math.round(c[2]+
|
12
|
+
(a[2]-c[2])*(1-e))+(d?","+(c[3]+(a[3]-c[3])*(1-e)):"")+")"):a=c.input||"none";return a}};m(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n.tweenColors(f.color(this.start),f.color(this.end),this.pos),null,!0)}});f.seriesType("solidgauge","gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;f.extend(a,n);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);f.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var a=
|
13
|
+
this,c=a.yAxis,e=c.center,d=a.options,t=a.chart.renderer,g=d.overshoot,h=v(g)?g/180*Math.PI:0,b;v(d.threshold)&&(b=c.startAngleRad+c.translate(d.threshold,null,null,null,!0));this.thresholdAngleRad=u(b,c.startAngleRad);m(a.points,function(b){var g=b.graphic,k=c.startAngleRad+c.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,d.radius,100))*e[2]/200,p=l(u(b.options.innerRadius,d.innerRadius,60))*e[2]/200,q=c.toColor(b.y,b),r=Math.min(c.startAngleRad,c.endAngleRad),n=Math.max(c.startAngleRad,
|
14
|
+
c.endAngleRad);"none"===q&&(q=b.color||a.color||"none");"none"!==q&&(b.color=q);k=Math.max(r-h,Math.min(n+h,k));!1===d.wrap&&(k=Math.max(r,Math.min(n,k)));r=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-r>2*Math.PI&&(k=r+2*Math.PI);b.shapeArgs=p={x:e[0],y:e[1],r:m,innerR:p,start:r,end:k,rounded:d.rounded};b.startR=m;g?(b=p.d,g.animate(f.extend({fill:q},p)),b&&(p.d=b)):b.graphic=t.arc(p).addClass(b.getClassName(),!0).attr({fill:q,"sweep-flag":0}).add(a.group)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,CAHAX,CAAAY,QAAA,CAAgBxG,CAAA6E,OAAA,CAAS,CACrB4B,KAAMvD,CADe,CAAT,CAEbmD,CAFa,CAAhB,CAGA,CAAIE,CAAJ,GACIF,CAAAE,EADJ,CACkBA,CADlB,CALJ,EASInD,CAAAwC,QATJ,CASoBR,CAAAsB,IAAA,CAAaL,CAAb,CAAAM,SAAA,CACFvD,CAAAwD,aAAA,EADE,CACoB,CAAA,CADpB,CAAAtC,KAAA,CAEN,CACFmC,KAAMvD,CADJ,CAEF,aAAc,CAFZ,CAFM,CAAA2D,IAAA,CAMP3B,CAAA4B,MANO,CAvDY,CAApC,CAvBmB,CAvBxB,CAqHCN,QAASA,QAAQ,CAACO,CAAD,CAAO,CAEfA,CAAL;CACI,IAAArB,cACA,CADqB,IAAAF,kBACrB,CAAAxF,CAAA8E,YAAAkC,IAAAxG,UAAAgG,QAAAxB,KAAA,CAAyC,IAAzC,CAA+C+B,CAA/C,CAFJ,CAFoB,CArHzB,CAHH,CAlMS,CAAZ,CAAA,CAmUChH,CAnUD,CADkB,CANtB;",
|
6
|
+
"sources":["Input_0"],
|
7
|
+
"names":["factory","module","exports","Highcharts","H","pInt","pick","each","isNumber","wrap","colorAxisMethods","Renderer","prototype","symbols","proceed","x","y","w","h","options","path","rounded","smallR","r","innerR","roundEnd","x2","y2","splice","apply","length","concat","roundStart","x1","y1","initDataClasses","userOptions","axis","chart","dataClasses","colorCounter","dataClass","i","merge","push","color","dataClassColor","colors","tweenColors","minColor","maxColor","initStops","stops","stop","toColor","value","point","from","to","undefined","isLog","val2lin","pos","max","min","hasAlpha","rgba","ret","Math","round","input","prop","Fx","elem","attr","start","end","seriesType","colorByPoint","translate","yAxis","extend","seriesTypes","gauge","call","drawPoints","series","center","renderer","overshoot","overshootVal","PI","thresholdAngleRad","threshold","startAngleRad","points","graphic","rotation","radius","innerRadius","axisMinAngle","endAngleRad","axisMaxAngle","minAngle","maxAngle","shapeArgs","startR","d","animate","fill","arc","addClass","getClassName","add","group","init","pie"]
|
8
|
+
}
|
@@ -1,273 +1,341 @@
|
|
1
1
|
/**
|
2
|
-
* @license
|
2
|
+
* @license Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
* Solid angular gauge module
|
4
4
|
*
|
5
|
-
* (c) 2010-
|
5
|
+
* (c) 2010-2017 Torstein Honsi
|
6
6
|
*
|
7
7
|
* License: www.highcharts.com/license
|
8
8
|
*/
|
9
|
-
|
10
|
-
(function
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}(function
|
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
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
9
|
+
'use strict';
|
10
|
+
(function(factory) {
|
11
|
+
if (typeof module === 'object' && module.exports) {
|
12
|
+
module.exports = factory;
|
13
|
+
} else {
|
14
|
+
factory(Highcharts);
|
15
|
+
}
|
16
|
+
}(function(Highcharts) {
|
17
|
+
(function(H) {
|
18
|
+
/**
|
19
|
+
* Solid angular gauge module
|
20
|
+
*
|
21
|
+
* (c) 2010-2017 Torstein Honsi
|
22
|
+
*
|
23
|
+
* License: www.highcharts.com/license
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
var pInt = H.pInt,
|
28
|
+
pick = H.pick,
|
29
|
+
each = H.each,
|
30
|
+
isNumber = H.isNumber,
|
31
|
+
wrap = H.wrap,
|
32
|
+
Renderer = H.Renderer,
|
33
|
+
colorAxisMethods;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Symbol definition of an arc with round edges.
|
37
|
+
*
|
38
|
+
* @param {Number} x - The X coordinate for the top left position.
|
39
|
+
* @param {Number} y - The Y coordinate for the top left position.
|
40
|
+
* @param {Number} w - The pixel width.
|
41
|
+
* @param {Number} h - The pixel height.
|
42
|
+
* @param {Object} [options] - Additional options, depending on the actual
|
43
|
+
* symbol drawn.
|
44
|
+
* @param {boolean} [options.rounded] - Whether to draw rounded edges.
|
45
|
+
* @return {Array} Path of the created arc.
|
46
|
+
*/
|
47
|
+
wrap(Renderer.prototype.symbols, 'arc', function(proceed, x, y, w, h, options) {
|
48
|
+
var arc = proceed,
|
49
|
+
path = arc(x, y, w, h, options);
|
50
|
+
if (options.rounded) {
|
51
|
+
var r = options.r || w,
|
52
|
+
smallR = (r - options.innerR) / 2,
|
53
|
+
x1 = path[1],
|
54
|
+
y1 = path[2],
|
55
|
+
x2 = path[12],
|
56
|
+
y2 = path[13],
|
57
|
+
roundStart = ['A', smallR, smallR, 0, 1, 1, x1, y1],
|
58
|
+
roundEnd = ['A', smallR, smallR, 0, 1, 1, x2, y2];
|
59
|
+
// Insert rounded edge on end, and remove line.
|
60
|
+
path.splice.apply(path, [path.length - 1, 0].concat(roundStart));
|
61
|
+
// Insert rounded edge on end, and remove line.
|
62
|
+
path.splice.apply(path, [11, 3].concat(roundEnd));
|
63
|
+
}
|
64
|
+
return path;
|
65
|
+
});
|
66
|
+
|
67
|
+
// These methods are defined in the ColorAxis object, and copied here.
|
68
|
+
// If we implement an AMD system we should make ColorAxis a dependency.
|
69
|
+
colorAxisMethods = {
|
70
|
+
|
71
|
+
|
72
|
+
initDataClasses: function(userOptions) {
|
73
|
+
var axis = this,
|
74
|
+
chart = this.chart,
|
75
|
+
dataClasses,
|
76
|
+
colorCounter = 0,
|
77
|
+
options = this.options;
|
78
|
+
this.dataClasses = dataClasses = [];
|
79
|
+
|
80
|
+
each(userOptions.dataClasses, function(dataClass, i) {
|
81
|
+
var colors;
|
82
|
+
|
83
|
+
dataClass = H.merge(dataClass);
|
84
|
+
dataClasses.push(dataClass);
|
85
|
+
if (!dataClass.color) {
|
86
|
+
if (options.dataClassColor === 'category') {
|
87
|
+
colors = chart.options.colors;
|
88
|
+
dataClass.color = colors[colorCounter++];
|
89
|
+
// loop back to zero
|
90
|
+
if (colorCounter === colors.length) {
|
91
|
+
colorCounter = 0;
|
92
|
+
}
|
93
|
+
} else {
|
94
|
+
dataClass.color = axis.tweenColors(H.color(options.minColor), H.color(options.maxColor), i / (userOptions.dataClasses.length - 1));
|
95
|
+
}
|
96
|
+
}
|
97
|
+
});
|
98
|
+
},
|
99
|
+
|
100
|
+
initStops: function(userOptions) {
|
101
|
+
this.stops = userOptions.stops || [
|
102
|
+
[0, this.options.minColor],
|
103
|
+
[1, this.options.maxColor]
|
104
|
+
];
|
105
|
+
each(this.stops, function(stop) {
|
106
|
+
stop.color = H.color(stop[1]);
|
107
|
+
});
|
108
|
+
},
|
109
|
+
/**
|
110
|
+
* Translate from a value to a color
|
111
|
+
*/
|
112
|
+
toColor: function(value, point) {
|
113
|
+
var pos,
|
114
|
+
stops = this.stops,
|
115
|
+
from,
|
116
|
+
to,
|
117
|
+
color,
|
118
|
+
dataClasses = this.dataClasses,
|
119
|
+
dataClass,
|
120
|
+
i;
|
121
|
+
|
122
|
+
if (dataClasses) {
|
123
|
+
i = dataClasses.length;
|
124
|
+
while (i--) {
|
125
|
+
dataClass = dataClasses[i];
|
126
|
+
from = dataClass.from;
|
127
|
+
to = dataClass.to;
|
128
|
+
if ((from === undefined || value >= from) && (to === undefined || value <= to)) {
|
129
|
+
color = dataClass.color;
|
130
|
+
if (point) {
|
131
|
+
point.dataClass = i;
|
132
|
+
}
|
133
|
+
break;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
} else {
|
138
|
+
|
139
|
+
if (this.isLog) {
|
140
|
+
value = this.val2lin(value);
|
141
|
+
}
|
142
|
+
pos = 1 - ((this.max - value) / (this.max - this.min));
|
143
|
+
i = stops.length;
|
144
|
+
while (i--) {
|
145
|
+
if (pos > stops[i][0]) {
|
146
|
+
break;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
from = stops[i] || stops[i + 1];
|
150
|
+
to = stops[i + 1] || from;
|
151
|
+
|
152
|
+
// The position within the gradient
|
153
|
+
pos = 1 - (to[0] - pos) / ((to[0] - from[0]) || 1);
|
154
|
+
|
155
|
+
color = this.tweenColors(
|
156
|
+
from.color,
|
157
|
+
to.color,
|
158
|
+
pos
|
159
|
+
);
|
160
|
+
}
|
161
|
+
return color;
|
162
|
+
},
|
163
|
+
/*
|
164
|
+
* Return an intermediate color between two colors, according to pos where 0
|
165
|
+
* is the from color and 1 is the to color.
|
166
|
+
*/
|
167
|
+
tweenColors: function(from, to, pos) {
|
168
|
+
// Check for has alpha, because rgba colors perform worse due to lack of
|
169
|
+
// support in WebKit.
|
170
|
+
var hasAlpha,
|
171
|
+
ret;
|
172
|
+
|
173
|
+
// Unsupported color, return to-color (#3920)
|
174
|
+
if (!to.rgba.length || !from.rgba.length) {
|
175
|
+
ret = to.input || 'none';
|
176
|
+
|
177
|
+
// Interpolate
|
178
|
+
} else {
|
179
|
+
from = from.rgba;
|
180
|
+
to = to.rgba;
|
181
|
+
hasAlpha = (to[3] !== 1 || from[3] !== 1);
|
182
|
+
ret = (hasAlpha ? 'rgba(' : 'rgb(') +
|
183
|
+
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' +
|
184
|
+
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' +
|
185
|
+
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) +
|
186
|
+
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')';
|
187
|
+
}
|
188
|
+
return ret;
|
189
|
+
}
|
190
|
+
};
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Handle animation of the color attributes directly
|
194
|
+
*/
|
195
|
+
each(['fill', 'stroke'], function(prop) {
|
196
|
+
H.Fx.prototype[prop + 'Setter'] = function() {
|
197
|
+
this.elem.attr(
|
198
|
+
prop,
|
199
|
+
colorAxisMethods.tweenColors(
|
200
|
+
H.color(this.start),
|
201
|
+
H.color(this.end),
|
202
|
+
this.pos
|
203
|
+
),
|
204
|
+
null,
|
205
|
+
true
|
206
|
+
);
|
207
|
+
};
|
208
|
+
});
|
209
|
+
|
210
|
+
// The solidgauge series type
|
211
|
+
H.seriesType('solidgauge', 'gauge', {
|
212
|
+
colorByPoint: true
|
213
|
+
|
214
|
+
}, {
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Extend the translate function to extend the Y axis with the necessary
|
218
|
+
* decoration (#5895).
|
219
|
+
*/
|
220
|
+
translate: function() {
|
221
|
+
var axis = this.yAxis;
|
222
|
+
H.extend(axis, colorAxisMethods);
|
223
|
+
|
224
|
+
// Prepare data classes
|
225
|
+
if (!axis.dataClasses && axis.options.dataClasses) {
|
226
|
+
axis.initDataClasses(axis.options);
|
227
|
+
}
|
228
|
+
axis.initStops(axis.options);
|
229
|
+
|
230
|
+
// Generate points and inherit data label position
|
231
|
+
H.seriesTypes.gauge.prototype.translate.call(this);
|
232
|
+
},
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Draw the points where each point is one needle
|
236
|
+
*/
|
237
|
+
drawPoints: function() {
|
238
|
+
var series = this,
|
239
|
+
yAxis = series.yAxis,
|
240
|
+
center = yAxis.center,
|
241
|
+
options = series.options,
|
242
|
+
renderer = series.chart.renderer,
|
243
|
+
overshoot = options.overshoot,
|
244
|
+
overshootVal = isNumber(overshoot) ? overshoot / 180 * Math.PI : 0,
|
245
|
+
thresholdAngleRad;
|
246
|
+
|
247
|
+
// Handle the threshold option
|
248
|
+
if (isNumber(options.threshold)) {
|
249
|
+
thresholdAngleRad = yAxis.startAngleRad + yAxis.translate(
|
250
|
+
options.threshold,
|
251
|
+
null,
|
252
|
+
null,
|
253
|
+
null,
|
254
|
+
true
|
255
|
+
);
|
256
|
+
}
|
257
|
+
this.thresholdAngleRad = pick(thresholdAngleRad, yAxis.startAngleRad);
|
258
|
+
|
259
|
+
|
260
|
+
each(series.points, function(point) {
|
261
|
+
var graphic = point.graphic,
|
262
|
+
rotation = yAxis.startAngleRad + yAxis.translate(point.y, null, null, null, true),
|
263
|
+
radius = (pInt(pick(point.options.radius, options.radius, 100)) * center[2]) / 200,
|
264
|
+
innerRadius = (pInt(pick(point.options.innerRadius, options.innerRadius, 60)) * center[2]) / 200,
|
265
|
+
shapeArgs,
|
266
|
+
d,
|
267
|
+
toColor = yAxis.toColor(point.y, point),
|
268
|
+
axisMinAngle = Math.min(yAxis.startAngleRad, yAxis.endAngleRad),
|
269
|
+
axisMaxAngle = Math.max(yAxis.startAngleRad, yAxis.endAngleRad),
|
270
|
+
minAngle,
|
271
|
+
maxAngle;
|
272
|
+
|
273
|
+
if (toColor === 'none') { // #3708
|
274
|
+
toColor = point.color || series.color || 'none';
|
275
|
+
}
|
276
|
+
if (toColor !== 'none') {
|
277
|
+
point.color = toColor;
|
278
|
+
}
|
279
|
+
|
280
|
+
// Handle overshoot and clipping to axis max/min
|
281
|
+
rotation = Math.max(axisMinAngle - overshootVal, Math.min(axisMaxAngle + overshootVal, rotation));
|
282
|
+
|
283
|
+
// Handle the wrap option
|
284
|
+
if (options.wrap === false) {
|
285
|
+
rotation = Math.max(axisMinAngle, Math.min(axisMaxAngle, rotation));
|
286
|
+
}
|
287
|
+
|
288
|
+
minAngle = Math.min(rotation, series.thresholdAngleRad);
|
289
|
+
maxAngle = Math.max(rotation, series.thresholdAngleRad);
|
290
|
+
|
291
|
+
if (maxAngle - minAngle > 2 * Math.PI) {
|
292
|
+
maxAngle = minAngle + 2 * Math.PI;
|
293
|
+
}
|
294
|
+
|
295
|
+
point.shapeArgs = shapeArgs = {
|
296
|
+
x: center[0],
|
297
|
+
y: center[1],
|
298
|
+
r: radius,
|
299
|
+
innerR: innerRadius,
|
300
|
+
start: minAngle,
|
301
|
+
end: maxAngle,
|
302
|
+
rounded: options.rounded
|
303
|
+
};
|
304
|
+
point.startR = radius; // For PieSeries.animate
|
305
|
+
|
306
|
+
if (graphic) {
|
307
|
+
d = shapeArgs.d;
|
308
|
+
graphic.animate(H.extend({
|
309
|
+
fill: toColor
|
310
|
+
}, shapeArgs));
|
311
|
+
if (d) {
|
312
|
+
shapeArgs.d = d; // animate alters it
|
313
|
+
}
|
314
|
+
} else {
|
315
|
+
point.graphic = renderer.arc(shapeArgs)
|
316
|
+
.addClass(point.getClassName(), true)
|
317
|
+
.attr({
|
318
|
+
fill: toColor,
|
319
|
+
'sweep-flag': 0
|
320
|
+
})
|
321
|
+
.add(series.group);
|
322
|
+
|
323
|
+
|
324
|
+
}
|
325
|
+
});
|
326
|
+
},
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Extend the pie slice animation by animating from start angle and up
|
330
|
+
*/
|
331
|
+
animate: function(init) {
|
332
|
+
|
333
|
+
if (!init) {
|
334
|
+
this.startAngleRad = this.thresholdAngleRad;
|
335
|
+
H.seriesTypes.pie.prototype.animate.call(this, init);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
});
|
339
|
+
|
340
|
+
}(Highcharts));
|
273
341
|
}));
|