highcharts
Advanced tools
Comparing version 5.0.11 to 5.0.12
{ | ||
"name": "highcharts", | ||
"version": "v5.0.11", | ||
"version": "v5.0.12", | ||
"main": "highcharts.js" | ||
} |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,47 +8,68 @@ 3D features for Highcharts JS | ||
*/ | ||
(function(r){"object"===typeof module&&module.exports?module.exports=r:r(Highcharts)})(function(r){(function(a){var m=a.deg2rad,h=a.pick;a.perspective=function(v,l,F){var f=l.options.chart.options3d,n=F?l.inverted:!1,g=l.plotWidth/2,q=l.plotHeight/2,d=f.depth/2,e=h(f.depth,1)*h(f.viewDistance,0),c=l.scale3d||1,b=m*f.beta*(n?-1:1),f=m*f.alpha*(n?-1:1),k=Math.cos(f),t=Math.cos(-b),B=Math.sin(f),w=Math.sin(-b);F||(g+=l.plotLeft,q+=l.plotTop);return a.map(v,function(b){var a,h;h=(n?b.y:b.x)-g;var f=(n? | ||
b.x:b.y)-q,u=(b.z||0)-d;a=t*h-w*u;b=-B*w*h+k*f-t*B*u;h=k*w*h+B*f+k*t*u;f=0<e&&e<Number.POSITIVE_INFINITY?e/(h+d+e):1;a=a*f*c+g;b=b*f*c+q;return{x:n?b:a,y:n?a:b,z:h*c+d}})};a.pointCameraDistance=function(a,l){var v=l.options.chart.options3d,f=l.plotWidth/2;l=l.plotHeight/2;v=h(v.depth,1)*h(v.viewDistance,0)+v.depth;return Math.sqrt(Math.pow(f-a.plotX,2)+Math.pow(l-a.plotY,2)+Math.pow(v-a.plotZ,2))}})(r);(function(a){function m(b){var c=0,a,A;for(a=0;a<b.length;a++)A=(a+1)%b.length,c+=b[a].x*b[A].y- | ||
b[A].x*b[a].y;return c/2}function h(b,c,a,A,k,d,e,f){var p=[],D=d-k;return d>k&&d-k>Math.PI/2+.0001?(p=p.concat(h(b,c,a,A,k,k+Math.PI/2,e,f)),p=p.concat(h(b,c,a,A,k+Math.PI/2,d,e,f))):d<k&&k-d>Math.PI/2+.0001?(p=p.concat(h(b,c,a,A,k,k-Math.PI/2,e,f)),p=p.concat(h(b,c,a,A,k-Math.PI/2,d,e,f))):["C",b+a*Math.cos(k)-a*y*D*Math.sin(k)+e,c+A*Math.sin(k)+A*y*D*Math.cos(k)+f,b+a*Math.cos(d)+a*y*D*Math.sin(d)+e,c+A*Math.sin(d)-A*y*D*Math.cos(d)+f,b+a*Math.cos(d)+e,c+A*Math.sin(d)+f]}var v=Math.cos,l=Math.PI, | ||
F=Math.sin,f=a.animObject,n=a.charts,g=a.color,q=a.defined,d=a.deg2rad,e=a.each,c=a.extend,b=a.inArray,k=a.map,t=a.merge,B=a.perspective,w=a.pick,x=a.SVGElement,C=a.SVGRenderer,z=a.wrap,y=4*(Math.sqrt(2)-1)/3/(l/2);C.prototype.toLinePath=function(b,a){var c=[];e(b,function(b){c.push("L",b.x,b.y)});b.length&&(c[0]="M",a&&c.push("Z"));return c};C.prototype.cuboid=function(b){var c=this.g(),k=c.destroy;b=this.cuboidPath(b);c.attr({"stroke-linejoin":"round"});c.front=this.path(b[0]).attr({"class":"highcharts-3d-front"}).add(c); | ||
c.top=this.path(b[1]).attr({"class":"highcharts-3d-top"}).add(c);c.side=this.path(b[2]).attr({"class":"highcharts-3d-side"}).add(c);c.fillSetter=function(b){this.front.attr({fill:b});this.top.attr({fill:g(b).brighten(.1).get()});this.side.attr({fill:g(b).brighten(-.1).get()});this.color=b;return this};c.opacitySetter=function(b){this.front.attr({opacity:b});this.top.attr({opacity:b});this.side.attr({opacity:b});return this};c.attr=function(b,c){if("string"===typeof b&&"undefined"!==typeof c){var k= | ||
b;b={};b[k]=c}if(b.shapeArgs||q(b.x))b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0]}),this.top.attr({d:b[1]}),this.side.attr({d:b[2]});else return a.SVGElement.prototype.attr.call(this,b);return this};c.animate=function(b,c,a){q(b.x)&&q(b.y)?(b=this.renderer.cuboidPath(b),this.front.animate({d:b[0]},c,a),this.top.animate({d:b[1]},c,a),this.side.animate({d:b[2]},c,a),this.attr({zIndex:-b[3]})):b.opacity?(this.front.animate(b,c,a),this.top.animate(b,c,a),this.side.animate(b,c,a)): | ||
x.prototype.animate.call(this,b,c,a);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return k.call(this)};c.attr({zIndex:-b[3]});return c};a.SVGRenderer.prototype.cuboidPath=function(b){function c(b){return w[b]}var a=b.x,d=b.y,e=b.z,f=b.height,D=b.width,h=b.depth,q=n[this.chartIndex],t,g,l=q.options.chart.options3d.alpha,u=0,w=[{x:a,y:d,z:e},{x:a+D,y:d,z:e},{x:a+D,y:d+f,z:e},{x:a,y:d+f,z:e},{x:a,y:d+f,z:e+h},{x:a+D,y:d+f,z:e+h},{x:a+D,y:d,z:e+h},{x:a, | ||
y:d,z:e+h}],w=B(w,q,b.insidePlotArea);g=function(b,a){var d=[[],-1];b=k(b,c);a=k(a,c);0>m(b)?d=[b,0]:0>m(a)&&(d=[a,1]);return d};t=g([3,2,1,0],[7,6,5,4]);b=t[0];D=t[1];t=g([1,6,7,0],[4,5,2,3]);f=t[0];h=t[1];t=g([1,2,5,6],[0,7,4,3]);g=t[0];t=t[1];1===t?u+=1E4*(1E3-a):t||(u+=1E4*a);u+=10*(!h||0<=l&&180>=l||360>l&&357.5<l?q.plotHeight-d:10+d);1===D?u+=100*e:D||(u+=100*(1E3-e));u=-Math.round(u);return[this.toLinePath(b,!0),this.toLinePath(f,!0),this.toLinePath(g,!0),u]};a.SVGRenderer.prototype.arc3d= | ||
function(a){function k(a){var c=!1,k={};a=t(a);for(var d in a)-1!==b(d,q)&&(k[d]=a[d],delete a[d],c=!0);return c?k:!1}var p=this.g(),h=p.renderer,q="x y r innerR start end".split(" ");a=t(a);a.alpha*=d;a.beta*=d;p.top=h.path();p.side1=h.path();p.side2=h.path();p.inn=h.path();p.out=h.path();p.onAdd=function(){var b=p.parentGroup,a=p.attr("class");p.top.add(p);e(["out","inn","side1","side2"],function(c){p[c].addClass(a+" highcharts-3d-side").add(b)})};p.setPaths=function(b){var a=p.renderer.arc3dPath(b), | ||
c=100*a.zTop;p.attribs=b;p.top.attr({d:a.top,zIndex:a.zTop});p.inn.attr({d:a.inn,zIndex:a.zInn});p.out.attr({d:a.out,zIndex:a.zOut});p.side1.attr({d:a.side1,zIndex:a.zSide1});p.side2.attr({d:a.side2,zIndex:a.zSide2});p.zIndex=c;p.attr({zIndex:c});b.center&&(p.top.setRadialReference(b.center),delete b.center)};p.setPaths(a);p.fillSetter=function(b){var a=g(b).brighten(-.1).get();this.fill=b;this.side1.attr({fill:a});this.side2.attr({fill:a});this.inn.attr({fill:a});this.out.attr({fill:a});this.top.attr({fill:b}); | ||
return this};e(["opacity","translateX","translateY","visibility"],function(b){p[b+"Setter"]=function(b,a){p[a]=b;e(["out","inn","side1","side2","top"],function(c){p[c].attr(a,b)})}});z(p,"attr",function(b,a){var d;"object"===typeof a&&(d=k(a))&&(c(p.attribs,d),p.setPaths(p.attribs));return b.apply(this,[].slice.call(arguments,1))});z(p,"animate",function(b,a,c,d){var e,h=this.attribs,p;delete a.center;delete a.z;delete a.depth;delete a.alpha;delete a.beta;p=f(w(c,this.renderer.globalAnimation));p.duration&& | ||
(e=k(a),a.dummy=1,e&&(p.step=function(b,a){function c(b){return h[b]+(w(e[b],h[b])-h[b])*a.pos}"dummy"===a.prop&&a.elem.setPaths(t(h,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=p);return b.call(this,a,c,d)});p.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();x.prototype.destroy.call(this)};p.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()}; | ||
p.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return p};C.prototype.arc3dPath=function(b){function a(b){b%=2*Math.PI;b>Math.PI&&(b=2*Math.PI-b);return b}var c=b.x,d=b.y,k=b.start,e=b.end-.00001,f=b.r,q=b.innerR,t=b.depth,g=b.alpha,n=b.beta,w=Math.cos(k),B=Math.sin(k);b=Math.cos(e);var u=Math.sin(e),m=f*Math.cos(n),f=f*Math.cos(g),z=q*Math.cos(n),y=q*Math.cos(g),q=t*Math.sin(n),x=t*Math.sin(g),t=["M",c+m*w,d+f*B],t=t.concat(h(c,d,m,f,k,e,0,0)), | ||
t=t.concat(["L",c+z*b,d+y*u]),t=t.concat(h(c,d,z,y,e,k,0,0)),t=t.concat(["Z"]),C=0<n?Math.PI/2:0,n=0<g?0:Math.PI/2,C=k>-C?k:e>-C?-C:k,E=e<l-n?e:k<l-n?l-n:e,r=2*l-n,g=["M",c+m*v(C),d+f*F(C)],g=g.concat(h(c,d,m,f,C,E,0,0));e>r&&k<r?(g=g.concat(["L",c+m*v(E)+q,d+f*F(E)+x]),g=g.concat(h(c,d,m,f,E,r,q,x)),g=g.concat(["L",c+m*v(r),d+f*F(r)]),g=g.concat(h(c,d,m,f,r,e,0,0)),g=g.concat(["L",c+m*v(e)+q,d+f*F(e)+x]),g=g.concat(h(c,d,m,f,e,r,q,x)),g=g.concat(["L",c+m*v(r),d+f*F(r)]),g=g.concat(h(c,d,m,f,r,E, | ||
0,0))):e>l-n&&k<l-n&&(g=g.concat(["L",c+m*Math.cos(E)+q,d+f*Math.sin(E)+x]),g=g.concat(h(c,d,m,f,E,e,q,x)),g=g.concat(["L",c+m*Math.cos(e),d+f*Math.sin(e)]),g=g.concat(h(c,d,m,f,e,E,0,0)));g=g.concat(["L",c+m*Math.cos(E)+q,d+f*Math.sin(E)+x]);g=g.concat(h(c,d,m,f,E,C,q,x));g=g.concat(["Z"]);n=["M",c+z*w,d+y*B];n=n.concat(h(c,d,z,y,k,e,0,0));n=n.concat(["L",c+z*Math.cos(e)+q,d+y*Math.sin(e)+x]);n=n.concat(h(c,d,z,y,e,k,q,x));n=n.concat(["Z"]);w=["M",c+m*w,d+f*B,"L",c+m*w+q,d+f*B+x,"L",c+z*w+q,d+y* | ||
B+x,"L",c+z*w,d+y*B,"Z"];c=["M",c+m*b,d+f*u,"L",c+m*b+q,d+f*u+x,"L",c+z*b+q,d+y*u+x,"L",c+z*b,d+y*u,"Z"];u=Math.atan2(x,-q);d=Math.abs(e+u);b=Math.abs(k+u);k=Math.abs((k+e)/2+u);d=a(d);b=a(b);k=a(k);k*=1E5;e=1E5*b;d*=1E5;return{top:t,zTop:1E5*Math.PI+1,out:g,zOut:Math.max(k,e,d),inn:n,zInn:Math.max(k,e,d),side1:w,zSide1:.99*d,side2:c,zSide2:.99*e}}})(r);(function(a){function m(a,d){var e=a.plotLeft,c=a.plotWidth+e,b=a.plotTop,k=a.plotHeight+b,f=e+a.plotWidth/2,g=b+a.plotHeight/2,h=Number.MAX_VALUE, | ||
n=-Number.MAX_VALUE,q=Number.MAX_VALUE,l=-Number.MAX_VALUE,m,u=1;m=[{x:e,y:b,z:0},{x:e,y:b,z:d}];v([0,1],function(b){m.push({x:c,y:m[b].y,z:m[b].z})});v([0,1,2,3],function(b){m.push({x:m[b].x,y:k,z:m[b].z})});m=r(m,a,!1);v(m,function(b){h=Math.min(h,b.x);n=Math.max(n,b.x);q=Math.min(q,b.y);l=Math.max(l,b.y)});e>h&&(u=Math.min(u,1-Math.abs((e+f)/(h+f))%1));c<n&&(u=Math.min(u,(c-f)/(n-f)));b>q&&(u=0>q?Math.min(u,(b+g)/(-q+b+g)):Math.min(u,1-(b+g)/(q+g)%1));k<l&&(u=Math.min(u,Math.abs((k-g)/(l-g)))); | ||
return u}var h=a.Chart,v=a.each,l=a.merge,r=a.perspective,f=a.pick,n=a.wrap;h.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};h.prototype.propsRequireDirtyBox.push("chart.options3d");h.prototype.propsRequireUpdateSeries.push("chart.options3d");a.wrap(a.Chart.prototype,"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))});var g=a.getOptions();l(!0,g,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0, | ||
viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});n(h.prototype,"setClassName",function(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});a.wrap(a.Chart.prototype,"setChartSize",function(a){var d=this.options.chart.options3d;a.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,b=this.margin;c[e?"y":"x"]=-(b[3]||0);c[e?"x":"y"]=-(b[0]||0);c[e?"height":"width"]=this.chartWidth+(b[3]|| | ||
0)+(b[1]||0);c[e?"width":"height"]=this.chartHeight+(b[0]||0)+(b[2]||0);this.scale3d=1;!0===d.fitToPlot&&(this.scale3d=m(this,d.depth))}});n(h.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0);a.apply(this,[].slice.call(arguments,1))});n(h.prototype,"renderSeries",function(a){var d=this.series.length;if(this.is3d())for(;d--;)a=this.series[d],a.translate(),a.render();else a.call(this)});h.prototype.retrieveStacks=function(a){var d=this.series,e={},c,b=1;v(this.series,function(k){c=f(k.options.stack, | ||
a?0:d.length-1-k.index);e[c]?e[c].series.push(k):(e[c]={series:[k],position:b},b++)});e.totalStacks=b+1;return e}})(r);(function(a){var m,h=a.Axis,v=a.Chart,l=a.each,r=a.extend,f=a.merge,n=a.perspective,g=a.pick,q=a.splat,d=a.Tick,e=a.wrap;e(h.prototype,"setOptions",function(a,b){a.call(this,b);this.chart.is3d()&&"colorAxis"!==this.coll&&(a=this.options,a.tickWidth=g(a.tickWidth,0),a.gridLineWidth=g(a.gridLineWidth,1))});e(h.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1)); | ||
if(this.chart.is3d()&&"colorAxis"!==this.coll){var b=this.chart,c=b.renderer,d=b.options.chart.options3d,e=d.frame,f=e.bottom,g=e.back,e=e.side,h=d.depth,n=this.height,q=this.width,l=this.left,m=this.top;this.isZAxis||(this.horiz?(g={x:l,y:m+(b.xAxis[0].opposite?-f.size:n),z:0,width:q,height:f.size,depth:h,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(g):(this.bottomFrame=c.cuboid(g).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:b.yAxis[0].reversed&&0<d.alpha? | ||
4:-1}).add(),this.bottomFrame.attr({fill:f.color||"none",stroke:f.color||"none"}))):(d={x:l+(b.yAxis[0].opposite?0:-e.size),y:m+(b.xAxis[0].opposite?-f.size:0),z:h,width:q+e.size,height:n+f.size,depth:g.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):(this.backFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),this.backFrame.attr({fill:g.color||"none",stroke:g.color||"none"})),b={x:l+(b.yAxis[0].opposite?q:-e.size),y:m+(b.xAxis[0].opposite? | ||
-f.size:0),z:0,width:e.size,height:n+f.size,depth:h,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b):(this.sideFrame=c.cuboid(b).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side",zIndex:-2}).add(),this.sideFrame.attr({fill:e.color||"none",stroke:e.color||"none"}))))}});e(h.prototype,"getPlotLinePath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===b)return b;var c=this.chart,d=c.options.chart.options3d,c=this.isZAxis? | ||
c.plotWidth:d.depth,d=this.opposite;this.horiz&&(d=!d);b=[this.swapZ({x:b[1],y:b[2],z:d?c:0}),this.swapZ({x:b[1],y:b[2],z:c}),this.swapZ({x:b[4],y:b[5],z:c}),this.swapZ({x:b[4],y:b[5],z:d?0:c})];b=n(b,this.chart,!1);return b=this.chart.renderer.toLinePath(b,!1)});e(h.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))});e(h.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments, | ||
1));var b=arguments,c=b[1],b=this.getPlotLinePath(b[2]);(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null;return c});e(d.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d()||"colorAxis"===this.axis.coll)return b;b=[this.axis.swapZ({x:b[1],y:b[2],z:0}),this.axis.swapZ({x:b[4],y:b[5],z:0})];b=n(b,this.axis.chart,!1);return b=["M",b[0].x,b[0].y,"L",b[1].x,b[1].y]});e(d.prototype,"getLabelPosition", | ||
function(a){var b=a.apply(this,[].slice.call(arguments,1));this.axis.chart.is3d()&&"colorAxis"!==this.axis.coll&&(b=n([this.axis.swapZ({x:b.x,y:b.y,z:0})],this.axis.chart,!1)[0]);return b});a.wrap(h.prototype,"getTitlePosition",function(a){var b=this.chart.is3d()&&"colorAxis"!==this.coll,c,d;b&&(d=this.axisTitleMargin,this.axisTitleMargin=0);c=a.apply(this,[].slice.call(arguments,1));b&&(c=n([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite? | ||
-1:1)*d,this.axisTitleMargin=d);return c});e(h.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold||b[2].plotY});a.apply(this,[].slice.call(b,1))});e(h.prototype,"destroy",function(a){l(["backFrame","bottomFrame","sideFrame"],function(b){this[b]&&(this[b]=this[b].destroy())},this);a.apply(this,[].slice.call(arguments,1))});h.prototype.swapZ=function(a,b){if(this.isZAxis){b=b?0:this.chart.plotLeft;var c=this.chart; | ||
return{x:b+(c.yAxis[0].opposite?a.z:c.xAxis[0].width-a.z),y:a.y,z:a.x-b}}return a};m=a.ZAxis=function(){this.init.apply(this,arguments)};r(m.prototype,h.prototype);r(m.prototype,{isZAxis:!0,setOptions:function(a){a=f({offset:0,lineWidth:0},a);h.prototype.setOptions.call(this,a);this.coll="zAxis"},setAxisSize:function(){h.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var a= | ||
this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();l(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,c=c.zData,c.length&&(a.dataMin=Math.min(g(a.dataMin,c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(g(a.dataMax,c[0]),Math.max.apply(null,c)))})}});e(v.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=q(c.zAxis||{});a.call(this);b.is3d()&&(this.zAxis=[],l(c, | ||
function(a,c){a.index=c;a.isX=!0;(new m(b,a)).setScale()}))})})(r);(function(a){function m(a){var d=a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&(d.stroke=this.options.edgeColor||d.fill,d["stroke-width"]=l(this.options.edgeWidth,1));return d}var h=a.each,v=a.perspective,l=a.pick,r=a.Series,f=a.seriesTypes,n=a.inArray,g=a.svg;a=a.wrap;a(f.column.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this,e=d.chart,c=d.options,b=c.depth|| | ||
25,f=d.borderWidth%2?.5:0;if(e.inverted&&!d.yAxis.reversed||!e.inverted&&d.yAxis.reversed)f*=-1;var g=(c.stacking?c.stack||0:d.index)*(b+(c.groupZPadding||1));!1!==c.grouping&&(g=0);g+=c.groupZPadding||1;h(d.data,function(a){if(null!==a.y){var c=a.shapeArgs,k=a.tooltipPos,n;h([["x","width"],["y","height"]],function(a){n=c[a[0]]-f;if(0>n+c[a[1]]||n>d[a[0]+"Axis"].len)for(var b in c)c[b]=0;0>n&&(c[a[1]]+=c[a[0]],c[a[0]]=0);n+c[a[1]]>d[a[0]+"Axis"].len&&(c[a[1]]=d[a[0]+"Axis"].len-c[a[0]])});a.shapeType= | ||
"cuboid";c.z=g;c.depth=b;c.insidePlotArea=!0;k=v([{x:k[0],y:k[1],z:g}],e,!0)[0];a.tooltipPos=[k.x,k.y]}});d.z=g}});a(f.column.prototype,"animate",function(a){if(this.chart.is3d()){var d=arguments[1],e=this.yAxis,c=this,b=this.yAxis.reversed;g&&(d?h(c.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,b||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(h(c.data,function(a){null!==a.y&&(a.shapeArgs.height= | ||
a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,c.options.animation))}),this.drawDataLabels(),c.animate=null))}else a.apply(this,[].slice.call(arguments,1))});a(f.column.prototype,"plotGroup",function(a,d,e,c,b,f){this.chart.is3d()&&f&&!this[d]&&(this[d]=f,f.attr(this.getPlotBox()),this[d].survive=!0);return a.apply(this,Array.prototype.slice.call(arguments,1))});a(f.column.prototype,"setVisible",function(a,d){var e=this,c;e.chart.is3d()&&h(e.data,function(a){c=(a.visible= | ||
a.options.visible=d=void 0===d?!a.visible:d)?"visible":"hidden";e.options.data[n(a,e.data)]=a.options;a.graphic&&a.graphic.attr({visibility:c})});a.apply(this,Array.prototype.slice.call(arguments,1))});a(f.column.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.options,e=d.grouping,c=d.stacking,b=l(this.yAxis.options.reversedStacks,!0),f=0;if(void 0===e||e){e=this.chart.retrieveStacks(c);f=d.stack||0;for(c=0;c<e[f].series.length&&e[f].series[c]!== | ||
this;c++);f=10*(e.totalStacks-e[f].position)+(b?c:-c);this.xAxis.reversed||(f=10*e.totalStacks-f)}d.zIndex=f}});a(f.column.prototype,"pointAttribs",m);f.columnrange&&(a(f.columnrange.prototype,"pointAttribs",m),f.columnrange.prototype.plotGroup=f.column.prototype.plotGroup,f.columnrange.prototype.setVisible=f.column.prototype.setVisible);a(r.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var d=arguments[4],e={x:d.x,y:d.y,z:this.z},e= | ||
v([e],this.chart,!0)[0];d.x=e.x;d.y=e.y}a.apply(this,[].slice.call(arguments,1))})})(r);(function(a){var m=a.deg2rad,h=a.each,v=a.pick,l=a.seriesTypes,r=a.svg;a=a.wrap;a(l.pie.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this,g=f.options,l=g.depth||0,d=f.chart.options.chart.options3d,e=d.alpha,c=d.beta,b=g.stacking?(g.stack||0)*l:f._i*l,b=b+l/2;!1!==g.grouping&&(b=0);h(f.data,function(a){var d=a.shapeArgs;a.shapeType="arc3d";d.z=b;d.depth= | ||
.75*l;d.alpha=e;d.beta=c;d.center=f.center;d=(d.end+d.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(d)*g.slicedOffset*Math.cos(e*m)),translateY:Math.round(Math.sin(d)*g.slicedOffset*Math.cos(e*m))}})}});a(l.pie.prototype.pointClass.prototype,"haloPath",function(a){var f=arguments;return this.series.chart.is3d()?[]:a.call(this,f[1])});a(l.pie.prototype,"pointAttribs",function(a,h,g){a=a.call(this,h,g);g=this.options;this.chart.is3d()&&(a.stroke=g.edgeColor||h.color||this.color,a["stroke-width"]= | ||
v(g.edgeWidth,1));return a});a(l.pie.prototype,"drawPoints",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&h(this.points,function(a){var f=a.graphic;if(f)f[a.y&&a.visible?"show":"hide"]()})});a(l.pie.prototype,"drawDataLabels",function(a){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;h(this.data,function(a){var g=a.shapeArgs,d=g.r,e=(g.start+g.end)/2,c=a.labelPos,b=-d*(1-Math.cos((g.alpha||f.alpha)*m))*Math.sin(e),n=d*(Math.cos((g.beta||f.beta)*m)-1)*Math.cos(e); | ||
h([0,2,4],function(a){c[a]+=n;c[a+1]+=b})})}a.apply(this,[].slice.call(arguments,1))});a(l.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});a(l.pie.prototype,"animate",function(a){if(this.chart.is3d()){var f=arguments[1],g=this.options.animation,h=this.center,d=this.group,e=this.markerGroup;r&&(!0===g&&(g={}),f?(d.oldtranslateX=d.translateX,d.oldtranslateY=d.translateY,f={translateX:h[0],translateY:h[1],scaleX:.001, | ||
scaleY:.001},d.attr(f),e&&(e.attrSetters=d.attrSetters,e.attr(f))):(f={translateX:d.oldtranslateX,translateY:d.oldtranslateY,scaleX:1,scaleY:1},d.animate(f,g),e&&e.animate(f,g),this.animate=null))}else a.apply(this,[].slice.call(arguments,1))})})(r);(function(a){var m=a.perspective,h=a.pick,v=a.Point,l=a.seriesTypes,r=a.wrap;r(l.scatter.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this.chart,g=h(this.zAxis,f.options.zAxis[0]),l=[],d,e,c;for(c= | ||
0;c<this.data.length;c++)d=this.data[c],e=g.isLog&&g.val2lin?g.val2lin(d.z):d.z,d.plotZ=g.translate(e),d.isInside=d.isInside?e>=g.min&&e<=g.max:!1,l.push({x:d.plotX,y:d.plotY,z:d.plotZ});f=m(l,f,!0);for(c=0;c<this.data.length;c++)d=this.data[c],g=f[c],d.plotXold=d.plotX,d.plotYold=d.plotY,d.plotZold=d.plotZ,d.plotX=g.x,d.plotY=g.y,d.plotZ=g.z}});r(l.scatter.prototype,"init",function(a,h,g){h.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x", | ||
"y","z"],this.directTouch=!0);a=a.apply(this,[h,g]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return a});r(l.scatter.prototype,"pointAttribs",function(f,h){var g=f.apply(this, | ||
[].slice.call(arguments,1));this.chart.is3d()&&h&&(g.zIndex=a.pointCameraDistance(h,this.chart));return g});r(v.prototype,"applyOptions",function(a){var f=a.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===f.z&&(f.z=0);return f})})(r);(function(a){var m=a.Axis,h=a.SVGRenderer,r=a.VMLRenderer;r&&(a.setOptions({animate:!1}),r.prototype.cuboid=h.prototype.cuboid,r.prototype.cuboidPath=h.prototype.cuboidPath,r.prototype.toLinePath=h.prototype.toLinePath,r.prototype.createElement3D= | ||
h.prototype.createElement3D,r.prototype.arc3d=function(a){a=h.prototype.arc3d.call(this,a);a.css({zIndex:a.zIndex});return a},a.VMLRenderer.prototype.arc3dPath=a.SVGRenderer.prototype.arc3dPath,a.wrap(m.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&& | ||
(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))})(r)}); | ||
(function(A){"object"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(d){var w=d.deg2rad,r=d.pick;d.perspective=function(t,x,y){var m=x.options.chart.options3d,u=y?x.inverted:!1,h=x.plotWidth/2,v=x.plotHeight/2,g=m.depth/2,c=r(m.depth,1)*r(m.viewDistance,0),b=x.scale3d||1,e=w*m.beta*(u?-1:1),m=w*m.alpha*(u?-1:1),a=Math.cos(m),f=Math.cos(-e),k=Math.sin(m),p=Math.sin(-e);y||(h+=x.plotLeft,v+=x.plotTop);return d.map(t,function(e){var d,l;l=(u?e.y:e.x)-h;var n=(u? | ||
e.x:e.y)-v,F=(e.z||0)-g;d=f*l-p*F;e=-k*p*l+a*n-f*k*F;l=a*p*l+k*n+a*f*F;n=0<c&&c<Number.POSITIVE_INFINITY?c/(l+g+c):1;d=d*n*b+h;e=e*n*b+v;return{x:u?e:d,y:u?d:e,z:l*b+g}})};d.pointCameraDistance=function(d,x){var t=x.options.chart.options3d,m=x.plotWidth/2;x=x.plotHeight/2;t=r(t.depth,1)*r(t.viewDistance,0)+t.depth;return Math.sqrt(Math.pow(m-d.plotX,2)+Math.pow(x-d.plotY,2)+Math.pow(t-d.plotZ,2))};d.shapeArea=function(d){var t=0,r,m;for(r=0;r<d.length;r++)m=(r+1)%d.length,t+=d[r].x*d[m].y-d[m].x* | ||
d[r].y;return t/2};d.shapeArea3d=function(r,x,w){return d.shapeArea(d.perspective(r,x,w))}})(A);(function(d){function w(a,b,e,d,c,f,k,g){var B=[],n=f-c;return f>c&&f-c>Math.PI/2+.0001?(B=B.concat(w(a,b,e,d,c,c+Math.PI/2,k,g)),B=B.concat(w(a,b,e,d,c+Math.PI/2,f,k,g))):f<c&&c-f>Math.PI/2+.0001?(B=B.concat(w(a,b,e,d,c,c-Math.PI/2,k,g)),B=B.concat(w(a,b,e,d,c-Math.PI/2,f,k,g))):["C",a+e*Math.cos(c)-e*l*n*Math.sin(c)+k,b+d*Math.sin(c)+d*l*n*Math.cos(c)+g,a+e*Math.cos(f)+e*l*n*Math.sin(f)+k,b+d*Math.sin(f)- | ||
d*l*n*Math.cos(f)+g,a+e*Math.cos(f)+k,b+d*Math.sin(f)+g]}var r=Math.cos,t=Math.PI,x=Math.sin,y=d.animObject,m=d.charts,u=d.color,h=d.defined,v=d.deg2rad,g=d.each,c=d.extend,b=d.inArray,e=d.map,a=d.merge,f=d.perspective,k=d.pick,p=d.SVGElement,z=d.SVGRenderer,q=d.wrap,l=4*(Math.sqrt(2)-1)/3/(t/2);z.prototype.toLinePath=function(a,b){var e=[];g(a,function(a){e.push("L",a.x,a.y)});a.length&&(e[0]="M",b&&e.push("Z"));return e};z.prototype.toLineSegments=function(a){var b=[],e=!0;g(a,function(a){b.push(e? | ||
"M":"L",a.x,a.y);e=!e});return b};z.prototype.face3d=function(a){var b=this,e=this.createElement("path");e.vertexes=[];e.insidePlotArea=!1;e.enabled=!0;q(e,"attr",function(a,e){if("object"===typeof e&&(h(e.enabled)||h(e.vertexes)||h(e.insidePlotArea))){this.enabled=k(e.enabled,this.enabled);this.vertexes=k(e.vertexes,this.vertexes);this.insidePlotArea=k(e.insidePlotArea,this.insidePlotArea);delete e.enabled;delete e.vertexes;delete e.insidePlotArea;var c=f(this.vertexes,m[b.chartIndex],this.insidePlotArea), | ||
B=b.toLinePath(c,!0),c=d.shapeArea(c),c=this.enabled&&0<c?"visible":"hidden";e.d=B;e.visibility=c}return a.apply(this,[].slice.call(arguments,1))});q(e,"animate",function(a,e){if("object"===typeof e&&(h(e.enabled)||h(e.vertexes)||h(e.insidePlotArea))){this.enabled=k(e.enabled,this.enabled);this.vertexes=k(e.vertexes,this.vertexes);this.insidePlotArea=k(e.insidePlotArea,this.insidePlotArea);delete e.enabled;delete e.vertexes;delete e.insidePlotArea;var c=f(this.vertexes,m[b.chartIndex],this.insidePlotArea), | ||
B=b.toLinePath(c,!0),c=d.shapeArea(c),c=this.enabled&&0<c?"visible":"hidden";e.d=B;this.attr("visibility",c)}return a.apply(this,[].slice.call(arguments,1))});return e.attr(a)};z.prototype.polyhedron=function(a){var b=this,e=this.g(),c=e.destroy;e.attr({"stroke-linejoin":"round"});e.faces=[];e.destroy=function(){for(var a=0;a<e.faces.length;a++)e.faces[a].destroy();return c.call(this)};q(e,"attr",function(a,c,d,f,k){if("object"===typeof c&&h(c.faces)){for(;e.faces.length>c.faces.length;)e.faces.pop().destroy(); | ||
for(;e.faces.length<c.faces.length;)e.faces.push(b.face3d().add(e));for(var g=0;g<c.faces.length;g++)e.faces[g].attr(c.faces[g],null,f,k);delete c.faces}return a.apply(this,[].slice.call(arguments,1))});q(e,"animate",function(a,c,d,f){if(c&&c.faces){for(;e.faces.length>c.faces.length;)e.faces.pop().destroy();for(;e.faces.length<c.faces.length;)e.faces.push(b.face3d().add(e));for(var k=0;k<c.faces.length;k++)e.faces[k].animate(c.faces[k],d,f);delete c.faces}return a.apply(this,[].slice.call(arguments, | ||
1))});return e.attr(a)};z.prototype.cuboid=function(a){var e=this.g(),b=e.destroy;a=this.cuboidPath(a);e.attr({"stroke-linejoin":"round"});e.front=this.path(a[0]).attr({"class":"highcharts-3d-front"}).add(e);e.top=this.path(a[1]).attr({"class":"highcharts-3d-top"}).add(e);e.side=this.path(a[2]).attr({"class":"highcharts-3d-side"}).add(e);e.fillSetter=function(a){this.front.attr({fill:a});this.top.attr({fill:u(a).brighten(.1).get()});this.side.attr({fill:u(a).brighten(-.1).get()});this.color=a;return this}; | ||
e.opacitySetter=function(a){this.front.attr({opacity:a});this.top.attr({opacity:a});this.side.attr({opacity:a});return this};e.attr=function(a,e){if("string"===typeof a&&"undefined"!==typeof e){var b=a;a={};a[b]=e}if(a.shapeArgs||h(a.x))a=this.renderer.cuboidPath(a.shapeArgs||a),this.front.attr({d:a[0]}),this.top.attr({d:a[1]}),this.side.attr({d:a[2]});else return d.SVGElement.prototype.attr.call(this,a);return this};e.animate=function(a,e,b){h(a.x)&&h(a.y)?(a=this.renderer.cuboidPath(a),this.front.animate({d:a[0]}, | ||
e,b),this.top.animate({d:a[1]},e,b),this.side.animate({d:a[2]},e,b),this.attr({zIndex:-a[3]})):a.opacity?(this.front.animate(a,e,b),this.top.animate(a,e,b),this.side.animate(a,e,b)):p.prototype.animate.call(this,a,e,b);return this};e.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return b.call(this)};e.attr({zIndex:-a[3]});return e};d.SVGRenderer.prototype.cuboidPath=function(a){function b(a){return r[a]}var c=a.x,k=a.y,g=a.z,n=a.height,v=a.width,l=a.depth,p=m[this.chartIndex], | ||
q,z,u=p.options.chart.options3d.alpha,h=0,r=[{x:c,y:k,z:g},{x:c+v,y:k,z:g},{x:c+v,y:k+n,z:g},{x:c,y:k+n,z:g},{x:c,y:k+n,z:g+l},{x:c+v,y:k+n,z:g+l},{x:c+v,y:k,z:g+l},{x:c,y:k,z:g+l}],r=f(r,p,a.insidePlotArea);z=function(a,c){var f=[[],-1];a=e(a,b);c=e(c,b);0>d.shapeArea(a)?f=[a,0]:0>d.shapeArea(c)&&(f=[c,1]);return f};q=z([3,2,1,0],[7,6,5,4]);a=q[0];v=q[1];q=z([1,6,7,0],[4,5,2,3]);n=q[0];l=q[1];q=z([1,2,5,6],[0,7,4,3]);z=q[0];q=q[1];1===q?h+=1E4*(1E3-c):q||(h+=1E4*c);h+=10*(!l||0<=u&&180>=u||360>u&& | ||
357.5<u?p.plotHeight-k:10+k);1===v?h+=100*g:v||(h+=100*(1E3-g));h=-Math.round(h);return[this.toLinePath(a,!0),this.toLinePath(n,!0),this.toLinePath(z,!0),h]};d.SVGRenderer.prototype.arc3d=function(e){function d(e){var c=!1,f={};e=a(e);for(var d in e)-1!==b(d,l)&&(f[d]=e[d],delete e[d],c=!0);return c?f:!1}var f=this.g(),n=f.renderer,l="x y r innerR start end".split(" ");e=a(e);e.alpha*=v;e.beta*=v;f.top=n.path();f.side1=n.path();f.side2=n.path();f.inn=n.path();f.out=n.path();f.onAdd=function(){var a= | ||
f.parentGroup,e=f.attr("class");f.top.add(f);g(["out","inn","side1","side2"],function(b){f[b].addClass(e+" highcharts-3d-side").add(a)})};f.setPaths=function(a){var e=f.renderer.arc3dPath(a),b=100*e.zTop;f.attribs=a;f.top.attr({d:e.top,zIndex:e.zTop});f.inn.attr({d:e.inn,zIndex:e.zInn});f.out.attr({d:e.out,zIndex:e.zOut});f.side1.attr({d:e.side1,zIndex:e.zSide1});f.side2.attr({d:e.side2,zIndex:e.zSide2});f.zIndex=b;f.attr({zIndex:b});a.center&&(f.top.setRadialReference(a.center),delete a.center)}; | ||
f.setPaths(e);f.fillSetter=function(a){var e=u(a).brighten(-.1).get();this.fill=a;this.side1.attr({fill:e});this.side2.attr({fill:e});this.inn.attr({fill:e});this.out.attr({fill:e});this.top.attr({fill:a});return this};g(["opacity","translateX","translateY","visibility"],function(a){f[a+"Setter"]=function(a,e){f[e]=a;g(["out","inn","side1","side2","top"],function(b){f[b].attr(e,a)})}});q(f,"attr",function(a,e){var b;"object"===typeof e&&(b=d(e))&&(c(f.attribs,b),f.setPaths(f.attribs));return a.apply(this, | ||
[].slice.call(arguments,1))});q(f,"animate",function(e,b,c,f){var g,n=this.attribs,v;delete b.center;delete b.z;delete b.depth;delete b.alpha;delete b.beta;v=y(k(c,this.renderer.globalAnimation));v.duration&&(g=d(b),b.dummy=1,g&&(v.step=function(e,b){function c(a){return n[a]+(k(g[a],n[a])-n[a])*b.pos}"dummy"===b.prop&&b.elem.setPaths(a(n,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=v);return e.call(this,b,c,f)});f.destroy=function(){this.top.destroy();this.out.destroy(); | ||
this.inn.destroy();this.side1.destroy();this.side2.destroy();p.prototype.destroy.call(this)};f.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};f.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return f};z.prototype.arc3dPath=function(a){function e(a){a%=2*Math.PI;a>Math.PI&&(a=2*Math.PI-a);return a}var b=a.x,c=a.y,f=a.start,d=a.end-.00001,k=a.r,g=a.innerR,v=a.depth,l=a.alpha,p=a.beta,n=Math.cos(f), | ||
q=Math.sin(f);a=Math.cos(d);var h=Math.sin(d),z=k*Math.cos(p),k=k*Math.cos(l),m=g*Math.cos(p),u=g*Math.cos(l),g=v*Math.sin(p),y=v*Math.sin(l),v=["M",b+z*n,c+k*q],v=v.concat(w(b,c,z,k,f,d,0,0)),v=v.concat(["L",b+m*a,c+u*h]),v=v.concat(w(b,c,m,u,d,f,0,0)),v=v.concat(["Z"]),A=0<p?Math.PI/2:0,p=0<l?0:Math.PI/2,A=f>-A?f:d>-A?-A:f,C=d<t-p?d:f<t-p?t-p:d,D=2*t-p,l=["M",b+z*r(A),c+k*x(A)],l=l.concat(w(b,c,z,k,A,C,0,0));d>D&&f<D?(l=l.concat(["L",b+z*r(C)+g,c+k*x(C)+y]),l=l.concat(w(b,c,z,k,C,D,g,y)),l=l.concat(["L", | ||
b+z*r(D),c+k*x(D)]),l=l.concat(w(b,c,z,k,D,d,0,0)),l=l.concat(["L",b+z*r(d)+g,c+k*x(d)+y]),l=l.concat(w(b,c,z,k,d,D,g,y)),l=l.concat(["L",b+z*r(D),c+k*x(D)]),l=l.concat(w(b,c,z,k,D,C,0,0))):d>t-p&&f<t-p&&(l=l.concat(["L",b+z*Math.cos(C)+g,c+k*Math.sin(C)+y]),l=l.concat(w(b,c,z,k,C,d,g,y)),l=l.concat(["L",b+z*Math.cos(d),c+k*Math.sin(d)]),l=l.concat(w(b,c,z,k,d,C,0,0)));l=l.concat(["L",b+z*Math.cos(C)+g,c+k*Math.sin(C)+y]);l=l.concat(w(b,c,z,k,C,A,g,y));l=l.concat(["Z"]);p=["M",b+m*n,c+u*q];p=p.concat(w(b, | ||
c,m,u,f,d,0,0));p=p.concat(["L",b+m*Math.cos(d)+g,c+u*Math.sin(d)+y]);p=p.concat(w(b,c,m,u,d,f,g,y));p=p.concat(["Z"]);n=["M",b+z*n,c+k*q,"L",b+z*n+g,c+k*q+y,"L",b+m*n+g,c+u*q+y,"L",b+m*n,c+u*q,"Z"];b=["M",b+z*a,c+k*h,"L",b+z*a+g,c+k*h+y,"L",b+m*a+g,c+u*h+y,"L",b+m*a,c+u*h,"Z"];h=Math.atan2(y,-g);c=Math.abs(d+h);a=Math.abs(f+h);f=Math.abs((f+d)/2+h);c=e(c);a=e(a);f=e(f);f*=1E5;d=1E5*a;c*=1E5;return{top:v,zTop:1E5*Math.PI+1,out:l,zOut:Math.max(f,d,c),inn:p,zInn:Math.max(f,d,c),side1:n,zSide1:.99*c, | ||
side2:b,zSide2:.99*d}}})(A);(function(d){function w(d,g){var c=d.plotLeft,b=d.plotWidth+c,e=d.plotTop,a=d.plotHeight+e,f=c+d.plotWidth/2,k=e+d.plotHeight/2,p=Number.MAX_VALUE,v=-Number.MAX_VALUE,q=Number.MAX_VALUE,l=-Number.MAX_VALUE,n,h=1;n=[{x:c,y:e,z:0},{x:c,y:e,z:g}];t([0,1],function(a){n.push({x:b,y:n[a].y,z:n[a].z})});t([0,1,2,3],function(e){n.push({x:n[e].x,y:a,z:n[e].z})});n=y(n,d,!1);t(n,function(a){p=Math.min(p,a.x);v=Math.max(v,a.x);q=Math.min(q,a.y);l=Math.max(l,a.y)});c>p&&(h=Math.min(h, | ||
1-Math.abs((c+f)/(p+f))%1));b<v&&(h=Math.min(h,(b-f)/(v-f)));e>q&&(h=0>q?Math.min(h,(e+k)/(-q+e+k)):Math.min(h,1-(e+k)/(q+k)%1));a<l&&(h=Math.min(h,Math.abs((a-k)/(l-k))));return h}var r=d.Chart,t=d.each,x=d.merge,y=d.perspective,m=d.pick,u=d.wrap;r.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};r.prototype.propsRequireDirtyBox.push("chart.options3d");r.prototype.propsRequireUpdateSeries.push("chart.options3d");d.wrap(d.Chart.prototype,"isInsidePlot", | ||
function(d){return this.is3d()||d.apply(this,[].slice.call(arguments,1))});var h=d.getOptions();x(!0,h,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:"default",frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}});u(r.prototype,"setClassName",function(d){d.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});d.wrap(d.Chart.prototype,"setChartSize",function(d){var g= | ||
this.options.chart.options3d;d.apply(this,[].slice.call(arguments,1));if(this.is3d()){var c=this.inverted,b=this.clipBox,e=this.margin;b[c?"y":"x"]=-(e[3]||0);b[c?"x":"y"]=-(e[0]||0);b[c?"height":"width"]=this.chartWidth+(e[3]||0)+(e[1]||0);b[c?"width":"height"]=this.chartHeight+(e[0]||0)+(e[2]||0);this.scale3d=1;!0===g.fitToPlot&&(this.scale3d=w(this,g.depth))}});u(r.prototype,"redraw",function(d){this.is3d()&&(this.isDirtyBox=!0,this.frame3d=this.get3dFrame());d.apply(this,[].slice.call(arguments, | ||
1))});u(r.prototype,"render",function(d){this.is3d()&&(this.frame3d=this.get3dFrame());d.apply(this,[].slice.call(arguments,1))});u(r.prototype,"renderSeries",function(d){var g=this.series.length;if(this.is3d())for(;g--;)d=this.series[g],d.translate(),d.render();else d.call(this)});u(r.prototype,"drawChartBox",function(v){if(this.is3d()){var g=this.renderer,c=this.options.chart.options3d,b=this.get3dFrame(),e=this.plotLeft,a=this.plotLeft+this.plotWidth,f=this.plotTop,k=this.plotTop+this.plotHeight, | ||
c=c.depth,p=e-(b.left.visible?b.left.size:0),h=a+(b.right.visible?b.right.size:0),q=f-(b.top.visible?b.top.size:0),l=k+(b.bottom.visible?b.bottom.size:0),n=0-(b.front.visible?b.front.size:0),m=c+(b.back.visible?b.back.size:0),u=this.hasRendered?"animate":"attr";this.frame3d=b;this.frameShapes||(this.frameShapes={bottom:g.polyhedron().add(),top:g.polyhedron().add(),left:g.polyhedron().add(),right:g.polyhedron().add(),back:g.polyhedron().add(),front:g.polyhedron().add()});this.frameShapes.bottom[u]({"class":"highcharts-3d-frame highcharts-3d-frame-bottom", | ||
zIndex:b.bottom.frontFacing?-1E3:1E3,faces:[{fill:d.color(b.bottom.color).brighten(.1).get(),vertexes:[{x:p,y:l,z:n},{x:h,y:l,z:n},{x:h,y:l,z:m},{x:p,y:l,z:m}],enabled:b.bottom.visible},{fill:d.color(b.bottom.color).brighten(.1).get(),vertexes:[{x:e,y:k,z:c},{x:a,y:k,z:c},{x:a,y:k,z:0},{x:e,y:k,z:0}],enabled:b.bottom.visible},{fill:d.color(b.bottom.color).brighten(-.1).get(),vertexes:[{x:p,y:l,z:n},{x:p,y:l,z:m},{x:e,y:k,z:c},{x:e,y:k,z:0}],enabled:b.bottom.visible&&!b.left.visible},{fill:d.color(b.bottom.color).brighten(-.1).get(), | ||
vertexes:[{x:h,y:l,z:m},{x:h,y:l,z:n},{x:a,y:k,z:0},{x:a,y:k,z:c}],enabled:b.bottom.visible&&!b.right.visible},{fill:d.color(b.bottom.color).get(),vertexes:[{x:h,y:l,z:n},{x:p,y:l,z:n},{x:e,y:k,z:0},{x:a,y:k,z:0}],enabled:b.bottom.visible&&!b.front.visible},{fill:d.color(b.bottom.color).get(),vertexes:[{x:p,y:l,z:m},{x:h,y:l,z:m},{x:a,y:k,z:c},{x:e,y:k,z:c}],enabled:b.bottom.visible&&!b.back.visible}]});this.frameShapes.top[u]({"class":"highcharts-3d-frame highcharts-3d-frame-top",zIndex:b.top.frontFacing? | ||
-1E3:1E3,faces:[{fill:d.color(b.top.color).brighten(.1).get(),vertexes:[{x:p,y:q,z:m},{x:h,y:q,z:m},{x:h,y:q,z:n},{x:p,y:q,z:n}],enabled:b.top.visible},{fill:d.color(b.top.color).brighten(.1).get(),vertexes:[{x:e,y:f,z:0},{x:a,y:f,z:0},{x:a,y:f,z:c},{x:e,y:f,z:c}],enabled:b.top.visible},{fill:d.color(b.top.color).brighten(-.1).get(),vertexes:[{x:p,y:q,z:m},{x:p,y:q,z:n},{x:e,y:f,z:0},{x:e,y:f,z:c}],enabled:b.top.visible&&!b.left.visible},{fill:d.color(b.top.color).brighten(-.1).get(),vertexes:[{x:h, | ||
y:q,z:n},{x:h,y:q,z:m},{x:a,y:f,z:c},{x:a,y:f,z:0}],enabled:b.top.visible&&!b.right.visible},{fill:d.color(b.top.color).get(),vertexes:[{x:p,y:q,z:n},{x:h,y:q,z:n},{x:a,y:f,z:0},{x:e,y:f,z:0}],enabled:b.top.visible&&!b.front.visible},{fill:d.color(b.top.color).get(),vertexes:[{x:h,y:q,z:m},{x:p,y:q,z:m},{x:e,y:f,z:c},{x:a,y:f,z:c}],enabled:b.top.visible&&!b.back.visible}]});this.frameShapes.left[u]({"class":"highcharts-3d-frame highcharts-3d-frame-left",zIndex:b.left.frontFacing?-1E3:1E3,faces:[{fill:d.color(b.left.color).brighten(.1).get(), | ||
vertexes:[{x:p,y:l,z:n},{x:e,y:k,z:0},{x:e,y:k,z:c},{x:p,y:l,z:m}],enabled:b.left.visible&&!b.bottom.visible},{fill:d.color(b.left.color).brighten(.1).get(),vertexes:[{x:p,y:q,z:m},{x:e,y:f,z:c},{x:e,y:f,z:0},{x:p,y:q,z:n}],enabled:b.left.visible&&!b.top.visible},{fill:d.color(b.left.color).brighten(-.1).get(),vertexes:[{x:p,y:l,z:m},{x:p,y:q,z:m},{x:p,y:q,z:n},{x:p,y:l,z:n}],enabled:b.left.visible},{fill:d.color(b.left.color).brighten(-.1).get(),vertexes:[{x:e,y:f,z:c},{x:e,y:k,z:c},{x:e,y:k,z:0}, | ||
{x:e,y:f,z:0}],enabled:b.left.visible},{fill:d.color(b.left.color).get(),vertexes:[{x:p,y:l,z:n},{x:p,y:q,z:n},{x:e,y:f,z:0},{x:e,y:k,z:0}],enabled:b.left.visible&&!b.front.visible},{fill:d.color(b.left.color).get(),vertexes:[{x:p,y:q,z:m},{x:p,y:l,z:m},{x:e,y:k,z:c},{x:e,y:f,z:c}],enabled:b.left.visible&&!b.back.visible}]});this.frameShapes.right[u]({"class":"highcharts-3d-frame highcharts-3d-frame-right",zIndex:b.right.frontFacing?-1E3:1E3,faces:[{fill:d.color(b.right.color).brighten(.1).get(), | ||
vertexes:[{x:h,y:l,z:m},{x:a,y:k,z:c},{x:a,y:k,z:0},{x:h,y:l,z:n}],enabled:b.right.visible&&!b.bottom.visible},{fill:d.color(b.right.color).brighten(.1).get(),vertexes:[{x:h,y:q,z:n},{x:a,y:f,z:0},{x:a,y:f,z:c},{x:h,y:q,z:m}],enabled:b.right.visible&&!b.top.visible},{fill:d.color(b.right.color).brighten(-.1).get(),vertexes:[{x:a,y:f,z:0},{x:a,y:k,z:0},{x:a,y:k,z:c},{x:a,y:f,z:c}],enabled:b.right.visible},{fill:d.color(b.right.color).brighten(-.1).get(),vertexes:[{x:h,y:l,z:n},{x:h,y:q,z:n},{x:h,y:q, | ||
z:m},{x:h,y:l,z:m}],enabled:b.right.visible},{fill:d.color(b.right.color).get(),vertexes:[{x:h,y:q,z:n},{x:h,y:l,z:n},{x:a,y:k,z:0},{x:a,y:f,z:0}],enabled:b.right.visible&&!b.front.visible},{fill:d.color(b.right.color).get(),vertexes:[{x:h,y:l,z:m},{x:h,y:q,z:m},{x:a,y:f,z:c},{x:a,y:k,z:c}],enabled:b.right.visible&&!b.back.visible}]});this.frameShapes.back[u]({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:b.back.frontFacing?-1E3:1E3,faces:[{fill:d.color(b.back.color).brighten(.1).get(), | ||
vertexes:[{x:h,y:l,z:m},{x:p,y:l,z:m},{x:e,y:k,z:c},{x:a,y:k,z:c}],enabled:b.back.visible&&!b.bottom.visible},{fill:d.color(b.back.color).brighten(.1).get(),vertexes:[{x:p,y:q,z:m},{x:h,y:q,z:m},{x:a,y:f,z:c},{x:e,y:f,z:c}],enabled:b.back.visible&&!b.top.visible},{fill:d.color(b.back.color).brighten(-.1).get(),vertexes:[{x:p,y:l,z:m},{x:p,y:q,z:m},{x:e,y:f,z:c},{x:e,y:k,z:c}],enabled:b.back.visible&&!b.left.visible},{fill:d.color(b.back.color).brighten(-.1).get(),vertexes:[{x:h,y:q,z:m},{x:h,y:l, | ||
z:m},{x:a,y:k,z:c},{x:a,y:f,z:c}],enabled:b.back.visible&&!b.right.visible},{fill:d.color(b.back.color).get(),vertexes:[{x:e,y:f,z:c},{x:a,y:f,z:c},{x:a,y:k,z:c},{x:e,y:k,z:c}],enabled:b.back.visible},{fill:d.color(b.back.color).get(),vertexes:[{x:p,y:l,z:m},{x:h,y:l,z:m},{x:h,y:q,z:m},{x:p,y:q,z:m}],enabled:b.back.visible}]});this.frameShapes.front[u]({"class":"highcharts-3d-frame highcharts-3d-frame-front",zIndex:b.front.frontFacing?-1E3:1E3,faces:[{fill:d.color(b.front.color).brighten(.1).get(), | ||
vertexes:[{x:p,y:l,z:n},{x:h,y:l,z:n},{x:a,y:k,z:0},{x:e,y:k,z:0}],enabled:b.front.visible&&!b.bottom.visible},{fill:d.color(b.front.color).brighten(.1).get(),vertexes:[{x:h,y:q,z:n},{x:p,y:q,z:n},{x:e,y:f,z:0},{x:a,y:f,z:0}],enabled:b.front.visible&&!b.top.visible},{fill:d.color(b.front.color).brighten(-.1).get(),vertexes:[{x:p,y:q,z:n},{x:p,y:l,z:n},{x:e,y:k,z:0},{x:e,y:f,z:0}],enabled:b.front.visible&&!b.left.visible},{fill:d.color(b.front.color).brighten(-.1).get(),vertexes:[{x:h,y:l,z:n},{x:h, | ||
y:q,z:n},{x:a,y:f,z:0},{x:a,y:k,z:0}],enabled:b.front.visible&&!b.right.visible},{fill:d.color(b.front.color).get(),vertexes:[{x:a,y:f,z:0},{x:e,y:f,z:0},{x:e,y:k,z:0},{x:a,y:k,z:0}],enabled:b.front.visible},{fill:d.color(b.front.color).get(),vertexes:[{x:h,y:l,z:n},{x:p,y:l,z:n},{x:p,y:q,z:n},{x:h,y:q,z:n}],enabled:b.front.visible}]})}return v.apply(this,[].slice.call(arguments,1))});r.prototype.retrieveStacks=function(d){var g=this.series,c={},b,e=1;t(this.series,function(a){b=m(a.options.stack, | ||
d?0:g.length-1-a.index);c[b]?c[b].series.push(a):(c[b]={series:[a],position:e},e++)});c.totalStacks=e+1;return c};r.prototype.get3dFrame=function(){var h=this,g=h.options.chart.options3d,c=g.frame,b=h.plotLeft,e=h.plotLeft+h.plotWidth,a=h.plotTop,f=h.plotTop+h.plotHeight,k=g.depth,p=d.shapeArea3d([{x:b,y:f,z:k},{x:e,y:f,z:k},{x:e,y:f,z:0},{x:b,y:f,z:0}],h),u=d.shapeArea3d([{x:b,y:a,z:0},{x:e,y:a,z:0},{x:e,y:a,z:k},{x:b,y:a,z:k}],h),q=d.shapeArea3d([{x:b,y:a,z:0},{x:b,y:a,z:k},{x:b,y:f,z:k},{x:b,y:f, | ||
z:0}],h),l=d.shapeArea3d([{x:e,y:a,z:k},{x:e,y:a,z:0},{x:e,y:f,z:0},{x:e,y:f,z:k}],h),n=d.shapeArea3d([{x:b,y:f,z:0},{x:e,y:f,z:0},{x:e,y:a,z:0},{x:b,y:a,z:0}],h),r=d.shapeArea3d([{x:b,y:a,z:k},{x:e,y:a,z:k},{x:e,y:f,z:k},{x:b,y:f,z:k}],h),x=!1,w=!1,A=!1,G=!1;t([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?w=!0:x=!0:a.opposite?G=!0:A=!0)});var E=function(a,e,b){for(var c=["size","color","visible"],d={},f=0;f<c.length;f++)for(var k=c[f],g=0;g<a.length;g++)if("object"===typeof a[g]){var h= | ||
a[g][k];if(void 0!==h&&null!==h){d[k]=h;break}}a=b;!0===d.visible||!1===d.visible?a=d.visible:"auto"===d.visible&&(a=0<=e);return{size:m(d.size,1),color:m(d.color,"none"),frontFacing:0<e,visible:a}},c={bottom:E([c.bottom,c.top,c],p,x),top:E([c.top,c.bottom,c],u,w),left:E([c.left,c.right,c.side,c],q,A),right:E([c.right,c.left,c.side,c],l,G),back:E([c.back,c.front,c],r,!0),front:E([c.front,c.back,c],n,!1)};"auto"===g.axisLabelPosition?(l=function(a,e){return a.visible!==e.visible||a.visible&&e.visible&& | ||
a.frontFacing!==e.frontFacing},g=[],l(c.left,c.front)&&g.push({y:(a+f)/2,x:b,z:0}),l(c.left,c.back)&&g.push({y:(a+f)/2,x:b,z:k}),l(c.right,c.front)&&g.push({y:(a+f)/2,x:e,z:0}),l(c.right,c.back)&&g.push({y:(a+f)/2,x:e,z:k}),p=[],l(c.bottom,c.front)&&p.push({x:(b+e)/2,y:f,z:0}),l(c.bottom,c.back)&&p.push({x:(b+e)/2,y:f,z:k}),u=[],l(c.top,c.front)&&u.push({x:(b+e)/2,y:a,z:0}),l(c.top,c.back)&&u.push({x:(b+e)/2,y:a,z:k}),q=[],l(c.bottom,c.left)&&q.push({z:(0+k)/2,y:f,x:b}),l(c.bottom,c.right)&&q.push({z:(0+ | ||
k)/2,y:f,x:e}),f=[],l(c.top,c.left)&&f.push({z:(0+k)/2,y:a,x:b}),l(c.top,c.right)&&f.push({z:(0+k)/2,y:a,x:e}),b=function(a,e,b){if(0===a.length)return null;if(1===a.length)return a[0];for(var c=0,d=y(a,h,!1),f=1;f<d.length;f++)b*d[f][e]>b*d[c][e]?c=f:b*d[f][e]===b*d[c][e]&&d[f].z<d[c].z&&(c=f);return a[c]},c.axes={y:{left:b(g,"x",-1),right:b(g,"x",1)},x:{top:b(u,"y",-1),bottom:b(p,"y",1)},z:{top:b(f,"y",-1),bottom:b(q,"y",1)}}):c.axes={y:{left:{x:b,z:0},right:{x:e,z:0}},x:{top:{y:a,z:0},bottom:{y:f, | ||
z:0}},z:{top:{x:A?e:b,y:a},bottom:{x:A?e:b,y:f}}};return c}})(A);(function(d){function w(e,a){if(e.chart.is3d()&&"colorAxis"!==e.coll){var b=e.chart,c=b.frame3d,d=b.plotLeft,g=b.plotWidth+d,m=b.plotTop,b=b.plotHeight+m,l=0,n=0;a=e.swapZ({x:a.x,y:a.y,z:0});if(e.isZAxis)if(e.opposite){if(null===c.axes.z.top)return{};n=a.y-m;a.x=c.axes.z.top.x;a.y=c.axes.z.top.y}else{if(null===c.axes.z.bottom)return{};n=a.y-b;a.x=c.axes.z.bottom.x;a.y=c.axes.z.bottom.y}else if(e.horiz)if(e.opposite){if(null===c.axes.x.top)return{}; | ||
n=a.y-m;a.y=c.axes.x.top.y;a.z=c.axes.x.top.z}else{if(null===c.axes.x.bottom)return{};n=a.y-b;a.y=c.axes.x.bottom.y;a.z=c.axes.x.bottom.z}else if(e.opposite){if(null===c.axes.y.right)return{};l=a.x-g;a.x=c.axes.y.right.x;a.z=c.axes.y.right.z}else{if(null===c.axes.y.left)return{};l=a.x-d;a.x=c.axes.y.left.x;a.z=c.axes.y.left.z}a=h([a],e.chart)[0];a.x+=l;a.y+=n}return a}var r,t=d.Axis,x=d.Chart,y=d.each,m=d.extend,u=d.merge,h=d.perspective,v=d.pick,g=d.splat,c=d.Tick,b=d.wrap;b(t.prototype,"setOptions", | ||
function(e,a){e.call(this,a);this.chart.is3d()&&"colorAxis"!==this.coll&&(e=this.options,e.tickWidth=v(e.tickWidth,0),e.gridLineWidth=v(e.gridLineWidth,1))});b(t.prototype,"getPlotLinePath",function(e){var a=e.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===a)return a;var b=this.chart,c=b.options.chart.options3d,c=this.isZAxis?b.plotWidth:c.depth,b=b.frame3d,a=[this.swapZ({x:a[1],y:a[2],z:0}),this.swapZ({x:a[1],y:a[2],z:c}),this.swapZ({x:a[4],y:a[5],z:0}), | ||
this.swapZ({x:a[4],y:a[5],z:c})],c=[];this.horiz?(this.isZAxis?(b.left.visible&&c.push(a[0],a[2]),b.right.visible&&c.push(a[1],a[3])):(b.front.visible&&c.push(a[0],a[2]),b.back.visible&&c.push(a[1],a[3])),b.top.visible&&c.push(a[0],a[1]),b.bottom.visible&&c.push(a[2],a[3])):(b.front.visible&&c.push(a[0],a[2]),b.back.visible&&c.push(a[1],a[3]),b.left.visible&&c.push(a[0],a[1]),b.right.visible&&c.push(a[2],a[3]));c=h(c,this.chart,!1);return this.chart.renderer.toLineSegments(c)});b(t.prototype,"getLinePath", | ||
function(b){return this.chart.is3d()?[]:b.apply(this,[].slice.call(arguments,1))});b(t.prototype,"getPlotBandPath",function(b){if(!this.chart.is3d()||"colorAxis"===this.coll)return b.apply(this,[].slice.call(arguments,1));var a=arguments,e=a[2],c=[],a=this.getPlotLinePath(a[1]),e=this.getPlotLinePath(e);if(a&&e)for(var d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],"L",e[d+4],e[d+5],"L",e[d+1],e[d+2],"Z");return c});b(c.prototype,"getMarkPath",function(b){var a=b.apply(this,[].slice.call(arguments, | ||
1)),a=[w(this.axis,{x:a[1],y:a[2],z:0}),w(this.axis,{x:a[4],y:a[5],z:0})];return this.axis.chart.renderer.toLineSegments(a)});b(c.prototype,"getLabelPosition",function(b){var a=b.apply(this,[].slice.call(arguments,1));return w(this.axis,a)});d.wrap(t.prototype,"getTitlePosition",function(b){var a=b.apply(this,[].slice.call(arguments,1));return w(this,a)});b(t.prototype,"drawCrosshair",function(b){var a=arguments;this.chart.is3d()&&a[2]&&(a[2]={plotX:a[2].plotXold||a[2].plotX,plotY:a[2].plotYold|| | ||
a[2].plotY});b.apply(this,[].slice.call(a,1))});b(t.prototype,"destroy",function(b){y(["backFrame","bottomFrame","sideFrame"],function(a){this[a]&&(this[a]=this[a].destroy())},this);b.apply(this,[].slice.call(arguments,1))});t.prototype.swapZ=function(b,a){return this.isZAxis?(a=a?0:this.chart.plotLeft,{x:a+b.z,y:b.y,z:b.x-a}):b};r=d.ZAxis=function(){this.init.apply(this,arguments)};m(r.prototype,t.prototype);m(r.prototype,{isZAxis:!0,setOptions:function(b){b=u({offset:0,lineWidth:0},b);t.prototype.setOptions.call(this, | ||
b);this.coll="zAxis"},setAxisSize:function(){t.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var b=this,a=b.chart;b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.ignoreMinPadding=b.ignoreMaxPadding=null;b.buildStacks&&b.buildStacks();y(b.series,function(c){if(c.visible||!a.options.chart.ignoreHiddenSeries)b.hasVisibleSeries=!0,c=c.zData,c.length&&(b.dataMin=Math.min(v(b.dataMin, | ||
c[0]),Math.min.apply(null,c)),b.dataMax=Math.max(v(b.dataMax,c[0]),Math.max.apply(null,c)))})}});b(x.prototype,"getAxes",function(b){var a=this,c=this.options,c=c.zAxis=g(c.zAxis||{});b.call(this);a.is3d()&&(this.zAxis=[],y(c,function(b,c){b.index=c;b.isX=!0;(new r(a,b)).setScale()}))})})(A);(function(d){function w(d){var g=d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&(g.stroke=this.options.edgeColor||g.fill,g["stroke-width"]=x(this.options.edgeWidth,1));return g}var r=d.each,t=d.perspective, | ||
x=d.pick,y=d.Series,m=d.seriesTypes,u=d.inArray,h=d.svg;d=d.wrap;d(m.column.prototype,"translate",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var g=this,c=g.chart,b=g.options,e=b.depth||25,a=g.borderWidth%2?.5:0;if(c.inverted&&!g.yAxis.reversed||!c.inverted&&g.yAxis.reversed)a*=-1;var f=(b.stacking?b.stack||0:g.index)*(e+(b.groupZPadding||1));!1!==b.grouping&&(f=0);f+=b.groupZPadding||1;r(g.data,function(b){if(null!==b.y){var d=b.shapeArgs,h=b.tooltipPos,k;r([["x","width"], | ||
["y","height"]],function(b){k=d[b[0]]-a;if(0>k+d[b[1]]||k>g[b[0]+"Axis"].len)for(var c in d)d[c]=0;0>k&&(d[b[1]]+=d[b[0]],d[b[0]]=0);k+d[b[1]]>g[b[0]+"Axis"].len&&(d[b[1]]=g[b[0]+"Axis"].len-d[b[0]])});b.shapeType="cuboid";d.z=f;d.depth=e;d.insidePlotArea=!0;h=t([{x:h[0],y:h[1],z:f}],c,!0)[0];b.tooltipPos=[h.x,h.y]}});g.z=f}});d(m.column.prototype,"animate",function(d){if(this.chart.is3d()){var g=arguments[1],c=this.yAxis,b=this,e=this.yAxis.reversed;h&&(g?r(b.data,function(a){null!==a.y&&(a.height= | ||
a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,e||(a.shapeArgs.y=a.stackY?a.plotY+c.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(r(b.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,b.options.animation))}),this.drawDataLabels(),b.animate=null))}else d.apply(this,[].slice.call(arguments,1))});d(m.column.prototype,"plotGroup",function(d,g,c,b,e,a){this.chart.is3d()&&a&&!this[g]&&(this[g]=a,a.attr(this.getPlotBox()), | ||
this[g].survive=!0);return d.apply(this,Array.prototype.slice.call(arguments,1))});d(m.column.prototype,"setVisible",function(d,g){var c=this,b;c.chart.is3d()&&r(c.data,function(e){b=(e.visible=e.options.visible=g=void 0===g?!e.visible:g)?"visible":"hidden";c.options.data[u(e,c.data)]=e.options;e.graphic&&e.graphic.attr({visibility:b})});d.apply(this,Array.prototype.slice.call(arguments,1))});d(m.column.prototype,"init",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var g= | ||
this.options,c=g.grouping,b=g.stacking,e=x(this.yAxis.options.reversedStacks,!0),a=0;if(void 0===c||c){c=this.chart.retrieveStacks(b);a=g.stack||0;for(b=0;b<c[a].series.length&&c[a].series[b]!==this;b++);a=10*(c.totalStacks-c[a].position)+(e?b:-b);this.xAxis.reversed||(a=10*c.totalStacks-a)}g.zIndex=a}});d(m.column.prototype,"pointAttribs",w);m.columnrange&&(d(m.columnrange.prototype,"pointAttribs",w),m.columnrange.prototype.plotGroup=m.column.prototype.plotGroup,m.columnrange.prototype.setVisible= | ||
m.column.prototype.setVisible);d(y.prototype,"alignDataLabel",function(d){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var g=arguments[4],c={x:g.x,y:g.y,z:this.z},c=t([c],this.chart,!0)[0];g.x=c.x;g.y=c.y}d.apply(this,[].slice.call(arguments,1))})})(A);(function(d){var w=d.deg2rad,r=d.each,t=d.pick,x=d.seriesTypes,y=d.svg;d=d.wrap;d(x.pie.prototype,"translate",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var m=this,h=m.options,v=h.depth||0, | ||
g=m.chart.options.chart.options3d,c=g.alpha,b=g.beta,e=h.stacking?(h.stack||0)*v:m._i*v,e=e+v/2;!1!==h.grouping&&(e=0);r(m.data,function(a){var d=a.shapeArgs;a.shapeType="arc3d";d.z=e;d.depth=.75*v;d.alpha=c;d.beta=b;d.center=m.center;d=(d.end+d.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(d)*h.slicedOffset*Math.cos(c*w)),translateY:Math.round(Math.sin(d)*h.slicedOffset*Math.cos(c*w))}})}});d(x.pie.prototype.pointClass.prototype,"haloPath",function(d){var m=arguments;return this.series.chart.is3d()? | ||
[]:d.call(this,m[1])});d(x.pie.prototype,"pointAttribs",function(d,u,h){d=d.call(this,u,h);h=this.options;this.chart.is3d()&&(d.stroke=h.edgeColor||u.color||this.color,d["stroke-width"]=t(h.edgeWidth,1));return d});d(x.pie.prototype,"drawPoints",function(d){d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&r(this.points,function(d){var h=d.graphic;if(h)h[d.y&&d.visible?"show":"hide"]()})});d(x.pie.prototype,"drawDataLabels",function(d){if(this.chart.is3d()){var m=this.chart.options.chart.options3d; | ||
r(this.data,function(d){var h=d.shapeArgs,g=h.r,c=(h.start+h.end)/2,b=d.labelPos,e=-g*(1-Math.cos((h.alpha||m.alpha)*w))*Math.sin(c),a=g*(Math.cos((h.beta||m.beta)*w)-1)*Math.cos(c);r([0,2,4],function(c){b[c]+=a;b[c+1]+=e})})}d.apply(this,[].slice.call(arguments,1))});d(x.pie.prototype,"addPoint",function(d){d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});d(x.pie.prototype,"animate",function(d){if(this.chart.is3d()){var m=arguments[1],h=this.options.animation, | ||
r=this.center,g=this.group,c=this.markerGroup;y&&(!0===h&&(h={}),m?(g.oldtranslateX=g.translateX,g.oldtranslateY=g.translateY,m={translateX:r[0],translateY:r[1],scaleX:.001,scaleY:.001},g.attr(m),c&&(c.attrSetters=g.attrSetters,c.attr(m))):(m={translateX:g.oldtranslateX,translateY:g.oldtranslateY,scaleX:1,scaleY:1},g.animate(m,h),c&&c.animate(m,h),this.animate=null))}else d.apply(this,[].slice.call(arguments,1))})})(A);(function(d){var w=d.perspective,r=d.pick,t=d.Point,x=d.seriesTypes,y=d.wrap;y(x.scatter.prototype, | ||
"translate",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var m=this.chart,h=r(this.zAxis,m.options.zAxis[0]),t=[],g,c,b;for(b=0;b<this.data.length;b++)g=this.data[b],c=h.isLog&&h.val2lin?h.val2lin(g.z):g.z,g.plotZ=h.translate(c),g.isInside=g.isInside?c>=h.min&&c<=h.max:!1,t.push({x:g.plotX,y:g.plotY,z:g.plotZ});m=w(t,m,!0);for(b=0;b<this.data.length;b++)g=this.data[b],h=m[b],g.plotXold=g.plotX,g.plotYold=g.plotY,g.plotZold=g.plotZ,g.plotX=h.x,g.plotY=h.y,g.plotZ=h.z}}); | ||
y(x.scatter.prototype,"init",function(d,r,h){r.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);d=d.apply(this,[r,h]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e"); | ||
return d});y(x.scatter.prototype,"pointAttribs",function(m,r){var h=m.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&r&&(h.zIndex=d.pointCameraDistance(r,this.chart));return h});y(t.prototype,"applyOptions",function(d){var m=d.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===m.z&&(m.z=0);return m})})(A);(function(d){var w=d.Axis,r=d.SVGRenderer,t=d.VMLRenderer;t&&(d.setOptions({animate:!1}),t.prototype.face3d=r.prototype.face3d,t.prototype.polyhedron=r.prototype.polyhedron, | ||
t.prototype.cuboid=r.prototype.cuboid,t.prototype.cuboidPath=r.prototype.cuboidPath,t.prototype.toLinePath=r.prototype.toLinePath,t.prototype.toLineSegments=r.prototype.toLineSegments,t.prototype.createElement3D=r.prototype.createElement3D,t.prototype.arc3d=function(d){d=r.prototype.arc3d.call(this,d);d.css({zIndex:d.zIndex});return d},d.VMLRenderer.prototype.arc3dPath=d.SVGRenderer.prototype.arc3dPath,d.wrap(w.prototype,"render",function(d){d.apply(this,[].slice.call(arguments,1));this.sideFrame&& | ||
(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))})(A)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,58 +8,58 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,v=a.each,p=a.extend,m=a.merge,h=a.splat;p(r.prototype,{coll:"pane",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer; | ||
this.group||(this.group=d.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=h(b),a=Math.max(b.length,this.background.length||0),d=0;d<a;d++)b[d]&&this.axis?this.renderBackground(m(this.defaultBackgroundOptions,b[d]),d):this.background[d]&&(this.background[d]=this.background[d].destroy(),this.background.splice(d,1))},renderBackground:function(a,b){var d="animate";this.background[b]||(this.background[b]=this.chart.renderer.path().add(this.group),d="attr");this.background[b][d]({d:this.axis.getPlotBandPath(a.from, | ||
(function(v){"object"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:"pane",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer; | ||
this.group||(this.group=d.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;d<a;d++)b[d]&&this.axis?this.renderBackground(m(this.defaultBackgroundOptions,b[d]),d):this.background[d]&&(this.background[d]=this.background[d].destroy(),this.background.splice(d,1))},renderBackground:function(a,b){var d="animate";this.background[b]||(this.background[b]=this.chart.renderer.path().add(this.group),d="attr");this.background[b][d]({d:this.axis.getPlotBandPath(a.from, | ||
a.to,a)}).attr({fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.borderWidth,"class":"highcharts-pane "+(a.className||"")})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(a){this.center=(a||this.axis||{}).center= | ||
t.getCenter.call(this)},update:function(a,b){m(!0,this.options,a);this.setOptions(this.options);this.render();v(this.chart.axes,function(d){d.pane===this&&(d.pane=null,d.update({},b))},this)}});a.Pane=r})(x);(function(a){var r=a.each,t=a.extend,v=a.map,p=a.merge,m=a.noop,h=a.pick,k=a.pInt,b=a.wrap,d,e,g=a.Axis.prototype;a=a.Tick.prototype;d={getOffset:m,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:m,setCategories:m,setTitle:m};e={defaultRadialGaugeOptions:{labels:{align:"center", | ||
t.getCenter.call(this)},update:function(a,b){m(!0,this.options,a);this.setOptions(this.options);this.render();w(this.chart.axes,function(d){d.pane===this&&(d.pane=null,d.update({},b))},this)}});a.Pane=r})(v);(function(a){var r=a.each,t=a.extend,w=a.map,p=a.merge,m=a.noop,f=a.pick,h=a.pInt,b=a.wrap,d,e,k=a.Axis.prototype;a=a.Tick.prototype;d={getOffset:m,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:m,setCategories:m,setTitle:m};e={defaultRadialGaugeOptions:{labels:{align:"center", | ||
x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(c){c= | ||
this.options=p(this.defaultOptions,this.defaultRadialOptions,c);c.plotBands||(c.plotBands=[])},getOffset:function(){g.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(c,b){c=this.center;var d=this.chart,f=h(b,c[2]/2-this.offset);this.isCircular||void 0!==b?b=this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],f,f,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(b=this.postTranslate(this.angleRad,f),b=["M",c[0]+d.plotLeft,c[1]+d.plotTop,"L",b.x, | ||
b.y]);return b},setAxisTranslation:function(){g.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===h(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange|| | ||
0},setAxisSize:function(){g.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*h(this.sector,1)/2)},getPosition:function(c,b){return this.postTranslate(this.isCircular?this.translate(c):this.angleRad,h(this.isCircular?b:this.translate(c),this.center[2]/2)-this.offset)},postTranslate:function(c,b){var d=this.chart,f=this.center;c=this.startAngleRad+c;return{x:d.plotLeft+ | ||
f[0]+Math.cos(c)*b,y:d.plotTop+f[1]+Math.sin(c)*b}},getPlotBandPath:function(c,b,d){var f=this.center,n=this.startAngleRad,a=f[2]/2,e=[h(d.outerRadius,"100%"),d.innerRadius,h(d.thickness,10)],g=Math.min(this.offset,0),u=/%$/,m,p=this.isCircular;"polygon"===this.options.gridLineInterpolation?f=this.getPlotLinePath(c).concat(this.getPlotLinePath(b,!0)):(c=Math.max(c,this.min),b=Math.min(b,this.max),p||(e[0]=this.translate(c),e[1]=this.translate(b)),e=v(e,function(b){u.test(b)&&(b=k(b,10)*a/100);return b}), | ||
"circle"!==d.shape&&p?(c=n+this.translate(c),b=n+this.translate(b)):(c=-Math.PI/2,b=1.5*Math.PI,m=!0),e[0]-=g,e[2]-=g,f=this.chart.renderer.symbols.arc(this.left+f[0],this.top+f[1],e[0],e[0],{start:Math.min(c,b),end:Math.max(c,b),innerR:h(e[1],e[0]-e[2]),open:m}));return f},getPlotLinePath:function(b,d){var c=this,f=c.center,e=c.chart,a=c.getPosition(b),g,k,h;c.isCircular?h=["M",f[0]+e.plotLeft,f[1]+e.plotTop,"L",a.x,a.y]:"circle"===c.options.gridLineInterpolation?(b=c.translate(b))&&(h=c.getLinePath(0, | ||
b)):(r(e.xAxis,function(b){b.pane===c.pane&&(g=b)}),h=[],b=c.translate(b),f=g.tickPositions,g.autoConnect&&(f=f.concat([f[0]])),d&&(f=[].concat(f).reverse()),r(f,function(c,d){k=g.getPosition(c,b);h.push(d?"L":"M",k.x,k.y)}));return h},getTitlePosition:function(){var b=this.center,d=this.chart,e=this.options.title;return{x:d.plotLeft+b[0]+(e.x||0),y:d.plotTop+b[1]-{high:.5,middle:.25,low:0}[e.align]*b[2]+(e.y||0)}}};b(g,"init",function(b,f,a){var c=f.angular,n=f.polar,q=a.isX,g=c&&q,k,m=f.options, | ||
r=this.pane=f.pane[a.pane||0],y=r.options;if(c){if(t(this,g?d:e),k=!q)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else n&&(t(this,e),this.defaultRadialOptions=(k=q)?this.defaultRadialXOptions:p(this.defaultYAxisOptions,this.defaultRadialYOptions));c||n?(this.isRadial=!0,f.inverted=!1,m.chart.zoomType=null):this.isRadial=!1;k&&(r.axis=this);b.call(this,f,a);g||!c&&!n||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(y.startAngle-90)*Math.PI/180,this.endAngleRad= | ||
(h(y.endAngle,y.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=k)});b(g,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});b(a,"getPosition",function(b,d,e,a,l){var c=this.axis;return c.getPosition?c.getPosition(e):b.call(this,d,e,a,l)});b(a,"getLabelPosition",function(b,d,e,a,l,g,k,m,u){var c=this.axis,f=g.y,n=20,q=g.align,w=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360;c.isRadial?(b=c.getPosition(this.pos, | ||
c.center[2]/2+h(g.distance,-25)),"auto"===g.rotation?a.attr({rotation:w}):null===f&&(f=c.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===q&&(c.isCircular?(this.label.getBBox().width>c.len*c.tickInterval/(c.max-c.min)&&(n=0),q=w>n&&w<180-n?"left":w>180+n&&w<360-n?"right":"center"):q="center",a.attr({align:q})),b.x+=g.x,b.y+=f):b=b.call(this,d,e,a,l,g,k,m,u);return b});b(a,"getMarkPath",function(b,d,e,a,l,g,k){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/ | ||
2+a),d=["M",d,e,"L",b.x,b.y]):d=b.call(this,d,e,a,l,g,k);return d})})(x);(function(a){var r=a.each,t=a.noop,v=a.pick,p=a.Series,m=a.seriesType,h=a.seriesTypes;m("arearange","area",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{series.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}}, | ||
{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;h.area.prototype.translate.apply(a);r(a.points,function(e){var g=e.low,c=e.high,f=e.plotY;null===c||null===g?e.isNull=!0: | ||
(e.plotLow=f,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,g=h.area.prototype.getGraphPath,c,f,n;n=this.options;var w=this.chart.polar&&!1!==n.connectEnds,l=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||w||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),f={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom, | ||
plotX:v(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(f),b.push(f),c.isNull||w||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=g.call(this,a);l&&(!0===l&&(l="left"),n.step={left:"right",center:"center",right:"left"}[l]);b=g.call(this,b);d=g.call(this,d);n.step=l;n=[].concat(a,b);this.chart.polar||"M"!==d[0]||(d[0]="L");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},drawDataLabels:function(){var a= | ||
this.data,b=a.length,d,e=[],g=p.prototype,c=this.options.dataLabels,f=c.align,n=c.verticalAlign,w=c.inside,l,q,h=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=w?l.plotHigh<l.plotLow:l.plotHigh>l.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,h?f||(c.align=q?"right":"left"):n||(c.verticalAlign=q?"top":"bottom"),c.x=c.xHigh,c.y=c.yHigh;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments);for(d=b;d--;)if(l= | ||
a[d])q=w?l.plotHigh<l.plotLow:l.plotHigh>l.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,h?f||(c.align=q?"left":"right"):n||(c.verticalAlign=q?"bottom":"top"),c.x=c.xLow,c.y=c.yLow;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments)}c.align=f;c.verticalAlign=n},alignDataLabel:function(){h.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(x);(function(a){var r=a.seriesType;r("areasplinerange","arearange", | ||
null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(x);(function(a){var r=a.defaultPlotOptions,t=a.each,v=a.merge,p=a.noop,m=a.pick,h=a.seriesType,k=a.seriesTypes.column.prototype;h("columnrange","arearange",v(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,g=a.startAngleRad,c,f=b.chart,n=b.xAxis.isRadial,w;k.translate.apply(b);t(b.points,function(e){var l=e.shapeArgs,h=b.options.minPointLength,k,u;e.plotHigh=w=d.translate(e.high, | ||
0,1,0,1);e.plotLow=e.plotY;u=w;k=m(e.rectPlotY,e.plotY)-w;Math.abs(k)<h?(h-=k,k+=h,u-=h/2):0>k&&(k*=-1,u-=k);n?(c=e.barX+g,e.shapeType="path",e.shapeArgs={d:b.polarArc(u+k,u,c,c+e.pointWidth)}):(l.height=k,l.y=u,e.tooltipPos=f.inverted?[d.len+d.pos-f.plotLeft-u-k/2,a.len+a.pos-f.plotTop-l.x-l.width/2,k]:[a.left-f.plotLeft+l.x+l.width/2,d.pos-f.plotTop+u+k/2,k])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:p,crispCol:k.crispCol,drawPoints:k.drawPoints,drawTracker:k.drawTracker, | ||
getColumnMetrics:k.getColumnMetrics,animate:function(){return k.animate.apply(this,arguments)},polarArc:function(){return k.polarArc.apply(this,arguments)},pointAttribs:k.pointAttribs})})(x);(function(a){var r=a.each,t=a.isNumber,v=a.merge,p=a.pick,m=a.pInt,h=a.Series,k=a.seriesType,b=a.TrackerMixin;k("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}, | ||
{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var b=this.yAxis,a=this.options,g=b.center;this.generatePoints();r(this.points,function(c){var d=v(a.dial,c.dial),e=m(p(d.radius,80))*g[2]/200,w=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,h=d.topWidth||1,k=a.overshoot,u=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(k)?(k=k/180*Math.PI,u=Math.max(b.startAngleRad- | ||
k,Math.min(b.endAngleRad+k,u))):!1===a.wrap&&(u=Math.max(b.startAngleRad,Math.min(b.endAngleRad,u)));u=180*u/Math.PI;c.shapeType="path";c.shapeArgs={d:d.path||["M",-l,-q/2,"L",w,-q/2,e,-h/2,e,h/2,w,q/2,-l,q/2,"z"],translateX:g[0],translateY:g[1],rotation:u};c.plotX=g[0];c.plotY=g[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,g=b.pivot,c=b.options,f=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,f=e.d,g=v(c.dial,a.dial);d?(d.animate(e),e.d=f):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation, | ||
zIndex:1}).addClass("highcharts-dial").add(b.group),a.graphic.attr({stroke:g.borderColor||"none","stroke-width":g.borderWidth||0,fill:g.backgroundColor||"#000000"}))});g?g.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(f.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(b.group),b.pivot.attr({"stroke-width":f.borderWidth||0,stroke:f.borderColor||"#cccccc",fill:f.backgroundColor||"#000000"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c= | ||
b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);h.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){h.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint}, | ||
{setState:function(b){this.state=b}})})(x);(function(a){var r=a.each,t=a.noop,v=a.pick,p=a.seriesType,m=a.seriesTypes;p("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eMaximum: {point.high}\x3cbr/\x3eUpper quartile: {point.q3}\x3cbr/\x3eMedian: {point.median}\x3cbr/\x3eLower quartile: {point.q1}\x3cbr/\x3eMinimum: {point.low}\x3cbr/\x3e'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1, | ||
medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttribs:function(a){var k=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||k.fillColor||b,stroke:k.lineColor||b,"stroke-width":k.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,k=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(k, | ||
function(d){null!==b[d]&&(b[d+"Plot"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,k=a.options,b=a.chart.renderer,d,e,g,c,f,n,w=0,l,q,m,p,u=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(h){var z=h.graphic,r=z?"animate":"attr",I=h.shapeArgs,x={},C={},G={},H=h.color||a.color;void 0!==h.plotY&&(l=I.width,q=Math.floor(I.x),m=q+l,p=Math.round(l/2),d=Math.floor(u?h.q1Plot:h.lowPlot),e=Math.floor(u?h.q3Plot:h.lowPlot),g=Math.floor(h.highPlot),c=Math.floor(h.lowPlot), | ||
z||(h.graphic=z=b.g("point").add(a.group),h.stem=b.path().addClass("highcharts-boxplot-stem").add(z),y&&(h.whiskers=b.path().addClass("highcharts-boxplot-whisker").add(z)),u&&(h.box=b.path(void 0).addClass("highcharts-boxplot-box").add(z)),h.medianShape=b.path(void 0).addClass("highcharts-boxplot-median").add(z)),x.stroke=h.stemColor||k.stemColor||H,x["stroke-width"]=v(h.stemWidth,k.stemWidth,k.lineWidth),x.dashstyle=h.stemDashStyle||k.stemDashStyle,h.stem.attr(x),y&&(C.stroke=h.whiskerColor||k.whiskerColor|| | ||
H,C["stroke-width"]=v(h.whiskerWidth,k.whiskerWidth,k.lineWidth),h.whiskers.attr(C)),u&&(z=a.pointAttribs(h),h.box.attr(z)),G.stroke=h.medianColor||k.medianColor||H,G["stroke-width"]=v(h.medianWidth,k.medianWidth,k.lineWidth),h.medianShape.attr(G),n=h.stem.strokeWidth()%2/2,w=q+p+n,h.stem[r]({d:["M",w,e,"L",w,g,"M",w,d,"L",w,c]}),u&&(n=h.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,h.box[r]({d:["M",q,e,"L",q,d,"L",m,d,"L",m,e,"L",q,e,"z"]})),y&&(n=h.whiskers.strokeWidth()%2/ | ||
2,g+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,h.whiskers[r]({d:["M",w-t,g,"L",w+t,g,"M",w-t,c,"L",w+t,c]})),f=Math.round(h.medianPlot),n=h.medianShape.strokeWidth()%2/2,f+=n,h.medianShape[r]({d:["M",q,f,"L",m,f]}))})},setStackedPoints:t})})(x);(function(a){var r=a.each,t=a.noop,v=a.seriesType,p=a.seriesTypes;v("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'}, | ||
whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(h){h.y=h[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(x);(function(a){var r=a.correctFloat,t=a.isNumber,v=a.pick,p=a.Point,m=a.Series, | ||
h=a.seriesType,k=a.seriesTypes;h("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var b=this.options,a=this.yAxis,e,g,c,f,n,h,l,q,m,p,u=v(b.minPointLength,5),t=u/2,y=b.threshold,x=b.stacking,A;k.column.prototype.translate.apply(this);q=m=y;g=this.points;e=0;for(b=g.length;e<b;e++)c=g[e],l=this.processedYData[e],f=c.shapeArgs,n=x&&a.stacks[(this.negStacks&&l<y?"-": | ||
"")+this.stackKey],A=this.getStackIndicator(A,c.x,this.index),p=n?n[c.x].points[A.key]:[0,l],c.isSum?c.y=r(l):c.isIntermediateSum&&(c.y=r(l-m)),h=Math.max(q,q+c.y)+p[0],f.y=a.translate(h,0,1,0,1),c.isSum?(f.y=a.translate(p[1],0,1,0,1),f.height=Math.min(a.translate(p[0],0,1,0,1),a.len)-f.y):c.isIntermediateSum?(f.y=a.translate(p[1],0,1,0,1),f.height=Math.min(a.translate(m,0,1,0,1),a.len)-f.y,m=p[1]):(f.height=0<l?a.translate(q,0,1,0,1)-f.y:a.translate(q,0,1,0,1)-a.translate(q-l,0,1,0,1),q+=n&&n[c.x]? | ||
n[c.x].total:l),0>f.height&&(f.y+=f.height,f.height*=-1),c.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),c.yBottom=f.y+f.height,f.height<=u&&!c.isNull?(f.height=u,f.y-=t,c.plotY=f.y,c.minPointLengthOffset=0>c.y?-t:t):c.minPointLengthOffset=0,f=c.plotY+(c.negative?f.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-f:c.tooltipPos[1]=f},processData:function(b){var a=this.yData,e=this.options.data,g,c=a.length,f,n,h,l,q,k;n=f=h=l=this.options.threshold|| | ||
0;for(k=0;k<c;k++)q=a[k],g=e&&e[k]?e[k]:{},"sum"===q||g.isSum?a[k]=r(n):"intermediateSum"===q||g.isIntermediateSum?a[k]=r(f):(n+=q,f+=q),h=Math.min(n,h),l=Math.max(n,l);m.prototype.processData.call(this,b);this.options.stacking||(this.dataMin=h,this.dataMax=l)},toYData:function(b){return b.isSum?0===b.x?null:"sum":b.isIntermediateSum?0===b.x?null:"intermediateSum":b.y},pointAttribs:function(b,a){var d=this.options.upColor;d&&!b.options.color&&(b.color=0<b.y?d:null);b=k.column.prototype.pointAttribs.call(this, | ||
b,a);delete b.dashstyle;return b},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var b=this.data,a=b.length,e=this.graph.strokeWidth()+this.borderWidth,e=Math.round(e)%2/2,g=this.yAxis.reversed,c=[],f,n,h;for(h=1;h<a;h++){n=b[h].shapeArgs;f=b[h-1].shapeArgs;n=["M",f.x+f.width,f.y+b[h-1].minPointLengthOffset+e,"L",n.x,f.y+b[h-1].minPointLengthOffset+e];if(0>b[h-1].y&&!g||0<b[h-1].y&&g)n[2]+=f.height,n[5]+=f.height;c=c.concat(n)}return c},drawGraph:function(){m.prototype.drawGraph.call(this); | ||
this.options=p(this.defaultOptions,this.defaultRadialOptions,c);c.plotBands||(c.plotBands=[])},getOffset:function(){k.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(c,b){c=this.center;var d=this.chart,g=f(b,c[2]/2-this.offset);this.isCircular||void 0!==b?b=this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],g,g,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(b=this.postTranslate(this.angleRad,g),b=["M",c[0]+d.plotLeft,c[1]+d.plotTop,"L",b.x, | ||
b.y]);return b},setAxisTranslation:function(){k.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===f(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange|| | ||
0},setAxisSize:function(){k.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*f(this.sector,1)/2)},getPosition:function(c,b){return this.postTranslate(this.isCircular?this.translate(c):this.angleRad,f(this.isCircular?b:this.translate(c),this.center[2]/2)-this.offset)},postTranslate:function(c,b){var d=this.chart,g=this.center;c=this.startAngleRad+c;return{x:d.plotLeft+ | ||
g[0]+Math.cos(c)*b,y:d.plotTop+g[1]+Math.sin(c)*b}},getPlotBandPath:function(c,b,d){var g=this.center,n=this.startAngleRad,a=g[2]/2,e=[f(d.outerRadius,"100%"),d.innerRadius,f(d.thickness,10)],k=Math.min(this.offset,0),z=/%$/,m,p=this.isCircular;"polygon"===this.options.gridLineInterpolation?g=this.getPlotLinePath(c).concat(this.getPlotLinePath(b,!0)):(c=Math.max(c,this.min),b=Math.min(b,this.max),p||(e[0]=this.translate(c),e[1]=this.translate(b)),e=w(e,function(b){z.test(b)&&(b=h(b,10)*a/100);return b}), | ||
"circle"!==d.shape&&p?(c=n+this.translate(c),b=n+this.translate(b)):(c=-Math.PI/2,b=1.5*Math.PI,m=!0),e[0]-=k,e[2]-=k,g=this.chart.renderer.symbols.arc(this.left+g[0],this.top+g[1],e[0],e[0],{start:Math.min(c,b),end:Math.max(c,b),innerR:f(e[1],e[0]-e[2]),open:m}));return g},getPlotLinePath:function(b,d){var c=this,g=c.center,e=c.chart,a=c.getPosition(b),k,h,f;c.isCircular?f=["M",g[0]+e.plotLeft,g[1]+e.plotTop,"L",a.x,a.y]:"circle"===c.options.gridLineInterpolation?(b=c.translate(b))&&(f=c.getLinePath(0, | ||
b)):(r(e.xAxis,function(b){b.pane===c.pane&&(k=b)}),f=[],b=c.translate(b),g=k.tickPositions,k.autoConnect&&(g=g.concat([g[0]])),d&&(g=[].concat(g).reverse()),r(g,function(c,d){h=k.getPosition(c,b);f.push(d?"L":"M",h.x,h.y)}));return f},getTitlePosition:function(){var b=this.center,d=this.chart,e=this.options.title;return{x:d.plotLeft+b[0]+(e.x||0),y:d.plotTop+b[1]-{high:.5,middle:.25,low:0}[e.align]*b[2]+(e.y||0)}}};b(k,"init",function(b,g,a){var c=g.angular,n=g.polar,q=a.isX,k=c&&q,h,m=g.options, | ||
r=this.pane=g.pane[a.pane||0],y=r.options;if(c){if(t(this,k?d:e),h=!q)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else n&&(t(this,e),this.defaultRadialOptions=(h=q)?this.defaultRadialXOptions:p(this.defaultYAxisOptions,this.defaultRadialYOptions));c||n?(this.isRadial=!0,g.inverted=!1,m.chart.zoomType=null):this.isRadial=!1;h&&(r.axis=this);b.call(this,g,a);k||!c&&!n||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(y.startAngle-90)*Math.PI/180,this.endAngleRad= | ||
(f(y.endAngle,y.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=h)});b(k,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});b(a,"getPosition",function(b,d,e,a,l){var c=this.axis;return c.getPosition?c.getPosition(e):b.call(this,d,e,a,l)});b(a,"getLabelPosition",function(b,d,e,a,l,q,k,h,m){var c=this.axis,g=q.y,n=20,u=q.align,x=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360;c.isRadial?(b=c.getPosition(this.pos, | ||
c.center[2]/2+f(q.distance,-25)),"auto"===q.rotation?a.attr({rotation:x}):null===g&&(g=c.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===u&&(c.isCircular?(this.label.getBBox().width>c.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?"left":x>180+n&&x<360-n?"right":"center"):u="center",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,"getMarkPath",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/ | ||
2+a),d=["M",d,e,"L",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m("arearange","area",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{series.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}}, | ||
{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0: | ||
(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX, | ||
yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q="left"),n.step={left:"right",center:"center",right:"left"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||"M"!==d[0]||(d[0]="L");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n}, | ||
drawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHigh<l.plotLow:l.plotHigh>l.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?"right":"left"):n||(c.verticalAlign=q?"top":"bottom"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this, | ||
arguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHigh<l.plotLow:l.plotHigh>l.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?"left":"right"):n||(c.verticalAlign=q?"bottom":"top"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType; | ||
r("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f("columnrange","arearange",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength, | ||
f,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)<l?(l-=f,f+=l,h-=l/2):0>f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType="path",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints, | ||
drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""}, | ||
showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad- | ||
h,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType="path";c.shapeArgs={d:d.path||["M",-l,-q/2,"L",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,"z"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation, | ||
zIndex:1}).addClass("highcharts-dial").add(b.group),a.graphic.attr({stroke:k.borderColor||"none","stroke-width":k.borderWidth||0,fill:k.backgroundColor||"#000000"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(b.group),b.pivot.attr({"stroke-width":g.borderWidth||0,stroke:g.borderColor||"#cccccc",fill:g.backgroundColor||"#000000"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c= | ||
b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint}, | ||
{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eMaximum: {point.high}\x3cbr/\x3eUpper quartile: {point.q3}\x3cbr/\x3eMedian: {point.median}\x3cbr/\x3eLower quartile: {point.q1}\x3cbr/\x3eMinimum: {point.low}\x3cbr/\x3e'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1, | ||
medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,"stroke-width":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h, | ||
function(d){null!==b[d]&&(b[d+"Plot"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?"animate":"attr",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot), | ||
x||(f.graphic=x=b.g("point").add(a.group),f.stem=b.path().addClass("highcharts-boxplot-stem").add(x),y&&(f.whiskers=b.path().addClass("highcharts-boxplot-whisker").add(x)),z&&(f.box=b.path(void 0).addClass("highcharts-boxplot-box").add(x)),f.medianShape=b.path(void 0).addClass("highcharts-boxplot-median").add(x)),v.stroke=f.stemColor||h.stemColor||I,v["stroke-width"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor|| | ||
I,C["stroke-width"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H["stroke-width"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:["M",u,e,"L",u,k,"M",u,d,"L",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:["M",q,e,"L",q,d,"L",m,d,"L",m,e,"L",q,e,"z"]})),y&&(n=f.whiskers.strokeWidth()%2/ | ||
2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:["M",u-t,k,"L",u+t,k,"M",u-t,c,"L",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:["M",q,g,"L",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'}, | ||
whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series, | ||
f=a.seriesType,h=a.seriesTypes;f("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;e<b;e++)c=k[e],l=this.processedYData[e],g=c.shapeArgs,n=D&&a.stacks[(this.negStacks&&l<y?"-": | ||
"")+this.stackKey],A=this.getStackIndicator(A,c.x,this.index),p=n?n[c.x].points[A.key]:[0,l],c.isSum?c.y=r(l):c.isIntermediateSum&&(c.y=r(l-m)),f=Math.max(q,q+c.y)+p[0],g.y=a.translate(f,0,1,0,1),c.isSum?(g.y=a.translate(p[1],0,1,0,1),g.height=Math.min(a.translate(p[0],0,1,0,1),a.len)-g.y):c.isIntermediateSum?(g.y=a.translate(p[1],0,1,0,1),g.height=Math.min(a.translate(m,0,1,0,1),a.len)-g.y,m=p[1]):(g.height=0<l?a.translate(q,0,1,0,1)-g.y:a.translate(q,0,1,0,1)-a.translate(q-l,0,1,0,1),q+=n&&n[c.x]? | ||
n[c.x].total:l),0>g.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold|| | ||
0;for(h=0;h<c;h++)q=a[h],k=e&&e[h]?e[h]:{},"sum"===q||k.isSum?a[h]=r(n):"intermediateSum"===q||k.isIntermediateSum?a[h]=r(g):(n+=q,g+=q),f=Math.min(n,f),l=Math.max(n,l);m.prototype.processData.call(this,b);this.options.stacking||(this.dataMin=f,this.dataMax=l)},toYData:function(b){return b.isSum?0===b.x?null:"sum":b.isIntermediateSum?0===b.x?null:"intermediateSum":b.y},pointAttribs:function(b,a){var d=this.options.upColor;d&&!b.options.color&&(b.color=0<b.y?d:null);b=h.column.prototype.pointAttribs.call(this, | ||
b,a);delete b.dashstyle;return b},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var b=this.data,a=b.length,e=this.graph.strokeWidth()+this.borderWidth,e=Math.round(e)%2/2,f=this.yAxis.reversed,c=[],g,n,u;for(u=1;u<a;u++){n=b[u].shapeArgs;g=b[u-1].shapeArgs;n=["M",g.x+g.width,g.y+b[u-1].minPointLengthOffset+e,"L",n.x,g.y+b[u-1].minPointLengthOffset+e];if(0>b[u-1].y&&!f||0<b[u-1].y&&f)n[2]+=g.height,n[5]+=g.height;c=c.concat(n)}return c},drawGraph:function(){m.prototype.drawGraph.call(this); | ||
this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){var b=this.options,a,e;m.prototype.setStackedPoints.apply(this,arguments);a=this.stackedYData?this.stackedYData.length:0;for(e=1;e<a;e++)b.data[e].isSum||b.data[e].isIntermediateSum||(this.stackedYData[e]+=this.stackedYData[e-1])},getExtremes:function(){if(this.options.stacking)return m.prototype.getExtremes.apply(this,arguments)}},{getClassName:function(){var b=p.prototype.getClassName.call(this);this.isSum?b+=" highcharts-sum": | ||
this.isIntermediateSum&&(b+=" highcharts-intermediate-sum");return b},isValid:function(){return t(this.y,!0)||this.isSum||this.isIntermediateSum}})})(x);(function(a){var r=a.Series,t=a.seriesType,v=a.seriesTypes;t("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=r.prototype.getGraphPath.call(this),m=a.length+1;m--;)(m===a.length||"M"===a[m])&&0<m&&a.splice(m, | ||
0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;v.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:r.prototype.drawTracker,setStackedPoints:a.noop})})(x);(function(a){var r=a.arrayMax,t=a.arrayMin,v=a.Axis,p=a.color,m=a.each,h=a.isNumber,k=a.noop,b=a.pick,d=a.pInt,e=a.Point,g=a.Series,c=a.seriesType,f=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}, | ||
this.isIntermediateSum&&(b+=" highcharts-intermediate-sum");return b},isValid:function(){return t(this.y,!0)||this.isSum||this.isIntermediateSum}})})(v);(function(a){var r=a.Series,t=a.seriesType,v=a.seriesTypes;t("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=r.prototype.getGraphPath.call(this),m=a.length+1;m--;)(m===a.length||"M"===a[m])&&0<m&&a.splice(m, | ||
0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;v.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:r.prototype.drawTracker,setStackedPoints:a.noop})})(v);(function(a){var r=a.arrayMax,t=a.arrayMin,v=a.Axis,p=a.color,m=a.each,f=a.isNumber,h=a.noop,b=a.pick,d=a.pInt,e=a.Point,k=a.Series,c=a.seriesType,g=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}, | ||
marker:{lineColor:null,lineWidth:1,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,pointAttribs:function(a,c){var d=b(this.options.marker.fillOpacity, | ||
.5);a=g.prototype.pointAttribs.call(this,a,c);1!==d&&(a.fill=p(a.fill).setOpacity(d).get("rgba"));return a},getRadii:function(b,a,c,d){var f,e,g,h=this.zData,n=[],l=this.options,k="width"!==l.sizeBy,q=l.zThreshold,m=a-b;e=0;for(f=h.length;e<f;e++)g=h[e],l.sizeByAbsoluteValue&&null!==g&&(g=Math.abs(g-q),a=Math.max(a-q,Math.abs(b-q)),b=0),null===g?g=null:g<b?g=c/2-1:(g=0<m?(g-b)/m:.5,k&&0<=g&&(g=Math.sqrt(g)),g=Math.ceil(c+g*(d-c))/2),n.push(g);this.radii=n},animate:function(b){var a=this.options.animation; | ||
b||(m(this.points,function(b){var c=b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1,height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,c=this.data,d,e,g=this.radii;f.scatter.prototype.translate.call(this);for(b=c.length;b--;)d=c[b],e=g?g[b]:0,h(e)&&e>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0}, | ||
alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:k,applyZones:k},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,f=0,g=c,k=this.isXAxis,p=k?"xData":"yData",v=this.min,x={},J=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-v,B=c/E,F=[];m(this.series,function(c){var f=c.options;!c.bubblePadding||!c.visible&& | ||
e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(c),k&&(m(["minSize","maxSize"],function(b){var a=f[b],c=/%$/.test(a),a=d(a);x[b]=c?J*a/100:a}),c.minPxSize=x.minSize,c.maxPxSize=Math.max(x.maxSize,x.minSize),c=c.zData,c.length&&(A=b(f.zMin,Math.min(A,Math.max(t(c),!1===f.displayNegative?f.zThreshold:-Number.MAX_VALUE))),D=b(f.zMax,Math.max(D,r(c))))))});m(F,function(b){var c=b[p],d=c.length,e;k&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0<E)for(;d--;)h(c[d])&&a.dataMin<=c[d]&&c[d]<= | ||
a.dataMax&&(e=b.radii[d],f=Math.min((c[d]-v)*B-e,f),g=Math.max((c[d]-v)*B+e,g))});F.length&&0<E&&!this.isLog&&(g-=c,B*=(c+f-g)/c,m([["min","userMin",f],["max","userMax",g]],function(c){void 0===b(a.options[c[0]],a[c[1]])&&(a[c[0]]+=c[2]/B)}))}})(x);(function(a){function r(b,a){var d=this.chart,g=this.options.animation,c=this.group,f=this.markerGroup,h=this.xAxis.center,k=d.plotLeft,l=d.plotTop;d.polar?d.renderer.isSVG&&(!0===g&&(g={}),a?(b={translateX:h[0]+k,translateY:h[1]+l,scaleX:.001,scaleY:.001}, | ||
c.attr(b),f&&f.attr(b)):(b={translateX:k,translateY:l,scaleX:1,scaleY:1},c.animate(b,g),f&&f.animate(b,g),this.animate=null)):b.call(this,a)}var t=a.each,v=a.pick,p=a.seriesTypes,m=a.wrap,h=a.Series.prototype,k=a.Pointer.prototype;h.searchPointByAngle=function(b){var a=this.chart,e=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(b.chartX-e[0]-a.plotLeft,b.chartY-e[1]-a.plotTop)})};h.getConnectors=function(b,a,e,g){var c,d,h,k,l,m,p,r;d=g?1:0;c=0<=a&&a<=b.length- | ||
1?a:0>a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;h=b[a];d=b[d];k=h.plotX;h=h.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;k=(1.5*d+k)/2.5;h=(1.5*c+h)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(k-d,2)+Math.pow(h-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));k=Math.atan2(h-c,k-d);p=Math.PI/2+(k+Math.atan2(p-c,l-d))/2;Math.abs(k-p)>Math.PI/2&&(p-=Math.PI);k=d+Math.cos(p)*m;h=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l, | ||
rightContY:p,leftContX:k,leftContY:h,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,g));return d};m(h,"buildKDTree",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy");b.apply(this)});h.toXY=function(b){var a,e=this.chart,g=b.plotX;a=b.plotY;b.rectPlotX=g;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e= | ||
(g/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,"getPointSpline",function(a,d,e,g){this.chart.polar?g?(a=this.getConnectors(d,g,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",e.plotX,e.plotY]:a=a.call(this,d,e,g);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(h,"translate", | ||
function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(h,"getGraphPath",function(a,d){var b=this,g,c,f;if(this.chart.polar){d=d||this.points;for(g=0;g<d.length;g++)if(!d[g].isNull){c=g;break}!1!==this.options.connectEnds&&void 0!==c&&(this.connectEnds=!0,d.splice(d.length,0,d[c]),f=!0);t(d,function(a){void 0===a.polarPlotY&&b.toXY(a)})}g=a.apply(this,[].slice.call(arguments, | ||
1));f&&d.pop();return g});m(h,"animate",r);p.column&&(p=p.column.prototype,p.polarArc=function(a,d,e,g){var b=this.xAxis.center,f=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],f-d,null,{start:e,end:g,innerR:f-v(a,f)})},m(p,"animate",r),m(p,"translate",function(a){var b=this.xAxis,e=b.startAngleRad,g,c,f;this.preventPostTranslate=!0;a.call(this);if(b.isRadial)for(g=this.points,f=g.length;f--;)c=g[f],a=c.barX+e,c.shapeType="path",c.shapeArgs={d:this.polarArc(c.yBottom,c.plotY,a,a+ | ||
c.pointWidth)},this.toXY(c),c.tooltipPos=[c.plotX,c.plotY],c.ttBelow=c.plotY>b.center[1]}),m(p,"alignDataLabel",function(a,d,e,g,c,f){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===g.align&&(g.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===g.verticalAlign&&(g.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),h.alignDataLabel.call(this,d,e,g,c,f)):a.call(this,d,e,g,c,f)}));m(k,"getCoordinates",function(a,d){var b=this.chart,g={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c= | ||
a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;g[c?"xAxis":"yAxis"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):g=a.call(this,d);return g});m(a.Chart.prototype,"getAxes",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,"drawChartBox",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,"get", | ||
function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(x)}); | ||
.5);a=k.prototype.pointAttribs.call(this,a,c);1!==d&&(a.fill=p(a.fill).setOpacity(d).get("rgba"));return a},getRadii:function(b,a,c,d){var g,e,f,n=this.zData,k=[],l=this.options,q="width"!==l.sizeBy,h=l.zThreshold,m=a-b;e=0;for(g=n.length;e<g;e++)f=n[e],l.sizeByAbsoluteValue&&null!==f&&(f=Math.abs(f-h),a=Math.max(a-h,Math.abs(b-h)),b=0),null===f?f=null:f<b?f=c/2-1:(f=0<m?(f-b)/m:.5,q&&0<=f&&(f=Math.sqrt(f)),f=Math.ceil(c+f*(d-c))/2),k.push(f);this.radii=k},animate:function(b){var a=this.options.animation; | ||
b||(m(this.points,function(b){var c=b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1,height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,c=this.data,d,e,k=this.radii;g.scatter.prototype.translate.call(this);for(b=c.length;b--;)d=c[b],e=k?k[b]:0,f(e)&&e>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0}, | ||
alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?"xData":"yData",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&& | ||
e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m(["minSize","maxSize"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0<F)for(;d--;)f(c[d])&&a.dataMin<=c[d]&&c[d]<= | ||
a.dataMax&&(e=b.radii[d],g=Math.min((c[d]-v)*B-e,g),k=Math.max((c[d]-v)*B+e,k))});G.length&&0<F&&!this.isLog&&(k-=c,B*=(c+g-k)/c,m([["min","userMin",g],["max","userMax",k]],function(c){void 0===b(a.options[c[0]],a[c[1]])&&(a[c[0]]+=c[2]/B)}))}})(v);(function(a){function r(b,a){var d=this.chart,f=this.options.animation,c=this.group,g=this.markerGroup,n=this.xAxis.center,h=d.plotLeft,l=d.plotTop;d.polar?d.renderer.isSVG&&(!0===f&&(f={}),a?(b={translateX:n[0]+h,translateY:n[1]+l,scaleX:.001,scaleY:.001}, | ||
c.attr(b),g&&g.attr(b)):(b={translateX:h,translateY:l,scaleX:1,scaleY:1},c.animate(b,f),g&&g.animate(b,f),this.animate=null)):b.call(this,a)}var t=a.each,v=a.pick,p=a.seriesTypes,m=a.wrap,f=a.Series.prototype,h=a.Pointer.prototype;f.searchPointByAngle=function(b){var a=this.chart,e=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(b.chartX-e[0]-a.plotLeft,b.chartY-e[1]-a.plotTop)})};f.getConnectors=function(b,a,e,f){var c,d,k,h,l,m,p,r;d=f?1:0;c=0<=a&&a<=b.length- | ||
1?a:0>a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l, | ||
rightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,"buildKDTree",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e= | ||
(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,"getPointSpline",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,"translate", | ||
function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,"getGraphPath",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;f<d.length;f++)if(!d[f].isNull){c=f;break}!1!==this.options.connectEnds&&void 0!==c&&(this.connectEnds=!0,d.splice(d.length,0,d[c]),g=!0);t(d,function(a){void 0===a.polarPlotY&&b.toXY(a)})}f=a.apply(this,[].slice.call(arguments, | ||
1));g&&d.pop();return f});m(f,"animate",r);p.column&&(p=p.column.prototype,p.polarArc=function(a,d,e,f){var b=this.xAxis.center,g=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],g-d,null,{start:e,end:f,innerR:g-v(a,g)})},m(p,"animate",r),m(p,"translate",function(a){var b=this.xAxis,e=b.startAngleRad,f,c,g;this.preventPostTranslate=!0;a.call(this);if(b.isRadial)for(f=this.points,g=f.length;g--;)c=f[g],a=c.barX+e,c.shapeType="path",c.shapeArgs={d:this.polarArc(c.yBottom,c.plotY,a,a+ | ||
c.pointWidth)},this.toXY(c),c.tooltipPos=[c.plotX,c.plotY],c.ttBelow=c.plotY>b.center[1]}),m(p,"alignDataLabel",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===k.verticalAlign&&(k.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,"getCoordinates",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c= | ||
a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?"xAxis":"yAxis"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,"getAxes",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,"drawChartBox",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,"get", | ||
function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,44 +8,66 @@ 3D features for Highcharts JS | ||
*/ | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var p=a.deg2rad,k=a.pick;a.perspective=function(w,q,r){var l=q.options.chart.options3d,g=r?q.inverted:!1,h=q.plotWidth/2,d=q.plotHeight/2,f=l.depth/2,e=k(l.depth,1)*k(l.viewDistance,0),c=q.scale3d||1,b=p*l.beta*(g?-1:1),l=p*l.alpha*(g?-1:1),n=Math.cos(l),t=Math.cos(-b),A=Math.sin(l),z=Math.sin(-b);r||(h+=q.plotLeft,d+=q.plotTop);return a.map(w,function(b){var a,k;k=(g?b.y:b.x)-h;var l=(g? | ||
b.x:b.y)-d,u=(b.z||0)-f;a=t*k-z*u;b=-A*z*k+n*l-t*A*u;k=n*z*k+A*l+n*t*u;l=0<e&&e<Number.POSITIVE_INFINITY?e/(k+f+e):1;a=a*l*c+h;b=b*l*c+d;return{x:g?b:a,y:g?a:b,z:k*c+f}})};a.pointCameraDistance=function(a,q){var r=q.options.chart.options3d,l=q.plotWidth/2;q=q.plotHeight/2;r=k(r.depth,1)*k(r.viewDistance,0)+r.depth;return Math.sqrt(Math.pow(l-a.plotX,2)+Math.pow(q-a.plotY,2)+Math.pow(r-a.plotZ,2))}})(x);(function(a){function p(b){var c=0,m,B;for(m=0;m<b.length;m++)B=(m+1)%b.length,c+=b[m].x*b[B].y- | ||
b[B].x*b[m].y;return c/2}function k(b,c,m,B,a,d,n,f){var e=[],D=d-a;return d>a&&d-a>Math.PI/2+.0001?(e=e.concat(k(b,c,m,B,a,a+Math.PI/2,n,f)),e=e.concat(k(b,c,m,B,a+Math.PI/2,d,n,f))):d<a&&a-d>Math.PI/2+.0001?(e=e.concat(k(b,c,m,B,a,a-Math.PI/2,n,f)),e=e.concat(k(b,c,m,B,a-Math.PI/2,d,n,f))):["C",b+m*Math.cos(a)-m*v*D*Math.sin(a)+n,c+B*Math.sin(a)+B*v*D*Math.cos(a)+f,b+m*Math.cos(d)+m*v*D*Math.sin(d)+n,c+B*Math.sin(d)-B*v*D*Math.cos(d)+f,b+m*Math.cos(d)+n,c+B*Math.sin(d)+f]}var w=Math.cos,q=Math.PI, | ||
r=Math.sin,l=a.animObject,g=a.charts,h=a.color,d=a.defined,f=a.deg2rad,e=a.each,c=a.extend,b=a.inArray,n=a.map,t=a.merge,A=a.perspective,z=a.pick,y=a.SVGElement,F=a.SVGRenderer,C=a.wrap,v=4*(Math.sqrt(2)-1)/3/(q/2);C(F.prototype,"init",function(b){b.apply(this,[].slice.call(arguments,1));e([{name:"darker",slope:.6},{name:"brighter",slope:1.4}],function(b){this.definition({tagName:"filter",id:"highcharts-"+b.name,children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",type:"linear",slope:b.slope}, | ||
{tagName:"feFuncG",type:"linear",slope:b.slope},{tagName:"feFuncB",type:"linear",slope:b.slope}]}]})},this)});F.prototype.toLinePath=function(b,c){var a=[];e(b,function(b){a.push("L",b.x,b.y)});b.length&&(a[0]="M",c&&a.push("Z"));return a};F.prototype.cuboid=function(b){var c=this.g(),m=c.destroy;b=this.cuboidPath(b);c.front=this.path(b[0]).attr({"class":"highcharts-3d-front"}).add(c);c.top=this.path(b[1]).attr({"class":"highcharts-3d-top"}).add(c);c.side=this.path(b[2]).attr({"class":"highcharts-3d-side"}).add(c); | ||
c.fillSetter=function(b){this.front.attr({fill:b});this.top.attr({fill:h(b).brighten(.1).get()});this.side.attr({fill:h(b).brighten(-.1).get()});this.color=b;return this};c.opacitySetter=function(b){this.front.attr({opacity:b});this.top.attr({opacity:b});this.side.attr({opacity:b});return this};c.attr=function(b,c){if("string"===typeof b&&"undefined"!==typeof c){var m=b;b={};b[m]=c}if(b.shapeArgs||d(b.x))b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0]}),this.top.attr({d:b[1]}), | ||
this.side.attr({d:b[2]});else return a.SVGElement.prototype.attr.call(this,b);return this};c.animate=function(b,c,a){d(b.x)&&d(b.y)?(b=this.renderer.cuboidPath(b),this.front.animate({d:b[0]},c,a),this.top.animate({d:b[1]},c,a),this.side.animate({d:b[2]},c,a),this.attr({zIndex:-b[3]})):b.opacity?(this.front.animate(b,c,a),this.top.animate(b,c,a),this.side.animate(b,c,a)):y.prototype.animate.call(this,b,c,a);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy(); | ||
return m.call(this)};c.attr({zIndex:-b[3]});return c};a.SVGRenderer.prototype.cuboidPath=function(b){function c(b){return q[b]}var a=b.x,d=b.y,f=b.z,e=b.height,D=b.width,k=b.depth,l=g[this.chartIndex],h,u,r=l.options.chart.options3d.alpha,t=0,q=[{x:a,y:d,z:f},{x:a+D,y:d,z:f},{x:a+D,y:d+e,z:f},{x:a,y:d+e,z:f},{x:a,y:d+e,z:f+k},{x:a+D,y:d+e,z:f+k},{x:a+D,y:d,z:f+k},{x:a,y:d,z:f+k}],q=A(q,l,b.insidePlotArea);u=function(b,a){var d=[[],-1];b=n(b,c);a=n(a,c);0>p(b)?d=[b,0]:0>p(a)&&(d=[a,1]);return d};h= | ||
u([3,2,1,0],[7,6,5,4]);b=h[0];D=h[1];h=u([1,6,7,0],[4,5,2,3]);e=h[0];k=h[1];h=u([1,2,5,6],[0,7,4,3]);u=h[0];h=h[1];1===h?t+=1E4*(1E3-a):h||(t+=1E4*a);t+=10*(!k||0<=r&&180>=r||360>r&&357.5<r?l.plotHeight-d:10+d);1===D?t+=100*f:D||(t+=100*(1E3-f));t=-Math.round(t);return[this.toLinePath(b,!0),this.toLinePath(e,!0),this.toLinePath(u,!0),t]};a.SVGRenderer.prototype.arc3d=function(a){function d(a){var c=!1,d={};a=t(a);for(var f in a)-1!==b(f,k)&&(d[f]=a[f],delete a[f],c=!0);return c?d:!1}var m=this.g(), | ||
n=m.renderer,k="x y r innerR start end".split(" ");a=t(a);a.alpha*=f;a.beta*=f;m.top=n.path();m.side1=n.path();m.side2=n.path();m.inn=n.path();m.out=n.path();m.onAdd=function(){var b=m.parentGroup,a=m.attr("class");m.top.add(m);e(["out","inn","side1","side2"],function(c){m[c].addClass(a+" highcharts-3d-side").add(b)})};m.setPaths=function(b){var a=m.renderer.arc3dPath(b),c=100*a.zTop;m.attribs=b;m.top.attr({d:a.top,zIndex:a.zTop});m.inn.attr({d:a.inn,zIndex:a.zInn});m.out.attr({d:a.out,zIndex:a.zOut}); | ||
m.side1.attr({d:a.side1,zIndex:a.zSide1});m.side2.attr({d:a.side2,zIndex:a.zSide2});m.zIndex=c;m.attr({zIndex:c});b.center&&(m.top.setRadialReference(b.center),delete b.center)};m.setPaths(a);m.fillSetter=function(b){var a=h(b).brighten(-.1).get();this.fill=b;this.side1.attr({fill:a});this.side2.attr({fill:a});this.inn.attr({fill:a});this.out.attr({fill:a});this.top.attr({fill:b});return this};e(["opacity","translateX","translateY","visibility"],function(b){m[b+"Setter"]=function(b,a){m[a]=b;e(["out", | ||
"inn","side1","side2","top"],function(c){m[c].attr(a,b)})}});C(m,"attr",function(b,a){var f;"object"===typeof a&&(f=d(a))&&(c(m.attribs,f),m.setPaths(m.attribs));return b.apply(this,[].slice.call(arguments,1))});C(m,"animate",function(b,a,c,f){var n,m=this.attribs,e;delete a.center;delete a.z;delete a.depth;delete a.alpha;delete a.beta;e=l(z(c,this.renderer.globalAnimation));e.duration&&(n=d(a),a.dummy=1,n&&(e.step=function(b,a){function c(b){return m[b]+(z(n[b],m[b])-m[b])*a.pos}"dummy"===a.prop&& | ||
a.elem.setPaths(t(m,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=e);return b.call(this,a,c,f)});m.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();y.prototype.destroy.call(this)};m.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};m.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return m}; | ||
F.prototype.arc3dPath=function(b){function a(b){b%=2*Math.PI;b>Math.PI&&(b=2*Math.PI-b);return b}var c=b.x,d=b.y,f=b.start,n=b.end-.00001,e=b.r,h=b.innerR,l=b.depth,g=b.alpha,t=b.beta,A=Math.cos(f),F=Math.sin(f);b=Math.cos(n);var z=Math.sin(n),p=e*Math.cos(t),e=e*Math.cos(g),u=h*Math.cos(t),v=h*Math.cos(g),h=l*Math.sin(t),y=l*Math.sin(g),l=["M",c+p*A,d+e*F],l=l.concat(k(c,d,p,e,f,n,0,0)),l=l.concat(["L",c+u*b,d+v*z]),l=l.concat(k(c,d,u,v,n,f,0,0)),l=l.concat(["Z"]),C=0<t?Math.PI/2:0,t=0<g?0:Math.PI/ | ||
2,C=f>-C?f:n>-C?-C:f,E=n<q-t?n:f<q-t?q-t:n,x=2*q-t,g=["M",c+p*w(C),d+e*r(C)],g=g.concat(k(c,d,p,e,C,E,0,0));n>x&&f<x?(g=g.concat(["L",c+p*w(E)+h,d+e*r(E)+y]),g=g.concat(k(c,d,p,e,E,x,h,y)),g=g.concat(["L",c+p*w(x),d+e*r(x)]),g=g.concat(k(c,d,p,e,x,n,0,0)),g=g.concat(["L",c+p*w(n)+h,d+e*r(n)+y]),g=g.concat(k(c,d,p,e,n,x,h,y)),g=g.concat(["L",c+p*w(x),d+e*r(x)]),g=g.concat(k(c,d,p,e,x,E,0,0))):n>q-t&&f<q-t&&(g=g.concat(["L",c+p*Math.cos(E)+h,d+e*Math.sin(E)+y]),g=g.concat(k(c,d,p,e,E,n,h,y)),g=g.concat(["L", | ||
c+p*Math.cos(n),d+e*Math.sin(n)]),g=g.concat(k(c,d,p,e,n,E,0,0)));g=g.concat(["L",c+p*Math.cos(E)+h,d+e*Math.sin(E)+y]);g=g.concat(k(c,d,p,e,E,C,h,y));g=g.concat(["Z"]);t=["M",c+u*A,d+v*F];t=t.concat(k(c,d,u,v,f,n,0,0));t=t.concat(["L",c+u*Math.cos(n)+h,d+v*Math.sin(n)+y]);t=t.concat(k(c,d,u,v,n,f,h,y));t=t.concat(["Z"]);A=["M",c+p*A,d+e*F,"L",c+p*A+h,d+e*F+y,"L",c+u*A+h,d+v*F+y,"L",c+u*A,d+v*F,"Z"];c=["M",c+p*b,d+e*z,"L",c+p*b+h,d+e*z+y,"L",c+u*b+h,d+v*z+y,"L",c+u*b,d+v*z,"Z"];z=Math.atan2(y,-h); | ||
d=Math.abs(n+z);b=Math.abs(f+z);f=Math.abs((f+n)/2+z);d=a(d);b=a(b);f=a(f);f*=1E5;n=1E5*b;d*=1E5;return{top:l,zTop:1E5*Math.PI+1,out:g,zOut:Math.max(f,n,d),inn:t,zInn:Math.max(f,n,d),side1:A,zSide1:.99*d,side2:c,zSide2:.99*n}}})(x);(function(a){function p(a,f){var d=a.plotLeft,c=a.plotWidth+d,b=a.plotTop,n=a.plotHeight+b,g=d+a.plotWidth/2,h=b+a.plotHeight/2,l=Number.MAX_VALUE,k=-Number.MAX_VALUE,p=Number.MAX_VALUE,q=-Number.MAX_VALUE,v,u=1;v=[{x:d,y:b,z:0},{x:d,y:b,z:f}];w([0,1],function(b){v.push({x:c, | ||
y:v[b].y,z:v[b].z})});w([0,1,2,3],function(b){v.push({x:v[b].x,y:n,z:v[b].z})});v=r(v,a,!1);w(v,function(b){l=Math.min(l,b.x);k=Math.max(k,b.x);p=Math.min(p,b.y);q=Math.max(q,b.y)});d>l&&(u=Math.min(u,1-Math.abs((d+g)/(l+g))%1));c<k&&(u=Math.min(u,(c-g)/(k-g)));b>p&&(u=0>p?Math.min(u,(b+h)/(-p+b+h)):Math.min(u,1-(b+h)/(p+h)%1));n<q&&(u=Math.min(u,Math.abs((n-h)/(q-h))));return u}var k=a.Chart,w=a.each,q=a.merge,r=a.perspective,l=a.pick,g=a.wrap;k.prototype.is3d=function(){return this.options.chart.options3d&& | ||
this.options.chart.options3d.enabled};k.prototype.propsRequireDirtyBox.push("chart.options3d");k.prototype.propsRequireUpdateSeries.push("chart.options3d");a.wrap(a.Chart.prototype,"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))});var h=a.getOptions();q(!0,h,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});g(k.prototype,"getContainer",function(a){a.apply(this,[].slice.call(arguments, | ||
1));this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"})});g(k.prototype,"setClassName",function(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});a.wrap(a.Chart.prototype,"setChartSize",function(a){var d=this.options.chart.options3d;a.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox, | ||
b=this.margin;c[e?"y":"x"]=-(b[3]||0);c[e?"x":"y"]=-(b[0]||0);c[e?"height":"width"]=this.chartWidth+(b[3]||0)+(b[1]||0);c[e?"width":"height"]=this.chartHeight+(b[0]||0)+(b[2]||0);this.scale3d=1;!0===d.fitToPlot&&(this.scale3d=p(this,d.depth))}});g(k.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0);a.apply(this,[].slice.call(arguments,1))});g(k.prototype,"renderSeries",function(a){var d=this.series.length;if(this.is3d())for(;d--;)a=this.series[d],a.translate(),a.render();else a.call(this)}); | ||
k.prototype.retrieveStacks=function(a){var d=this.series,e={},c,b=1;w(this.series,function(n){c=l(n.options.stack,a?0:d.length-1-n.index);e[c]?e[c].series.push(n):(e[c]={series:[n],position:b},b++)});e.totalStacks=b+1;return e}})(x);(function(a){var p,k=a.Axis,w=a.Chart,q=a.each,r=a.extend,l=a.merge,g=a.perspective,h=a.pick,d=a.splat,f=a.Tick,e=a.wrap;e(k.prototype,"setOptions",function(a,b){a.call(this,b);this.chart.is3d()&&"colorAxis"!==this.coll&&(a=this.options,a.tickWidth=h(a.tickWidth,0),a.gridLineWidth= | ||
h(a.gridLineWidth,1))});e(k.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()&&"colorAxis"!==this.coll){var b=this.chart,c=b.renderer,d=b.options.chart.options3d,f=d.frame,e=f.bottom,g=f.back,f=f.side,h=d.depth,l=this.height,k=this.width,p=this.left,r=this.top;this.isZAxis||(this.horiz?(e={x:p,y:r+(b.xAxis[0].opposite?-e.size:l),z:0,width:k,height:e.size,depth:h,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(e):this.bottomFrame=c.cuboid(e).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom", | ||
zIndex:b.yAxis[0].reversed&&0<d.alpha?4:-1}).add()):(d={x:p+(b.yAxis[0].opposite?0:-f.size),y:r+(b.xAxis[0].opposite?-e.size:0),z:h,width:k+f.size,height:l+e.size,depth:g.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):this.backFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),b={x:p+(b.yAxis[0].opposite?k:-f.size),y:r+(b.xAxis[0].opposite?-e.size:0),z:0,width:f.size,height:l+e.size,depth:h,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b): | ||
this.sideFrame=c.cuboid(b).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side",zIndex:-2}).add()))}});e(k.prototype,"getPlotLinePath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===b)return b;var c=this.chart,d=c.options.chart.options3d,c=this.isZAxis?c.plotWidth:d.depth,d=this.opposite;this.horiz&&(d=!d);b=[this.swapZ({x:b[1],y:b[2],z:d?c:0}),this.swapZ({x:b[1],y:b[2],z:c}),this.swapZ({x:b[4],y:b[5],z:c}),this.swapZ({x:b[4], | ||
y:b[5],z:d?0:c})];b=g(b,this.chart,!1);return b=this.chart.renderer.toLinePath(b,!1)});e(k.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))});e(k.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[1],b=this.getPlotLinePath(b[2]);(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null;return c}); | ||
e(f.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d()||"colorAxis"===this.axis.coll)return b;b=[this.axis.swapZ({x:b[1],y:b[2],z:0}),this.axis.swapZ({x:b[4],y:b[5],z:0})];b=g(b,this.axis.chart,!1);return b=["M",b[0].x,b[0].y,"L",b[1].x,b[1].y]});e(f.prototype,"getLabelPosition",function(a){var b=a.apply(this,[].slice.call(arguments,1));this.axis.chart.is3d()&&"colorAxis"!==this.axis.coll&&(b=g([this.axis.swapZ({x:b.x,y:b.y,z:0})],this.axis.chart, | ||
!1)[0]);return b});a.wrap(k.prototype,"getTitlePosition",function(a){var b=this.chart.is3d()&&"colorAxis"!==this.coll,c,d;b&&(d=this.axisTitleMargin,this.axisTitleMargin=0);c=a.apply(this,[].slice.call(arguments,1));b&&(c=g([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*d,this.axisTitleMargin=d);return c});e(k.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold|| | ||
b[2].plotY});a.apply(this,[].slice.call(b,1))});e(k.prototype,"destroy",function(a){q(["backFrame","bottomFrame","sideFrame"],function(b){this[b]&&(this[b]=this[b].destroy())},this);a.apply(this,[].slice.call(arguments,1))});k.prototype.swapZ=function(a,b){if(this.isZAxis){b=b?0:this.chart.plotLeft;var c=this.chart;return{x:b+(c.yAxis[0].opposite?a.z:c.xAxis[0].width-a.z),y:a.y,z:a.x-b}}return a};p=a.ZAxis=function(){this.init.apply(this,arguments)};r(p.prototype,k.prototype);r(p.prototype,{isZAxis:!0, | ||
setOptions:function(a){a=l({offset:0,lineWidth:0},a);k.prototype.setOptions.call(this,a);this.coll="zAxis"},setAxisSize:function(){k.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();q(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries= | ||
!0,c=c.zData,c.length&&(a.dataMin=Math.min(h(a.dataMin,c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(h(a.dataMax,c[0]),Math.max.apply(null,c)))})}});e(w.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=d(c.zAxis||{});a.call(this);b.is3d()&&(this.zAxis=[],q(c,function(a,c){a.index=c;a.isX=!0;(new p(b,a)).setScale()}))})})(x);(function(a){var p=a.each,k=a.perspective,w=a.pick,q=a.Series,r=a.seriesTypes,l=a.inArray,g=a.svg;a=a.wrap;a(r.column.prototype,"translate",function(a){a.apply(this, | ||
[].slice.call(arguments,1));if(this.chart.is3d()){var d=this,f=d.chart,e=d.options,c=e.depth||25,b=d.borderWidth%2?.5:0;if(f.inverted&&!d.yAxis.reversed||!f.inverted&&d.yAxis.reversed)b*=-1;var g=(e.stacking?e.stack||0:d.index)*(c+(e.groupZPadding||1));!1!==e.grouping&&(g=0);g+=e.groupZPadding||1;p(d.data,function(a){if(null!==a.y){var e=a.shapeArgs,h=a.tooltipPos,l;p([["x","width"],["y","height"]],function(a){l=e[a[0]]-b;if(0>l+e[a[1]]||l>d[a[0]+"Axis"].len)for(var c in e)e[c]=0;0>l&&(e[a[1]]+=e[a[0]], | ||
e[a[0]]=0);l+e[a[1]]>d[a[0]+"Axis"].len&&(e[a[1]]=d[a[0]+"Axis"].len-e[a[0]])});a.shapeType="cuboid";e.z=g;e.depth=c;e.insidePlotArea=!0;h=k([{x:h[0],y:h[1],z:g}],f,!0)[0];a.tooltipPos=[h.x,h.y]}});d.z=g}});a(r.column.prototype,"animate",function(a){if(this.chart.is3d()){var d=arguments[1],f=this.yAxis,e=this,c=this.yAxis.reversed;g&&(d?p(e.data,function(b){null!==b.y&&(b.height=b.shapeArgs.height,b.shapey=b.shapeArgs.y,b.shapeArgs.height=1,c||(b.shapeArgs.y=b.stackY?b.plotY+f.translate(b.stackY): | ||
b.plotY+(b.negative?-b.height:b.height)))}):(p(e.data,function(b){null!==b.y&&(b.shapeArgs.height=b.height,b.shapeArgs.y=b.shapey,b.graphic&&b.graphic.animate(b.shapeArgs,e.options.animation))}),this.drawDataLabels(),e.animate=null))}else a.apply(this,[].slice.call(arguments,1))});a(r.column.prototype,"plotGroup",function(a,d,f,e,c,b){this.chart.is3d()&&b&&!this[d]&&(this[d]=b,b.attr(this.getPlotBox()),this[d].survive=!0);return a.apply(this,Array.prototype.slice.call(arguments,1))});a(r.column.prototype, | ||
"setVisible",function(a,d){var f=this,e;f.chart.is3d()&&p(f.data,function(a){e=(a.visible=a.options.visible=d=void 0===d?!a.visible:d)?"visible":"hidden";f.options.data[l(a,f.data)]=a.options;a.graphic&&a.graphic.attr({visibility:e})});a.apply(this,Array.prototype.slice.call(arguments,1))});a(r.column.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.options,f=d.grouping,e=d.stacking,c=w(this.yAxis.options.reversedStacks,!0),b=0;if(void 0===f|| | ||
f){f=this.chart.retrieveStacks(e);b=d.stack||0;for(e=0;e<f[b].series.length&&f[b].series[e]!==this;e++);b=10*(f.totalStacks-f[b].position)+(c?e:-e);this.xAxis.reversed||(b=10*f.totalStacks-b)}d.zIndex=b}});a(q.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var d=arguments[4],f={x:d.x,y:d.y,z:this.z},f=k([f],this.chart,!0)[0];d.x=f.x;d.y=f.y}a.apply(this,[].slice.call(arguments,1))})})(x);(function(a){var p=a.deg2rad,k=a.each,w=a.seriesTypes, | ||
q=a.svg;a=a.wrap;a(w.pie.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var l=this,g=l.options,h=g.depth||0,d=l.chart.options.chart.options3d,f=d.alpha,e=d.beta,c=g.stacking?(g.stack||0)*h:l._i*h,c=c+h/2;!1!==g.grouping&&(c=0);k(l.data,function(b){var a=b.shapeArgs;b.shapeType="arc3d";a.z=c;a.depth=.75*h;a.alpha=f;a.beta=e;a.center=l.center;a=(a.end+a.start)/2;b.slicedTranslation={translateX:Math.round(Math.cos(a)*g.slicedOffset*Math.cos(f*p)),translateY:Math.round(Math.sin(a)* | ||
g.slicedOffset*Math.cos(f*p))}})}});a(w.pie.prototype.pointClass.prototype,"haloPath",function(a){var l=arguments;return this.series.chart.is3d()?[]:a.call(this,l[1])});a(w.pie.prototype,"drawPoints",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&k(this.points,function(a){var g=a.graphic;if(g)g[a.y&&a.visible?"show":"hide"]()})});a(w.pie.prototype,"drawDataLabels",function(a){if(this.chart.is3d()){var l=this.chart.options.chart.options3d;k(this.data,function(a){var g=a.shapeArgs, | ||
d=g.r,f=(g.start+g.end)/2,e=a.labelPos,c=-d*(1-Math.cos((g.alpha||l.alpha)*p))*Math.sin(f),b=d*(Math.cos((g.beta||l.beta)*p)-1)*Math.cos(f);k([0,2,4],function(a){e[a]+=b;e[a+1]+=c})})}a.apply(this,[].slice.call(arguments,1))});a(w.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});a(w.pie.prototype,"animate",function(a){if(this.chart.is3d()){var l=arguments[1],g=this.options.animation,h=this.center,d=this.group,f=this.markerGroup; | ||
q&&(!0===g&&(g={}),l?(d.oldtranslateX=d.translateX,d.oldtranslateY=d.translateY,l={translateX:h[0],translateY:h[1],scaleX:.001,scaleY:.001},d.attr(l),f&&(f.attrSetters=d.attrSetters,f.attr(l))):(l={translateX:d.oldtranslateX,translateY:d.oldtranslateY,scaleX:1,scaleY:1},d.animate(l,g),f&&f.animate(l,g),this.animate=null))}else a.apply(this,[].slice.call(arguments,1))})})(x);(function(a){var p=a.perspective,k=a.pick,w=a.Point,q=a.seriesTypes,r=a.wrap;r(q.scatter.prototype,"translate",function(a){a.apply(this, | ||
[].slice.call(arguments,1));if(this.chart.is3d()){var g=this.chart,h=k(this.zAxis,g.options.zAxis[0]),d=[],f,e,c;for(c=0;c<this.data.length;c++)f=this.data[c],e=h.isLog&&h.val2lin?h.val2lin(f.z):f.z,f.plotZ=h.translate(e),f.isInside=f.isInside?e>=h.min&&e<=h.max:!1,d.push({x:f.plotX,y:f.plotY,z:f.plotZ});g=p(d,g,!0);for(c=0;c<this.data.length;c++)f=this.data[c],h=g[c],f.plotXold=f.plotX,f.plotYold=f.plotY,f.plotZold=f.plotZ,f.plotX=h.x,f.plotY=h.y,f.plotZ=h.z}});r(q.scatter.prototype,"init",function(a, | ||
g,h){g.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);a=a.apply(this,[g,h]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e"); | ||
return a});r(q.scatter.prototype,"pointAttribs",function(k,g){var h=k.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&g&&(h.zIndex=a.pointCameraDistance(g,this.chart));return h});r(w.prototype,"applyOptions",function(a){var g=a.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===g.z&&(g.z=0);return g})})(x)}); | ||
(function(z){"object"===typeof module&&module.exports?module.exports=z:z(Highcharts)})(function(z){(function(d){var r=d.deg2rad,v=d.pick;d.perspective=function(w,x,t){var l=x.options.chart.options3d,h=t?x.inverted:!1,f=x.plotWidth/2,m=x.plotHeight/2,u=l.depth/2,c=v(l.depth,1)*v(l.viewDistance,0),a=x.scale3d||1,b=r*l.beta*(h?-1:1),l=r*l.alpha*(h?-1:1),e=Math.cos(l),g=Math.cos(-b),k=Math.sin(l),A=Math.sin(-b);t||(f+=x.plotLeft,m+=x.plotTop);return d.map(w,function(b){var d,q;q=(h?b.y:b.x)-f;var p=(h? | ||
b.x:b.y)-m,G=(b.z||0)-u;d=g*q-A*G;b=-k*A*q+e*p-g*k*G;q=e*A*q+k*p+e*g*G;p=0<c&&c<Number.POSITIVE_INFINITY?c/(q+u+c):1;d=d*p*a+f;b=b*p*a+m;return{x:h?b:d,y:h?d:b,z:q*a+u}})};d.pointCameraDistance=function(d,r){var t=r.options.chart.options3d,l=r.plotWidth/2;r=r.plotHeight/2;t=v(t.depth,1)*v(t.viewDistance,0)+t.depth;return Math.sqrt(Math.pow(l-d.plotX,2)+Math.pow(r-d.plotY,2)+Math.pow(t-d.plotZ,2))};d.shapeArea=function(d){var r=0,t,l;for(t=0;t<d.length;t++)l=(t+1)%d.length,r+=d[t].x*d[l].y-d[l].x* | ||
d[t].y;return r/2};d.shapeArea3d=function(r,v,t){return d.shapeArea(d.perspective(r,v,t))}})(z);(function(d){function r(a,e,b,d,c,k,g,m){var B=[],p=k-c;return k>c&&k-c>Math.PI/2+.0001?(B=B.concat(r(a,e,b,d,c,c+Math.PI/2,g,m)),B=B.concat(r(a,e,b,d,c+Math.PI/2,k,g,m))):k<c&&c-k>Math.PI/2+.0001?(B=B.concat(r(a,e,b,d,c,c-Math.PI/2,g,m)),B=B.concat(r(a,e,b,d,c-Math.PI/2,k,g,m))):["C",a+b*Math.cos(c)-b*q*p*Math.sin(c)+g,e+d*Math.sin(c)+d*q*p*Math.cos(c)+m,a+b*Math.cos(k)+b*q*p*Math.sin(k)+g,e+d*Math.sin(k)- | ||
d*q*p*Math.cos(k)+m,a+b*Math.cos(k)+g,e+d*Math.sin(k)+m]}var v=Math.cos,w=Math.PI,x=Math.sin,t=d.animObject,l=d.charts,h=d.color,f=d.defined,m=d.deg2rad,u=d.each,c=d.extend,a=d.inArray,b=d.map,e=d.merge,g=d.perspective,k=d.pick,A=d.SVGElement,y=d.SVGRenderer,n=d.wrap,q=4*(Math.sqrt(2)-1)/3/(w/2);n(y.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));u([{name:"darker",slope:.6},{name:"brighter",slope:1.4}],function(a){this.definition({tagName:"filter",id:"highcharts-"+a.name,children:[{tagName:"feComponentTransfer", | ||
children:[{tagName:"feFuncR",type:"linear",slope:a.slope},{tagName:"feFuncG",type:"linear",slope:a.slope},{tagName:"feFuncB",type:"linear",slope:a.slope}]}]})},this)});y.prototype.toLinePath=function(a,b){var e=[];u(a,function(a){e.push("L",a.x,a.y)});a.length&&(e[0]="M",b&&e.push("Z"));return e};y.prototype.toLineSegments=function(a){var e=[],b=!0;u(a,function(a){e.push(b?"M":"L",a.x,a.y);b=!b});return e};y.prototype.face3d=function(a){var e=this,b=this.createElement("path");b.vertexes=[];b.insidePlotArea= | ||
!1;b.enabled=!0;n(b,"attr",function(a,b){if("object"===typeof b&&(f(b.enabled)||f(b.vertexes)||f(b.insidePlotArea))){this.enabled=k(b.enabled,this.enabled);this.vertexes=k(b.vertexes,this.vertexes);this.insidePlotArea=k(b.insidePlotArea,this.insidePlotArea);delete b.enabled;delete b.vertexes;delete b.insidePlotArea;var c=g(this.vertexes,l[e.chartIndex],this.insidePlotArea),B=e.toLinePath(c,!0),c=d.shapeArea(c),c=this.enabled&&0<c?"visible":"hidden";b.d=B;b.visibility=c}return a.apply(this,[].slice.call(arguments, | ||
1))});n(b,"animate",function(b,a){if("object"===typeof a&&(f(a.enabled)||f(a.vertexes)||f(a.insidePlotArea))){this.enabled=k(a.enabled,this.enabled);this.vertexes=k(a.vertexes,this.vertexes);this.insidePlotArea=k(a.insidePlotArea,this.insidePlotArea);delete a.enabled;delete a.vertexes;delete a.insidePlotArea;var c=g(this.vertexes,l[e.chartIndex],this.insidePlotArea),B=e.toLinePath(c,!0),c=d.shapeArea(c),c=this.enabled&&0<c?"visible":"hidden";a.d=B;this.attr("visibility",c)}return b.apply(this,[].slice.call(arguments, | ||
1))});return b.attr(a)};y.prototype.polyhedron=function(a){var b=this,e=this.g(),c=e.destroy;e.faces=[];e.destroy=function(){for(var a=0;a<e.faces.length;a++)e.faces[a].destroy();return c.call(this)};n(e,"attr",function(a,c,d,k,g){if("object"===typeof c&&f(c.faces)){for(;e.faces.length>c.faces.length;)e.faces.pop().destroy();for(;e.faces.length<c.faces.length;)e.faces.push(b.face3d().add(e));for(var B=0;B<c.faces.length;B++)e.faces[B].attr(c.faces[B],null,k,g);delete c.faces}return a.apply(this,[].slice.call(arguments, | ||
1))});n(e,"animate",function(a,c,d,k){if(c&&c.faces){for(;e.faces.length>c.faces.length;)e.faces.pop().destroy();for(;e.faces.length<c.faces.length;)e.faces.push(b.face3d().add(e));for(var g=0;g<c.faces.length;g++)e.faces[g].animate(c.faces[g],d,k);delete c.faces}return a.apply(this,[].slice.call(arguments,1))});return e.attr(a)};y.prototype.cuboid=function(a){var e=this.g(),b=e.destroy;a=this.cuboidPath(a);e.front=this.path(a[0]).attr({"class":"highcharts-3d-front"}).add(e);e.top=this.path(a[1]).attr({"class":"highcharts-3d-top"}).add(e); | ||
e.side=this.path(a[2]).attr({"class":"highcharts-3d-side"}).add(e);e.fillSetter=function(a){this.front.attr({fill:a});this.top.attr({fill:h(a).brighten(.1).get()});this.side.attr({fill:h(a).brighten(-.1).get()});this.color=a;return this};e.opacitySetter=function(a){this.front.attr({opacity:a});this.top.attr({opacity:a});this.side.attr({opacity:a});return this};e.attr=function(a,e){if("string"===typeof a&&"undefined"!==typeof e){var b=a;a={};a[b]=e}if(a.shapeArgs||f(a.x))a=this.renderer.cuboidPath(a.shapeArgs|| | ||
a),this.front.attr({d:a[0]}),this.top.attr({d:a[1]}),this.side.attr({d:a[2]});else return d.SVGElement.prototype.attr.call(this,a);return this};e.animate=function(a,e,b){f(a.x)&&f(a.y)?(a=this.renderer.cuboidPath(a),this.front.animate({d:a[0]},e,b),this.top.animate({d:a[1]},e,b),this.side.animate({d:a[2]},e,b),this.attr({zIndex:-a[3]})):a.opacity?(this.front.animate(a,e,b),this.top.animate(a,e,b),this.side.animate(a,e,b)):A.prototype.animate.call(this,a,e,b);return this};e.destroy=function(){this.front.destroy(); | ||
this.top.destroy();this.side.destroy();return b.call(this)};e.attr({zIndex:-a[3]});return e};d.SVGRenderer.prototype.cuboidPath=function(a){function e(a){return r[a]}var c=a.x,k=a.y,m=a.z,u=a.height,p=a.width,A=a.depth,q=l[this.chartIndex],n,y,f=q.options.chart.options3d.alpha,h=0,r=[{x:c,y:k,z:m},{x:c+p,y:k,z:m},{x:c+p,y:k+u,z:m},{x:c,y:k+u,z:m},{x:c,y:k+u,z:m+A},{x:c+p,y:k+u,z:m+A},{x:c+p,y:k,z:m+A},{x:c,y:k,z:m+A}],r=g(r,q,a.insidePlotArea);y=function(a,c){var k=[[],-1];a=b(a,e);c=b(c,e);0>d.shapeArea(a)? | ||
k=[a,0]:0>d.shapeArea(c)&&(k=[c,1]);return k};n=y([3,2,1,0],[7,6,5,4]);a=n[0];p=n[1];n=y([1,6,7,0],[4,5,2,3]);u=n[0];A=n[1];n=y([1,2,5,6],[0,7,4,3]);y=n[0];n=n[1];1===n?h+=1E4*(1E3-c):n||(h+=1E4*c);h+=10*(!A||0<=f&&180>=f||360>f&&357.5<f?q.plotHeight-k:10+k);1===p?h+=100*m:p||(h+=100*(1E3-m));h=-Math.round(h);return[this.toLinePath(a,!0),this.toLinePath(u,!0),this.toLinePath(y,!0),h]};d.SVGRenderer.prototype.arc3d=function(b){function d(b){var c=!1,g={};b=e(b);for(var k in b)-1!==a(k,q)&&(g[k]=b[k], | ||
delete b[k],c=!0);return c?g:!1}var g=this.g(),p=g.renderer,q="x y r innerR start end".split(" ");b=e(b);b.alpha*=m;b.beta*=m;g.top=p.path();g.side1=p.path();g.side2=p.path();g.inn=p.path();g.out=p.path();g.onAdd=function(){var a=g.parentGroup,e=g.attr("class");g.top.add(g);u(["out","inn","side1","side2"],function(b){g[b].addClass(e+" highcharts-3d-side").add(a)})};g.setPaths=function(a){var e=g.renderer.arc3dPath(a),b=100*e.zTop;g.attribs=a;g.top.attr({d:e.top,zIndex:e.zTop});g.inn.attr({d:e.inn, | ||
zIndex:e.zInn});g.out.attr({d:e.out,zIndex:e.zOut});g.side1.attr({d:e.side1,zIndex:e.zSide1});g.side2.attr({d:e.side2,zIndex:e.zSide2});g.zIndex=b;g.attr({zIndex:b});a.center&&(g.top.setRadialReference(a.center),delete a.center)};g.setPaths(b);g.fillSetter=function(a){var e=h(a).brighten(-.1).get();this.fill=a;this.side1.attr({fill:e});this.side2.attr({fill:e});this.inn.attr({fill:e});this.out.attr({fill:e});this.top.attr({fill:a});return this};u(["opacity","translateX","translateY","visibility"], | ||
function(a){g[a+"Setter"]=function(a,e){g[e]=a;u(["out","inn","side1","side2","top"],function(b){g[b].attr(e,a)})}});n(g,"attr",function(a,e){var b;"object"===typeof e&&(b=d(e))&&(c(g.attribs,b),g.setPaths(g.attribs));return a.apply(this,[].slice.call(arguments,1))});n(g,"animate",function(a,b,c,g){var m,u=this.attribs,p;delete b.center;delete b.z;delete b.depth;delete b.alpha;delete b.beta;p=t(k(c,this.renderer.globalAnimation));p.duration&&(m=d(b),b.dummy=1,m&&(p.step=function(a,b){function c(a){return u[a]+ | ||
(k(m[a],u[a])-u[a])*b.pos}"dummy"===b.prop&&b.elem.setPaths(e(u,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=p);return a.call(this,b,c,g)});g.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();A.prototype.destroy.call(this)};g.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};g.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show(); | ||
this.side2.show()};return g};y.prototype.arc3dPath=function(a){function e(a){a%=2*Math.PI;a>Math.PI&&(a=2*Math.PI-a);return a}var b=a.x,c=a.y,g=a.start,k=a.end-.00001,d=a.r,m=a.innerR,u=a.depth,n=a.alpha,p=a.beta,A=Math.cos(g),q=Math.sin(g);a=Math.cos(k);var y=Math.sin(k),f=d*Math.cos(p),d=d*Math.cos(n),h=m*Math.cos(p),l=m*Math.cos(n),m=u*Math.sin(p),t=u*Math.sin(n),u=["M",b+f*A,c+d*q],u=u.concat(r(b,c,f,d,g,k,0,0)),u=u.concat(["L",b+h*a,c+l*y]),u=u.concat(r(b,c,h,l,k,g,0,0)),u=u.concat(["Z"]),z= | ||
0<p?Math.PI/2:0,p=0<n?0:Math.PI/2,z=g>-z?g:k>-z?-z:g,C=k<w-p?k:g<w-p?w-p:k,D=2*w-p,n=["M",b+f*v(z),c+d*x(z)],n=n.concat(r(b,c,f,d,z,C,0,0));k>D&&g<D?(n=n.concat(["L",b+f*v(C)+m,c+d*x(C)+t]),n=n.concat(r(b,c,f,d,C,D,m,t)),n=n.concat(["L",b+f*v(D),c+d*x(D)]),n=n.concat(r(b,c,f,d,D,k,0,0)),n=n.concat(["L",b+f*v(k)+m,c+d*x(k)+t]),n=n.concat(r(b,c,f,d,k,D,m,t)),n=n.concat(["L",b+f*v(D),c+d*x(D)]),n=n.concat(r(b,c,f,d,D,C,0,0))):k>w-p&&g<w-p&&(n=n.concat(["L",b+f*Math.cos(C)+m,c+d*Math.sin(C)+t]),n=n.concat(r(b, | ||
c,f,d,C,k,m,t)),n=n.concat(["L",b+f*Math.cos(k),c+d*Math.sin(k)]),n=n.concat(r(b,c,f,d,k,C,0,0)));n=n.concat(["L",b+f*Math.cos(C)+m,c+d*Math.sin(C)+t]);n=n.concat(r(b,c,f,d,C,z,m,t));n=n.concat(["Z"]);p=["M",b+h*A,c+l*q];p=p.concat(r(b,c,h,l,g,k,0,0));p=p.concat(["L",b+h*Math.cos(k)+m,c+l*Math.sin(k)+t]);p=p.concat(r(b,c,h,l,k,g,m,t));p=p.concat(["Z"]);A=["M",b+f*A,c+d*q,"L",b+f*A+m,c+d*q+t,"L",b+h*A+m,c+l*q+t,"L",b+h*A,c+l*q,"Z"];b=["M",b+f*a,c+d*y,"L",b+f*a+m,c+d*y+t,"L",b+h*a+m,c+l*y+t,"L",b+h* | ||
a,c+l*y,"Z"];y=Math.atan2(t,-m);c=Math.abs(k+y);a=Math.abs(g+y);g=Math.abs((g+k)/2+y);c=e(c);a=e(a);g=e(g);g*=1E5;k=1E5*a;c*=1E5;return{top:u,zTop:1E5*Math.PI+1,out:n,zOut:Math.max(g,k,c),inn:p,zInn:Math.max(g,k,c),side1:A,zSide1:.99*c,side2:b,zSide2:.99*k}}})(z);(function(d){function r(d,u){var c=d.plotLeft,a=d.plotWidth+c,b=d.plotTop,e=d.plotHeight+b,g=c+d.plotWidth/2,k=b+d.plotHeight/2,m=Number.MAX_VALUE,f=-Number.MAX_VALUE,n=Number.MAX_VALUE,q=-Number.MAX_VALUE,p,h=1;p=[{x:c,y:b,z:0},{x:c,y:b, | ||
z:u}];w([0,1],function(b){p.push({x:a,y:p[b].y,z:p[b].z})});w([0,1,2,3],function(a){p.push({x:p[a].x,y:e,z:p[a].z})});p=t(p,d,!1);w(p,function(a){m=Math.min(m,a.x);f=Math.max(f,a.x);n=Math.min(n,a.y);q=Math.max(q,a.y)});c>m&&(h=Math.min(h,1-Math.abs((c+g)/(m+g))%1));a<f&&(h=Math.min(h,(a-g)/(f-g)));b>n&&(h=0>n?Math.min(h,(b+k)/(-n+b+k)):Math.min(h,1-(b+k)/(n+k)%1));e<q&&(h=Math.min(h,Math.abs((e-k)/(q-k))));return h}var v=d.Chart,w=d.each,x=d.merge,t=d.perspective,l=d.pick,h=d.wrap;v.prototype.is3d= | ||
function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};v.prototype.propsRequireDirtyBox.push("chart.options3d");v.prototype.propsRequireUpdateSeries.push("chart.options3d");d.wrap(d.Chart.prototype,"isInsidePlot",function(d){return this.is3d()||d.apply(this,[].slice.call(arguments,1))});var f=d.getOptions();x(!0,f,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:"default",frame:{visible:"default",size:1,bottom:{}, | ||
top:{},left:{},right:{},back:{},front:{}}}}});h(v.prototype,"getContainer",function(d){d.apply(this,[].slice.call(arguments,1));this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"})});h(v.prototype,"setClassName",function(d){d.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});d.wrap(d.Chart.prototype,"setChartSize",function(d){var m= | ||
this.options.chart.options3d;d.apply(this,[].slice.call(arguments,1));if(this.is3d()){var c=this.inverted,a=this.clipBox,b=this.margin;a[c?"y":"x"]=-(b[3]||0);a[c?"x":"y"]=-(b[0]||0);a[c?"height":"width"]=this.chartWidth+(b[3]||0)+(b[1]||0);a[c?"width":"height"]=this.chartHeight+(b[0]||0)+(b[2]||0);this.scale3d=1;!0===m.fitToPlot&&(this.scale3d=r(this,m.depth))}});h(v.prototype,"redraw",function(d){this.is3d()&&(this.isDirtyBox=!0,this.frame3d=this.get3dFrame());d.apply(this,[].slice.call(arguments, | ||
1))});h(v.prototype,"render",function(d){this.is3d()&&(this.frame3d=this.get3dFrame());d.apply(this,[].slice.call(arguments,1))});h(v.prototype,"renderSeries",function(d){var m=this.series.length;if(this.is3d())for(;m--;)d=this.series[m],d.translate(),d.render();else d.call(this)});h(v.prototype,"drawChartBox",function(m){if(this.is3d()){var u=this.renderer,c=this.options.chart.options3d,a=this.get3dFrame(),b=this.plotLeft,e=this.plotLeft+this.plotWidth,g=this.plotTop,k=this.plotTop+this.plotHeight, | ||
c=c.depth,f=b-(a.left.visible?a.left.size:0),h=e+(a.right.visible?a.right.size:0),n=g-(a.top.visible?a.top.size:0),q=k+(a.bottom.visible?a.bottom.size:0),p=0-(a.front.visible?a.front.size:0),l=c+(a.back.visible?a.back.size:0),t=this.hasRendered?"animate":"attr";this.frame3d=a;this.frameShapes||(this.frameShapes={bottom:u.polyhedron().add(),top:u.polyhedron().add(),left:u.polyhedron().add(),right:u.polyhedron().add(),back:u.polyhedron().add(),front:u.polyhedron().add()});this.frameShapes.bottom[t]({"class":"highcharts-3d-frame highcharts-3d-frame-bottom", | ||
zIndex:a.bottom.frontFacing?-1E3:1E3,faces:[{fill:d.color(a.bottom.color).brighten(.1).get(),vertexes:[{x:f,y:q,z:p},{x:h,y:q,z:p},{x:h,y:q,z:l},{x:f,y:q,z:l}],enabled:a.bottom.visible},{fill:d.color(a.bottom.color).brighten(.1).get(),vertexes:[{x:b,y:k,z:c},{x:e,y:k,z:c},{x:e,y:k,z:0},{x:b,y:k,z:0}],enabled:a.bottom.visible},{fill:d.color(a.bottom.color).brighten(-.1).get(),vertexes:[{x:f,y:q,z:p},{x:f,y:q,z:l},{x:b,y:k,z:c},{x:b,y:k,z:0}],enabled:a.bottom.visible&&!a.left.visible},{fill:d.color(a.bottom.color).brighten(-.1).get(), | ||
vertexes:[{x:h,y:q,z:l},{x:h,y:q,z:p},{x:e,y:k,z:0},{x:e,y:k,z:c}],enabled:a.bottom.visible&&!a.right.visible},{fill:d.color(a.bottom.color).get(),vertexes:[{x:h,y:q,z:p},{x:f,y:q,z:p},{x:b,y:k,z:0},{x:e,y:k,z:0}],enabled:a.bottom.visible&&!a.front.visible},{fill:d.color(a.bottom.color).get(),vertexes:[{x:f,y:q,z:l},{x:h,y:q,z:l},{x:e,y:k,z:c},{x:b,y:k,z:c}],enabled:a.bottom.visible&&!a.back.visible}]});this.frameShapes.top[t]({"class":"highcharts-3d-frame highcharts-3d-frame-top",zIndex:a.top.frontFacing? | ||
-1E3:1E3,faces:[{fill:d.color(a.top.color).brighten(.1).get(),vertexes:[{x:f,y:n,z:l},{x:h,y:n,z:l},{x:h,y:n,z:p},{x:f,y:n,z:p}],enabled:a.top.visible},{fill:d.color(a.top.color).brighten(.1).get(),vertexes:[{x:b,y:g,z:0},{x:e,y:g,z:0},{x:e,y:g,z:c},{x:b,y:g,z:c}],enabled:a.top.visible},{fill:d.color(a.top.color).brighten(-.1).get(),vertexes:[{x:f,y:n,z:l},{x:f,y:n,z:p},{x:b,y:g,z:0},{x:b,y:g,z:c}],enabled:a.top.visible&&!a.left.visible},{fill:d.color(a.top.color).brighten(-.1).get(),vertexes:[{x:h, | ||
y:n,z:p},{x:h,y:n,z:l},{x:e,y:g,z:c},{x:e,y:g,z:0}],enabled:a.top.visible&&!a.right.visible},{fill:d.color(a.top.color).get(),vertexes:[{x:f,y:n,z:p},{x:h,y:n,z:p},{x:e,y:g,z:0},{x:b,y:g,z:0}],enabled:a.top.visible&&!a.front.visible},{fill:d.color(a.top.color).get(),vertexes:[{x:h,y:n,z:l},{x:f,y:n,z:l},{x:b,y:g,z:c},{x:e,y:g,z:c}],enabled:a.top.visible&&!a.back.visible}]});this.frameShapes.left[t]({"class":"highcharts-3d-frame highcharts-3d-frame-left",zIndex:a.left.frontFacing?-1E3:1E3,faces:[{fill:d.color(a.left.color).brighten(.1).get(), | ||
vertexes:[{x:f,y:q,z:p},{x:b,y:k,z:0},{x:b,y:k,z:c},{x:f,y:q,z:l}],enabled:a.left.visible&&!a.bottom.visible},{fill:d.color(a.left.color).brighten(.1).get(),vertexes:[{x:f,y:n,z:l},{x:b,y:g,z:c},{x:b,y:g,z:0},{x:f,y:n,z:p}],enabled:a.left.visible&&!a.top.visible},{fill:d.color(a.left.color).brighten(-.1).get(),vertexes:[{x:f,y:q,z:l},{x:f,y:n,z:l},{x:f,y:n,z:p},{x:f,y:q,z:p}],enabled:a.left.visible},{fill:d.color(a.left.color).brighten(-.1).get(),vertexes:[{x:b,y:g,z:c},{x:b,y:k,z:c},{x:b,y:k,z:0}, | ||
{x:b,y:g,z:0}],enabled:a.left.visible},{fill:d.color(a.left.color).get(),vertexes:[{x:f,y:q,z:p},{x:f,y:n,z:p},{x:b,y:g,z:0},{x:b,y:k,z:0}],enabled:a.left.visible&&!a.front.visible},{fill:d.color(a.left.color).get(),vertexes:[{x:f,y:n,z:l},{x:f,y:q,z:l},{x:b,y:k,z:c},{x:b,y:g,z:c}],enabled:a.left.visible&&!a.back.visible}]});this.frameShapes.right[t]({"class":"highcharts-3d-frame highcharts-3d-frame-right",zIndex:a.right.frontFacing?-1E3:1E3,faces:[{fill:d.color(a.right.color).brighten(.1).get(), | ||
vertexes:[{x:h,y:q,z:l},{x:e,y:k,z:c},{x:e,y:k,z:0},{x:h,y:q,z:p}],enabled:a.right.visible&&!a.bottom.visible},{fill:d.color(a.right.color).brighten(.1).get(),vertexes:[{x:h,y:n,z:p},{x:e,y:g,z:0},{x:e,y:g,z:c},{x:h,y:n,z:l}],enabled:a.right.visible&&!a.top.visible},{fill:d.color(a.right.color).brighten(-.1).get(),vertexes:[{x:e,y:g,z:0},{x:e,y:k,z:0},{x:e,y:k,z:c},{x:e,y:g,z:c}],enabled:a.right.visible},{fill:d.color(a.right.color).brighten(-.1).get(),vertexes:[{x:h,y:q,z:p},{x:h,y:n,z:p},{x:h,y:n, | ||
z:l},{x:h,y:q,z:l}],enabled:a.right.visible},{fill:d.color(a.right.color).get(),vertexes:[{x:h,y:n,z:p},{x:h,y:q,z:p},{x:e,y:k,z:0},{x:e,y:g,z:0}],enabled:a.right.visible&&!a.front.visible},{fill:d.color(a.right.color).get(),vertexes:[{x:h,y:q,z:l},{x:h,y:n,z:l},{x:e,y:g,z:c},{x:e,y:k,z:c}],enabled:a.right.visible&&!a.back.visible}]});this.frameShapes.back[t]({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:a.back.frontFacing?-1E3:1E3,faces:[{fill:d.color(a.back.color).brighten(.1).get(), | ||
vertexes:[{x:h,y:q,z:l},{x:f,y:q,z:l},{x:b,y:k,z:c},{x:e,y:k,z:c}],enabled:a.back.visible&&!a.bottom.visible},{fill:d.color(a.back.color).brighten(.1).get(),vertexes:[{x:f,y:n,z:l},{x:h,y:n,z:l},{x:e,y:g,z:c},{x:b,y:g,z:c}],enabled:a.back.visible&&!a.top.visible},{fill:d.color(a.back.color).brighten(-.1).get(),vertexes:[{x:f,y:q,z:l},{x:f,y:n,z:l},{x:b,y:g,z:c},{x:b,y:k,z:c}],enabled:a.back.visible&&!a.left.visible},{fill:d.color(a.back.color).brighten(-.1).get(),vertexes:[{x:h,y:n,z:l},{x:h,y:q, | ||
z:l},{x:e,y:k,z:c},{x:e,y:g,z:c}],enabled:a.back.visible&&!a.right.visible},{fill:d.color(a.back.color).get(),vertexes:[{x:b,y:g,z:c},{x:e,y:g,z:c},{x:e,y:k,z:c},{x:b,y:k,z:c}],enabled:a.back.visible},{fill:d.color(a.back.color).get(),vertexes:[{x:f,y:q,z:l},{x:h,y:q,z:l},{x:h,y:n,z:l},{x:f,y:n,z:l}],enabled:a.back.visible}]});this.frameShapes.front[t]({"class":"highcharts-3d-frame highcharts-3d-frame-front",zIndex:a.front.frontFacing?-1E3:1E3,faces:[{fill:d.color(a.front.color).brighten(.1).get(), | ||
vertexes:[{x:f,y:q,z:p},{x:h,y:q,z:p},{x:e,y:k,z:0},{x:b,y:k,z:0}],enabled:a.front.visible&&!a.bottom.visible},{fill:d.color(a.front.color).brighten(.1).get(),vertexes:[{x:h,y:n,z:p},{x:f,y:n,z:p},{x:b,y:g,z:0},{x:e,y:g,z:0}],enabled:a.front.visible&&!a.top.visible},{fill:d.color(a.front.color).brighten(-.1).get(),vertexes:[{x:f,y:n,z:p},{x:f,y:q,z:p},{x:b,y:k,z:0},{x:b,y:g,z:0}],enabled:a.front.visible&&!a.left.visible},{fill:d.color(a.front.color).brighten(-.1).get(),vertexes:[{x:h,y:q,z:p},{x:h, | ||
y:n,z:p},{x:e,y:g,z:0},{x:e,y:k,z:0}],enabled:a.front.visible&&!a.right.visible},{fill:d.color(a.front.color).get(),vertexes:[{x:e,y:g,z:0},{x:b,y:g,z:0},{x:b,y:k,z:0},{x:e,y:k,z:0}],enabled:a.front.visible},{fill:d.color(a.front.color).get(),vertexes:[{x:h,y:q,z:p},{x:f,y:q,z:p},{x:f,y:n,z:p},{x:h,y:n,z:p}],enabled:a.front.visible}]})}return m.apply(this,[].slice.call(arguments,1))});v.prototype.retrieveStacks=function(d){var m=this.series,c={},a,b=1;w(this.series,function(e){a=l(e.options.stack, | ||
d?0:m.length-1-e.index);c[a]?c[a].series.push(e):(c[a]={series:[e],position:b},b++)});c.totalStacks=b+1;return c};v.prototype.get3dFrame=function(){var m=this,f=m.options.chart.options3d,c=f.frame,a=m.plotLeft,b=m.plotLeft+m.plotWidth,e=m.plotTop,g=m.plotTop+m.plotHeight,k=f.depth,h=d.shapeArea3d([{x:a,y:g,z:k},{x:b,y:g,z:k},{x:b,y:g,z:0},{x:a,y:g,z:0}],m),r=d.shapeArea3d([{x:a,y:e,z:0},{x:b,y:e,z:0},{x:b,y:e,z:k},{x:a,y:e,z:k}],m),n=d.shapeArea3d([{x:a,y:e,z:0},{x:a,y:e,z:k},{x:a,y:g,z:k},{x:a,y:g, | ||
z:0}],m),q=d.shapeArea3d([{x:b,y:e,z:k},{x:b,y:e,z:0},{x:b,y:g,z:0},{x:b,y:g,z:k}],m),p=d.shapeArea3d([{x:a,y:g,z:0},{x:b,y:g,z:0},{x:b,y:e,z:0},{x:a,y:e,z:0}],m),v=d.shapeArea3d([{x:a,y:e,z:k},{x:b,y:e,z:k},{x:b,y:g,z:k},{x:a,y:g,z:k}],m),x=!1,z=!1,F=!1,H=!1;w([].concat(m.xAxis,m.yAxis,m.zAxis),function(a){a&&(a.horiz?a.opposite?z=!0:x=!0:a.opposite?H=!0:F=!0)});var E=function(a,b,e){for(var c=["size","color","visible"],d={},g=0;g<c.length;g++)for(var k=c[g],f=0;f<a.length;f++)if("object"===typeof a[f]){var m= | ||
a[f][k];if(void 0!==m&&null!==m){d[k]=m;break}}a=e;!0===d.visible||!1===d.visible?a=d.visible:"auto"===d.visible&&(a=0<=b);return{size:l(d.size,1),color:l(d.color,"none"),frontFacing:0<b,visible:a}},c={bottom:E([c.bottom,c.top,c],h,x),top:E([c.top,c.bottom,c],r,z),left:E([c.left,c.right,c.side,c],n,F),right:E([c.right,c.left,c.side,c],q,H),back:E([c.back,c.front,c],v,!0),front:E([c.front,c.back,c],p,!1)};"auto"===f.axisLabelPosition?(q=function(a,b){return a.visible!==b.visible||a.visible&&b.visible&& | ||
a.frontFacing!==b.frontFacing},f=[],q(c.left,c.front)&&f.push({y:(e+g)/2,x:a,z:0}),q(c.left,c.back)&&f.push({y:(e+g)/2,x:a,z:k}),q(c.right,c.front)&&f.push({y:(e+g)/2,x:b,z:0}),q(c.right,c.back)&&f.push({y:(e+g)/2,x:b,z:k}),h=[],q(c.bottom,c.front)&&h.push({x:(a+b)/2,y:g,z:0}),q(c.bottom,c.back)&&h.push({x:(a+b)/2,y:g,z:k}),r=[],q(c.top,c.front)&&r.push({x:(a+b)/2,y:e,z:0}),q(c.top,c.back)&&r.push({x:(a+b)/2,y:e,z:k}),n=[],q(c.bottom,c.left)&&n.push({z:(0+k)/2,y:g,x:a}),q(c.bottom,c.right)&&n.push({z:(0+ | ||
k)/2,y:g,x:b}),g=[],q(c.top,c.left)&&g.push({z:(0+k)/2,y:e,x:a}),q(c.top,c.right)&&g.push({z:(0+k)/2,y:e,x:b}),a=function(a,b,e){if(0===a.length)return null;if(1===a.length)return a[0];for(var c=0,d=t(a,m,!1),g=1;g<d.length;g++)e*d[g][b]>e*d[c][b]?c=g:e*d[g][b]===e*d[c][b]&&d[g].z<d[c].z&&(c=g);return a[c]},c.axes={y:{left:a(f,"x",-1),right:a(f,"x",1)},x:{top:a(r,"y",-1),bottom:a(h,"y",1)},z:{top:a(g,"y",-1),bottom:a(n,"y",1)}}):c.axes={y:{left:{x:a,z:0},right:{x:b,z:0}},x:{top:{y:e,z:0},bottom:{y:g, | ||
z:0}},z:{top:{x:F?b:a,y:e},bottom:{x:F?b:a,y:g}}};return c}})(z);(function(d){function r(a,e){if(a.chart.is3d()&&"colorAxis"!==a.coll){var b=a.chart,c=b.frame3d,d=b.plotLeft,m=b.plotWidth+d,h=b.plotTop,b=b.plotHeight+h,l=0,p=0;e=a.swapZ({x:e.x,y:e.y,z:0});if(a.isZAxis)if(a.opposite){if(null===c.axes.z.top)return{};p=e.y-h;e.x=c.axes.z.top.x;e.y=c.axes.z.top.y}else{if(null===c.axes.z.bottom)return{};p=e.y-b;e.x=c.axes.z.bottom.x;e.y=c.axes.z.bottom.y}else if(a.horiz)if(a.opposite){if(null===c.axes.x.top)return{}; | ||
p=e.y-h;e.y=c.axes.x.top.y;e.z=c.axes.x.top.z}else{if(null===c.axes.x.bottom)return{};p=e.y-b;e.y=c.axes.x.bottom.y;e.z=c.axes.x.bottom.z}else if(a.opposite){if(null===c.axes.y.right)return{};l=e.x-m;e.x=c.axes.y.right.x;e.z=c.axes.y.right.z}else{if(null===c.axes.y.left)return{};l=e.x-d;e.x=c.axes.y.left.x;e.z=c.axes.y.left.z}e=f([e],a.chart)[0];e.x+=l;e.y+=p}return e}var v,w=d.Axis,x=d.Chart,t=d.each,l=d.extend,h=d.merge,f=d.perspective,m=d.pick,u=d.splat,c=d.Tick,a=d.wrap;a(w.prototype,"setOptions", | ||
function(a,e){a.call(this,e);this.chart.is3d()&&"colorAxis"!==this.coll&&(a=this.options,a.tickWidth=m(a.tickWidth,0),a.gridLineWidth=m(a.gridLineWidth,1))});a(w.prototype,"getPlotLinePath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===b)return b;var c=this.chart,d=c.options.chart.options3d,d=this.isZAxis?c.plotWidth:d.depth,c=c.frame3d,b=[this.swapZ({x:b[1],y:b[2],z:0}),this.swapZ({x:b[1],y:b[2],z:d}),this.swapZ({x:b[4],y:b[5],z:0}), | ||
this.swapZ({x:b[4],y:b[5],z:d})],d=[];this.horiz?(this.isZAxis?(c.left.visible&&d.push(b[0],b[2]),c.right.visible&&d.push(b[1],b[3])):(c.front.visible&&d.push(b[0],b[2]),c.back.visible&&d.push(b[1],b[3])),c.top.visible&&d.push(b[0],b[1]),c.bottom.visible&&d.push(b[2],b[3])):(c.front.visible&&d.push(b[0],b[2]),c.back.visible&&d.push(b[1],b[3]),c.left.visible&&d.push(b[0],b[1]),c.right.visible&&d.push(b[2],b[3]));d=f(d,this.chart,!1);return this.chart.renderer.toLineSegments(d)});a(w.prototype,"getLinePath", | ||
function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))});a(w.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[2],d=[],b=this.getPlotLinePath(b[1]),c=this.getPlotLinePath(c);if(b&&c)for(var f=0;f<b.length;f+=6)d.push("M",b[f+1],b[f+2],"L",b[f+4],b[f+5],"L",c[f+4],c[f+5],"L",c[f+1],c[f+2],"Z");return d});a(c.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments, | ||
1)),b=[r(this.axis,{x:b[1],y:b[2],z:0}),r(this.axis,{x:b[4],y:b[5],z:0})];return this.axis.chart.renderer.toLineSegments(b)});a(c.prototype,"getLabelPosition",function(a){var b=a.apply(this,[].slice.call(arguments,1));return r(this.axis,b)});d.wrap(w.prototype,"getTitlePosition",function(a){var b=a.apply(this,[].slice.call(arguments,1));return r(this,b)});a(w.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold|| | ||
b[2].plotY});a.apply(this,[].slice.call(b,1))});a(w.prototype,"destroy",function(a){t(["backFrame","bottomFrame","sideFrame"],function(a){this[a]&&(this[a]=this[a].destroy())},this);a.apply(this,[].slice.call(arguments,1))});w.prototype.swapZ=function(a,c){return this.isZAxis?(c=c?0:this.chart.plotLeft,{x:c+a.z,y:a.y,z:a.x-c}):a};v=d.ZAxis=function(){this.init.apply(this,arguments)};l(v.prototype,w.prototype);l(v.prototype,{isZAxis:!0,setOptions:function(a){a=h({offset:0,lineWidth:0},a);w.prototype.setOptions.call(this, | ||
a);this.coll="zAxis"},setAxisSize:function(){w.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var a=this,c=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();t(a.series,function(b){if(b.visible||!c.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,b=b.zData,b.length&&(a.dataMin=Math.min(m(a.dataMin, | ||
b[0]),Math.min.apply(null,b)),a.dataMax=Math.max(m(a.dataMax,b[0]),Math.max.apply(null,b)))})}});a(x.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=u(c.zAxis||{});a.call(this);b.is3d()&&(this.zAxis=[],t(c,function(a,c){a.index=c;a.isX=!0;(new v(b,a)).setScale()}))})})(z);(function(d){var r=d.each,v=d.perspective,w=d.pick,x=d.Series,t=d.seriesTypes,l=d.inArray,h=d.svg;d=d.wrap;d(t.column.prototype,"translate",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f= | ||
this,h=f.chart,c=f.options,a=c.depth||25,b=f.borderWidth%2?.5:0;if(h.inverted&&!f.yAxis.reversed||!h.inverted&&f.yAxis.reversed)b*=-1;var e=(c.stacking?c.stack||0:f.index)*(a+(c.groupZPadding||1));!1!==c.grouping&&(e=0);e+=c.groupZPadding||1;r(f.data,function(c){if(null!==c.y){var d=c.shapeArgs,g=c.tooltipPos,m;r([["x","width"],["y","height"]],function(a){m=d[a[0]]-b;if(0>m+d[a[1]]||m>f[a[0]+"Axis"].len)for(var c in d)d[c]=0;0>m&&(d[a[1]]+=d[a[0]],d[a[0]]=0);m+d[a[1]]>f[a[0]+"Axis"].len&&(d[a[1]]= | ||
f[a[0]+"Axis"].len-d[a[0]])});c.shapeType="cuboid";d.z=e;d.depth=a;d.insidePlotArea=!0;g=v([{x:g[0],y:g[1],z:e}],h,!0)[0];c.tooltipPos=[g.x,g.y]}});f.z=e}});d(t.column.prototype,"animate",function(d){if(this.chart.is3d()){var f=arguments[1],l=this.yAxis,c=this,a=this.yAxis.reversed;h&&(f?r(c.data,function(b){null!==b.y&&(b.height=b.shapeArgs.height,b.shapey=b.shapeArgs.y,b.shapeArgs.height=1,a||(b.shapeArgs.y=b.stackY?b.plotY+l.translate(b.stackY):b.plotY+(b.negative?-b.height:b.height)))}):(r(c.data, | ||
function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,c.options.animation))}),this.drawDataLabels(),c.animate=null))}else d.apply(this,[].slice.call(arguments,1))});d(t.column.prototype,"plotGroup",function(d,h,l,c,a,b){this.chart.is3d()&&b&&!this[h]&&(this[h]=b,b.attr(this.getPlotBox()),this[h].survive=!0);return d.apply(this,Array.prototype.slice.call(arguments,1))});d(t.column.prototype,"setVisible",function(d,h){var f=this,c;f.chart.is3d()&& | ||
r(f.data,function(a){c=(a.visible=a.options.visible=h=void 0===h?!a.visible:h)?"visible":"hidden";f.options.data[l(a,f.data)]=a.options;a.graphic&&a.graphic.attr({visibility:c})});d.apply(this,Array.prototype.slice.call(arguments,1))});d(t.column.prototype,"init",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this.options,h=f.grouping,c=f.stacking,a=w(this.yAxis.options.reversedStacks,!0),b=0;if(void 0===h||h){h=this.chart.retrieveStacks(c);b=f.stack||0;for(c=0;c< | ||
h[b].series.length&&h[b].series[c]!==this;c++);b=10*(h.totalStacks-h[b].position)+(a?c:-c);this.xAxis.reversed||(b=10*h.totalStacks-b)}f.zIndex=b}});d(x.prototype,"alignDataLabel",function(d){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var f=arguments[4],h={x:f.x,y:f.y,z:this.z},h=v([h],this.chart,!0)[0];f.x=h.x;f.y=h.y}d.apply(this,[].slice.call(arguments,1))})})(z);(function(d){var r=d.deg2rad,v=d.each,w=d.seriesTypes,x=d.svg;d=d.wrap;d(w.pie.prototype,"translate",function(d){d.apply(this, | ||
[].slice.call(arguments,1));if(this.chart.is3d()){var l=this,h=l.options,f=h.depth||0,m=l.chart.options.chart.options3d,u=m.alpha,c=m.beta,a=h.stacking?(h.stack||0)*f:l._i*f,a=a+f/2;!1!==h.grouping&&(a=0);v(l.data,function(b){var d=b.shapeArgs;b.shapeType="arc3d";d.z=a;d.depth=.75*f;d.alpha=u;d.beta=c;d.center=l.center;d=(d.end+d.start)/2;b.slicedTranslation={translateX:Math.round(Math.cos(d)*h.slicedOffset*Math.cos(u*r)),translateY:Math.round(Math.sin(d)*h.slicedOffset*Math.cos(u*r))}})}});d(w.pie.prototype.pointClass.prototype, | ||
"haloPath",function(d){var l=arguments;return this.series.chart.is3d()?[]:d.call(this,l[1])});d(w.pie.prototype,"drawPoints",function(d){d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&v(this.points,function(d){var h=d.graphic;if(h)h[d.y&&d.visible?"show":"hide"]()})});d(w.pie.prototype,"drawDataLabels",function(d){if(this.chart.is3d()){var l=this.chart.options.chart.options3d;v(this.data,function(d){var f=d.shapeArgs,h=f.r,u=(f.start+f.end)/2,c=d.labelPos,a=-h*(1-Math.cos((f.alpha||l.alpha)* | ||
r))*Math.sin(u),b=h*(Math.cos((f.beta||l.beta)*r)-1)*Math.cos(u);v([0,2,4],function(d){c[d]+=b;c[d+1]+=a})})}d.apply(this,[].slice.call(arguments,1))});d(w.pie.prototype,"addPoint",function(d){d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});d(w.pie.prototype,"animate",function(d){if(this.chart.is3d()){var l=arguments[1],h=this.options.animation,f=this.center,m=this.group,u=this.markerGroup;x&&(!0===h&&(h={}),l?(m.oldtranslateX=m.translateX,m.oldtranslateY= | ||
m.translateY,l={translateX:f[0],translateY:f[1],scaleX:.001,scaleY:.001},m.attr(l),u&&(u.attrSetters=m.attrSetters,u.attr(l))):(l={translateX:m.oldtranslateX,translateY:m.oldtranslateY,scaleX:1,scaleY:1},m.animate(l,h),u&&u.animate(l,h),this.animate=null))}else d.apply(this,[].slice.call(arguments,1))})})(z);(function(d){var r=d.perspective,v=d.pick,w=d.Point,x=d.seriesTypes,t=d.wrap;t(x.scatter.prototype,"translate",function(d){d.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var h= | ||
this.chart,f=v(this.zAxis,h.options.zAxis[0]),m=[],l,c,a;for(a=0;a<this.data.length;a++)l=this.data[a],c=f.isLog&&f.val2lin?f.val2lin(l.z):l.z,l.plotZ=f.translate(c),l.isInside=l.isInside?c>=f.min&&c<=f.max:!1,m.push({x:l.plotX,y:l.plotY,z:l.plotZ});h=r(m,h,!0);for(a=0;a<this.data.length;a++)l=this.data[a],f=h[a],l.plotXold=l.plotX,l.plotYold=l.plotY,l.plotZold=l.plotZ,l.plotX=f.x,l.plotY=f.y,l.plotZ=f.z}});t(x.scatter.prototype,"init",function(d,h,f){h.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"], | ||
this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);d=d.apply(this,[h,f]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return d});t(x.scatter.prototype, | ||
"pointAttribs",function(l,h){var f=l.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&h&&(f.zIndex=d.pointCameraDistance(h,this.chart));return f});t(w.prototype,"applyOptions",function(d){var h=d.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===h.z&&(h.z=0);return h})})(z)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,54 +8,54 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function n(a,c){this.init(a,c)}var r=a.CenteredSeriesMixin,u=a.each,h=a.extend,f=a.merge,m=a.splat;h(n.prototype,{coll:"pane",init:function(a,c){this.chart=c;this.background=[];c.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=f(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,c=this.options.background,e=this.chart.renderer; | ||
this.group||(this.group=e.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(c)for(c=m(c),a=Math.max(c.length,this.background.length||0),e=0;e<a;e++)c[e]&&this.axis?this.renderBackground(f(this.defaultBackgroundOptions,c[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))},renderBackground:function(a,c){var e="animate";this.background[c]||(this.background[c]=this.chart.renderer.path().add(this.group),e="attr");this.background[c][e]({d:this.axis.getPlotBandPath(a.from, | ||
(function(v){"object"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function n(a,c){this.init(a,c)}var r=a.CenteredSeriesMixin,u=a.each,h=a.extend,f=a.merge,k=a.splat;h(n.prototype,{coll:"pane",init:function(a,c){this.chart=c;this.background=[];c.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=f(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,c=this.options.background,e=this.chart.renderer; | ||
this.group||(this.group=e.g("pane-group").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(c)for(c=k(c),a=Math.max(c.length,this.background.length||0),e=0;e<a;e++)c[e]&&this.axis?this.renderBackground(f(this.defaultBackgroundOptions,c[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))},renderBackground:function(a,c){var e="animate";this.background[c]||(this.background[c]=this.chart.renderer.path().add(this.group),e="attr");this.background[c][e]({d:this.axis.getPlotBandPath(a.from, | ||
a.to,a)}).attr({"class":"highcharts-pane "+(a.className||"")})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(a){this.center=(a||this.axis||{}).center=r.getCenter.call(this)},update:function(a,c){f(!0,this.options,a);this.setOptions(this.options);this.render();u(this.chart.axes,function(e){e.pane===this&&(e.pane=null,e.update({},c))},this)}}); | ||
a.Pane=n})(w);(function(a){var n=a.each,r=a.extend,u=a.map,h=a.merge,f=a.noop,m=a.pick,q=a.pInt,c=a.wrap,e,g,l=a.Axis.prototype;a=a.Tick.prototype;e={getOffset:f,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:f,setCategories:f,setTitle:f};g={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0}, | ||
a.Pane=n})(v);(function(a){var n=a.each,r=a.extend,u=a.map,h=a.merge,f=a.noop,k=a.pick,p=a.pInt,c=a.wrap,e,g,l=a.Axis.prototype;a=a.Tick.prototype;e={getOffset:f,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:f,setCategories:f,setTitle:f};g={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0}, | ||
zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(b){b=this.options=h(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){l.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(b, | ||
d){b=this.center;var c=this.chart,e=m(d,b[2]/2-this.offset);this.isCircular||void 0!==d?d=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],e,e,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(d=this.postTranslate(this.angleRad,e),d=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",d.x,d.y]);return d},setAxisTranslation:function(){l.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/ | ||
2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===m(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){l.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width= | ||
this.height=this.center[2]*m(this.sector,1)/2)},getPosition:function(b,d){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,m(this.isCircular?d:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,d){var c=this.chart,e=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+e[0]+Math.cos(b)*d,y:c.plotTop+e[1]+Math.sin(b)*d}},getPlotBandPath:function(b,d,c){var e=this.center,p=this.startAngleRad,a=e[2]/2,g=[m(c.outerRadius,"100%"),c.innerRadius,m(c.thickness, | ||
10)],l=Math.min(this.offset,0),f=/%$/,x,h=this.isCircular;"polygon"===this.options.gridLineInterpolation?e=this.getPlotLinePath(b).concat(this.getPlotLinePath(d,!0)):(b=Math.max(b,this.min),d=Math.min(d,this.max),h||(g[0]=this.translate(b),g[1]=this.translate(d)),g=u(g,function(b){f.test(b)&&(b=q(b,10)*a/100);return b}),"circle"!==c.shape&&h?(b=p+this.translate(b),d=p+this.translate(d)):(b=-Math.PI/2,d=1.5*Math.PI,x=!0),g[0]-=l,g[2]-=l,e=this.chart.renderer.symbols.arc(this.left+e[0],this.top+e[1], | ||
g[0],g[0],{start:Math.min(b,d),end:Math.max(b,d),innerR:m(g[1],g[0]-g[2]),open:x}));return e},getPlotLinePath:function(b,c){var e=this,d=e.center,g=e.chart,a=e.getPosition(b),l,q,f;e.isCircular?f=["M",d[0]+g.plotLeft,d[1]+g.plotTop,"L",a.x,a.y]:"circle"===e.options.gridLineInterpolation?(b=e.translate(b))&&(f=e.getLinePath(0,b)):(n(g.xAxis,function(b){b.pane===e.pane&&(l=b)}),f=[],b=e.translate(b),d=l.tickPositions,l.autoConnect&&(d=d.concat([d[0]])),c&&(d=[].concat(d).reverse()),n(d,function(e,d){q= | ||
l.getPosition(e,b);f.push(d?"L":"M",q.x,q.y)}));return f},getTitlePosition:function(){var b=this.center,e=this.chart,c=this.options.title;return{x:e.plotLeft+b[0]+(c.x||0),y:e.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};c(l,"init",function(b,c,a){var d=c.angular,k=c.polar,p=a.isX,l=d&&p,f,q=c.options,x=this.pane=c.pane[a.pane||0],n=x.options;if(d){if(r(this,l?e:g),f=!p)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else k&&(r(this,g),this.defaultRadialOptions=(f=p)? | ||
this.defaultRadialXOptions:h(this.defaultYAxisOptions,this.defaultRadialYOptions));d||k?(this.isRadial=!0,c.inverted=!1,q.chart.zoomType=null):this.isRadial=!1;f&&(x.axis=this);b.call(this,c,a);l||!d&&!k||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(m(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=f)});c(l,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments, | ||
1))});c(a,"getPosition",function(b,c,e,g,a){var d=this.axis;return d.getPosition?d.getPosition(e):b.call(this,c,e,g,a)});c(a,"getLabelPosition",function(b,c,e,g,a,l,f,q,h){var d=this.axis,p=l.y,k=20,v=l.align,t=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+m(l.distance,-25)),"auto"===l.rotation?g.attr({rotation:t}):null===p&&(p=d.chart.renderer.fontMetrics(g.styles.fontSize).b-g.getBBox().height/2),null===v&&(d.isCircular?(this.label.getBBox().width> | ||
d.len*d.tickInterval/(d.max-d.min)&&(k=0),v=t>k&&t<180-k?"left":t>180+k&&t<360-k?"right":"center"):v="center",g.attr({align:v})),b.x+=l.x,b.y+=p):b=b.call(this,c,e,g,a,l,f,q,h);return b});c(a,"getMarkPath",function(b,c,e,g,a,l,f){var d=this.axis;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+g),c=["M",c,e,"L",b.x,b.y]):c=b.call(this,c,e,g,a,l,f);return c})})(w);(function(a){var n=a.each,r=a.noop,u=a.pick,h=a.Series,f=a.seriesType,m=a.seriesTypes;f("arearange","area",{marker:null,threshold:null, | ||
d){b=this.center;var c=this.chart,e=k(d,b[2]/2-this.offset);this.isCircular||void 0!==d?d=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],e,e,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(d=this.postTranslate(this.angleRad,e),d=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",d.x,d.y]);return d},setAxisTranslation:function(){l.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/ | ||
2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===k(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){l.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width= | ||
this.height=this.center[2]*k(this.sector,1)/2)},getPosition:function(b,d){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,k(this.isCircular?d:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,d){var c=this.chart,e=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+e[0]+Math.cos(b)*d,y:c.plotTop+e[1]+Math.sin(b)*d}},getPlotBandPath:function(b,d,c){var e=this.center,q=this.startAngleRad,a=e[2]/2,g=[k(c.outerRadius,"100%"),c.innerRadius,k(c.thickness, | ||
10)],l=Math.min(this.offset,0),f=/%$/,y,h=this.isCircular;"polygon"===this.options.gridLineInterpolation?e=this.getPlotLinePath(b).concat(this.getPlotLinePath(d,!0)):(b=Math.max(b,this.min),d=Math.min(d,this.max),h||(g[0]=this.translate(b),g[1]=this.translate(d)),g=u(g,function(b){f.test(b)&&(b=p(b,10)*a/100);return b}),"circle"!==c.shape&&h?(b=q+this.translate(b),d=q+this.translate(d)):(b=-Math.PI/2,d=1.5*Math.PI,y=!0),g[0]-=l,g[2]-=l,e=this.chart.renderer.symbols.arc(this.left+e[0],this.top+e[1], | ||
g[0],g[0],{start:Math.min(b,d),end:Math.max(b,d),innerR:k(g[1],g[0]-g[2]),open:y}));return e},getPlotLinePath:function(b,c){var e=this,d=e.center,g=e.chart,a=e.getPosition(b),l,p,f;e.isCircular?f=["M",d[0]+g.plotLeft,d[1]+g.plotTop,"L",a.x,a.y]:"circle"===e.options.gridLineInterpolation?(b=e.translate(b))&&(f=e.getLinePath(0,b)):(n(g.xAxis,function(b){b.pane===e.pane&&(l=b)}),f=[],b=e.translate(b),d=l.tickPositions,l.autoConnect&&(d=d.concat([d[0]])),c&&(d=[].concat(d).reverse()),n(d,function(e,d){p= | ||
l.getPosition(e,b);f.push(d?"L":"M",p.x,p.y)}));return f},getTitlePosition:function(){var b=this.center,e=this.chart,c=this.options.title;return{x:e.plotLeft+b[0]+(c.x||0),y:e.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};c(l,"init",function(b,c,a){var d=c.angular,q=c.polar,l=a.isX,f=d&&l,p,F=c.options,y=this.pane=c.pane[a.pane||0],n=y.options;if(d){if(r(this,f?e:g),p=!l)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else q&&(r(this,g),this.defaultRadialOptions=(p=l)? | ||
this.defaultRadialXOptions:h(this.defaultYAxisOptions,this.defaultRadialYOptions));d||q?(this.isRadial=!0,c.inverted=!1,F.chart.zoomType=null):this.isRadial=!1;p&&(y.axis=this);b.call(this,c,a);f||!d&&!q||(b=this.options,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(k(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=b.offset||0,this.isCircular=p)});c(l,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments, | ||
1))});c(a,"getPosition",function(b,c,e,g,a){var d=this.axis;return d.getPosition?d.getPosition(e):b.call(this,c,e,g,a)});c(a,"getLabelPosition",function(b,c,e,g,a,l,p,f,h){var d=this.axis,q=l.y,m=20,t=l.align,x=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+k(l.distance,-25)),"auto"===l.rotation?g.attr({rotation:x}):null===q&&(q=d.chart.renderer.fontMetrics(g.styles.fontSize).b-g.getBBox().height/2),null===t&&(d.isCircular?(this.label.getBBox().width> | ||
d.len*d.tickInterval/(d.max-d.min)&&(m=0),t=x>m&&x<180-m?"left":x>180+m&&x<360-m?"right":"center"):t="center",g.attr({align:t})),b.x+=l.x,b.y+=q):b=b.call(this,c,e,g,a,l,p,f,h);return b});c(a,"getMarkPath",function(b,c,e,g,a,l,p){var d=this.axis;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+g),c=["M",c,e,"L",b.x,b.y]):c=b.call(this,c,e,g,a,l,p);return c})})(v);(function(a){var n=a.each,r=a.noop,u=a.pick,h=a.Series,f=a.seriesType,k=a.seriesTypes;f("arearange","area",{marker:null,threshold:null, | ||
tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{series.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var c= | ||
this.chart,e=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=e.x-c.plotLeft;a.plotHigh=e.y-c.plotTop},translate:function(){var a=this,c=a.yAxis,e=!!a.modifyValue;m.area.prototype.translate.apply(a);n(a.points,function(g){var l=g.low,b=g.high,d=g.plotY;null===b||null===l?g.isNull=!0:(g.plotLow=d,g.plotHigh=c.translate(e?a.modifyValue(b,g):b,0,1,0,1),e&&(g.yBottom=g.plotHigh))});this.chart.polar&&n(this.points,function(c){a.highToXY(c)})},getGraphPath:function(a){var c=[], | ||
e=[],g,l=m.area.prototype.getGraphPath,b,d,p;p=this.options;var v=this.chart.polar&&!1!==p.connectEnds,k=p.step;a=a||this.points;for(g=a.length;g--;)b=a[g],b.isNull||v||a[g+1]&&!a[g+1].isNull||e.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1}),d={polarPlotY:b.polarPlotY,rectPlotX:b.rectPlotX,yBottom:b.yBottom,plotX:u(b.plotHighX,b.plotX),plotY:b.plotHigh,isNull:b.isNull},e.push(d),c.push(d),b.isNull||v||a[g-1]&&!a[g-1].isNull||e.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1});a=l.call(this,a);k&&(!0=== | ||
k&&(k="left"),p.step={left:"right",center:"center",right:"left"}[k]);c=l.call(this,c);e=l.call(this,e);p.step=k;p=[].concat(a,c);this.chart.polar||"M"!==e[0]||(e[0]="L");this.graphPath=p;this.areaPath=this.areaPath.concat(a,e);p.isArea=!0;p.xMap=a.xMap;this.areaPath.xMap=a.xMap;return p},drawDataLabels:function(){var a=this.data,c=a.length,e,g=[],l=h.prototype,b=this.options.dataLabels,d=b.align,p=b.verticalAlign,v=b.inside,k,f,t=this.chart.inverted;if(b.enabled||this._hasPointLabels){for(e=c;e--;)if(k= | ||
a[e])f=v?k.plotHigh<k.plotLow:k.plotHigh>k.plotLow,k.y=k.high,k._plotY=k.plotY,k.plotY=k.plotHigh,g[e]=k.dataLabel,k.dataLabel=k.dataLabelUpper,k.below=f,t?d||(b.align=f?"right":"left"):p||(b.verticalAlign=f?"top":"bottom"),b.x=b.xHigh,b.y=b.yHigh;l.drawDataLabels&&l.drawDataLabels.apply(this,arguments);for(e=c;e--;)if(k=a[e])f=v?k.plotHigh<k.plotLow:k.plotHigh>k.plotLow,k.dataLabelUpper=k.dataLabel,k.dataLabel=g[e],k.y=k.low,k.plotY=k._plotY,k.below=!f,t?d||(b.align=f?"left":"right"):p||(b.verticalAlign= | ||
f?"bottom":"top"),b.x=b.xLow,b.y=b.yLow;l.drawDataLabels&&l.drawDataLabels.apply(this,arguments)}b.align=d;b.verticalAlign=p},alignDataLabel:function(){m.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:r,getSymbol:r,drawPoints:r})})(w);(function(a){var n=a.seriesType;n("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(w);(function(a){var n=a.defaultPlotOptions,r=a.each,u=a.merge,h=a.noop,f=a.pick,m=a.seriesType,q=a.seriesTypes.column.prototype; | ||
m("columnrange","arearange",u(n.column,n.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var c=this,e=c.yAxis,a=c.xAxis,l=a.startAngleRad,b,d=c.chart,p=c.xAxis.isRadial,v;q.translate.apply(c);r(c.points,function(g){var k=g.shapeArgs,t=c.options.minPointLength,h,m;g.plotHigh=v=e.translate(g.high,0,1,0,1);g.plotLow=g.plotY;m=v;h=f(g.rectPlotY,g.plotY)-v;Math.abs(h)<t?(t-=h,h+=t,m-=t/2):0>h&&(h*=-1,m-=h);p?(b=g.barX+l,g.shapeType="path",g.shapeArgs={d:c.polarArc(m+h,m,b,b+g.pointWidth)}): | ||
(k.height=h,k.y=m,g.tooltipPos=d.inverted?[e.len+e.pos-d.plotLeft-m-h/2,a.len+a.pos-d.plotTop-k.x-k.width/2,h]:[a.left-d.plotLeft+k.x+k.width/2,e.pos-d.plotTop+m+h/2,h])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:h,crispCol:q.crispCol,drawPoints:q.drawPoints,drawTracker:q.drawTracker,getColumnMetrics:q.getColumnMetrics,animate:function(){return q.animate.apply(this,arguments)},polarArc:function(){return q.polarArc.apply(this,arguments)},pointAttribs:q.pointAttribs})})(w); | ||
(function(a){var n=a.each,r=a.isNumber,u=a.merge,h=a.pick,f=a.pInt,m=a.Series,q=a.seriesType,c=a.TrackerMixin;q("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var c=this.yAxis,a=this.options,l=c.center;this.generatePoints();n(this.points, | ||
function(b){var d=u(a.dial,b.dial),e=f(h(d.radius,80))*l[2]/200,g=f(h(d.baseLength,70))*e/100,k=f(h(d.rearLength,10))*e/100,m=d.baseWidth||3,t=d.topWidth||1,n=a.overshoot,q=c.startAngleRad+c.translate(b.y,null,null,null,!0);r(n)?(n=n/180*Math.PI,q=Math.max(c.startAngleRad-n,Math.min(c.endAngleRad+n,q))):!1===a.wrap&&(q=Math.max(c.startAngleRad,Math.min(c.endAngleRad,q)));q=180*q/Math.PI;b.shapeType="path";b.shapeArgs={d:d.path||["M",-k,-m/2,"L",g,-m/2,e,-t/2,e,t/2,g,m/2,-k,m/2,"z"],translateX:l[0], | ||
translateY:l[1],rotation:q};b.plotX=l[0];b.plotY=l[1]})},drawPoints:function(){var c=this,a=c.yAxis.center,l=c.pivot,b=c.options,d=b.pivot,p=c.chart.renderer;n(c.points,function(d){var e=d.graphic,a=d.shapeArgs,g=a.d;u(b.dial,d.dial);e?(e.animate(a),a.d=g):d.graphic=p[d.shapeType](a).attr({rotation:a.rotation,zIndex:1}).addClass("highcharts-dial").add(c.group)});l?l.animate({translateX:a[0],translateY:a[1]}):c.pivot=p.circle(0,0,h(d.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0], | ||
a[1]).add(c.group)},animate:function(c){var e=this;c||(n(e.points,function(c){var b=c.graphic;b&&(b.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),b.animate({rotation:c.shapeArgs.rotation},e.options.animation))}),e.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);m.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(c,a){m.prototype.setData.call(this,c,!1);this.processData(); | ||
this.generatePoints();h(a,!0)&&this.chart.redraw()},drawTracker:c&&c.drawTrackerPoint},{setState:function(c){this.state=c}})})(w);(function(a){var n=a.each,r=a.noop,u=a.seriesType,h=a.seriesTypes;u("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eMaximum: {point.high}\x3cbr/\x3eUpper quartile: {point.q3}\x3cbr/\x3eMedian: {point.median}\x3cbr/\x3eLower quartile: {point.q1}\x3cbr/\x3eMinimum: {point.low}\x3cbr/\x3e'}, | ||
whiskerLength:"50%"},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",drawDataLabels:r,translate:function(){var a=this.yAxis,m=this.pointArrayMap;h.column.prototype.translate.apply(this);n(this.points,function(f){n(m,function(c){null!==f[c]&&(f[c+"Plot"]=a.translate(f[c],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.chart.renderer,q,c,e,g,l,b,d=0,p,v,k,C,t=!1!==a.doQuartiles,r,u=a.options.whiskerLength;n(a.points, | ||
function(f){var m=f.graphic,n=m?"animate":"attr",E=f.shapeArgs;void 0!==f.plotY&&(p=E.width,v=Math.floor(E.x),k=v+p,C=Math.round(p/2),q=Math.floor(t?f.q1Plot:f.lowPlot),c=Math.floor(t?f.q3Plot:f.lowPlot),e=Math.floor(f.highPlot),g=Math.floor(f.lowPlot),m||(f.graphic=m=h.g("point").add(a.group),f.stem=h.path().addClass("highcharts-boxplot-stem").add(m),u&&(f.whiskers=h.path().addClass("highcharts-boxplot-whisker").add(m)),t&&(f.box=h.path(void 0).addClass("highcharts-boxplot-box").add(m)),f.medianShape= | ||
h.path(void 0).addClass("highcharts-boxplot-median").add(m)),b=f.stem.strokeWidth()%2/2,d=v+C+b,f.stem[n]({d:["M",d,c,"L",d,e,"M",d,q,"L",d,g]}),t&&(b=f.box.strokeWidth()%2/2,q=Math.floor(q)+b,c=Math.floor(c)+b,v+=b,k+=b,f.box[n]({d:["M",v,c,"L",v,q,"L",k,q,"L",k,c,"L",v,c,"z"]})),u&&(b=f.whiskers.strokeWidth()%2/2,e+=b,g+=b,r=/%$/.test(u)?C*parseFloat(u)/100:u/2,f.whiskers[n]({d:["M",d-r,e,"L",d+r,e,"M",d-r,g,"L",d+r,g]})),l=Math.round(f.medianPlot),b=f.medianShape.strokeWidth()%2/2,l+=b,f.medianShape[n]({d:["M", | ||
v,l,"L",k,l]}))})},setStackedPoints:r})})(w);(function(a){var n=a.each,r=a.noop,u=a.seriesType,h=a.seriesTypes;u("errorbar","boxplot",{grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:h.arearange? | ||
function(){var a=this.pointValKey;h.arearange.prototype.drawDataLabels.call(this);n(this.data,function(f){f.y=f[a]})}:r,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||h.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var n=a.correctFloat,r=a.isNumber,u=a.pick,h=a.Point,f=a.Series,m=a.seriesType,q=a.seriesTypes;m("waterfall","column",{dataLabels:{inside:!0}},{pointValKey:"y",translate:function(){var c=this.options,a=this.yAxis,g,l,b,d,p,f,k, | ||
h,t,m,r=u(c.minPointLength,5),w=r/2,z=c.threshold,A=c.stacking,y;q.column.prototype.translate.apply(this);h=t=z;l=this.points;g=0;for(c=l.length;g<c;g++)b=l[g],k=this.processedYData[g],d=b.shapeArgs,p=A&&a.stacks[(this.negStacks&&k<z?"-":"")+this.stackKey],y=this.getStackIndicator(y,b.x,this.index),m=p?p[b.x].points[y.key]:[0,k],b.isSum?b.y=n(k):b.isIntermediateSum&&(b.y=n(k-t)),f=Math.max(h,h+b.y)+m[0],d.y=a.translate(f,0,1,0,1),b.isSum?(d.y=a.translate(m[1],0,1,0,1),d.height=Math.min(a.translate(m[0], | ||
0,1,0,1),a.len)-d.y):b.isIntermediateSum?(d.y=a.translate(m[1],0,1,0,1),d.height=Math.min(a.translate(t,0,1,0,1),a.len)-d.y,t=m[1]):(d.height=0<k?a.translate(h,0,1,0,1)-d.y:a.translate(h,0,1,0,1)-a.translate(h-k,0,1,0,1),h+=p&&p[b.x]?p[b.x].total:k),0>d.height&&(d.y+=d.height,d.height*=-1),b.plotY=d.y=Math.round(d.y)-this.borderWidth%2/2,d.height=Math.max(Math.round(d.height),.001),b.yBottom=d.y+d.height,d.height<=r&&!b.isNull?(d.height=r,d.y-=w,b.plotY=d.y,b.minPointLengthOffset=0>b.y?-w:w):b.minPointLengthOffset= | ||
0,d=b.plotY+(b.negative?d.height:0),this.chart.inverted?b.tooltipPos[0]=a.len-d:b.tooltipPos[1]=d},processData:function(c){var a=this.yData,g=this.options.data,l,b=a.length,d,p,v,k,h,t;p=d=v=k=this.options.threshold||0;for(t=0;t<b;t++)h=a[t],l=g&&g[t]?g[t]:{},"sum"===h||l.isSum?a[t]=n(p):"intermediateSum"===h||l.isIntermediateSum?a[t]=n(d):(p+=h,d+=h),v=Math.min(p,v),k=Math.max(p,k);f.prototype.processData.call(this,c);this.options.stacking||(this.dataMin=v,this.dataMax=k)},toYData:function(c){return c.isSum? | ||
0===c.x?null:"sum":c.isIntermediateSum?0===c.x?null:"intermediateSum":c.y},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var c=this.data,a=c.length,g=this.graph.strokeWidth()+this.borderWidth,g=Math.round(g)%2/2,l=this.yAxis.reversed,b=[],d,f,h;for(h=1;h<a;h++){f=c[h].shapeArgs;d=c[h-1].shapeArgs;f=["M",d.x+d.width,d.y+c[h-1].minPointLengthOffset+g,"L",f.x,d.y+c[h-1].minPointLengthOffset+g];if(0>c[h-1].y&&!l||0<c[h-1].y&&l)f[2]+=d.height,f[5]+=d.height;b=b.concat(f)}return b},drawGraph:function(){f.prototype.drawGraph.call(this); | ||
this.chart,e=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=e.x-c.plotLeft;a.plotHigh=e.y-c.plotTop},translate:function(){var a=this,c=a.yAxis,e=!!a.modifyValue;k.area.prototype.translate.apply(a);n(a.points,function(g){var l=g.low,b=g.high,d=g.plotY;null===b||null===l?g.isNull=!0:(g.plotLow=d,g.plotHigh=c.translate(e?a.modifyValue(b,g):b,0,1,0,1),e&&(g.yBottom=g.plotHigh))});this.chart.polar&&n(this.points,function(c){a.highToXY(c)})},getGraphPath:function(a){var c=[], | ||
e=[],g,l=k.area.prototype.getGraphPath,b,d,q;q=this.options;var t=this.chart.polar&&!1!==q.connectEnds,m=q.connectNulls,f=q.step;a=a||this.points;for(g=a.length;g--;)b=a[g],b.isNull||t||m||a[g+1]&&!a[g+1].isNull||e.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1}),d={polarPlotY:b.polarPlotY,rectPlotX:b.rectPlotX,yBottom:b.yBottom,plotX:u(b.plotHighX,b.plotX),plotY:b.plotHigh,isNull:b.isNull},e.push(d),c.push(d),b.isNull||t||m||a[g-1]&&!a[g-1].isNull||e.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1}); | ||
a=l.call(this,a);f&&(!0===f&&(f="left"),q.step={left:"right",center:"center",right:"left"}[f]);c=l.call(this,c);e=l.call(this,e);q.step=f;q=[].concat(a,c);this.chart.polar||"M"!==e[0]||(e[0]="L");this.graphPath=q;this.areaPath=this.areaPath.concat(a,e);q.isArea=!0;q.xMap=a.xMap;this.areaPath.xMap=a.xMap;return q},drawDataLabels:function(){var a=this.data,c=a.length,e,g=[],l=h.prototype,b=this.options.dataLabels,d=b.align,q=b.verticalAlign,t=b.inside,m,f,w=this.chart.inverted;if(b.enabled||this._hasPointLabels){for(e= | ||
c;e--;)if(m=a[e])f=t?m.plotHigh<m.plotLow:m.plotHigh>m.plotLow,m.y=m.high,m._plotY=m.plotY,m.plotY=m.plotHigh,g[e]=m.dataLabel,m.dataLabel=m.dataLabelUpper,m.below=f,w?d||(b.align=f?"right":"left"):q||(b.verticalAlign=f?"top":"bottom"),b.x=b.xHigh,b.y=b.yHigh;l.drawDataLabels&&l.drawDataLabels.apply(this,arguments);for(e=c;e--;)if(m=a[e])f=t?m.plotHigh<m.plotLow:m.plotHigh>m.plotLow,m.dataLabelUpper=m.dataLabel,m.dataLabel=g[e],m.y=m.low,m.plotY=m._plotY,m.below=!f,w?d||(b.align=f?"left":"right"): | ||
q||(b.verticalAlign=f?"bottom":"top"),b.x=b.xLow,b.y=b.yLow;l.drawDataLabels&&l.drawDataLabels.apply(this,arguments)}b.align=d;b.verticalAlign=q},alignDataLabel:function(){k.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:r,getSymbol:r,drawPoints:r})})(v);(function(a){var n=a.seriesType;n("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var n=a.defaultPlotOptions,r=a.each,u=a.merge,h=a.noop,f=a.pick,k=a.seriesType, | ||
p=a.seriesTypes.column.prototype;k("columnrange","arearange",u(n.column,n.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var c=this,e=c.yAxis,a=c.xAxis,l=a.startAngleRad,b,d=c.chart,q=c.xAxis.isRadial,t;p.translate.apply(c);r(c.points,function(g){var m=g.shapeArgs,w=c.options.minPointLength,h,k;g.plotHigh=t=e.translate(g.high,0,1,0,1);g.plotLow=g.plotY;k=t;h=f(g.rectPlotY,g.plotY)-t;Math.abs(h)<w?(w-=h,h+=w,k-=w/2):0>h&&(h*=-1,k-=h);q?(b=g.barX+l,g.shapeType="path",g.shapeArgs={d:c.polarArc(k+ | ||
h,k,b,b+g.pointWidth)}):(m.height=h,m.y=k,g.tooltipPos=d.inverted?[e.len+e.pos-d.plotLeft-k-h/2,a.len+a.pos-d.plotTop-m.x-m.width/2,h]:[a.left-d.plotLeft+m.x+m.width/2,e.pos-d.plotTop+k+h/2,h])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:h,crispCol:p.crispCol,drawPoints:p.drawPoints,drawTracker:p.drawTracker,getColumnMetrics:p.getColumnMetrics,animate:function(){return p.animate.apply(this,arguments)},polarArc:function(){return p.polarArc.apply(this,arguments)},pointAttribs:p.pointAttribs})})(v); | ||
(function(a){var n=a.each,r=a.isNumber,u=a.merge,h=a.pick,f=a.pInt,k=a.Series,p=a.seriesType,c=a.TrackerMixin;p("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var c=this.yAxis,a=this.options,l=c.center;this.generatePoints();n(this.points, | ||
function(b){var d=u(a.dial,b.dial),e=f(h(d.radius,80))*l[2]/200,g=f(h(d.baseLength,70))*e/100,m=f(h(d.rearLength,10))*e/100,k=d.baseWidth||3,w=d.topWidth||1,p=a.overshoot,n=c.startAngleRad+c.translate(b.y,null,null,null,!0);r(p)?(p=p/180*Math.PI,n=Math.max(c.startAngleRad-p,Math.min(c.endAngleRad+p,n))):!1===a.wrap&&(n=Math.max(c.startAngleRad,Math.min(c.endAngleRad,n)));n=180*n/Math.PI;b.shapeType="path";b.shapeArgs={d:d.path||["M",-m,-k/2,"L",g,-k/2,e,-w/2,e,w/2,g,k/2,-m,k/2,"z"],translateX:l[0], | ||
translateY:l[1],rotation:n};b.plotX=l[0];b.plotY=l[1]})},drawPoints:function(){var c=this,a=c.yAxis.center,l=c.pivot,b=c.options,d=b.pivot,q=c.chart.renderer;n(c.points,function(d){var e=d.graphic,a=d.shapeArgs,g=a.d;u(b.dial,d.dial);e?(e.animate(a),a.d=g):d.graphic=q[d.shapeType](a).attr({rotation:a.rotation,zIndex:1}).addClass("highcharts-dial").add(c.group)});l?l.animate({translateX:a[0],translateY:a[1]}):c.pivot=q.circle(0,0,h(d.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0], | ||
a[1]).add(c.group)},animate:function(c){var e=this;c||(n(e.points,function(c){var b=c.graphic;b&&(b.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),b.animate({rotation:c.shapeArgs.rotation},e.options.animation))}),e.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);k.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(c,a){k.prototype.setData.call(this,c,!1);this.processData(); | ||
this.generatePoints();h(a,!0)&&this.chart.redraw()},drawTracker:c&&c.drawTrackerPoint},{setState:function(c){this.state=c}})})(v);(function(a){var n=a.each,r=a.noop,u=a.seriesType,h=a.seriesTypes;u("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eMaximum: {point.high}\x3cbr/\x3eUpper quartile: {point.q3}\x3cbr/\x3eMedian: {point.median}\x3cbr/\x3eLower quartile: {point.q1}\x3cbr/\x3eMinimum: {point.low}\x3cbr/\x3e'}, | ||
whiskerLength:"50%"},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",drawDataLabels:r,translate:function(){var a=this.yAxis,k=this.pointArrayMap;h.column.prototype.translate.apply(this);n(this.points,function(f){n(k,function(c){null!==f[c]&&(f[c+"Plot"]=a.translate(f[c],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.chart.renderer,p,c,e,g,l,b,d=0,q,t,m,x,w=!1!==a.doQuartiles,r,u=a.options.whiskerLength;n(a.points, | ||
function(f){var k=f.graphic,n=k?"animate":"attr",E=f.shapeArgs;void 0!==f.plotY&&(q=E.width,t=Math.floor(E.x),m=t+q,x=Math.round(q/2),p=Math.floor(w?f.q1Plot:f.lowPlot),c=Math.floor(w?f.q3Plot:f.lowPlot),e=Math.floor(f.highPlot),g=Math.floor(f.lowPlot),k||(f.graphic=k=h.g("point").add(a.group),f.stem=h.path().addClass("highcharts-boxplot-stem").add(k),u&&(f.whiskers=h.path().addClass("highcharts-boxplot-whisker").add(k)),w&&(f.box=h.path(void 0).addClass("highcharts-boxplot-box").add(k)),f.medianShape= | ||
h.path(void 0).addClass("highcharts-boxplot-median").add(k)),b=f.stem.strokeWidth()%2/2,d=t+x+b,f.stem[n]({d:["M",d,c,"L",d,e,"M",d,p,"L",d,g]}),w&&(b=f.box.strokeWidth()%2/2,p=Math.floor(p)+b,c=Math.floor(c)+b,t+=b,m+=b,f.box[n]({d:["M",t,c,"L",t,p,"L",m,p,"L",m,c,"L",t,c,"z"]})),u&&(b=f.whiskers.strokeWidth()%2/2,e+=b,g+=b,r=/%$/.test(u)?x*parseFloat(u)/100:u/2,f.whiskers[n]({d:["M",d-r,e,"L",d+r,e,"M",d-r,g,"L",d+r,g]})),l=Math.round(f.medianPlot),b=f.medianShape.strokeWidth()%2/2,l+=b,f.medianShape[n]({d:["M", | ||
t,l,"L",m,l]}))})},setStackedPoints:r})})(v);(function(a){var n=a.each,r=a.noop,u=a.seriesType,h=a.seriesTypes;u("errorbar","boxplot",{grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:h.arearange? | ||
function(){var a=this.pointValKey;h.arearange.prototype.drawDataLabels.call(this);n(this.data,function(f){f.y=f[a]})}:r,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||h.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var n=a.correctFloat,r=a.isNumber,u=a.pick,h=a.Point,f=a.Series,k=a.seriesType,p=a.seriesTypes;k("waterfall","column",{dataLabels:{inside:!0}},{pointValKey:"y",translate:function(){var c=this.options,a=this.yAxis,g,l,b,d,f,t,m, | ||
h,w,k,r=u(c.minPointLength,5),v=r/2,A=c.threshold,B=c.stacking,z;p.column.prototype.translate.apply(this);h=w=A;l=this.points;g=0;for(c=l.length;g<c;g++)b=l[g],m=this.processedYData[g],d=b.shapeArgs,f=B&&a.stacks[(this.negStacks&&m<A?"-":"")+this.stackKey],z=this.getStackIndicator(z,b.x,this.index),k=f?f[b.x].points[z.key]:[0,m],b.isSum?b.y=n(m):b.isIntermediateSum&&(b.y=n(m-w)),t=Math.max(h,h+b.y)+k[0],d.y=a.translate(t,0,1,0,1),b.isSum?(d.y=a.translate(k[1],0,1,0,1),d.height=Math.min(a.translate(k[0], | ||
0,1,0,1),a.len)-d.y):b.isIntermediateSum?(d.y=a.translate(k[1],0,1,0,1),d.height=Math.min(a.translate(w,0,1,0,1),a.len)-d.y,w=k[1]):(d.height=0<m?a.translate(h,0,1,0,1)-d.y:a.translate(h,0,1,0,1)-a.translate(h-m,0,1,0,1),h+=f&&f[b.x]?f[b.x].total:m),0>d.height&&(d.y+=d.height,d.height*=-1),b.plotY=d.y=Math.round(d.y)-this.borderWidth%2/2,d.height=Math.max(Math.round(d.height),.001),b.yBottom=d.y+d.height,d.height<=r&&!b.isNull?(d.height=r,d.y-=v,b.plotY=d.y,b.minPointLengthOffset=0>b.y?-v:v):b.minPointLengthOffset= | ||
0,d=b.plotY+(b.negative?d.height:0),this.chart.inverted?b.tooltipPos[0]=a.len-d:b.tooltipPos[1]=d},processData:function(c){var a=this.yData,g=this.options.data,l,b=a.length,d,q,t,m,h,k;q=d=t=m=this.options.threshold||0;for(k=0;k<b;k++)h=a[k],l=g&&g[k]?g[k]:{},"sum"===h||l.isSum?a[k]=n(q):"intermediateSum"===h||l.isIntermediateSum?a[k]=n(d):(q+=h,d+=h),t=Math.min(q,t),m=Math.max(q,m);f.prototype.processData.call(this,c);this.options.stacking||(this.dataMin=t,this.dataMax=m)},toYData:function(c){return c.isSum? | ||
0===c.x?null:"sum":c.isIntermediateSum?0===c.x?null:"intermediateSum":c.y},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var c=this.data,a=c.length,g=this.graph.strokeWidth()+this.borderWidth,g=Math.round(g)%2/2,f=this.yAxis.reversed,b=[],d,q,h;for(h=1;h<a;h++){q=c[h].shapeArgs;d=c[h-1].shapeArgs;q=["M",d.x+d.width,d.y+c[h-1].minPointLengthOffset+g,"L",q.x,d.y+c[h-1].minPointLengthOffset+g];if(0>c[h-1].y&&!f||0<c[h-1].y&&f)q[2]+=d.height,q[5]+=d.height;b=b.concat(q)}return b},drawGraph:function(){f.prototype.drawGraph.call(this); | ||
this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){var c=this.options,a,g;f.prototype.setStackedPoints.apply(this,arguments);a=this.stackedYData?this.stackedYData.length:0;for(g=1;g<a;g++)c.data[g].isSum||c.data[g].isIntermediateSum||(this.stackedYData[g]+=this.stackedYData[g-1])},getExtremes:function(){if(this.options.stacking)return f.prototype.getExtremes.apply(this,arguments)}},{getClassName:function(){var c=h.prototype.getClassName.call(this);this.isSum?c+=" highcharts-sum": | ||
this.isIntermediateSum&&(c+=" highcharts-intermediate-sum");return c},isValid:function(){return r(this.y,!0)||this.isSum||this.isIntermediateSum}})})(w);(function(a){var n=a.Series,r=a.seriesType,u=a.seriesTypes;r("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=n.prototype.getGraphPath.call(this),f=a.length+1;f--;)(f===a.length||"M"===a[f])&&0<f&&a.splice(f, | ||
0,"z");return this.areaPath=a},drawGraph:function(){u.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:n.prototype.drawTracker,setStackedPoints:a.noop})})(w);(function(a){var n=a.arrayMax,r=a.arrayMin,u=a.Axis,h=a.each,f=a.isNumber,m=a.noop,q=a.pick,c=a.pInt,e=a.Point,g=a.seriesType,l=a.seriesTypes;g("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{radius:null,states:{hover:{radiusPlus:0}}, | ||
symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(b,a,c,e){var d,g,f,l=this.zData,h=[],p=this.options,v="width"!==p.sizeBy,m=p.zThreshold,n=a-b;g=0;for(d=l.length;g<d;g++)f=l[g], | ||
p.sizeByAbsoluteValue&&null!==f&&(f=Math.abs(f-m),a=Math.max(a-m,Math.abs(b-m)),b=0),null===f?f=null:f<b?f=c/2-1:(f=0<n?(f-b)/n:.5,v&&0<=f&&(f=Math.sqrt(f)),f=Math.ceil(c+f*(e-c))/2),h.push(f);this.radii=h},animate:function(b){var a=this.options.animation;b||(h(this.points,function(b){var c=b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1,height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,c=this.data,e,g,k=this.radii; | ||
l.scatter.prototype.translate.call(this);for(b=c.length;b--;)e=c[b],g=k?k[b]:0,f(g)&&g>=this.minPxSize/2?(e.marker=a.extend(e.marker,{radius:g,width:2*g,height:2*g}),e.dlBox={x:e.plotX-g,y:e.plotY-g,width:2*g,height:2*g}):e.shapeArgs=e.plotY=e.dlBox=void 0},alignDataLabel:l.column.prototype.alignDataLabel,buildKDTree:m,applyZones:m},{haloPath:function(c){return e.prototype.haloPath.call(this,0===c?0:(this.marker?this.marker.radius||0:0)+c)},ttBelow:!1});u.prototype.beforePadding=function(){var b= | ||
this,a=this.len,e=this.chart,g=0,l=a,m=this.isXAxis,t=m?"xData":"yData",u=this.min,w={},x=Math.min(e.plotWidth,e.plotHeight),z=Number.MAX_VALUE,A=-Number.MAX_VALUE,y=this.max-u,B=a/y,D=[];h(this.series,function(a){var d=a.options;!a.bubblePadding||!a.visible&&e.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,D.push(a),m&&(h(["minSize","maxSize"],function(a){var b=d[a],e=/%$/.test(b),b=c(b);w[a]=e?x*b/100:b}),a.minPxSize=w.minSize,a.maxPxSize=Math.max(w.maxSize,w.minSize),a=a.zData,a.length&& | ||
(z=q(d.zMin,Math.min(z,Math.max(r(a),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),A=q(d.zMax,Math.max(A,n(a))))))});h(D,function(a){var c=a[t],d=c.length,e;m&&a.getRadii(z,A,a.minPxSize,a.maxPxSize);if(0<y)for(;d--;)f(c[d])&&b.dataMin<=c[d]&&c[d]<=b.dataMax&&(e=a.radii[d],g=Math.min((c[d]-u)*B-e,g),l=Math.max((c[d]-u)*B+e,l))});D.length&&0<y&&!this.isLog&&(l-=a,B*=(a+g-l)/a,h([["min","userMin",g],["max","userMax",l]],function(a){void 0===q(b.options[a[0]],b[a[1]])&&(b[a[0]]+=a[2]/B)}))}})(w); | ||
(function(a){function n(a,e){var c=this.chart,f=this.options.animation,b=this.group,d=this.markerGroup,h=this.xAxis.center,m=c.plotLeft,k=c.plotTop;c.polar?c.renderer.isSVG&&(!0===f&&(f={}),e?(a={translateX:h[0]+m,translateY:h[1]+k,scaleX:.001,scaleY:.001},b.attr(a),d&&d.attr(a)):(a={translateX:m,translateY:k,scaleX:1,scaleY:1},b.animate(a,f),d&&d.animate(a,f),this.animate=null)):a.call(this,e)}var r=a.each,u=a.pick,h=a.seriesTypes,f=a.wrap,m=a.Series.prototype,q=a.Pointer.prototype;m.searchPointByAngle= | ||
function(a){var c=this.chart,g=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX-g[0]-c.plotLeft,a.chartY-g[1]-c.plotTop)})};m.getConnectors=function(a,e,g,f){var b,c,l,h,k,m,n,q;c=f?1:0;b=0<=e&&e<=a.length-1?e:0>e?a.length-1+e:0;e=0>b-1?a.length-(1+c):b-1;c=b+1>a.length-1?c:b+1;l=a[e];c=a[c];h=l.plotX;l=l.plotY;k=c.plotX;m=c.plotY;c=a[b].plotX;b=a[b].plotY;h=(1.5*c+h)/2.5;l=(1.5*b+l)/2.5;k=(1.5*c+k)/2.5;n=(1.5*b+m)/2.5;m=Math.sqrt(Math.pow(h-c,2)+Math.pow(l- | ||
b,2));q=Math.sqrt(Math.pow(k-c,2)+Math.pow(n-b,2));h=Math.atan2(l-b,h-c);n=Math.PI/2+(h+Math.atan2(n-b,k-c))/2;Math.abs(h-n)>Math.PI/2&&(n-=Math.PI);h=c+Math.cos(n)*m;l=b+Math.sin(n)*m;k=c+Math.cos(Math.PI+n)*q;n=b+Math.sin(Math.PI+n)*q;c={rightContX:k,rightContY:n,leftContX:h,leftContY:l,plotX:c,plotY:b};g&&(c.prevPointCont=this.getConnectors(a,e,!1,f));return c};f(m,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy= | ||
"xy");a.apply(this)});m.toXY=function(a){var c,g=this.chart,f=a.plotX;c=a.plotY;a.rectPlotX=f;a.rectPlotY=c;c=this.xAxis.postTranslate(a.plotX,this.yAxis.len-c);a.plotX=a.polarPlotX=c.x-g.plotLeft;a.plotY=a.polarPlotY=c.y-g.plotTop;this.kdByAngle?(g=(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>g&&(g+=360),a.clientX=g):a.clientX=a.plotX};h.spline&&(f(h.spline.prototype,"getPointSpline",function(a,e,g,f){this.chart.polar?f?(a=this.getConnectors(e,f,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX, | ||
a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",g.plotX,g.plotY]:a=a.call(this,e,g,f);return a}),h.areasplinerange&&(h.areasplinerange.prototype.getPointSpline=h.spline.prototype.getPointSpline));f(m,"translate",function(a){var c=this.chart;a.call(this);if(c.polar&&(this.kdByAngle=c.tooltip&&c.tooltip.shared,!this.preventPostTranslate))for(a=this.points,c=a.length;c--;)this.toXY(a[c])});f(m,"getGraphPath",function(a,e){var c=this,f,b,d;if(this.chart.polar){e=e||this.points; | ||
for(f=0;f<e.length;f++)if(!e[f].isNull){b=f;break}!1!==this.options.connectEnds&&void 0!==b&&(this.connectEnds=!0,e.splice(e.length,0,e[b]),d=!0);r(e,function(a){void 0===a.polarPlotY&&c.toXY(a)})}f=a.apply(this,[].slice.call(arguments,1));d&&e.pop();return f});f(m,"animate",n);h.column&&(h=h.column.prototype,h.polarArc=function(a,e,g,f){var b=this.xAxis.center,c=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],c-e,null,{start:g,end:f,innerR:c-u(a,c)})},f(h,"animate",n),f(h,"translate", | ||
this.isIntermediateSum&&(c+=" highcharts-intermediate-sum");return c},isValid:function(){return r(this.y,!0)||this.isSum||this.isIntermediateSum}})})(v);(function(a){var n=a.Series,r=a.seriesType,u=a.seriesTypes;r("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=n.prototype.getGraphPath.call(this),f=a.length+1;f--;)(f===a.length||"M"===a[f])&&0<f&&a.splice(f, | ||
0,"z");return this.areaPath=a},drawGraph:function(){u.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:n.prototype.drawTracker,setStackedPoints:a.noop})})(v);(function(a){var n=a.arrayMax,r=a.arrayMin,u=a.Axis,h=a.each,f=a.isNumber,k=a.noop,p=a.pick,c=a.pInt,e=a.Point,g=a.seriesType,l=a.seriesTypes;g("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{radius:null,states:{hover:{radiusPlus:0}}, | ||
symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(b,a,c,e){var d,g,f,l=this.zData,q=[],h=this.options,k="width"!==h.sizeBy,t=h.zThreshold,n=a-b;g=0;for(d=l.length;g<d;g++)f=l[g], | ||
h.sizeByAbsoluteValue&&null!==f&&(f=Math.abs(f-t),a=Math.max(a-t,Math.abs(b-t)),b=0),null===f?f=null:f<b?f=c/2-1:(f=0<n?(f-b)/n:.5,k&&0<=f&&(f=Math.sqrt(f)),f=Math.ceil(c+f*(e-c))/2),q.push(f);this.radii=q},animate:function(b){var a=this.options.animation;b||(h(this.points,function(b){var c=b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1,height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,c=this.data,e,g,h=this.radii; | ||
l.scatter.prototype.translate.call(this);for(b=c.length;b--;)e=c[b],g=h?h[b]:0,f(g)&&g>=this.minPxSize/2?(e.marker=a.extend(e.marker,{radius:g,width:2*g,height:2*g}),e.dlBox={x:e.plotX-g,y:e.plotY-g,width:2*g,height:2*g}):e.shapeArgs=e.plotY=e.dlBox=void 0},alignDataLabel:l.column.prototype.alignDataLabel,buildKDTree:k,applyZones:k},{haloPath:function(c){return e.prototype.haloPath.call(this,0===c?0:(this.marker?this.marker.radius||0:0)+c)},ttBelow:!1});u.prototype.beforePadding=function(){var b= | ||
this,a=this.len,e=this.chart,g=0,l=a,k=this.isXAxis,w=k?"xData":"yData",u=this.min,v={},y=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,B=-Number.MAX_VALUE,z=this.max-u,C=a/z,D=[];h(this.series,function(a){var d=a.options;!a.bubblePadding||!a.visible&&e.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,D.push(a),k&&(h(["minSize","maxSize"],function(a){var b=d[a],e=/%$/.test(b),b=c(b);v[a]=e?y*b/100:b}),a.minPxSize=v.minSize,a.maxPxSize=Math.max(v.maxSize,v.minSize),a=a.zData,a.length&& | ||
(A=p(d.zMin,Math.min(A,Math.max(r(a),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),B=p(d.zMax,Math.max(B,n(a))))))});h(D,function(a){var c=a[w],d=c.length,e;k&&a.getRadii(A,B,a.minPxSize,a.maxPxSize);if(0<z)for(;d--;)f(c[d])&&b.dataMin<=c[d]&&c[d]<=b.dataMax&&(e=a.radii[d],g=Math.min((c[d]-u)*C-e,g),l=Math.max((c[d]-u)*C+e,l))});D.length&&0<z&&!this.isLog&&(l-=a,C*=(a+g-l)/a,h([["min","userMin",g],["max","userMax",l]],function(a){void 0===p(b.options[a[0]],b[a[1]])&&(b[a[0]]+=a[2]/C)}))}})(v); | ||
(function(a){function n(a,e){var c=this.chart,f=this.options.animation,b=this.group,d=this.markerGroup,h=this.xAxis.center,k=c.plotLeft,m=c.plotTop;c.polar?c.renderer.isSVG&&(!0===f&&(f={}),e?(a={translateX:h[0]+k,translateY:h[1]+m,scaleX:.001,scaleY:.001},b.attr(a),d&&d.attr(a)):(a={translateX:k,translateY:m,scaleX:1,scaleY:1},b.animate(a,f),d&&d.animate(a,f),this.animate=null)):a.call(this,e)}var r=a.each,u=a.pick,h=a.seriesTypes,f=a.wrap,k=a.Series.prototype,p=a.Pointer.prototype;k.searchPointByAngle= | ||
function(a){var c=this.chart,g=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX-g[0]-c.plotLeft,a.chartY-g[1]-c.plotTop)})};k.getConnectors=function(a,e,g,f){var b,c,l,h,k,n,p,r;c=f?1:0;b=0<=e&&e<=a.length-1?e:0>e?a.length-1+e:0;e=0>b-1?a.length-(1+c):b-1;c=b+1>a.length-1?c:b+1;l=a[e];c=a[c];h=l.plotX;l=l.plotY;k=c.plotX;n=c.plotY;c=a[b].plotX;b=a[b].plotY;h=(1.5*c+h)/2.5;l=(1.5*b+l)/2.5;k=(1.5*c+k)/2.5;p=(1.5*b+n)/2.5;n=Math.sqrt(Math.pow(h-c,2)+Math.pow(l- | ||
b,2));r=Math.sqrt(Math.pow(k-c,2)+Math.pow(p-b,2));h=Math.atan2(l-b,h-c);p=Math.PI/2+(h+Math.atan2(p-b,k-c))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=c+Math.cos(p)*n;l=b+Math.sin(p)*n;k=c+Math.cos(Math.PI+p)*r;p=b+Math.sin(Math.PI+p)*r;c={rightContX:k,rightContY:p,leftContX:h,leftContY:l,plotX:c,plotY:b};g&&(c.prevPointCont=this.getConnectors(a,e,!1,f));return c};f(k,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy= | ||
"xy");a.apply(this)});k.toXY=function(a){var c,g=this.chart,f=a.plotX;c=a.plotY;a.rectPlotX=f;a.rectPlotY=c;c=this.xAxis.postTranslate(a.plotX,this.yAxis.len-c);a.plotX=a.polarPlotX=c.x-g.plotLeft;a.plotY=a.polarPlotY=c.y-g.plotTop;this.kdByAngle?(g=(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>g&&(g+=360),a.clientX=g):a.clientX=a.plotX};h.spline&&(f(h.spline.prototype,"getPointSpline",function(a,e,g,f){this.chart.polar?f?(a=this.getConnectors(e,f,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX, | ||
a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",g.plotX,g.plotY]:a=a.call(this,e,g,f);return a}),h.areasplinerange&&(h.areasplinerange.prototype.getPointSpline=h.spline.prototype.getPointSpline));f(k,"translate",function(a){var c=this.chart;a.call(this);if(c.polar&&(this.kdByAngle=c.tooltip&&c.tooltip.shared,!this.preventPostTranslate))for(a=this.points,c=a.length;c--;)this.toXY(a[c])});f(k,"getGraphPath",function(a,e){var c=this,f,b,d;if(this.chart.polar){e=e||this.points; | ||
for(f=0;f<e.length;f++)if(!e[f].isNull){b=f;break}!1!==this.options.connectEnds&&void 0!==b&&(this.connectEnds=!0,e.splice(e.length,0,e[b]),d=!0);r(e,function(a){void 0===a.polarPlotY&&c.toXY(a)})}f=a.apply(this,[].slice.call(arguments,1));d&&e.pop();return f});f(k,"animate",n);h.column&&(h=h.column.prototype,h.polarArc=function(a,e,g,f){var b=this.xAxis.center,c=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],c-e,null,{start:g,end:f,innerR:c-u(a,c)})},f(h,"animate",n),f(h,"translate", | ||
function(a){var c=this.xAxis,f=c.startAngleRad,h,b,d;this.preventPostTranslate=!0;a.call(this);if(c.isRadial)for(h=this.points,d=h.length;d--;)b=h[d],a=b.barX+f,b.shapeType="path",b.shapeArgs={d:this.polarArc(b.yBottom,b.plotY,a,a+b.pointWidth)},this.toXY(b),b.tooltipPos=[b.plotX,b.plotY],b.ttBelow=b.plotY>c.center[1]}),f(h,"alignDataLabel",function(a,e,f,h,b,d){this.chart.polar?(a=e.rectPlotX/Math.PI*180,null===h.align&&(h.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===h.verticalAlign&& | ||
(h.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),m.alignDataLabel.call(this,e,f,h,b,d)):a.call(this,e,f,h,b,d)}));f(q,"getCoordinates",function(a,e){var c=this.chart,f={xAxis:[],yAxis:[]};c.polar?r(c.axes,function(a){var b=a.isXAxis,g=a.center,h=e.chartX-g[0]-c.plotLeft,g=e.chartY-g[1]-c.plotTop;f[b?"xAxis":"yAxis"].push({axis:a,value:a.translate(b?Math.PI-Math.atan2(h,g):Math.sqrt(Math.pow(h,2)+Math.pow(g,2)),!0)})}):f=a.call(this,e);return f});f(a.Chart.prototype,"getAxes",function(c){this.pane|| | ||
(this.pane=[]);r(a.splat(this.options.pane),function(c){new a.Pane(c,this)},this);c.call(this)});f(a.Chart.prototype,"drawChartBox",function(a){a.call(this);r(this.pane,function(a){a.render()})});f(a.Chart.prototype,"get",function(c,e){return a.find(this.pane,function(a){return a.options.id===e})||c.call(this,e)})})(w)}); | ||
(h.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),k.alignDataLabel.call(this,e,f,h,b,d)):a.call(this,e,f,h,b,d)}));f(p,"getCoordinates",function(a,e){var c=this.chart,f={xAxis:[],yAxis:[]};c.polar?r(c.axes,function(a){var b=a.isXAxis,g=a.center,h=e.chartX-g[0]-c.plotLeft,g=e.chartY-g[1]-c.plotTop;f[b?"xAxis":"yAxis"].push({axis:a,value:a.translate(b?Math.PI-Math.atan2(h,g):Math.sqrt(Math.pow(h,2)+Math.pow(g,2)),!0)})}):f=a.call(this,e);return f});f(a.Chart.prototype,"getAxes",function(c){this.pane|| | ||
(this.pane=[]);r(a.splat(this.options.pane),function(c){new a.Pane(c,this)},this);c.call(this)});f(a.Chart.prototype,"drawChartBox",function(a){a.call(this);r(this.pane,function(a){a.render()})});f(a.Chart.prototype,"get",function(c,e){return a.find(this.pane,function(a){return a.options.id===e})||c.call(this,e)})})(v)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Accessibility module | ||
@@ -11,3 +11,3 @@ | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(e){function q(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function z(a){for(var c=a.childNodes.length;c--;)a.appendChild(a.childNodes[c])}function k(a){var c;a&&a.onclick&&l.createEvent&&(c=l.createEvent("Events"),c.initEvent("click",!0,!1),a.onclick(c))}var y=e.win,l=y.document, | ||
g=e.each,A=e.erase,v=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
g=e.each,A=e.erase,u=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
"boxes"],arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
@@ -18,33 +18,33 @@ "data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},D={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
function(){var a=this.chart.options.accessibility,c=this.points&&this.points.length&&this.points[0].graphic&&this.points[0].graphic.element,d=c&&c.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===c&&z(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(b){b.graphic&&(b.graphic.element.setAttribute("role","img"),b.graphic.element.setAttribute("tabindex","-1"),b.graphic.element.setAttribute("aria-label", | ||
a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1=== | ||
this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f= | ||
c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description? | ||
" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&&d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments, | ||
1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),v(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart."; | ||
if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b=0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+ | ||
c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName||a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label", | ||
"Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1; | ||
if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation.skipNullPoints||b.series.options.skipKeyboardNavigation?(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&& | ||
(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus();if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c= | ||
this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx= | ||
a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap; | ||
this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex=0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex]; | ||
9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39===a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c= | ||
b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0,d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&& | ||
d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){k(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&&!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu(); | ||
if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+=c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus(); | ||
a.setState(2)}],[[13,32],function(){k(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx= | ||
0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&k(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role", | ||
"button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!==b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&& | ||
b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){k(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return b.legend&&b.legend.allItems&&!(b.colorAxis&&b.colorAxis.length)}, | ||
init:function(a){g(b.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex","0");v(b.renderTo,"keydown",d);v(b,"destroy",function(){B(b.renderTo, | ||
"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=l.createElement("div"),k=l.createElement("h4"),n=l.createElement("a"),t=l.createElement("h4"),u={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]||r["default"];m.setAttribute("id",a);m.setAttribute("role","region"); | ||
m.setAttribute("aria-label","Chart screen reader information.");m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+ | ||
(e.chart.typeDescription||d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick=g.onTableAnchorClick||function(){d.viewData();l.getElementById(c).focus()},k.appendChild(n),m.appendChild(k));t.innerHTML= | ||
"Chart graphic.";d.renderTo.insertBefore(t,d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,t.style,u);w(!0,m.style,u)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=l.createElementNS("http://www.w3.org/2000/svg","title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0],m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+ | ||
a.index,t="highcharts-information-region-"+a.index,u=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(u);b.id=r;k.parentNode.insertBefore(b,k);a.renderTo.setAttribute("role","region");a.container.setAttribute("aria-details",t);a.renderTo.setAttribute("aria-label","Interactive chart. "+u+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&&a.exportSVGElements[0].element){var v= | ||
a.exportSVGElements[0].element.onclick,b=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){v.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region");f.setAttribute("aria-label","Chart export menu"); | ||
b.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(t,n);d.keyboardNavigation.enabled&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a,b,c){if(!a)return"Category"; | ||
if(a instanceof e.Axis)return a.options.title&&a.options.title.text||(a.isDatetimeAxis?"DateTime":"Category");var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+u+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this, | ||
Array.prototype.slice.call(arguments,1));var b=l.getElementById(n),c=b.getElementsByTagName("thead")[0],d=b.getElementsByTagName("tbody")[0],e=c.firstChild.children,f="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",h,k;b.setAttribute("tabindex","-1");g(d.children,function(a){h=a.firstChild;k=l.createElement("th");k.setAttribute("scope","row");k.innerHTML=h.innerHTML;h.parentNode.replaceChild(k,h)});g(e,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});p.length&&(g(p,function(a){f+='\x3cth scope\x3d"col" colspan\x3d"'+ | ||
a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",f))}})}})})(q)}); | ||
b.series.options.pointDescriptionFormatter&&b.series.options.pointDescriptionFormatter(b)||a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role",this.options.exposeElementToA11y?"img":"region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString= | ||
function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1===this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription(): | ||
"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f=c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category|| | ||
this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description?" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&& | ||
d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),u(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&& | ||
this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart.";if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b= | ||
0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName|| | ||
a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label","Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint= | ||
function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1;if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation.skipNullPoints||b.series.options.skipKeyboardNavigation? | ||
(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&&(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus(); | ||
if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c=this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem= | ||
function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx=a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout(); | ||
this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap;this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex= | ||
0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39=== | ||
a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c=b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0, | ||
d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&&d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){k(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&& | ||
!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu();if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+= | ||
c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus();a.setState(2)}],[[13,32],function(){k(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label", | ||
"Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx=0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&k(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons, | ||
function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!== | ||
b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&&b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){k(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]], | ||
{validate:function(){return b.legend&&b.legend.allItems&&!(b.colorAxis&&b.colorAxis.length)},init:function(a){g(b.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex", | ||
"0");u(b.renderTo,"keydown",d);u(b,"destroy",function(){B(b.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=l.createElement("div"),k=l.createElement("h4"),n=l.createElement("a"),v=l.createElement("h4"),t={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]|| | ||
r["default"];m.setAttribute("id",a);m.setAttribute("role","region");m.setAttribute("aria-label","Chart screen reader information.");m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+ | ||
(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+(e.chart.typeDescription||d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick= | ||
g.onTableAnchorClick||function(){d.viewData();l.getElementById(c).focus()},k.appendChild(n),m.appendChild(k));v.innerHTML="Chart graphic.";d.renderTo.insertBefore(v,d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,v.style,t);w(!0,m.style,t)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=l.createElementNS("http://www.w3.org/2000/svg","title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0], | ||
m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+a.index,v="highcharts-information-region-"+a.index,t=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(t);b.id=r;k.parentNode.insertBefore(b,k);a.renderTo.setAttribute("role","region");a.renderTo.setAttribute("aria-label","Interactive chart. "+t+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&& | ||
a.exportSVGElements[0].element){var u=a.exportSVGElements[0].element.onclick,b=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){u.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region"); | ||
f.setAttribute("aria-label","Chart export menu");b.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(v,n);d.keyboardNavigation.enabled&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a, | ||
b,c){if(!a)return"Category";if(a instanceof e.Axis)return a.options.title&&a.options.title.text||(a.isDatetimeAxis?"DateTime":"Category");var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+t+"\x3c/caption\x3e")});e.wrap(a,"viewData", | ||
function(a){if(!this.dataTableDiv){a.apply(this,Array.prototype.slice.call(arguments,1));var b=l.getElementById(n),c=b.getElementsByTagName("thead")[0],d=b.getElementsByTagName("tbody")[0],e=c.firstChild.children,f="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",h,k;b.setAttribute("tabindex","-1");g(d.children,function(a){h=a.firstChild;k=l.createElement("th");k.setAttribute("scope","row");k.innerHTML=h.innerHTML;h.parentNode.replaceChild(k,h)});g(e,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")}); | ||
p.length&&(g(p,function(a){f+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",f))}})}})})(q)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Accessibility module | ||
@@ -161,3 +161,7 @@ * | ||
point.graphic.element.setAttribute('tabindex', '-1'); | ||
point.graphic.element.setAttribute('aria-label', a11yOptions.pointDescriptionFormatter && a11yOptions.pointDescriptionFormatter(point) || | ||
point.graphic.element.setAttribute('aria-label', | ||
point.series.options.pointDescriptionFormatter && | ||
point.series.options.pointDescriptionFormatter(point) || | ||
a11yOptions.pointDescriptionFormatter && | ||
a11yOptions.pointDescriptionFormatter(point) || | ||
point.buildPointInfoString()); | ||
@@ -169,3 +173,6 @@ } | ||
if (this.chart.series.length > 1 || a11yOptions.describeSingleSeries) { | ||
seriesEl.setAttribute('role', 'region'); | ||
seriesEl.setAttribute( | ||
'role', | ||
this.options.exposeElementToA11y ? 'img' : 'region' | ||
); | ||
seriesEl.setAttribute('tabindex', '-1'); | ||
@@ -419,3 +426,3 @@ seriesEl.setAttribute('aria-label', a11yOptions.seriesDescriptionFormatter && a11yOptions.seriesDescriptionFormatter(this) || | ||
this.options.accessibility.keyboardNavigation.skipNullPoints || | ||
newPoint.series.options.skipKeyboardNavigation // docs | ||
newPoint.series.options.skipKeyboardNavigation | ||
) { | ||
@@ -1006,3 +1013,3 @@ this.highlightedPoint = newPoint; | ||
chart.renderTo.setAttribute('role', 'region'); | ||
chart.container.setAttribute('aria-details', hiddenSectionId); | ||
//chart.container.setAttribute('aria-details', hiddenSectionId); // JAWS currently doesn't handle this too well | ||
chart.renderTo.setAttribute('aria-label', 'Interactive chart. ' + chartTitle + | ||
@@ -1093,3 +1100,3 @@ '. Use up and down arrows to navigate with most screen readers.'); | ||
H.wrap(chart, 'viewData', function(proceed) { | ||
if (!this.insertedTable) { | ||
if (!this.dataTableDiv) { | ||
proceed.apply(this, Array.prototype.slice.call(arguments, 1)); | ||
@@ -1096,0 +1103,0 @@ |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Boost module | ||
@@ -11,3 +11,3 @@ | ||
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(d){function p(a,b,c,g,e){e=e||0;g=g||5E4;for(var d=e+g,f=!0;f&&e<d&&e<a.length;)f=b(a[e],e),e+=1;f&&(e<a.length?setTimeout(function(){p(a,b,c,g,e)}):c&&c())}function x(a){return a.series.length>=((a.options.boost?a.options.boost.seriesThreshold:0)||a.options.chart.seriesBoostThreshold||10)}var A=d.win.document,Z=function(){},aa=d.Color,m=d.Series,k=d.seriesTypes,w=d.each,B=d.extend,y=d.addEvent, | ||
ba=d.fireEvent,r=d.isNumber,ca=d.merge,da=d.pick,n=d.wrap,L;d.initCanvasBoost=function(){d.seriesTypes.heatmap&&d.wrap(d.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.getContext();a?(w(this.points,function(b){var c=b.plotY;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,b=b.pointAttr&&b.pointAttr[""]||b.series.pointAttribs(b),a.fillStyle=b.fill,a.fillRect(c.x,c.y,c.width,c.height))}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, \x3cbr\x3eplease use a modern browser")}); | ||
ba=d.fireEvent,r=d.isNumber,ca=d.merge,da=d.pick,n=d.wrap,L;d.initCanvasBoost=function(){d.seriesTypes.heatmap&&d.wrap(d.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.getContext();a?(w(this.points,function(b){var c=b.plotY;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,b=b.series.colorAttribs(b),a.fillStyle=b.fill,a.fillRect(c.x,c.y,c.width,c.height))}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, \x3cbr\x3eplease use a modern browser")}); | ||
d.extend(m.prototype,{directTouch:!1,pointRange:0,allowDG:!1,hasExtremes:function(a){var b=this.options,c=this.xAxis&&this.xAxis.options,g=this.yAxis&&this.yAxis.options;return b.data.length>(b.boostThreshold||Number.MAX_VALUE)&&r(g.min)&&r(g.max)&&(!a||r(c.min)&&r(c.max))},destroyGraphics:function(){var a=this,b=this.points,c,g;if(b)for(g=0;g<b.length;g+=1)(c=b[g])&&c.graphic&&(c.graphic=c.graphic.destroy());w(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},getContext:function(){var a= | ||
@@ -14,0 +14,0 @@ this.chart,b=a.chartWidth,c=a.chartHeight,g=this.group,e=this,d,f=function(a,c,b,e,g,d,f){a.call(this,b,c,e,g,d,f)};x(a)&&(e=a,g=a.seriesGroup);d=e.ctx;e.canvas||(e.canvas=A.createElement("canvas"),e.image=a.renderer.image("",0,0,b,c).add(g),e.ctx=d=e.canvas.getContext("2d"),a.inverted&&w(["moveTo","lineTo","rect","arc"],function(a){n(d,a,f)}),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect));e.canvas.width!==b&&(e.canvas.width=b);e.canvas.height!== |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Boost module | ||
@@ -138,4 +138,6 @@ * | ||
pointAttr = (point.pointAttr && point.pointAttr['']) || point.series.pointAttribs(point); | ||
pointAttr = point.series.colorAttribs(point); | ||
ctx.fillStyle = pointAttr.fill; | ||
@@ -142,0 +144,0 @@ ctx.fillRect(shapeArgs.x, shapeArgs.y, shapeArgs.width, shapeArgs.height); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Boost module | ||
@@ -10,29 +10,29 @@ | ||
*/ | ||
(function(A){"object"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(h){function z(a){return a.series.length>=G(a.options.boost&&a.options.boost.seriesThreshold,10)}function B(a){function c(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;C(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}return z(a.chart)||c(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold|| | ||
Number.MAX_VALUE)}function A(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function e(b){return a.getUniformLocation(l,b)}var d=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),f=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!d||!f)return l=!1;l=a.createProgram();a.attachShader(l,d);a.attachShader(l,f);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=e("uPMatrix");n=e("pSize");I=e("fillColor");y=e("isBubble");k=e("bubbleSizeAbs");t=e("bubbleSizeByArea");D=e("uSampler");b=e("skipTranslation");p=e("isCircle");g=e("isInverted");return!0}function f(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,n,I,y,k,t,b,p,g,D;a&&d();return{psUniform:function(){return n},pUniform:function(){return h},fillColorUniform:function(){return I},setBubbleUniforms:function(b,c,e){var d= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=G(d.zMin,Math.min(l,Math.max(c,!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),h=G(d.zMax,Math.max(h,e)),a.uniform1i(y,1),a.uniform1i(p,1),a.uniform1i(t,"width"!==b.options.sizeBy),a.uniform1i(k,b.options.sizeByAbsoluteValue),f("bubbleZMin",l),f("bubbleZMax",h),f("bubbleZThreshold",b.options.zThreshold),f("bubbleMinSize",b.minPxSize),f("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:f,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(I,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(n,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(D,0)},setDrawAsCircle:function(b){a.uniform1i(p,b?1:0)},reset:function(){a.uniform1i(y,0);a.uniform1i(p,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var f=!1,e= | ||
!1,l=d||2,h=!1,n=0,g;return{destroy:function(){f&&a.deleteBuffer(f)},bind:function(){if(!f)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,k,t){g=d||[];if(!(g&&0!==g.length||h))return f=!1;l=t||l;f&&a.deleteBuffer(f);f=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,f);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),k);a.enableVertexAttribArray(e);return!0},render:function(c,e,d){var b=h?h.length:g.length;if(!f||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!e||e>b)e=b;a.drawArrays(a[(d||"points").toUpperCase()],c/l,(e-c)/l);return!0},allocate:function(a){n=-1;h=new Float32Array(4*a)},push:function(a,c,e,b){h&&(h[++n]=a,h[++n]=c,h[++n]=e,h[++n]=b)}}}function fa(a){function c(a){var b,c;return B(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:N[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function f(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function e(a,b,e,d,f){c(f);q.usePreallocated?t.push(a,b,e?1:0,d||1):(D.push(a),D.push(b),D.push(e?1:0),D.push(d||1))}function d(a,b,d,f,v){c(v);e(a+d,b);c(v);e(a,b);c(v);e(a,b+f);c(v);e(a,b+f);c(v);e(a+d,b+f);c(v);e(a+d,b)}function f(a){q.useGPUTranslations||(b.skipTranslation=!0,a.x=B.toPixels(a.x,!0),a.y=F.toPixels(a.y,!0));e(a.x,a.y,0,2)}var v=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),k=a.chart,m=a.options,l=!!m.stacking,g=m.data,n=a.xAxis.getExtremes(),p=n.min,u=n.max,n=a.yAxis.getExtremes(),r=n.min,z=n.max,n=a.xData||m.xData||a.processedXData,w=a.yData||m.yData||a.processedYData,y=a.zData||m.zData||a.processedZData,F=a.yAxis,B=a.xAxis,L=!n||0===n.length,x=a.points||!1,I=!1,E,J,K,H=l?a.data:n||g,A={x:Number.MIN_VALUE,y:0},R={x:Number.MIN_VALUE,y:0};m.boostData&&0<m.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,x&&0<x.length?(b.skipTranslation= | ||
!0,b.drawMode="triangles",x[0].node&&x[0].node.levelDynamic&&x.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}),C(x,function(b){var c=b.plotY,e;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,e=b.series.colorAttribs(b),b=e["stroke-width"]||0,J=h.color(e.fill).rgba,J[0]/=255,J[1]/=255,J[2]/=255,"treemap"===a.type&&(b=b||1,K=h.color(e.stroke).rgba,K[0]/=255,K[1]/=255,K[2]/=255,d(c.x,c.y,c.width,c.height, | ||
K),b/=2),d(c.x+b,c.y+b,c.width-2*b,c.height-2*b,J))})):(C(H,function(c,d){var f,m,h,n=!1,P=!1,g=!1,Y=!1,ga=N[a.type],t=!1,x=!0;if("undefined"===typeof k.index)return!1;L?(f=c[0],m=c[1],H[d+1]&&(P=H[d+1][0]),H[d-1]&&(n=H[d-1][0]),3<=c.length&&(h=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,m=w[d],H[d+1]&&(P=H[d+1]),H[d-1]&&(n=H[d-1]),y&&y.length&&(h=y[d],y[d]>b.zMax&&(b.zMax=y[d]),y[d]<b.zMin&&(b.zMin=y[d])));P&&P>=p&&P<=u&&(g=!0);n&&n>=p&&n<=u&&(Y=!0);v?(L&&(m=c.slice(1,3)),m= | ||
m[1]):l&&(f=c.x,m=c.stackY);a.requireSorting||(x=m>=r&&m<=z);f>u&&R.x<u&&(R.x=f,R.y=m);f<p&&A.x<p&&(A.x=f,A.y=m);if(0===m||m&&x)if(f>=p&&f<=u&&(t=!0),t||g||Y)q.useGPUTranslations||(b.skipTranslation=!0,f=B.toPixels(f,!0),m=F.toPixels(m,!0)),ga&&(E=0,0>m&&(E=m,m=0),q.useGPUTranslations||(E=F.toPixels(E,!0)),e(f,E,0,0,!1)),b.hasMarkers&&!1!==I&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-I))),e(f,m,0,"bubble"===a.type?h||1:2,!1),I=f}),I||(f(A),f(R))))}function e(){u=[];x.data=D= | ||
[];z=[]}function l(a){k&&(k.setUniform("xAxisTrans",a.transA),k.setUniform("xAxisMin",a.min),k.setUniform("xAxisMinPad",a.minPixelPadding),k.setUniform("xAxisPointRange",a.pointRange),k.setUniform("xAxisLen",a.len),k.setUniform("xAxisPos",a.pos),k.setUniform("xAxisCVSCoord",!a.horiz))}function g(a){k&&(k.setUniform("yAxisTrans",a.transA),k.setUniform("yAxisMin",a.min),k.setUniform("yAxisMinPad",a.minPixelPadding),k.setUniform("yAxisPointRange",a.pointRange),k.setUniform("yAxisLen",a.len),k.setUniform("yAxisPos", | ||
a.pos),k.setUniform("yAxisCVSCoord",!a.horiz))}function n(a,b){k.setUniform("hasThreshold",a);k.setUniform("translatedThreshold",b)}function r(c){if(c)p=c.chartWidth||800,F=c.chartHeight||400;else return!1;if(!b||!p||!F)return!1;q.timeRendering&&console.time("gl rendering");k.bind();b.viewport(0,0,p,F);k.setPMatrix([2/p,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1]);1<q.lineWidth&&!h.isMS&&b.lineWidth(q.lineWidth);t.build(x.data,"aVertexPosition",4);t.bind();w&&(b.bindTexture(b.TEXTURE_2D,E),k.setTexture(E)); | ||
k.setInverted(c.options.chart?c.options.chart.inverted:!1);C(u,function(a,c){var e=a.series.options,d=e.threshold,f=Q(d),d=a.series.yAxis.getThreshold(d),m=G(e.marker?e.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((e.marker?e.marker.radius:10)||10)),v=a.series.fillOpacity?(new Z(a.series.color)).setOpacity(G(e.fillOpacity,.85)).get():a.series.color;t.bind();e.colorByPoint&&(v=a.series.chart.options.colors[c]);v=h.color(v).rgba;q.useAlpha||(v[3]=1);"add"===e.boostBlending? | ||
(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===e.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===e.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);k.reset();0<a.colorData.length&&(k.setUniform("hasColor",1),c=X(b,k),c.build(a.colorData,"aColor",4),c.bind());k.setColor(v);l(a.series.xAxis);g(a.series.yAxis);n(f,d);"points"===a.drawMode&&(e.marker&&e.marker.radius? | ||
k.setPointSize(2*e.marker.radius):k.setPointSize(1));k.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&k.setBubbleUniforms(a.series,a.zMin,a.zMax);k.setDrawAsCircle(ha[a.series.type]&&w||!1);t.render(a.from,a.to,a.drawMode);a.hasMarkers&&m&&(e.marker&&e.marker.radius?k.setPointSize(2*e.marker.radius):k.setPointSize(10),k.setDrawAsCircle(!0),t.render(a.from,a.to,"POINTS"))});t.destroy();q.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function y(a){d();if(a.renderer.forExport)return r(a); | ||
L?r(a):setTimeout(function(){y(a)},1)}var k=!1,t=!1,b=!1,p=0,F=0,D=!1,z=!1,w=!1,x={},L=!1,u=[],M=U.createElement("canvas"),O=M.getContext("2d"),E,N={column:!0,area:!0},ha={scatter:!0,bubble:!0},q={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1};return x={allocateBufferForSingleSeries:function(a){var b=0;q.usePreallocated&&(B(a)&&(b=c(a)),t.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length- | ||
1].to=D.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=z.length));q.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:D.length,markerFrom:z.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]|| | ||
"line_strip"});f(a,u[u.length-1]);q.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(p!==a||b!==b)p=a,F=b,k.bind(),k.setPMatrix([2/p,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return L},setThreshold:n,init:function(a,c){var d=0,f=["webgl","experimental-webgl","moz-webgl","webkit-3d"];L=!1;if(!a)return!1;for(q.timeSetup&&console.time("gl setup");d<f.length&&!(b=a.getContext(f[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA, | ||
b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);k=A(b);t=X(b,k);w=!1;E=b.createTexture();M.width=512;M.height=512;O.fillStyle="#FFF";O.beginPath();O.arc(256,256,256,0,2*Math.PI);O.fill();try{b.bindTexture(b.TEXTURE_2D,E),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),w=!0}catch(na){}L=!0;q.timeSetup&&console.timeEnd("gl setup");return!0},render:y,settings:q,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:D,gl:function(){return b},allocateBuffer:function(a){var b=0;q.usePreallocated&&(C(a.series,function(a){B(a)&&(b+=c(a))}),t.allocate(b))},destroy:function(){t.destroy();k.destroy()},setOptions:function(a){ia(!0,q,a)}}}function aa(a, | ||
c){var d=a.chartWidth,f=a.chartHeight,e=a,l=a.seriesGroup||c.group,g=function(a,e,d,f,h,b,l){a.call(c,d,e,f,h,b,l)},e=z(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,f).add(l),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect),e.inverted&&C(["moveTo","lineTo","rect","arc"],function(a){r(!1,a,g)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(l),e.markerGroup.translate(c.xAxis.pos,c.yAxis.pos))); | ||
e.canvas.width=d;e.canvas.height=f;e.image.attr({x:0,y:0,width:d,height:f,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=fa(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}),e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,f);return e.ogl}function ba(a,c,d){a&&c.image&&c.canvas&&!z(d||c.chart)&&a.render(d||c.chart)}function ca(a, | ||
c){a&&c.image&&c.canvas&&!z(c.chart)&&a.allocateBufferForSingleSeries(c)}function S(a,c,d,f,e,h){e=e||0;f=f||5E4;for(var l=e+f,g=!0;g&&e<l&&e<a.length;)g=c(a[e],e),++e;g&&(e<a.length?h?S(a,c,d,f,e,h):T.requestAnimationFrame?T.requestAnimationFrame(function(){S(a,c,d,f,e)}):setTimeout(function(){S(a,c,d,f,e)}):d&&d())}function ja(a){if(!B(this))return a.call(this);if(a=aa(this.chart,this))ca(a,this),a.pushSeries(this);ba(a,this)}var T=h.win,U=T.document,ka=function(){},Z=h.Color,w=h.Series,g=h.seriesTypes, | ||
C=h.each,da=h.extend,ea=h.addEvent,la=h.fireEvent,ma=h.grep,Q=h.isNumber,ia=h.merge,G=h.pick,r=h.wrap,V=h.getOptions().plotOptions,W;Z.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc", | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(h){function x(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;C(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}function z(a){var c=0,d;if(1<a.series.length)for(var f=0;f<a.series.length;f++)d=a.series[f],x(d.processedXData,d.options.data,d.points)>=(d.options.boostThreshold||Number.MAX_VALUE)&&c++;return 5< | ||
c||a.series.length>=G(a.options.boost&&a.options.boost.seriesThreshold,50)}function A(a){return z(a.chart)||x(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold||Number.MAX_VALUE)}function fa(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function d(b){return a.getUniformLocation(l,b)}var f=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),e=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!f||!e)return l=!1;l=a.createProgram();a.attachShader(l,f);a.attachShader(l,e);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=d("uPMatrix");n=d("pSize");J=d("fillColor");H=d("isBubble");k=d("bubbleSizeAbs");t=d("bubbleSizeByArea");B=d("uSampler");b=d("skipTranslation");q=d("isCircle");g=d("isInverted");return!0}function f(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,n,J,H,k,t,b,q,g,B;a&&d();return{psUniform:function(){return n},pUniform:function(){return h},fillColorUniform:function(){return J},setBubbleUniforms:function(b,c,d){var e= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=G(e.zMin,Math.min(l,Math.max(c,!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),h=G(e.zMax,Math.max(h,d)),a.uniform1i(H,1),a.uniform1i(q,1),a.uniform1i(t,"width"!==b.options.sizeBy),a.uniform1i(k,b.options.sizeByAbsoluteValue),f("bubbleZMin",l),f("bubbleZMax",h),f("bubbleZThreshold",b.options.zThreshold),f("bubbleMinSize",b.minPxSize),f("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:f,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(J,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(n,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(B,0)},setDrawAsCircle:function(b){a.uniform1i(q,b?1:0)},reset:function(){a.uniform1i(H,0);a.uniform1i(q,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var f=!1,e= | ||
!1,l=d||2,h=!1,n=0,g;return{destroy:function(){f&&a.deleteBuffer(f)},bind:function(){if(!f)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,k,t){g=d||[];if(!(g&&0!==g.length||h))return f=!1;l=t||l;f&&a.deleteBuffer(f);f=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,f);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),k);a.enableVertexAttribArray(e);return!0},render:function(c,d,e){var b=h?h.length:g.length;if(!f||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!d||d>b)d=b;a.drawArrays(a[(e||"points").toUpperCase()],c/l,(d-c)/l);return!0},allocate:function(a){n=-1;h=new Float32Array(4*a)},push:function(a,c,d,b){h&&(h[++n]=a,h[++n]=c,h[++n]=d,h[++n]=b)}}}function ga(a){function c(a){var b,c;return A(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:N[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function f(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function d(a,b,d,e,f){c(f);r.usePreallocated?t.push(a,b,d?1:0,e||1):(B.push(a),B.push(b),B.push(d?1:0),B.push(e||1))}function e(a,b,e,f,v){c(v);d(a+e,b);c(v);d(a,b);c(v);d(a,b+f);c(v);d(a,b+f);c(v);d(a+e,b+f);c(v);d(a+e,b)}function f(a){r.useGPUTranslations||(b.skipTranslation=!0,a.x=A.toPixels(a.x,!0),a.y=F.toPixels(a.y,!0));d(a.x,a.y,0,2)}var v=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),k=a.chart,m=a.options,l=!!m.stacking,g=m.data,n=a.xAxis.getExtremes(),q=n.min,u=n.max,n=a.yAxis.getExtremes(),w=n.min,z=n.max,n=a.xData||m.xData||a.processedXData,x=a.yData||m.yData||a.processedYData,p=a.zData||m.zData||a.processedZData,F=a.yAxis,A=a.xAxis,E=!n||0===n.length,y=a.points||!1,J=!1,H,K,L,I=l?a.data:n||g,D={x:Number.MIN_VALUE,y:0},R={x:Number.MIN_VALUE,y:0};m.boostData&&0<m.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,y&&0<y.length?(b.skipTranslation= | ||
!0,b.drawMode="triangles",y[0].node&&y[0].node.levelDynamic&&y.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}),C(y,function(b){var c=b.plotY,d;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,d=b.series.colorAttribs(b),b=d["stroke-width"]||0,K=h.color(d.fill).rgba,K[0]/=255,K[1]/=255,K[2]/=255,"treemap"===a.type&&(b=b||1,L=h.color(d.stroke).rgba,L[0]/=255,L[1]/=255,L[2]/=255,e(c.x,c.y,c.width,c.height, | ||
L),b/=2),e(c.x+b,c.y+b,c.width-2*b,c.height-2*b,K))})):(C(I,function(c,e){var f,m,h,n=!1,P=!1,g=!1,Y=!1,ha=N[a.type],t=!1,y=!0;if("undefined"===typeof k.index)return!1;E?(f=c[0],m=c[1],I[e+1]&&(P=I[e+1][0]),I[e-1]&&(n=I[e-1][0]),3<=c.length&&(h=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,m=x[e],I[e+1]&&(P=I[e+1]),I[e-1]&&(n=I[e-1]),p&&p.length&&(h=p[e],p[e]>b.zMax&&(b.zMax=p[e]),p[e]<b.zMin&&(b.zMin=p[e])));P&&P>=q&&P<=u&&(g=!0);n&&n>=q&&n<=u&&(Y=!0);v?(E&&(m=c.slice(1,3)),m= | ||
m[1]):l&&(f=c.x,m=c.stackY);a.requireSorting||(y=m>=w&&m<=z);f>u&&R.x<u&&(R.x=f,R.y=m);f<q&&D.x<q&&(D.x=f,D.y=m);if(0===m||m&&y)if(f>=q&&f<=u&&(t=!0),t||g||Y)r.useGPUTranslations||(b.skipTranslation=!0,f=A.toPixels(f,!0),m=F.toPixels(m,!0)),ha&&(H=0,0>m&&(H=m,m=0),r.useGPUTranslations||(H=F.toPixels(H,!0)),d(f,H,0,0,!1)),b.hasMarkers&&!1!==J&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-J))),d(f,m,0,"bubble"===a.type?h||1:2,!1),J=f}),J||(f(D),f(R))))}function e(){u=[];y.data=B= | ||
[];p=[]}function l(a){k&&(k.setUniform("xAxisTrans",a.transA),k.setUniform("xAxisMin",a.min),k.setUniform("xAxisMinPad",a.minPixelPadding),k.setUniform("xAxisPointRange",a.pointRange),k.setUniform("xAxisLen",a.len),k.setUniform("xAxisPos",a.pos),k.setUniform("xAxisCVSCoord",!a.horiz))}function g(a){k&&(k.setUniform("yAxisTrans",a.transA),k.setUniform("yAxisMin",a.min),k.setUniform("yAxisMinPad",a.minPixelPadding),k.setUniform("yAxisPointRange",a.pointRange),k.setUniform("yAxisLen",a.len),k.setUniform("yAxisPos", | ||
a.pos),k.setUniform("yAxisCVSCoord",!a.horiz))}function n(a,b){k.setUniform("hasThreshold",a);k.setUniform("translatedThreshold",b)}function w(c){if(c)q=c.chartWidth||800,F=c.chartHeight||400;else return!1;if(!b||!q||!F)return!1;r.timeRendering&&console.time("gl rendering");k.bind();b.viewport(0,0,q,F);k.setPMatrix([2/q,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1]);1<r.lineWidth&&!h.isMS&&b.lineWidth(r.lineWidth);t.build(y.data,"aVertexPosition",4);t.bind();x&&(b.bindTexture(b.TEXTURE_2D,D),k.setTexture(D)); | ||
k.setInverted(c.options.chart?c.options.chart.inverted:!1);C(u,function(a,c){var d=a.series.options,e=d.threshold,f=Q(e),e=a.series.yAxis.getThreshold(e),m=G(d.marker?d.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((d.marker?d.marker.radius:10)||10)),v=a.series.fillOpacity?(new Z(a.series.color)).setOpacity(G(d.fillOpacity,.85)).get():a.series.color;t.bind();d.colorByPoint&&(v=a.series.chart.options.colors[c]);v=h.color(v).rgba;r.useAlpha||(v[3]=1);"add"===d.boostBlending? | ||
(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===d.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===d.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);k.reset();0<a.colorData.length&&(k.setUniform("hasColor",1),c=X(b,k),c.build(a.colorData,"aColor",4),c.bind());k.setColor(v);l(a.series.xAxis);g(a.series.yAxis);n(f,e);"points"===a.drawMode&&(d.marker&&d.marker.radius? | ||
k.setPointSize(2*d.marker.radius):k.setPointSize(1));k.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&k.setBubbleUniforms(a.series,a.zMin,a.zMax);k.setDrawAsCircle(ia[a.series.type]&&x||!1);t.render(a.from,a.to,a.drawMode);a.hasMarkers&&m&&(d.marker&&d.marker.radius?k.setPointSize(2*d.marker.radius):k.setPointSize(10),k.setDrawAsCircle(!0),t.render(a.from,a.to,"POINTS"))});t.destroy();r.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function z(a){d();if(a.renderer.forExport)return w(a); | ||
E?w(a):setTimeout(function(){z(a)},1)}var k=!1,t=!1,b=!1,q=0,F=0,B=!1,p=!1,x=!1,y={},E=!1,u=[],M=U.createElement("canvas"),O=M.getContext("2d"),D,N={column:!0,area:!0},ia={scatter:!0,bubble:!0},r={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1};return y={allocateBufferForSingleSeries:function(a){var b=0;r.usePreallocated&&(A(a)&&(b=c(a)),t.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length- | ||
1].to=B.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=p.length));r.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:B.length,markerFrom:p.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]|| | ||
"line_strip"});f(a,u[u.length-1]);r.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(q!==a||b!==b)q=a,F=b,k.bind(),k.setPMatrix([2/q,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return E},setThreshold:n,init:function(a,c){var d=0,f=["webgl","experimental-webgl","moz-webgl","webkit-3d"];E=!1;if(!a)return!1;for(r.timeSetup&&console.time("gl setup");d<f.length&&!(b=a.getContext(f[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA, | ||
b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);k=fa(b);t=X(b,k);x=!1;D=b.createTexture();M.width=512;M.height=512;O.fillStyle="#FFF";O.beginPath();O.arc(256,256,256,0,2*Math.PI);O.fill();try{b.bindTexture(b.TEXTURE_2D,D),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),x=!0}catch(oa){}E=!0;r.timeSetup&&console.timeEnd("gl setup");return!0},render:z,settings:r,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:B,gl:function(){return b},allocateBuffer:function(a){var b=0;r.usePreallocated&&(C(a.series,function(a){A(a)&&(b+=c(a))}),t.allocate(b))},destroy:function(){t.destroy();k.destroy()},setOptions:function(a){ja(!0,r,a)}}}function aa(a, | ||
c){var d=a.chartWidth,f=a.chartHeight,e=a,l=a.seriesGroup||c.group,g=function(a,d,e,f,h,b,l){a.call(c,e,d,f,h,b,l)},e=z(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,f).add(l),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect),e.inverted&&C(["moveTo","lineTo","rect","arc"],function(a){w(!1,a,g)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(l),e.markerGroup.translate(c.xAxis.pos,c.yAxis.pos))); | ||
e.canvas.width=d;e.canvas.height=f;e.image.attr({x:0,y:0,width:d,height:f,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=ga(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}),e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,f);return e.ogl}function ba(a,c,d){a&&c.image&&c.canvas&&!z(d||c.chart)&&a.render(d||c.chart)}function ca(a, | ||
c){a&&c.image&&c.canvas&&!z(c.chart)&&a.allocateBufferForSingleSeries(c)}function S(a,c,d,f,e,h){e=e||0;f=f||5E4;for(var l=e+f,g=!0;g&&e<l&&e<a.length;)g=c(a[e],e),++e;g&&(e<a.length?h?S(a,c,d,f,e,h):T.requestAnimationFrame?T.requestAnimationFrame(function(){S(a,c,d,f,e)}):setTimeout(function(){S(a,c,d,f,e)}):d&&d())}function ka(a){if(!A(this))return a.call(this);if(a=aa(this.chart,this))ca(a,this),a.pushSeries(this);ba(a,this)}var T=h.win,U=T.document,la=function(){},Z=h.Color,p=h.Series,g=h.seriesTypes, | ||
C=h.each,da=h.extend,ea=h.addEvent,ma=h.fireEvent,na=h.grep,Q=h.isNumber,ja=h.merge,G=h.pick,w=h.wrap,V=h.getOptions().plotOptions,W;Z.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc", | ||
crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222", | ||
@@ -42,12 +42,12 @@ floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90", | ||
mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072", | ||
sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};w.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData|| | ||
!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c};r(w.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});r(w.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=ma(d.hoverPoints,function(a){return a.series=== | ||
c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});r(w.prototype,"getExtremes",function(a){if(!B(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments,1))});C("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});C(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&& | ||
("translate"===a||"generatePoints"===a);if(!B(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!z(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}r(w.prototype,a,c);"translate"===a&&(g.column&&r(g.column.prototype,a,c),g.arearange&&r(g.arearange.prototype,a,c),g.treemap&&r(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],f=!1;if("undefined"!== | ||
typeof T.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(f=c.getContext(d[a]),"undefined"!==typeof f&&null!==f)return!0}catch(e){}return!1})()?(r(w.prototype,"processData",function(a){B(this)&&"heatmap"!==this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(w.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c= | ||
sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};p.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData|| | ||
!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c};w(p.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});w(p.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=na(d.hoverPoints,function(a){return a.series=== | ||
c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});w(p.prototype,"getExtremes",function(a){if(!A(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments,1))});C("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});C(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&& | ||
("translate"===a||"generatePoints"===a);if(!A(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!z(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}w(p.prototype,a,c);"translate"===a&&(g.column&&w(g.column.prototype,a,c),g.arearange&&w(g.arearange.prototype,a,c),g.treemap&&w(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],f=!1;if("undefined"!== | ||
typeof T.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(f=c.getContext(d[a]),"undefined"!==typeof f&&null!==f)return!0}catch(e){}return!1})()?(w(p.prototype,"processData",function(a){A(this)&&"heatmap"!==this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(p.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c= | ||
this.options,d=this.xAxis&&this.xAxis.options,f=this.yAxis&&this.yAxis.options;return c.data.length>(c.boostThreshold||Number.MAX_VALUE)&&Q(f.min)&&Q(f.max)&&(!a||Q(d.min)&&Q(d.max))},destroyGraphics:function(){var a=this,c=this.points,d,f;if(c)for(f=0;f<c.length;f+=1)(d=c[f])&&d.graphic&&(d.graphic=d.graphic.destroy());C(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},renderCanvas:function(){var a=this,c=a.options||{},d=!1,f=a.chart,e=this.xAxis,h=this.yAxis,g=c.xData||a.processedXData, | ||
n=c.yData||a.processedYData,r=c.data,d=e.getExtremes(),y=d.min,k=d.max,d=h.getExtremes(),t=d.min,b=d.max,p={},w,D=!!a.sampling,A,B=!1!==c.enableMouseTracking,x=h.getThreshold(c.threshold),C=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,O=a.requireSorting,E=!g,N,G,q,v,m=function(a,b,c){W=a+","+b;B&&!p[W]&&(p[W]=!0,f.inverted&&(a=e.len-a,b=h.len-b),A.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=aa(f,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(), | ||
z(f)?this.markerGroup=f.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,f.seriesGroup),A=this.points=[],a.buildKDTree=ka,d&&(ca(d,this),d.pushSeries(a),ba(d,this,f)),S(u?a.data:g||r,function(a,c){var d,g,l,p="undefined"===typeof f.index,r=!0;if(!p&&(E?(d=a[0],g=a[1]):(d=a,g=n[c]),C?(E&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),O||(r=g>=t&&g<=b),null!==g&&d>=y&&d<=k&&r))if(a=Math.ceil(e.toPixels(d,!0)),D){if(void 0===q||a===w){C||(l=g);if(void 0===v||g>G)G= | ||
g,v=c;if(void 0===q||l<N)N=l,q=c}a!==w&&(void 0!==q&&(g=h.toPixels(G,!0),x=h.toPixels(N,!0),m(a,g,v),x!==g&&m(a,x,q)),q=v=void 0,w=a)}else g=Math.ceil(h.toPixels(g,!0)),m(a,g,c);return!p},function(){la(a,"renderedCanvas");a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},f.renderer.forExport?Number.MAX_VALUE:void 0)):!z(f)&&d&&(d.clear(),this.image.attr({href:""}))}}),C(["heatmap","treemap"],function(a){g[a]&&(r(g[a].prototype,"drawPoints",ja),g[a].prototype.directTouch= | ||
!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,r(g.bubble.prototype,"markerAttribs",function(a){return B(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill=!0,da(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),da(g.column.prototype,{fill:!0,sampling:!0}),r(w.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}), | ||
h.Chart.prototype.callbacks.push(function(a){ea(a,"predraw",function(){a.canvas&&a.ogl&&z(a)&&a.ogl.allocateBuffer(a);a.markerGroup&&a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});ea(a,"render",function(){a.ogl&&z(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost?h.initCanvasBoost():h.error(26)})(A)}); | ||
n=c.yData||a.processedYData,p=c.data,d=e.getExtremes(),w=d.min,k=d.max,d=h.getExtremes(),t=d.min,b=d.max,q={},x,B=!!a.sampling,A,C=!1!==c.enableMouseTracking,y=h.getThreshold(c.threshold),E=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,O=a.requireSorting,D=!g,N,G,r,v,m=function(a,b,c){W=a+","+b;C&&!q[W]&&(q[W]=!0,f.inverted&&(a=e.len-a,b=h.len-b),A.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=aa(f,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(), | ||
z(f)?this.markerGroup=f.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,f.seriesGroup),A=this.points=[],a.buildKDTree=la,d&&(ca(d,this),d.pushSeries(a),ba(d,this,f)),S(u?a.data:g||p,function(a,c){var d,g,l,p="undefined"===typeof f.index,q=!0;if(!p&&(D?(d=a[0],g=a[1]):(d=a,g=n[c]),E?(D&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),O||(q=g>=t&&g<=b),null!==g&&d>=w&&d<=k&&q))if(a=Math.ceil(e.toPixels(d,!0)),B){if(void 0===r||a===x){E||(l=g);if(void 0===v||g>G)G= | ||
g,v=c;if(void 0===r||l<N)N=l,r=c}a!==x&&(void 0!==r&&(g=h.toPixels(G,!0),y=h.toPixels(N,!0),m(a,g,v),y!==g&&m(a,y,r)),r=v=void 0,x=a)}else g=Math.ceil(h.toPixels(g,!0)),m(a,g,c);return!p},function(){ma(a,"renderedCanvas");a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},f.renderer.forExport?Number.MAX_VALUE:void 0)):!z(f)&&d&&(d.clear(),this.image.attr({href:""}))}}),C(["heatmap","treemap"],function(a){g[a]&&(w(g[a].prototype,"drawPoints",ka),g[a].prototype.directTouch= | ||
!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,w(g.bubble.prototype,"markerAttribs",function(a){return A(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill=!0,da(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),da(g.column.prototype,{fill:!0,sampling:!0}),w(p.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}), | ||
h.Chart.prototype.callbacks.push(function(a){ea(a,"predraw",function(){!z(a)&&a.didBoost&&(a.didBoost=!1,a.image&&a.image.attr({href:""}));a.canvas&&a.ogl&&z(a)&&(a.didBoost=!0,a.ogl.allocateBuffer(a));a.markerGroup&&a.xAxis&&0<a.xAxis.length&&a.yAxis&&0<a.yAxis.length&&a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});ea(a,"render",function(){a.ogl&&z(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost?h.initCanvasBoost():h.error(26)})(x)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Data module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Data module | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highcharts Drilldown module | ||
@@ -9,18 +9,17 @@ | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){function n(a,b,d){var c;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,c=1!==b[3]||1!==a[3],a=(c?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(c?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a}var A=f.noop,t=f.color,B=f.defaultOptions,h=f.each,p=f.extend,H=f.format,C=f.objectEach,v=f.pick, | ||
u=f.wrap,q=f.Chart,w=f.seriesTypes,D=w.pie,r=w.column,E=f.Tick,x=f.fireEvent,F=f.inArray,G=1;h(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n(t(this.start),t(this.end),this.pos),null,!0)}});p(B.lang,{drillUpText:"\u25c1 Back to {series.name}"});B.drilldown={animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};f.SVGRenderer.prototype.Element.prototype.fadeIn=function(a){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:v(this.newOpacity, | ||
1)},a||{duration:250})};q.prototype.addSeriesAsDrilldown=function(a,b){this.addSingleSeriesAsDrilldown(a,b);this.applyDrilldown()};q.prototype.addSingleSeriesAsDrilldown=function(a,b){var d=a.series,c=d.xAxis,e=d.yAxis,g,k=[],y=[],l,m,z;z={colorIndex:v(a.colorIndex,d.colorIndex)};this.drilldownLevels||(this.drilldownLevels=[]);l=d.options._levelNumber||0;(m=this.drilldownLevels[this.drilldownLevels.length-1])&&m.levelNumber!==l&&(m=void 0);b=p(p({_ddSeriesId:G++},z),b);g=F(a,d.points);h(d.chart.series, | ||
function(a){a.xAxis!==c||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||G++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||l,m?(k=m.levelSeries,y=m.levelSeriesOptions):(k.push(a),y.push(a.options)))});a=p({levelNumber:l,seriesOptions:d.options,levelSeriesOptions:y,levelSeries:k,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?(new f.Color(t)).setOpacity(0).get():t,lowerSeriesOptions:b,pointOptions:d.options.data[g], | ||
pointIndex:g,oldExtremes:{xMin:c&&c.userMin,xMax:c&&c.userMax,yMin:e&&e.userMin,yMax:e&&e.userMax}},z);this.drilldownLevels.push(a);b=a.lowerSeries=this.addSeries(b,!1);b.options._levelNumber=l+1;c&&(c.oldPos=c.pos,c.userMin=c.userMax=null,e.userMin=e.userMax=null);d.type===b.type&&(b.animate=b.animateDrilldown||A,b.options.animation=!0)};q.prototype.applyDrilldown=function(){var a=this.drilldownLevels,b;a&&0<a.length&&(b=a[a.length-1].levelNumber,h(this.drilldownLevels,function(a){a.levelNumber=== | ||
b&&h(a.levelSeries,function(a){a.options&&a.options._levelNumber===b&&a.remove(!1)})}));this.redraw();this.showDrillUpButton()};q.prototype.getDrilldownBackText=function(){var a=this.drilldownLevels;if(a&&0<a.length)return a=a[a.length-1],a.series=a.seriesOptions,H(this.options.lang.drillUpText,a)};q.prototype.showDrillUpButton=function(){var a=this,b=this.getDrilldownBackText(),d=a.options.drilldown.drillUpButton,c,e;this.drillUpButton?this.drillUpButton.attr({text:b}).align():(e=(c=d.theme)&&c.states, | ||
this.drillUpButton=this.renderer.button(b,null,null,function(){a.drillUp()},c,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,d.relativeTo||"plotBox"))};q.prototype.drillUp=function(){for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,c=b.length,e=a.series,g,k,f,l,m=function(b){var c;h(e,function(a){a.options._ddSeriesId===b._ddSeriesId&&(c=a)});c=c||a.addSeries(b,!1);c.type===f.type&&c.animateDrillupTo&&(c.animate= | ||
c.animateDrillupTo);b===k.seriesOptions&&(l=c)};c--;)if(k=b[c],k.levelNumber===d){b.pop();f=k.lowerSeries;if(!f.chart)for(g=e.length;g--;)if(e[g].options.id===k.lowerSeriesOptions.id&&e[g].options._levelNumber===d+1){f=e[g];break}f.xData=[];h(k.levelSeriesOptions,m);x(a,"drillup",{seriesOptions:k.seriesOptions});l.type===f.type&&(l.drilldownLevel=k,l.options.animation=a.options.drilldown.animation,f.animateDrillupFrom&&f.chart&&f.animateDrillupFrom(k));l.options._levelNumber=d;f.remove(!1);l.xAxis&& | ||
(g=k.oldExtremes,l.xAxis.setExtremes(g.xMin,g.xMax,!1),l.yAxis.setExtremes(g.yMin,g.yMax,!1))}x(a,"drillupall");this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[]};r.prototype.supportsDrilldown=!0;r.prototype.animateDrillupTo=function(a){if(!a){var b=this,d=b.drilldownLevel;h(this.points,function(a){var b=a.dataLabel;a.graphic&&a.graphic.hide();b&&(b.hidden="hidden"=== | ||
b.attr("visibility"),b.hidden||(b.hide(),a.connector&&a.connector.hide()))});setTimeout(function(){b.points&&h(b.points,function(a,b){b=b===(d&&d.pointIndex)?"show":"fadeIn";var c="show"===b?!0:void 0,e=a.dataLabel;if(a.graphic)a.graphic[b](c);if(e&&!e.hidden&&(e[b](c),a.connector))a.connector[b](c)})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=A}};r.prototype.animateDrilldown=function(a){var b=this,d=this.chart.drilldownLevels,c,e=this.chart.options.drilldown.animation, | ||
g=this.xAxis;a||(h(d,function(a){b.options._ddSeriesId===a.lowerSeriesOptions._ddSeriesId&&(c=a.shapeArgs)}),c.x+=v(g.oldPos,g.pos)-g.pos,h(this.points,function(a){a.graphic&&a.graphic.attr(c).animate(p(a.shapeArgs,{fill:a.color||b.color}),e);a.dataLabel&&a.dataLabel.fadeIn(e)}),this.animate=null)};r.prototype.animateDrillupFrom=function(a){var b=this.chart.options.drilldown.animation,d=this.group,c=d!==this.chart.seriesGroup,e=this;h(e.trackerGroups,function(a){if(e[a])e[a].on("mouseover")});c&& | ||
delete this.group;h(this.points,function(e){var g=e.graphic,h=a.shapeArgs,l=function(){g.destroy();d&&c&&(d=d.destroy())};g&&(delete e.graphic,b?g.animate(h,f.merge(b,{complete:l})):(g.attr(h),l()))})};D&&p(D.prototype,{supportsDrilldown:!0,animateDrillupTo:r.prototype.animateDrillupTo,animateDrillupFrom:r.prototype.animateDrillupFrom,animateDrilldown:function(a){var b=this.chart.options.drilldown.animation,d=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1].shapeArgs,c=d.start,e=(d.end- | ||
c)/this.points.length;a||(h(this.points,function(a,k){var g=a.shapeArgs;if(a.graphic)a.graphic.attr(f.merge(d,{start:c+k*e,end:c+(k+1)*e}))[b?"animate":"attr"](g,b)}),this.animate=null)}});f.Point.prototype.doDrilldown=function(a,b,d){var c=this.series.chart,e=c.options.drilldown,g=(e.series||[]).length,f;c.ddDupes||(c.ddDupes=[]);for(;g--&&!f;)e.series[g].id===this.drilldown&&-1===F(this.drilldown,c.ddDupes)&&(f=e.series[g],c.ddDupes.push(this.drilldown));x(c,"drilldown",{point:this,seriesOptions:f, | ||
category:b,originalEvent:d,points:void 0!==b&&this.series.xAxis.getDDPoints(b).slice(0)},function(b){var c=b.point.series&&b.point.series.chart,d=b.seriesOptions;c&&d&&(a?c.addSingleSeriesAsDrilldown(b.point,d):c.addSeriesAsDrilldown(b.point,d))})};f.Axis.prototype.drilldownCategory=function(a,b){C(this.getDDPoints(a),function(d){d&&d.series&&d.series.visible&&d.doDrilldown&&d.doDrilldown(!0,a,b)});this.chart.applyDrilldown()};f.Axis.prototype.getDDPoints=function(a){var b=[];h(this.series,function(d){var c, | ||
e=d.xData,f=d.points;for(c=0;c<e.length;c++)if(e[c]===a&&d.options.data[c]&&d.options.data[c].drilldown){b.push(f?f[c]:!0);break}});return b};E.prototype.drillable=function(){var a=this.pos,b=this.label,d=this.axis,c="xAxis"===d.coll&&d.getDDPoints,e=c&&d.getDDPoints(a);c&&(b&&e.length?(b.drillable=!0,b.addClass("highcharts-drilldown-axis-label").on("click",function(b){d.drilldownCategory(a,b)})):b&&b.drillable&&(b.on("click",null),b.removeClass("highcharts-drilldown-axis-label")))};u(E.prototype, | ||
"addLabel",function(a){a.call(this);this.drillable()});u(f.Point.prototype,"init",function(a,b,d,c){var e=a.call(this,b,d,c);c=(a=b.xAxis)&&a.ticks[c];e.drilldown&&f.addEvent(e,"click",function(a){b.xAxis&&!1===b.chart.options.drilldown.allowPointDrilldown?b.xAxis.drilldownCategory(e.x,a):e.doDrilldown(void 0,void 0,a)});c&&c.drillable();return e});u(f.Series.prototype,"drawDataLabels",function(a){var b=this.chart.options.drilldown.activeDataLabelStyle,d=this.chart.renderer;a.call(this);h(this.points, | ||
function(a){a.drilldown&&a.dataLabel&&("contrast"===b.color&&d.getContrast(a.color||this.color),a.dataLabel.addClass("highcharts-drilldown-data-label"))},this)});var I=function(a){a.call(this);h(this.points,function(a){a.drilldown&&a.graphic&&a.graphic.addClass("highcharts-drilldown-point")})};C(w,function(a){a.prototype.supportsDrilldown&&u(a.prototype,"drawTracker",I)})})(n)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){var n=f.noop,z=f.color,A=f.defaultOptions,h=f.each,p=f.extend,G=f.format,B=f.objectEach,v=f.pick,u=f.wrap,q=f.Chart,w=f.seriesTypes,C=w.pie,r=w.column,D=f.Tick,x=f.fireEvent,E=f.inArray,F=1;p(A.lang,{drillUpText:"\u25c1 Back to {series.name}"});A.drilldown={animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};f.SVGRenderer.prototype.Element.prototype.fadeIn=function(a){this.attr({opacity:.1, | ||
visibility:"inherit"}).animate({opacity:v(this.newOpacity,1)},a||{duration:250})};q.prototype.addSeriesAsDrilldown=function(a,b){this.addSingleSeriesAsDrilldown(a,b);this.applyDrilldown()};q.prototype.addSingleSeriesAsDrilldown=function(a,b){var d=a.series,c=d.xAxis,e=d.yAxis,g,k=[],l=[],t,m,y;y={colorIndex:v(a.colorIndex,d.colorIndex)};this.drilldownLevels||(this.drilldownLevels=[]);t=d.options._levelNumber||0;(m=this.drilldownLevels[this.drilldownLevels.length-1])&&m.levelNumber!==t&&(m=void 0); | ||
b=p(p({_ddSeriesId:F++},y),b);g=E(a,d.points);h(d.chart.series,function(a){a.xAxis!==c||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||F++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||t,m?(k=m.levelSeries,l=m.levelSeriesOptions):(k.push(a),l.push(a.options)))});a=p({levelNumber:t,seriesOptions:d.options,levelSeriesOptions:l,levelSeries:k,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?(new f.Color(z)).setOpacity(0).get(): | ||
z,lowerSeriesOptions:b,pointOptions:d.options.data[g],pointIndex:g,oldExtremes:{xMin:c&&c.userMin,xMax:c&&c.userMax,yMin:e&&e.userMin,yMax:e&&e.userMax}},y);this.drilldownLevels.push(a);c&&c.names&&(c.names.length=0);b=a.lowerSeries=this.addSeries(b,!1);b.options._levelNumber=t+1;c&&(c.oldPos=c.pos,c.userMin=c.userMax=null,e.userMin=e.userMax=null);d.type===b.type&&(b.animate=b.animateDrilldown||n,b.options.animation=!0)};q.prototype.applyDrilldown=function(){var a=this.drilldownLevels,b;a&&0<a.length&& | ||
(b=a[a.length-1].levelNumber,h(this.drilldownLevels,function(a){a.levelNumber===b&&h(a.levelSeries,function(a){a.options&&a.options._levelNumber===b&&a.remove(!1)})}));this.redraw();this.showDrillUpButton()};q.prototype.getDrilldownBackText=function(){var a=this.drilldownLevels;if(a&&0<a.length)return a=a[a.length-1],a.series=a.seriesOptions,G(this.options.lang.drillUpText,a)};q.prototype.showDrillUpButton=function(){var a=this,b=this.getDrilldownBackText(),d=a.options.drilldown.drillUpButton,c,e; | ||
this.drillUpButton?this.drillUpButton.attr({text:b}).align():(e=(c=d.theme)&&c.states,this.drillUpButton=this.renderer.button(b,null,null,function(){a.drillUp()},c,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,d.relativeTo||"plotBox"))};q.prototype.drillUp=function(){for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,c=b.length,e=a.series,g,k,l,f,m=function(c){var b;h(e,function(a){a.options._ddSeriesId=== | ||
c._ddSeriesId&&(b=a)});b=b||a.addSeries(c,!1);b.type===l.type&&b.animateDrillupTo&&(b.animate=b.animateDrillupTo);c===k.seriesOptions&&(f=b)};c--;)if(k=b[c],k.levelNumber===d){b.pop();l=k.lowerSeries;if(!l.chart)for(g=e.length;g--;)if(e[g].options.id===k.lowerSeriesOptions.id&&e[g].options._levelNumber===d+1){l=e[g];break}l.xData=[];h(k.levelSeriesOptions,m);x(a,"drillup",{seriesOptions:k.seriesOptions});f.type===l.type&&(f.drilldownLevel=k,f.options.animation=a.options.drilldown.animation,l.animateDrillupFrom&& | ||
l.chart&&l.animateDrillupFrom(k));f.options._levelNumber=d;l.remove(!1);f.xAxis&&(g=k.oldExtremes,f.xAxis.setExtremes(g.xMin,g.xMax,!1),f.yAxis.setExtremes(g.yMin,g.yMax,!1))}x(a,"drillupall");this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[]};r.prototype.supportsDrilldown=!0;r.prototype.animateDrillupTo=function(a){if(!a){var b=this,d=b.drilldownLevel;h(this.points, | ||
function(a){var b=a.dataLabel;a.graphic&&a.graphic.hide();b&&(b.hidden="hidden"===b.attr("visibility"),b.hidden||(b.hide(),a.connector&&a.connector.hide()))});setTimeout(function(){b.points&&h(b.points,function(a,b){b=b===(d&&d.pointIndex)?"show":"fadeIn";var c="show"===b?!0:void 0,e=a.dataLabel;if(a.graphic)a.graphic[b](c);if(e&&!e.hidden&&(e[b](c),a.connector))a.connector[b](c)})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=n}};r.prototype.animateDrilldown=function(a){var b= | ||
this,d=this.chart.drilldownLevels,c,e=this.chart.options.drilldown.animation,g=this.xAxis;a||(h(d,function(a){b.options._ddSeriesId===a.lowerSeriesOptions._ddSeriesId&&(c=a.shapeArgs)}),c.x+=v(g.oldPos,g.pos)-g.pos,h(this.points,function(a){a.graphic&&a.graphic.attr(c).animate(p(a.shapeArgs,{fill:a.color||b.color}),e);a.dataLabel&&a.dataLabel.fadeIn(e)}),this.animate=null)};r.prototype.animateDrillupFrom=function(a){var b=this.chart.options.drilldown.animation,d=this.group,c=d!==this.chart.seriesGroup, | ||
e=this;h(e.trackerGroups,function(a){if(e[a])e[a].on("mouseover")});c&&delete this.group;h(this.points,function(e){var g=e.graphic,l=a.shapeArgs,h=function(){g.destroy();d&&c&&(d=d.destroy())};g&&(delete e.graphic,b?g.animate(l,f.merge(b,{complete:h})):(g.attr(l),h()))})};C&&p(C.prototype,{supportsDrilldown:!0,animateDrillupTo:r.prototype.animateDrillupTo,animateDrillupFrom:r.prototype.animateDrillupFrom,animateDrilldown:function(a){var b=this.chart.options.drilldown.animation,d=this.chart.drilldownLevels[this.chart.drilldownLevels.length- | ||
1].shapeArgs,c=d.start,e=(d.end-c)/this.points.length;a||(h(this.points,function(a,k){var g=a.shapeArgs;if(a.graphic)a.graphic.attr(f.merge(d,{start:c+k*e,end:c+(k+1)*e}))[b?"animate":"attr"](g,b)}),this.animate=null)}});f.Point.prototype.doDrilldown=function(a,b,d){var c=this.series.chart,e=c.options.drilldown,g=(e.series||[]).length,f;c.ddDupes||(c.ddDupes=[]);for(;g--&&!f;)e.series[g].id===this.drilldown&&-1===E(this.drilldown,c.ddDupes)&&(f=e.series[g],c.ddDupes.push(this.drilldown));x(c,"drilldown", | ||
{point:this,seriesOptions:f,category:b,originalEvent:d,points:void 0!==b&&this.series.xAxis.getDDPoints(b).slice(0)},function(b){var c=b.point.series&&b.point.series.chart,d=b.seriesOptions;c&&d&&(a?c.addSingleSeriesAsDrilldown(b.point,d):c.addSeriesAsDrilldown(b.point,d))})};f.Axis.prototype.drilldownCategory=function(a,b){B(this.getDDPoints(a),function(d){d&&d.series&&d.series.visible&&d.doDrilldown&&d.doDrilldown(!0,a,b)});this.chart.applyDrilldown()};f.Axis.prototype.getDDPoints=function(a){var b= | ||
[];h(this.series,function(d){var c,e=d.xData,f=d.points;for(c=0;c<e.length;c++)if(e[c]===a&&d.options.data[c]&&d.options.data[c].drilldown){b.push(f?f[c]:!0);break}});return b};D.prototype.drillable=function(){var a=this.pos,b=this.label,d=this.axis,c="xAxis"===d.coll&&d.getDDPoints,e=c&&d.getDDPoints(a);c&&(b&&e.length?(b.drillable=!0,b.addClass("highcharts-drilldown-axis-label").on("click",function(b){d.drilldownCategory(a,b)})):b&&b.drillable&&(b.on("click",null),b.removeClass("highcharts-drilldown-axis-label")))}; | ||
u(D.prototype,"addLabel",function(a){a.call(this);this.drillable()});u(f.Point.prototype,"init",function(a,b,d,c){var e=a.call(this,b,d,c);c=(a=b.xAxis)&&a.ticks[c];e.drilldown&&f.addEvent(e,"click",function(a){b.xAxis&&!1===b.chart.options.drilldown.allowPointDrilldown?b.xAxis.drilldownCategory(e.x,a):e.doDrilldown(void 0,void 0,a)});c&&c.drillable();return e});u(f.Series.prototype,"drawDataLabels",function(a){var b=this.chart.options.drilldown.activeDataLabelStyle,d=this.chart.renderer;a.call(this); | ||
h(this.points,function(a){a.drilldown&&a.dataLabel&&("contrast"===b.color&&d.getContrast(a.color||this.color),a.dataLabel.addClass("highcharts-drilldown-data-label"))},this)});var H=function(a){a.call(this);h(this.points,function(a){a.drilldown&&a.graphic&&a.graphic.addClass("highcharts-drilldown-point")})};B(w,function(a){a.prototype.supportsDrilldown&&u(a.prototype,"drawTracker",H)})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Highcharts Drilldown module | ||
@@ -45,45 +45,2 @@ * | ||
// Utilities | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. This method is copied from ColorAxis.js | ||
* and should always be kept updated, until we get AMD support. | ||
*/ | ||
function tweenColors(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
} | ||
/** | ||
* Handle animation of the color attributes directly | ||
*/ | ||
each(['fill', 'stroke'], function(prop) { | ||
H.Fx.prototype[prop + 'Setter'] = function() { | ||
this.elem.attr( | ||
prop, | ||
tweenColors(color(this.start), color(this.end), this.pos), | ||
null, | ||
true | ||
); | ||
}; | ||
}); | ||
// Add language | ||
@@ -224,2 +181,7 @@ extend(defaultOptions.lang, { | ||
// Reset names to prevent extending (#6704) | ||
if (xAxis && xAxis.names) { | ||
xAxis.names.length = 0; | ||
} | ||
newSeries = level.lowerSeries = this.addSeries(ddOptions, false); | ||
@@ -226,0 +188,0 @@ newSeries.options._levelNumber = levelNumber + 1; |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Exporting module | ||
@@ -9,10 +9,10 @@ | ||
*/ | ||
(function(f){"object"===typeof module&&module.exports?module.exports=f:f(Highcharts)})(function(f){(function(c){function f(a,k,m,b,l){var g,e=((a.options.exporting||{}).csv||{}).url||"http://www.highcharts.com/studies/csv-export/download.php";g=a.options.exporting.filename?a.options.exporting.filename:a.title?a.title.textStr.replace(/ /g,"-").toLowerCase():"chart";d.Blob&&d.navigator.msSaveOrOpenBlob?(a=new d.Blob([b]),d.navigator.msSaveOrOpenBlob(a,g+"."+m)):w?(b=t.createElement("a"),b.href=k,b.target= | ||
"_blank",b.download=g+"."+m,a.container.append(b),b.click(),b.remove()):c.post(e,{data:b,type:l,extension:m})}var q=c.each,v=c.pick,d=c.win,t=d.document,n=c.seriesTypes,w=void 0!==t.createElement("a").download;c.setOptions({lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",viewData:"View data table"}});c.Chart.prototype.getDataRows=function(){var a=(this.options.exporting||{}).csv||{},k,m=this.xAxis,b={},l=[],g=[],e,p,u=a.dateFormat||"%Y-%m-%d %H:%M:%S",f=a.columnHeaderFormatter||function(h, | ||
b,a){return h instanceof c.Axis?h.options.title&&h.options.title.text||(h.isDatetimeAxis?"DateTime":"Category"):h?h.name+(1<a?" ("+b+")":""):"Category"},r=[];e=0;q(this.series,function(h){var a=h.options.keys||h.pointArrayMap||["y"],k=a.length,u=h.requireSorting,p={},l=c.inArray(h.xAxis,m),d;q(a,function(a){p[a]=h[a+"Axis"]&&h[a+"Axis"].categories||[]});if(!1!==h.options.includeInCSVExport&&!1!==h.visible){c.find(r,function(a){return a[0]===l})||r.push([l,e]);for(d=0;d<k;)g.push(f(h,a[d],a.length)), | ||
d++;q(h.points,function(c,g){g=u?c.x:g;var m,f;d=0;b[g]||(b[g]=[],b[g].xValues=[]);b[g].x=c.x;b[g].xValues[l]=c.x;h.xAxis&&"name"!==h.exportKey||(b[g].name=c.name);for(;d<k;)m=a[d],f=c[m],b[g][e+d]=v(p[m][f],f),d++});e+=d}});for(p in b)b.hasOwnProperty(p)&&l.push(b[p]);var d,n,a=[g];for(e=r.length;e--;)d=r[e][0],n=r[e][1],k=m[d],l.sort(function(a,b){return a.xValues[d]-b.xValues[d]}),p=f(k),a[0].splice(n,0,p),q(l,function(a){var b=a.name;b||(k.isDatetimeAxis?(a.x instanceof Date&&(a.x=a.x.getTime()), | ||
b=c.dateFormat(u,a.x)):b=k.categories?v(k.names[a.x],k.categories[a.x],a.x):a.x);a.splice(n,0,b)});return a=a.concat(l)};c.Chart.prototype.getCSV=function(a){var c="",d=this.getDataRows(),b=(this.options.exporting||{}).csv||{},l=b.itemDelimiter||",",g=b.lineDelimiter||"\n";q(d,function(b,k){for(var e,f=b.length,p=a?(1.1).toLocaleString()[1]:".";f--;)e=b[f],"string"===typeof e&&(e='"'+e+'"'),"number"===typeof e&&","===p&&(e=e.toString().replace(".",",")),b[f]=e;c+=b.join(l);k<d.length-1&&(c+=g)}); | ||
return c};c.Chart.prototype.getTable=function(a){var c="\x3ctable\x3e\x3cthead\x3e",d=this.getDataRows();q(d,function(b,d){var g=d?"td":"th",e,f,k=a?(1.1).toLocaleString()[1]:".";c+="\x3ctr\x3e";for(f=0;f<b.length;f+=1)e=b[f],"number"===typeof e?(e=e.toString(),","===k&&(e=e.replace(".",k)),c+="\x3c"+g+' class\x3d"number"\x3e'+e+"\x3c/"+g+"\x3e"):c+="\x3c"+g+"\x3e"+(void 0===e?"":e)+"\x3c/"+g+"\x3e";c+="\x3c/tr\x3e";d||(c+="\x3c/thead\x3e\x3ctbody\x3e")});return c+="\x3c/tbody\x3e\x3c/table\x3e"}; | ||
c.Chart.prototype.downloadCSV=function(){var a=this.getCSV(!0);f(this,"data:text/csv,\ufeff"+encodeURIComponent(a),"csv",a,"text/csv")};c.Chart.prototype.downloadXLS=function(){var a='\x3chtml xmlns:o\x3d"urn:schemas-microsoft-com:office:office" xmlns:x\x3d"urn:schemas-microsoft-com:office:excel" xmlns\x3d"http://www.w3.org/TR/REC-html40"\x3e\x3chead\x3e\x3c!--[if gte mso 9]\x3e\x3cxml\x3e\x3cx:ExcelWorkbook\x3e\x3cx:ExcelWorksheets\x3e\x3cx:ExcelWorksheet\x3e\x3cx:Name\x3eArk1\x3c/x:Name\x3e\x3cx:WorksheetOptions\x3e\x3cx:DisplayGridlines/\x3e\x3c/x:WorksheetOptions\x3e\x3c/x:ExcelWorksheet\x3e\x3c/x:ExcelWorksheets\x3e\x3c/x:ExcelWorkbook\x3e\x3c/xml\x3e\x3c![endif]--\x3e\x3cstyle\x3etd{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}\x3c/style\x3e\x3cmeta name\x3dProgId content\x3dExcel.Sheet\x3e\x3cmeta charset\x3dUTF-8\x3e\x3c/head\x3e\x3cbody\x3e'+ | ||
this.getTable(!0)+"\x3c/body\x3e\x3c/html\x3e";f(this,"data:application/vnd.ms-excel;base64,"+d.btoa(unescape(encodeURIComponent(a))),"xls",a,"application/vnd.ms-excel")};c.Chart.prototype.viewData=function(){this.dataTableDiv||(this.dataTableDiv=t.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling));this.dataTableDiv.innerHTML=this.getTable()};c.getOptions().exporting&&c.getOptions().exporting.buttons.contextButton.menuItems.push({textKey:"downloadCSV", | ||
onclick:function(){this.downloadCSV()}},{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},{textKey:"viewData",onclick:function(){this.viewData()}});n.map&&(n.map.prototype.exportKey="name");n.mapbubble&&(n.mapbubble.prototype.exportKey="name");n.treemap&&(n.treemap.prototype.exportKey="name")})(f)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(d){var q=d.each,n=d.pick,k=d.win,p=k.document,a=d.seriesTypes,v=void 0!==p.createElement("a").download;d.setOptions({lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",viewData:"View data table"}});d.Chart.prototype.getDataRows=function(){var h=(this.options.exporting||{}).csv||{},b,c=this.xAxis,g={},r=[],m=[],f,l,u=h.dateFormat||"%Y-%m-%d %H:%M:%S",k=h.columnHeaderFormatter||function(e, | ||
f,b){return e instanceof d.Axis?e.options.title&&e.options.title.text||(e.isDatetimeAxis?"DateTime":"Category"):e?e.name+(1<b?" ("+f+")":""):"Category"},t=[];f=0;q(this.series,function(e){var b=e.options.keys||e.pointArrayMap||["y"],h=b.length,r=e.requireSorting,u={},l=d.inArray(e.xAxis,c),a;q(b,function(b){u[b]=e[b+"Axis"]&&e[b+"Axis"].categories||[]});if(!1!==e.options.includeInCSVExport&&!1!==e.visible){d.find(t,function(b){return b[0]===l})||t.push([l,f]);for(a=0;a<h;)m.push(k(e,b[a],b.length)), | ||
a++;q(e.points,function(d,c){c=r?d.x:c;var m,k;a=0;g[c]||(g[c]=[],g[c].xValues=[]);g[c].x=d.x;g[c].xValues[l]=d.x;e.xAxis&&"name"!==e.exportKey||(g[c].name=d.name);for(;a<h;)m=b[a],k=d[m],g[c][f+a]=n(u[m][k],k),a++});f+=a}});for(l in g)g.hasOwnProperty(l)&&r.push(g[l]);var a,p,h=[m];for(f=t.length;f--;)a=t[f][0],p=t[f][1],b=c[a],r.sort(function(b,c){return b.xValues[a]-c.xValues[a]}),l=k(b),h[0].splice(p,0,l),q(r,function(e){var c=e.name;c||(b.isDatetimeAxis?(e.x instanceof Date&&(e.x=e.x.getTime()), | ||
c=d.dateFormat(u,e.x)):c=b.categories?n(b.names[e.x],b.categories[e.x],e.x):e.x);e.splice(p,0,c)});return h=h.concat(r)};d.Chart.prototype.getCSV=function(d){var b="",c=this.getDataRows(),a=(this.options.exporting||{}).csv||{},h=a.itemDelimiter||",",m=a.lineDelimiter||"\n";q(c,function(a,l){for(var f,g=a.length,k=d?(1.1).toLocaleString()[1]:".";g--;)f=a[g],"string"===typeof f&&(f='"'+f+'"'),"number"===typeof f&&","===k&&(f=f.toString().replace(".",",")),a[g]=f;b+=a.join(h);l<c.length-1&&(b+=m)}); | ||
return b};d.Chart.prototype.getTable=function(a){var b="\x3ctable\x3e\x3cthead\x3e",c=this.getDataRows();q(c,function(c,d){var h=d?"td":"th",f,g,k=a?(1.1).toLocaleString()[1]:".";b+="\x3ctr\x3e";for(g=0;g<c.length;g+=1)f=c[g],"number"===typeof f?(f=f.toString(),","===k&&(f=f.replace(".",k)),b+="\x3c"+h+' class\x3d"number"\x3e'+f+"\x3c/"+h+"\x3e"):b+="\x3c"+h+"\x3e"+(void 0===f?"":f)+"\x3c/"+h+"\x3e";b+="\x3c/tr\x3e";d||(b+="\x3c/thead\x3e\x3ctbody\x3e")});return b+="\x3c/tbody\x3e\x3c/table\x3e"}; | ||
d.Chart.prototype.fileDownload=function(a,b,c,g){var h,m=((this.options.exporting||{}).csv||{}).url||"http://www.highcharts.com/studies/csv-export/download.php";h=this.options.exporting.filename?this.options.exporting.filename:this.title?this.title.textStr.replace(/ /g,"-").toLowerCase():"chart";k.Blob&&k.navigator.msSaveOrOpenBlob?(a=new k.Blob([c]),k.navigator.msSaveOrOpenBlob(a,h+"."+b)):v?(c=p.createElement("a"),c.href=a,c.target="_blank",c.download=h+"."+b,this.container.append(c),c.click(), | ||
c.remove()):d.post(m,{data:c,type:g,extension:b})};d.Chart.prototype.downloadCSV=function(){var a=this.getCSV(!0);this.fileDownload("data:text/csv,\ufeff"+encodeURIComponent(a),"csv",a,"text/csv")};d.Chart.prototype.downloadXLS=function(){var a='\x3chtml xmlns:o\x3d"urn:schemas-microsoft-com:office:office" xmlns:x\x3d"urn:schemas-microsoft-com:office:excel" xmlns\x3d"http://www.w3.org/TR/REC-html40"\x3e\x3chead\x3e\x3c!--[if gte mso 9]\x3e\x3cxml\x3e\x3cx:ExcelWorkbook\x3e\x3cx:ExcelWorksheets\x3e\x3cx:ExcelWorksheet\x3e\x3cx:Name\x3eArk1\x3c/x:Name\x3e\x3cx:WorksheetOptions\x3e\x3cx:DisplayGridlines/\x3e\x3c/x:WorksheetOptions\x3e\x3c/x:ExcelWorksheet\x3e\x3c/x:ExcelWorksheets\x3e\x3c/x:ExcelWorkbook\x3e\x3c/xml\x3e\x3c![endif]--\x3e\x3cstyle\x3etd{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}\x3c/style\x3e\x3cmeta name\x3dProgId content\x3dExcel.Sheet\x3e\x3cmeta charset\x3dUTF-8\x3e\x3c/head\x3e\x3cbody\x3e'+ | ||
this.getTable(!0)+"\x3c/body\x3e\x3c/html\x3e";this.fileDownload("data:application/vnd.ms-excel;base64,"+k.btoa(unescape(encodeURIComponent(a))),"xls",a,"application/vnd.ms-excel")};d.Chart.prototype.viewData=function(){this.dataTableDiv||(this.dataTableDiv=p.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling));this.dataTableDiv.innerHTML=this.getTable()};d.getOptions().exporting&&d.getOptions().exporting.buttons.contextButton.menuItems.push({textKey:"downloadCSV", | ||
onclick:function(){this.downloadCSV()}},{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},{textKey:"viewData",onclick:function(){this.viewData()}});a.map&&(a.map.prototype.exportKey="name");a.mapbubble&&(a.mapbubble.prototype.exportKey="name");a.treemap&&(a.treemap.prototype.exportKey="name")})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Exporting module | ||
@@ -281,13 +281,13 @@ * | ||
function getContent(chart, href, extension, content, MIME) { | ||
Highcharts.Chart.prototype.fileDownload = function(href, extension, content, MIME) { | ||
var a, | ||
blobObject, | ||
name, | ||
options = (chart.options.exporting || {}).csv || {}, | ||
options = (this.options.exporting || {}).csv || {}, | ||
url = options.url || 'http://www.highcharts.com/studies/csv-export/download.php'; | ||
if (chart.options.exporting.filename) { | ||
name = chart.options.exporting.filename; | ||
} else if (chart.title) { | ||
name = chart.title.textStr.replace(/ /g, '-').toLowerCase(); | ||
if (this.options.exporting.filename) { | ||
name = this.options.exporting.filename; | ||
} else if (this.title) { | ||
name = this.title.textStr.replace(/ /g, '-').toLowerCase(); | ||
} else { | ||
@@ -309,3 +309,3 @@ name = 'chart'; | ||
a.download = name + '.' + extension; | ||
chart.container.append(a); // #111 | ||
this.container.append(a); // #111 | ||
a.click(); | ||
@@ -322,3 +322,3 @@ a.remove(); | ||
} | ||
} | ||
}; | ||
@@ -330,4 +330,3 @@ /** | ||
var csv = this.getCSV(true); | ||
getContent( | ||
this, | ||
this.fileDownload( | ||
'data:text/csv,\uFEFF' + encodeURIComponent(csv), | ||
@@ -358,4 +357,3 @@ 'csv', | ||
}; | ||
getContent( | ||
this, | ||
this.fileDownload( | ||
uri + base64(template), | ||
@@ -362,0 +360,0 @@ 'xls', |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Exporting module | ||
@@ -9,20 +9,21 @@ | ||
*/ | ||
(function(r){"object"===typeof module&&module.exports?module.exports=r:r(Highcharts)})(function(r){(function(f){var r=f.defaultOptions,t=f.doc,A=f.Chart,x=f.addEvent,I=f.removeEvent,F=f.fireEvent,w=f.createElement,C=f.discardElement,G=f.css,v=f.merge,D=f.pick,k=f.each,H=f.objectEach,y=f.extend,z=f.win,E=f.SVGRenderer,J=f.Renderer.prototype.symbols;y(r.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image", | ||
contextButtonTitle:"Chart context menu"});r.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}};r.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0}, | ||
{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};f.post=function(a,b,d){var c=w("form",v({method:"post",action:a,enctype:"multipart/form-data"},d),{display:"none"},t.body);H(b,function(a,b){w("input",{type:"hidden",name:b,value:a}, | ||
null,c)});c.submit();C(c)};y(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var d=a.match(/<\/svg>(.*?$)/);d&&d[1]&&(d='\x3cforeignObject x\x3d"0" y\x3d"0" width\x3d"'+b.chart.width+'" height\x3d"'+b.chart.height+'"\x3e\x3cbody xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e'+d[1]+"\x3c/body\x3e\x3c/foreignObject\x3e",a=a.replace("\x3c/svg\x3e",d+"\x3c/svg\x3e"))}return a=a.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g, | ||
"").replace(/url\(("|")(\S+)("|")\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'\x3csvg xmlns:xlink\x3d"http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g," xlink:href\x3d").replace(/\n/," ").replace(/<\/svg>.*?$/,"\x3c/svg\x3e").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1\x3d"rgb($2)" $1-opacity\x3d"$3"').replace(/ /g,"\u00a0").replace(/­/g,"\u00ad")},getChartHTML:function(){this.inlineStyles();return this.container.innerHTML}, | ||
getSVG:function(a){var b,d,c,u,n,g=v(this.options,a);t.createElementNS||(t.createElementNS=function(a,b){return t.createElement(b)});d=w("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},t.body);c=this.renderTo.style.width;n=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;n=g.exporting.sourceHeight||g.chart.height||/px$/.test(n)&&parseInt(n,10)||400;y(g.chart,{animation:!1,renderTo:d,forExport:!0, | ||
renderer:"SVGRenderer",width:c,height:n});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){u=v(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});u.isInternal||g.series.push(u)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k(["xAxis","yAxis","series"],function(c){var e={};a[c]&&(e[c]=a[c],b.update(e))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey=== | ||
a.userOptions.internalKey}),e=a.getExtremes(),d=e.userMin,e=e.userMax;!c||void 0===d&&void 0===e||c.setExtremes(d,e,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();C(d);return c},getSVGForExport:function(a,b){var d=this.options.exporting;return this.getSVG(v({chart:{borderRadius:0}},d.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||d.sourceWidth,sourceHeight:a&&a.sourceHeight||d.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=v(this.options.exporting, | ||
a);f.post(a.url,{filename:a.filename||"chart",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,d=[],c=b.parentNode,f=t.body,n=f.childNodes,g=a.options.exporting.printMaxWidth,e,q;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);F(a,"beforePrint");if(q=g&&a.chartWidth>g)e=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(n,function(a,b){1===a.nodeType&&(d[b]=a.style.display,a.style.display="none")});f.appendChild(b);z.focus(); | ||
z.print();setTimeout(function(){c.appendChild(b);k(n,function(a,b){1===a.nodeType&&(a.style.display=d[b])});a.isPrinting=!1;q&&a.setSize.apply(a,e);F(a,"afterPrint")},1E3)}},contextMenu:function(a,b,d,c,f,n,g){var e=this,q=e.chartWidth,h=e.chartHeight,u="cache-"+a,l=e[u],m=Math.max(f,n),B,p;l||(e[u]=l=w("div",{className:a},{position:"absolute",zIndex:1E3,padding:m+"px"},e.container),B=w("div",{className:"highcharts-menu"},null,l),p=function(){G(l,{display:"none"});g&&g.setState(0);e.openMenu=!1}, | ||
e.exportEvents.push(x(l,"mouseleave",function(){l.hideTimer=setTimeout(p,500)}),x(l,"mouseenter",function(){clearTimeout(l.hideTimer)}),x(t,"mouseup",function(b){e.pointer.inClass(b.target,a)||p()})),k(b,function(a){if(a){var b;b=a.separator?w("hr",null,null,B):w("div",{className:"highcharts-menu-item",onclick:function(b){b&&b.stopPropagation();p();a.onclick&&a.onclick.apply(e,arguments)},innerHTML:a.text||e.options.lang[a.textKey]},null,B);e.exportDivElements.push(b)}}),e.exportDivElements.push(B, | ||
l),e.exportMenuWidth=l.offsetWidth,e.exportMenuHeight=l.offsetHeight);b={display:"block"};d+e.exportMenuWidth>q?b.right=q-d-f-m+"px":b.left=d-m+"px";c+n+e.exportMenuHeight>h&&"top"!==g.alignOptions.verticalAlign?b.bottom=h-c-m+"px":b.top=c+n-m+"px";G(l,b);e.openMenu=!0},addButton:function(a){var b=this,d=b.renderer,c=v(b.options.navigation.buttonOptions,a),f=c.onclick,n=c.menuItems,g,e,q=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]); | ||
if(!1!==c.enabled){var h=c.theme,k=h.states,l=k&&k.hover,k=k&&k.select,m;delete h.states;f?m=function(a){a.stopPropagation();f.call(b,a)}:n&&(m=function(){b.contextMenu(e.menuClassName,n,e.translateX,e.translateY,e.width,e.height,e);e.setState(2)});c.text&&c.symbol?h.paddingLeft=D(h.paddingLeft,25):c.text||y(h,{width:c.width,height:c.height,padding:0});e=d.button(c.text,0,0,m,h,l,k).addClass(a.className).attr({title:b.options.lang[c._titleKey],zIndex:3});e.menuClassName=a.menuClassName||"highcharts-menu-"+ | ||
b.btnCount++;c.symbol&&(g=d.symbol(c.symbol,c.symbolX-q/2,c.symbolY-q/2,q,q).addClass("highcharts-button-symbol").attr({zIndex:1}).add(e));e.add().align(y(c,{width:e.width,x:D(c.x,b.buttonOffset)}),!0,"spacingBox");b.buttonOffset+=(e.width+c.buttonSpacing)*("right"===c.align?-1:1);b.exportSVGElements.push(e,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var d=b.exportDivElements,c=b.exportEvents,f;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,f="cache-"+a.menuClassName, | ||
b[f]&&delete b[f],b.exportSVGElements[c]=a.destroy())}),a.length=0);d&&(k(d,function(a,c){clearTimeout(a.hideTimer);I(a,"mouseleave");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;C(a)}),d.length=0);c&&(k(c,function(a){a()}),c.length=0)}});E.prototype.inlineToAttributes="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");E.prototype.inlineBlacklist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/perspective/, | ||
/TapHighlightColor/,/^transition/];E.prototype.unstyledElements=["clipPath","defs","desc"];A.prototype.inlineStyles=function(){function a(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()})}function b(d){var h,q,l="",m,r,p;if(1===d.nodeType&&-1===n.indexOf(d.nodeName)){h=z.getComputedStyle(d,null);q="svg"===d.nodeName?{}:z.getComputedStyle(d.parentNode,null);g[d.nodeName]||(e||(e=t.createElementNS(f.SVG_NS,"svg"),e.setAttribute("version","1.1"),t.body.appendChild(e)),m=t.createElementNS(d.namespaceURI, | ||
d.nodeName),e.appendChild(m),g[d.nodeName]=v(z.getComputedStyle(m,null)),e.removeChild(m));for(p in h){m=!1;for(r=u.length;r--&&!m;)m=u[r].test(p)||"function"===typeof h[p];m||q[p]!==h[p]&&g[d.nodeName][p]!==h[p]&&(-1!==c.indexOf(p)?d.setAttribute(a(p),h[p]):l+=a(p)+":"+h[p]+";")}l&&(h=d.getAttribute("style"),d.setAttribute("style",(h?h+";":"")+l));"text"!==d.nodeName&&k(d.children||d.childNodes,b)}}var d=this.renderer,c=d.inlineToAttributes,u=d.inlineBlacklist,n=d.unstyledElements,g={},e;b(this.container.querySelector("svg")); | ||
e.parentNode.removeChild(e)};J.menu=function(a,b,d,c){return["M",a,b+2.5,"L",a+d,b+2.5,"M",a,b+c/2+.5,"L",a+d,b+c/2+.5,"M",a,b+c-1.5,"L",a+d,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,d=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],H(d,function(b){a.addButton(b)}),a.isDirtyExporting=!1);x(a,"destroy",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting(); | ||
x(a,"redraw",a.renderExporting);k(["exporting","navigation"],function(b){a[b]={update:function(d,c){a.isDirtyExporting=!0;v(!0,a.options[b],d);D(c,!0)&&a.redraw()}}})})})(r)}); | ||
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(e){var p=e.defaultOptions,t=e.doc,B=e.Chart,u=e.addEvent,K=e.removeEvent,H=e.fireEvent,n=e.createElement,D=e.discardElement,I=e.css,x=e.merge,E=e.pick,k=e.each,F=e.objectEach,y=e.extend,z=e.win,J=z.navigator.userAgent,G=e.SVGRenderer,L=e.Renderer.prototype.symbols,M=/Edge\/|Trident\/|MSIE /.test(J),N=/firefox/i.test(J);y(p.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image", | ||
downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});p.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}};p.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle", | ||
menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};e.post=function(a,b,c){var d=n("form",x({method:"post",action:a,enctype:"multipart/form-data"},c), | ||
{display:"none"},t.body);F(b,function(a,b){n("input",{type:"hidden",name:b,value:a},null,d)});d.submit();D(d)};y(B.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var c=a.match(/<\/svg>(.*?$)/);c&&c[1]&&(c='\x3cforeignObject x\x3d"0" y\x3d"0" width\x3d"'+b.chart.width+'" height\x3d"'+b.chart.height+'"\x3e\x3cbody xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e'+c[1]+"\x3c/body\x3e\x3c/foreignObject\x3e",a=a.replace("\x3c/svg\x3e",c+"\x3c/svg\x3e"))}return a=a.replace(/zIndex="[^"]+"/g, | ||
"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(\S+)("|")\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'\x3csvg xmlns:xlink\x3d"http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g," xlink:href\x3d").replace(/\n/," ").replace(/<\/svg>.*?$/,"\x3c/svg\x3e").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1\x3d"rgb($2)" $1-opacity\x3d"$3"').replace(/ /g, | ||
"\u00a0").replace(/­/g,"\u00ad")},getChartHTML:function(){this.inlineStyles();return this.container.innerHTML},getSVG:function(a){var b,c,d,v,l,g=x(this.options,a);t.createElementNS||(t.createElementNS=function(a,b){return t.createElement(b)});c=n("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},t.body);d=this.renderTo.style.width;l=this.renderTo.style.height;d=g.exporting.sourceWidth||g.chart.width||/px$/.test(d)&&parseInt(d,10)||600;l=g.exporting.sourceHeight|| | ||
g.chart.height||/px$/.test(l)&&parseInt(l,10)||400;y(g.chart,{animation:!1,renderTo:c,forExport:!0,renderer:"SVGRenderer",width:d,height:l});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=x(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=e.uniqueKey())});b=new e.Chart(g,this.callback);a&&k(["xAxis","yAxis","series"],function(d){var c= | ||
{};a[d]&&(c[d]=a[d],b.update(c))});k(this.axes,function(a){var d=e.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),c=a.getExtremes(),f=c.userMin,c=c.userMax;!d||void 0===f&&void 0===c||d.setExtremes(f,c,!0,!1)});d=b.getChartHTML();d=this.sanitizeSVG(d,g);g=null;b.destroy();D(c);return d},getSVGForExport:function(a,b){var c=this.options.exporting;return this.getSVG(x({chart:{borderRadius:0}},c.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||c.sourceWidth, | ||
sourceHeight:a&&a.sourceHeight||c.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=x(this.options.exporting,a);e.post(a.url,{filename:a.filename||"chart",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,c=[],d=b.parentNode,e=t.body,l=e.childNodes,g=a.options.exporting.printMaxWidth,f,m;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);H(a,"beforePrint");if(m=g&&a.chartWidth>g)f=[a.options.chart.width,void 0, | ||
!1],a.setSize(g,void 0,!1);k(l,function(a,b){1===a.nodeType&&(c[b]=a.style.display,a.style.display="none")});e.appendChild(b);z.focus();z.print();setTimeout(function(){d.appendChild(b);k(l,function(a,b){1===a.nodeType&&(a.style.display=c[b])});a.isPrinting=!1;m&&a.setSize.apply(a,f);H(a,"afterPrint")},1E3)}},contextMenu:function(a,b,c,d,e,l,g){var f=this,m=f.chartWidth,q=f.chartHeight,v="cache-"+a,h=f[v],r=Math.max(e,l),C,w;h||(f[v]=h=n("div",{className:a},{position:"absolute",zIndex:1E3,padding:r+ | ||
"px"},f.container),C=n("div",{className:"highcharts-menu"},null,h),w=function(){I(h,{display:"none"});g&&g.setState(0);f.openMenu=!1},f.exportEvents.push(u(h,"mouseleave",function(){h.hideTimer=setTimeout(w,500)}),u(h,"mouseenter",function(){clearTimeout(h.hideTimer)}),u(t,"mouseup",function(b){f.pointer.inClass(b.target,a)||w()})),k(b,function(a){if(a){var b;b=a.separator?n("hr",null,null,C):n("div",{className:"highcharts-menu-item",onclick:function(b){b&&b.stopPropagation();w();a.onclick&&a.onclick.apply(f, | ||
arguments)},innerHTML:a.text||f.options.lang[a.textKey]},null,C);f.exportDivElements.push(b)}}),f.exportDivElements.push(C,h),f.exportMenuWidth=h.offsetWidth,f.exportMenuHeight=h.offsetHeight);b={display:"block"};c+f.exportMenuWidth>m?b.right=m-c-e-r+"px":b.left=c-r+"px";d+l+f.exportMenuHeight>q&&"top"!==g.alignOptions.verticalAlign?b.bottom=q-d-r+"px":b.top=d+l-r+"px";I(h,b);f.openMenu=!0},addButton:function(a){var b=this,c=b.renderer,d=x(b.options.navigation.buttonOptions,a),e=d.onclick,l=d.menuItems, | ||
g,f,m=d.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==d.enabled){var q=d.theme,k=q.states,h=k&&k.hover,k=k&&k.select,r;delete q.states;e?r=function(a){a.stopPropagation();e.call(b,a)}:l&&(r=function(){b.contextMenu(f.menuClassName,l,f.translateX,f.translateY,f.width,f.height,f);f.setState(2)});d.text&&d.symbol?q.paddingLeft=E(q.paddingLeft,25):d.text||y(q,{width:d.width,height:d.height,padding:0});f=c.button(d.text,0,0,r,q,h, | ||
k).addClass(a.className).attr({title:b.options.lang[d._titleKey],zIndex:3});f.menuClassName=a.menuClassName||"highcharts-menu-"+b.btnCount++;d.symbol&&(g=c.symbol(d.symbol,d.symbolX-m/2,d.symbolY-m/2,m,m).addClass("highcharts-button-symbol").attr({zIndex:1}).add(f));f.add().align(y(d,{width:f.width,x:E(d.x,b.buttonOffset)}),!0,"spacingBox");b.buttonOffset+=(f.width+d.buttonSpacing)*("right"===d.align?-1:1);b.exportSVGElements.push(f,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements; | ||
var c=b.exportDivElements,d=b.exportEvents,e;a&&(k(a,function(a,d){a&&(a.onclick=a.ontouchstart=null,e="cache-"+a.menuClassName,b[e]&&delete b[e],b.exportSVGElements[d]=a.destroy())}),a.length=0);c&&(k(c,function(a,d){clearTimeout(a.hideTimer);K(a,"mouseleave");b.exportDivElements[d]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),c.length=0);d&&(k(d,function(a){a()}),d.length=0)}});G.prototype.inlineToAttributes="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" "); | ||
G.prototype.inlineBlacklist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/perspective/,/TapHighlightColor/,/^transition/];G.prototype.unstyledElements=["clipPath","defs","desc"];B.prototype.inlineStyles=function(){function a(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()})}function b(c){function q(b,e){n=u=!1;if(l){for(A=l.length;A--&&!u;)u=l[A].test(e);n=!u}"transform"===e&&"none"===b&&(n=!0);for(A=v.length;A--&&!n;)n=v[A].test(e)||"function"=== | ||
typeof b;n||r[e]!==b&&f[c.nodeName][e]!==b&&(-1!==d.indexOf(e)?c.setAttribute(a(e),b):p+=a(e)+":"+b+";")}var h,r,p="",w,n,u,A;if(1===c.nodeType&&-1===g.indexOf(c.nodeName)){h=z.getComputedStyle(c,null);r="svg"===c.nodeName?{}:z.getComputedStyle(c.parentNode,null);f[c.nodeName]||(m||(m=t.createElementNS(e.SVG_NS,"svg"),m.setAttribute("version","1.1"),t.body.appendChild(m)),w=t.createElementNS(c.namespaceURI,c.nodeName),m.appendChild(w),f[c.nodeName]=x(z.getComputedStyle(w,null)),m.removeChild(w)); | ||
if(N||M)for(var y in h)q(h[y],y);else F(h,q);p&&(h=c.getAttribute("style"),c.setAttribute("style",(h?h+";":"")+p));"svg"===c.nodeName&&c.setAttribute("stroke-width","1px");"text"!==c.nodeName&&k(c.children||c.childNodes,b)}}var c=this.renderer,d=c.inlineToAttributes,v=c.inlineBlacklist,l=c.inlineWhitelist,g=c.unstyledElements,f={},m;b(this.container.querySelector("svg"));m.parentNode.removeChild(m)};L.menu=function(a,b,c,d){return["M",a,b+2.5,"L",a+c,b+2.5,"M",a,b+d/2+.5,"L",a+c,b+d/2+.5,"M",a,b+ | ||
d-1.5,"L",a+c,b+d-1.5]};B.prototype.renderExporting=function(){var a=this,b=a.options.exporting,c=b.buttons,d=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();d&&!1!==b.enabled&&(a.exportEvents=[],F(c,function(b){a.addButton(b)}),a.isDirtyExporting=!1);u(a,"destroy",a.destroyExport)};B.prototype.callbacks.push(function(a){a.renderExporting();u(a,"redraw",a.renderExporting);k(["exporting","navigation"],function(b){a[b]={update:function(c,d){a.isDirtyExporting= | ||
!0;x(!0,a.options[b],c);E(d,!0)&&a.redraw()}}})})})(p)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Exporting module | ||
@@ -45,6 +45,8 @@ * | ||
win = H.win, | ||
SVGRenderer = H.SVGRenderer; | ||
userAgent = win.navigator.userAgent, | ||
SVGRenderer = H.SVGRenderer, | ||
symbols = H.Renderer.prototype.symbols, | ||
isMSBrowser = /Edge\/|Trident\/|MSIE /.test(userAgent), | ||
isFirefoxBrowser = /firefox/i.test(userAgent); | ||
var symbols = H.Renderer.prototype.symbols; | ||
// Add language | ||
@@ -397,2 +399,4 @@ extend(defaultOptions.lang, { | ||
* Different chart background in export | ||
* @sample stock/members/chart-exportchart/ | ||
* Export with Highstock | ||
*/ | ||
@@ -822,2 +826,3 @@ exportChart: function(exportingOptions, chartOptions) { | ||
blacklist = renderer.inlineBlacklist, | ||
whitelist = renderer.inlineWhitelist, // For IE | ||
unstyledElements = renderer.unstyledElements, | ||
@@ -849,5 +854,45 @@ defaultStyles = {}, | ||
blacklisted, | ||
i, | ||
prop; | ||
whitelisted, | ||
i; | ||
// Check computed styles and whether they are in the white/blacklist for | ||
// styles or atttributes | ||
function filterStyles(val, prop) { | ||
// Check against whitelist & blacklist | ||
blacklisted = whitelisted = false; | ||
if (whitelist) { | ||
// Styled mode in IE has a whitelist instead. | ||
// Exclude all props not in this list. | ||
i = whitelist.length; | ||
while (i-- && !whitelisted) { | ||
whitelisted = whitelist[i].test(prop); | ||
} | ||
blacklisted = !whitelisted; | ||
} | ||
// Explicitly remove empty transforms | ||
if (prop === 'transform' && val === 'none') { | ||
blacklisted = true; | ||
} | ||
i = blacklist.length; | ||
while (i-- && !blacklisted) { | ||
blacklisted = blacklist[i].test(prop) || typeof val === 'function'; | ||
} | ||
if (!blacklisted) { | ||
// If parent node has the same style, it gets inherited, no need to inline it | ||
if (parentStyles[prop] !== val && defaultStyles[node.nodeName][prop] !== val) { | ||
// Attributes | ||
if (inlineToAttributes.indexOf(prop) !== -1) { | ||
node.setAttribute(hyphenate(prop), val); | ||
// Styles | ||
} else { | ||
cssText += hyphenate(prop) + ':' + val + ';'; | ||
} | ||
} | ||
} | ||
} | ||
if (node.nodeType === 1 && unstyledElements.indexOf(node.nodeName) === -1) { | ||
@@ -870,35 +915,10 @@ styles = win.getComputedStyle(node, null); | ||
// Loop over all the computed styles and check whether they are in | ||
// the white list for styles or atttributes. Use a plain for-in loop | ||
// because the styles object also contains numerically indexed | ||
// pointers to its keys, and objectEach will fail in Firefox. | ||
for (prop in styles) { | ||
// Check against blacklist | ||
blacklisted = false; | ||
i = blacklist.length; | ||
while (i-- && !blacklisted) { | ||
blacklisted = blacklist[i].test(prop) || | ||
typeof styles[prop] === 'function'; | ||
// Loop through all styles and add them inline if they are ok | ||
if (isFirefoxBrowser || isMSBrowser) { | ||
// Some browsers put lots of styles on the prototype | ||
for (var p in styles) { | ||
filterStyles(styles[p], p); | ||
} | ||
if (!blacklisted) { | ||
// If parent node has the same style, it gets inherited, no | ||
// need to inline it | ||
if ( | ||
parentStyles[prop] !== styles[prop] && | ||
defaultStyles[node.nodeName][prop] !== styles[prop] | ||
) { | ||
// Attributes | ||
if (inlineToAttributes.indexOf(prop) !== -1) { | ||
node.setAttribute(hyphenate(prop), styles[prop]); | ||
// Styles | ||
} else { | ||
cssText += hyphenate(prop) + ':' + | ||
styles[prop] + ';'; | ||
} | ||
} | ||
} | ||
} else { | ||
objectEach(styles, filterStyles); | ||
} | ||
@@ -912,2 +932,7 @@ | ||
// Set default stroke width (needed at least for IE) | ||
if (node.nodeName === 'svg') { | ||
node.setAttribute('stroke-width', '1px'); | ||
} | ||
if (node.nodeName === 'text') { | ||
@@ -914,0 +939,0 @@ return; |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highcharts funnel module | ||
@@ -9,5 +9,5 @@ | ||
*/ | ||
(function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,z=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e("funnel","pie",{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight, | ||
q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),z=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,A,B,D="left"===f.dataLabels.position?1:0,C,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(z-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&!1===a.visible||(E+=a.y)});I(b,function(a){p=null;B=E?a.y/E:0;n=r-m/2+q*m;k=n+B*m;l=v(n);C= | ||
h-l/2;G=C+l;l=v(k);u=h-l/2;y=u+l;n>x?(C=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);A=["M",C,n,"L",G,n,y,k];p&&A.push(y,p,u,p);A.push(u,k,"Z");a.shapeType="path";a.shapeArgs={d:A};a.percentage=100*B;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=B)})},drawPoints:z.column.prototype.drawPoints,sortByAngle:function(b){b.sort(function(b,c){return b.plotY-c.plotY})},drawDataLabels:function(){var b=this.data, | ||
e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?"right":"left",0];z.pie.prototype.drawDataLabels.call(this)}});e("pyramid","funnel",{neckWidth:"0%",neckHeight:"0%",reversed:!0})})(e)}); | ||
(function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e("funnel","pie",{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight, | ||
q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D="left"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B= | ||
h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=["M",B,n,"L",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,"Z");a.shapeType="path";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f, | ||
d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?"right":"left",0];C.pie.prototype.drawDataLabels.call(this)}});e("pyramid","funnel",{neckWidth:"0%",neckHeight:"0%",reversed:!0})})(e)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Highcharts funnel module | ||
@@ -219,9 +219,2 @@ * | ||
}, | ||
/** | ||
* Draw a single point (wedge) | ||
* @param {Object} point The point object | ||
* @param {Object} color The color of the point | ||
* @param {Number} brightness The brightness relative to the color | ||
*/ | ||
drawPoints: seriesTypes.column.prototype.drawPoints, | ||
@@ -228,0 +221,0 @@ /** |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Gantt series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Gantt series | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
GridAxis | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* GridAxis | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,19 +8,19 @@ (c) 2009-2017 Torstein Honsi | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(c){var k=c.Axis,r=c.Chart,h=c.color,g,e=c.each,w=c.extend,x=c.isNumber,m=c.Legend,t=c.LegendSymbolMixin,y=c.noop,q=c.merge,v=c.pick,u=c.wrap;g=c.ColorAxis=function(){this.init.apply(this,arguments)};w(g.prototype,k.prototype);w(g.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,f;this.coll="colorAxis";f=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,f);b.dataClasses&&this.initDataClasses(b);this.initStops(b); | ||
this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var f;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,f=1!==b[3]||1!==a[3],a=(f?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(f?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d,f=0,p=this.chart.options.chart.colorCount,c=this.options,l=a.dataClasses.length;this.dataClasses= | ||
d=[];this.legendItems=[];e(a.dataClasses,function(a,e){a=q(a);d.push(a);a.color||("category"===c.dataClassColor?(a.colorIndex=f,f++,f===p&&(f=0)):a.color=b.tweenColors(h(c.minColor),h(c.maxColor),2>l?.5:e/(l-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=h(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol, | ||
b=this.chart,d=b.options.legend||{},f,p;a?(this.left=d=a.attr("x"),this.top=f=a.attr("y"),this.width=p=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-p,this.bottom=b.chartHeight-f-a,this.len=this.horiz?p:a,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,f,p,c=this.dataClasses,l,e;if(c)for(e=c.length;e--;){if(l=c[e],f=l.from,d=l.to,(void 0===f||a>=f)&&(void 0===d||a<=d)){p=l.color; | ||
b&&(b.dataClass=e,b.colorIndex=l.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(e=d.length;e--&&!(a>d[e][0]););f=d[e]||d[e+1];d=d[e+1]||f;a=1-(d[0]-a)/(d[0]-f[0]||1);p=this.tweenColors(f.color,d.color,a)}return p},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]= | ||
b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,f=a.options,c=this.horiz,e=v(f.symbolWidth,c?this.defaultLegendLength:12),l=v(f.symbolHeight,c?12:this.defaultLegendLength),g=v(f.labelPadding,c?16:30),f=v(f.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0, | ||
a.baseline-11,e,l).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=e+d+(c?f:g);this.legendItemHeight=l+d+(c?g:0)},setState:y,visible:!0,setVisible:y,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,e,g=this.pos,l=this.len;b&&(e=this.toPixels(b[b.series.colorKey]), | ||
e<g?e=g-2:e>g+l&&(e=g+l+2),b.plotX=e,b.plotY=this.len-e,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,d,c,e){return x(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,b,d,c)},update:function(a,b){var d=this.chart,c=d.legend;e(this.series,function(a){a.isDirtyData= | ||
!0});a.dataClasses&&c.allItems&&(e(c.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);k.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var a=this,b=this.chart,d=this.legendItems,f=b.options.legend,g=f.valueDecimals,u=f.valueSuffix|| | ||
"",l;d.length||e(this.dataClasses,function(f,k){var m=!0,q=f.from,h=f.to;l="";void 0===q?l="\x3c ":void 0===h&&(l="\x3e ");void 0!==q&&(l+=c.numberFormat(q,g)+u);void 0!==q&&void 0!==h&&(l+=" - ");void 0!==h&&(l+=c.numberFormat(h,g)+u);d.push(w({chart:b,name:l,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,setState:y,isDataClass:!0,setVisible:function(){m=this.visible=!m;e(a.series,function(a){e(a.points,function(a){a.dataClass===k&&a.setVisible(m)})});b.legend.colorizeItem(this,m)}},f))}); | ||
return d},name:""});e(["fill","stroke"],function(a){c.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,g.prototype.tweenColors(h(this.start),h(this.end),this.pos),null,!0)}});u(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new g(this,b)});u(m.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend= | ||
!1}));return b.concat(a.call(this))});u(m.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(n);(function(c){var k=c.defined,r=c.each,h=c.noop;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,g=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][g]()})},setState:function(g){c.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g? | ||
1:0})}};c.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:h,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var c=this,e=this.options.nullColor,k=this.colorAxis,h=this.colorKey;r(this.data,function(g){var t=g[h];if(t=g.options.color||(g.isNull?e:k&&void 0!==t?k.toColor(t,g):g.color||c.color))g.color=t})},colorAttribs:function(c){var e={};k(c.color)&& | ||
(e[this.colorProp||"fill"]=c.color);return e}}})(n);(function(c){var k=c.colorPointMixin,r=c.each,h=c.merge,g=c.noop,e=c.pick,n=c.Series,x=c.seriesType,m=c.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}}, | ||
h(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;m.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options,e=this.xAxis,g=this.yAxis,k=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints();r(this.points,function(h){var a=(c.colsize||1)/2,b=(c.rowsize|| | ||
1)/2,d=k(Math.round(e.len-e.translate(h.x-a,0,1,0,1)),-e.len,2*e.len),a=k(Math.round(e.len-e.translate(h.x+a,0,1,0,1)),-e.len,2*e.len),f=k(Math.round(g.translate(h.y-b,0,1,0,1)),-g.len,2*g.len),b=k(Math.round(g.translate(h.y+b,0,1,0,1)),-g.len,2*g.len);h.plotX=h.clientX=(d+a)/2;h.plotY=(f+b)/2;h.shapeType="rect";h.shapeArgs={x:Math.min(d,a),y:Math.min(f,b),width:Math.abs(a-d),height:Math.abs(b-f)}});this.translateColors()},drawPoints:function(){m.column.prototype.drawPoints.call(this);r(this.points, | ||
function(c){c.graphic.css(this.colorAttribs(c))},this)},animate:g,getBox:g,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,alignDataLabel:m.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;n.prototype.getExtremes.call(this)}}),k)})(n)}); | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(b){var l=b.Axis,t=b.Chart,m=b.color,h,e=b.each,v=b.extend,w=b.isNumber,n=b.Legend,g=b.LegendSymbolMixin,x=b.noop,r=b.merge,u=b.pick,p=b.wrap;h=b.ColorAxis=function(){this.init.apply(this,arguments)};v(h.prototype,l.prototype);v(h.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(l.prototype.keepProps),init:function(a,c){var d="vertical"!==a.options.legend.layout,k;this.coll="colorAxis";k=r(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},c,{opposite:!d,showEmpty:!1,title:null});l.prototype.init.call(this,a,k);c.dataClasses&&this.initDataClasses(c);this.initStops(); | ||
this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c,d=0,k=this.chart.options.chart.colorCount,f=this.options,b=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];e(a.dataClasses,function(a,e){a=r(a);c.push(a);a.color||("category"===f.dataClassColor?(a.colorIndex=d,d++,d===k&&(d=0)):a.color=m(f.minColor).tweenTo(m(f.maxColor),2>b?.5:e/(b-1)))})},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]]; | ||
e(this.stops,function(a){a.color=m(a[1])})},setOptions:function(a){l.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,c=this.chart,d=c.options.legend||{},k,f;a?(this.left=d=a.attr("x"),this.top=k=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-d-f,this.bottom=c.chartHeight-k-a,this.len=this.horiz?f:a,this.pos=this.horiz?d:k):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)|| | ||
this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var d=this.stops,k,f,b=this.dataClasses,e,g;if(b)for(g=b.length;g--;){if(e=b[g],k=e.from,d=e.to,(void 0===k||a>=k)&&(void 0===d||a<=d)){f=e.color;c&&(c.dataClass=g,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(g=d.length;g--&&!(a>d[g][0]););k=d[g]||d[g+1];d=d[g+1]||k;a=1-(d[0]-a)/(d[0]-k[0]||1);f=k.color.tweenTo(d.color,a)}return f}, | ||
getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,l.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var d=a.padding,b=a.options,f=this.horiz,g=u(b.symbolWidth, | ||
f?this.defaultLegendLength:12),e=u(b.symbolHeight,f?12:this.defaultLegendLength),h=u(b.labelPadding,f?16:30),b=u(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,g,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=g+d+(f?b:h);this.legendItemHeight=e+d+(f?h:0)},setState:x,visible:!0,setVisible:x,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)void 0!==a[c].valueMin&&(this.dataMin= | ||
Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var d=c&&c.plotX,b=c&&c.plotY,f,g=this.pos,e=this.len;c&&(f=this.toPixels(c[c.series.colorKey]),f<g?f=g-2:f>g+e&&(f=g+e+2),c.plotX=f,c.plotY=this.len-f,l.prototype.drawCrosshair.call(this,a,c),c.plotX=d,c.plotY=b,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,c,d,b,f){return w(f)?this.horiz?["M",f-4,this.top-6,"L",f+ | ||
4,this.top-6,f,this.top,"Z"]:["M",this.left,f,"L",this.left-6,f+6,this.left-6,f-6,"Z"]:l.prototype.getPlotLinePath.call(this,a,c,d,b)},update:function(a,c){var d=this.chart,b=d.legend;e(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(e(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=r(this.userOptions,a);l.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))}, | ||
remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);l.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var a=this,c=this.chart,d=this.legendItems,k=c.options.legend,f=k.valueDecimals,h=k.valueSuffix||"",p;d.length||e(this.dataClasses,function(k,l){var n=!0,r=k.from,m=k.to;p="";void 0===r?p="\x3c ":void 0===m&&(p="\x3e ");void 0!==r&&(p+=b.numberFormat(r,f)+h);void 0!==r&&void 0!==m&&(p+=" - ");void 0!==m&&(p+=b.numberFormat(m,f)+h);d.push(v({chart:c,name:p,options:{}, | ||
drawLegendSymbol:g.drawRectangle,visible:!0,setState:x,isDataClass:!0,setVisible:function(){n=this.visible=!n;e(a.series,function(a){e(a.points,function(a){a.dataClass===l&&a.setVisible(n)})});c.legend.colorizeItem(this,n)}},k))});return d},name:""});e(["fill","stroke"],function(a){b.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,m(this.start).tweenTo(m(this.end),this.pos),null,!0)}});p(t.prototype,"getAxes",function(a){var c=this.options.colorAxis;a.call(this);this.colorAxis=[];c&&new h(this, | ||
c)});p(n.prototype,"getAllItems",function(a){var c=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?c=c.concat(d.getDataClassLegendSymbols()):c.push(d)),e(d.series,function(a){a.options.showInLegend=!1}));return c.concat(a.call(this))});p(n.prototype,"colorizeItem",function(a,c,d){a.call(this,c,d);d&&c.legendColor&&c.legendSymbol.attr({fill:c.legendColor})})})(q);(function(b){var l=b.defined,t=b.each,m=b.noop;b.colorPointMixin={isValid:function(){return null!== | ||
this.value},setVisible:function(b){var e=this,h=b?"show":"hide";t(["graphic","dataLabel"],function(b){if(e[b])e[b][h]()})},setState:function(h){b.Point.prototype.setState.call(this,h);this.graphic&&this.graphic.attr({zIndex:"hover"===h?1:0})}};b.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:m,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var b= | ||
this,e=this.options.nullColor,l=this.colorAxis,m=this.colorKey;t(this.data,function(h){var g=h[m];if(g=h.options.color||(h.isNull?e:l&&void 0!==g?l.toColor(g,h):h.color||b.color))h.color=g})},colorAttribs:function(b){var e={};l(b.color)&&(e[this.colorProp||"fill"]=b.color);return e}}})(q);(function(b){var l=b.colorPointMixin,t=b.each,m=b.merge,h=b.noop,e=b.pick,q=b.Series,w=b.seriesType,n=b.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value}, | ||
inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},m(b.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var b;n.scatter.prototype.init.apply(this,arguments);b=this.options;b.pointRange=e(b.pointRange,b.colsize||1);this.yAxis.axisPointRange= | ||
b.rowsize||1},translate:function(){var b=this.options,e=this.xAxis,h=this.yAxis,l=function(b,a,c){return Math.min(Math.max(a,b),c)};this.generatePoints();t(this.points,function(g){var a=(b.colsize||1)/2,c=(b.rowsize||1)/2,d=l(Math.round(e.len-e.translate(g.x-a,0,1,0,1)),-e.len,2*e.len),a=l(Math.round(e.len-e.translate(g.x+a,0,1,0,1)),-e.len,2*e.len),k=l(Math.round(h.translate(g.y-c,0,1,0,1)),-h.len,2*h.len),c=l(Math.round(h.translate(g.y+c,0,1,0,1)),-h.len,2*h.len);g.plotX=g.clientX=(d+a)/2;g.plotY= | ||
(k+c)/2;g.shapeType="rect";g.shapeArgs={x:Math.min(d,a),y:Math.min(k,c),width:Math.abs(a-d),height:Math.abs(c-k)}});this.translateColors()},drawPoints:function(){n.column.prototype.drawPoints.call(this);t(this.points,function(b){b.graphic.css(this.colorAttribs(b))},this)},animate:h,getBox:h,drawLegendSymbol:b.LegendSymbolMixin.drawRectangle,alignDataLabel:n.column.prototype.alignDataLabel,getExtremes:function(){q.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax= | ||
this.dataMax;q.prototype.getExtremes.call(this)}}),l)})(q)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -107,3 +107,3 @@ * (c) 2009-2017 Torstein Honsi | ||
} | ||
this.initStops(userOptions); | ||
this.initStops(); | ||
@@ -118,35 +118,4 @@ // Override original axis properties | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. | ||
* NOTE: Changes here should be copied | ||
* to the same function in drilldown.src.js and solid-gauge-src.js. | ||
*/ | ||
tweenColors: function(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
}, | ||
initDataClasses: function(userOptions) { | ||
var axis = this, | ||
chart = this.chart, | ||
var chart = this.chart, | ||
dataClasses, | ||
@@ -176,4 +145,3 @@ colorCounter = 0, | ||
} else { | ||
dataClass.color = axis.tweenColors( | ||
color(options.minColor), | ||
dataClass.color = color(options.minColor).tweenTo( | ||
color(options.maxColor), | ||
@@ -187,4 +155,4 @@ len < 2 ? 0.5 : i / (len - 1) // #3219 | ||
initStops: function(userOptions) { | ||
this.stops = userOptions.stops || [ | ||
initStops: function() { | ||
this.stops = this.options.stops || [ | ||
[0, this.options.minColor], | ||
@@ -233,2 +201,9 @@ [1, this.options.maxColor] | ||
normalizedValue: function(value) { | ||
if (this.isLog) { | ||
value = this.val2lin(value); | ||
} | ||
return 1 - ((this.max - value) / ((this.max - this.min) || 1)); | ||
}, | ||
/** | ||
@@ -265,6 +240,3 @@ * Translate from a value to a color | ||
if (this.isLog) { | ||
value = this.val2lin(value); | ||
} | ||
pos = 1 - ((this.max - value) / ((this.max - this.min) || 1)); | ||
pos = this.normalizedValue(value); | ||
i = stops.length; | ||
@@ -282,4 +254,3 @@ while (i--) { | ||
color = this.tweenColors( | ||
from.color, | ||
color = from.color.tweenTo( | ||
to.color, | ||
@@ -326,3 +297,2 @@ pos | ||
horiz = this.horiz, | ||
options = this.options, | ||
reversed = this.reversed, | ||
@@ -340,6 +310,3 @@ one = reversed ? 1 : 0, | ||
}, | ||
stops: options.stops || [ | ||
[0, options.minColor], | ||
[1, options.maxColor] | ||
] | ||
stops: this.stops | ||
}; | ||
@@ -540,4 +507,3 @@ }, | ||
prop, | ||
ColorAxis.prototype.tweenColors( | ||
color(this.start), | ||
color(this.start).tweenTo( | ||
color(this.end), | ||
@@ -544,0 +510,0 @@ this.pos |
/* | ||
Highmaps JS v5.0.11 (2017-05-04) | ||
Highmaps JS v5.0.12 (2017-05-24) | ||
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file) | ||
@@ -9,60 +9,59 @@ | ||
*/ | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var h=a.Axis,m=a.each,g=a.pick;a=a.wrap;a(h.prototype,"getSeriesExtremes",function(a){var e=this.isXAxis,p,u,h=[],l;e&&m(this.series,function(a,b){a.useMapGeometry&&(h[b]=a.xData,a.xData=[])});a.call(this);e&&(p=g(this.dataMin,Number.MAX_VALUE),u=g(this.dataMax,-Number.MAX_VALUE),m(this.series,function(a,b){a.useMapGeometry&&(p=Math.min(p,g(a.minX,p)),u=Math.max(u,g(a.maxX,p)),a.xData=h[b], | ||
l=!0)}),l&&(this.dataMin=p,this.dataMax=u))});a(h.prototype,"setAxisTranslation",function(a){var e=this.chart,p=e.plotWidth/e.plotHeight,e=e.xAxis[0],g;a.call(this);"yAxis"===this.coll&&void 0!==e.transA&&m(this.series,function(a){a.preserveAspectRatio&&(g=!0)});if(g&&(this.transA=e.transA=Math.min(this.transA,e.transA),a=p/((e.max-e.min)/(this.max-this.min)),a=1>a?this:e,p=(a.max-a.min)*a.transA,a.pixelPadding=a.len-p,a.minPixelPadding=a.pixelPadding/2,p=a.fixTo)){p=p[1]-a.toValue(p[0],!0);p*=a.transA; | ||
if(Math.abs(p)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)p=0;a.minPixelPadding-=p}});a(h.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var h=a.Axis,m=a.Chart,g=a.color,e,t=a.each,p=a.extend,u=a.isNumber,v=a.Legend,l=a.LegendSymbolMixin,c=a.noop,b=a.merge,k=a.pick,n=a.wrap;e=a.ColorAxis=function(){this.init.apply(this,arguments)};p(e.prototype,h.prototype);p(e.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(h.prototype.keepProps),init:function(a,f){var d="vertical"!==a.options.legend.layout,r;this.coll="colorAxis";r=b(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},f,{opposite:!d,showEmpty:!1,title:null});h.prototype.init.call(this, | ||
a,r);f.dataClasses&&this.initDataClasses(f);this.initStops(f);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,f,d){var q;f.rgba.length&&a.rgba.length?(a=a.rgba,f=f.rgba,q=1!==f[3]||1!==a[3],a=(q?"rgba(":"rgb(")+Math.round(f[0]+(a[0]-f[0])*(1-d))+","+Math.round(f[1]+(a[1]-f[1])*(1-d))+","+Math.round(f[2]+(a[2]-f[2])*(1-d))+(q?","+(f[3]+(a[3]-f[3])*(1-d)):"")+")"):a=f.input||"none";return a},initDataClasses:function(a){var f=this,d,q=0,r=this.chart.options.chart.colorCount, | ||
k=this.options,c=a.dataClasses.length;this.dataClasses=d=[];this.legendItems=[];t(a.dataClasses,function(a,w){a=b(a);d.push(a);a.color||("category"===k.dataClassColor?(a.colorIndex=q,q++,q===r&&(q=0)):a.color=f.tweenColors(g(k.minColor),g(k.maxColor),2>c?.5:w/(c-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=g(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}, | ||
setAxisSize:function(){var a=this.legendSymbol,f=this.chart,d=f.options.legend||{},q,b;a?(this.left=d=a.attr("x"),this.top=q=a.attr("y"),this.width=b=a.attr("width"),this.height=a=a.attr("height"),this.right=f.chartWidth-d-b,this.bottom=f.chartHeight-q-a,this.len=this.horiz?b:a,this.pos=this.horiz?d:q):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,f){var d=this.stops,q,b,r=this.dataClasses,k,c;if(r)for(c=r.length;c--;){if(k=r[c],q=k.from,d=k.to,(void 0=== | ||
q||a>=q)&&(void 0===d||a<=d)){b=k.color;f&&(f.dataClass=c,f.colorIndex=k.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(c=d.length;c--&&!(a>d[c][0]););q=d[c]||d[c+1];d=d[c+1]||q;a=1-(d[0]-a)/(d[0]-q[0]||1);b=this.tweenColors(q.color,d.color,a)}return b},getOffset:function(){var a=this.legendGroup,f=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight= | ||
this.width),this.chart.axisOffset[this.side]=f)},setLegendColor:function(){var a,f=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:f.stops||[[0,f.minColor],[1,f.maxColor]]}},drawLegendSymbol:function(a,f){var d=a.padding,q=a.options,b=this.horiz,c=k(q.symbolWidth,b?this.defaultLegendLength:12),r=k(q.symbolHeight,b?12:this.defaultLegendLength),n=k(q.labelPadding,b?16:30),q=k(q.itemDistance,10);this.setLegendColor(); | ||
f.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,r).attr({zIndex:1}).add(f.legendGroup);this.legendItemWidth=c+d+(b?q:n);this.legendItemHeight=r+d+(b?n:0)},setState:c,visible:!0,setVisible:c,getSeriesExtremes:function(){var a=this.series,f=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;f--;)void 0!==a[f].valueMin&&(this.dataMin=Math.min(this.dataMin,a[f].valueMin),this.dataMax=Math.max(this.dataMax,a[f].valueMax))},drawCrosshair:function(a,f){var d=f&&f.plotX,q=f&&f.plotY,b,c= | ||
this.pos,k=this.len;f&&(b=this.toPixels(f[f.series.colorKey]),b<c?b=c-2:b>c+k&&(b=c+k+2),f.plotX=b,f.plotY=this.len-b,h.prototype.drawCrosshair.call(this,a,f),f.plotX=d,f.plotY=q,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,d,q,c){return u(c)?this.horiz?["M",c-4,this.top-6,"L",c+4,this.top-6,c,this.top,"Z"]:["M",this.left,c,"L",this.left-6,c+6,this.left-6,c-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,b,d,q)},update:function(a, | ||
f){var d=this.chart,q=d.legend;t(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&q.allItems&&(t(q.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=b(this.userOptions,a);h.prototype.update.call(this,a,f);this.legendItem&&(this.setLegendColor(),q.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var b=this,f=this.chart, | ||
d=this.legendItems,q=f.options.legend,k=q.valueDecimals,n=q.valueSuffix||"",e;d.length||t(this.dataClasses,function(q,r){var w=!0,z=q.from,g=q.to;e="";void 0===z?e="\x3c ":void 0===g&&(e="\x3e ");void 0!==z&&(e+=a.numberFormat(z,k)+n);void 0!==z&&void 0!==g&&(e+=" - ");void 0!==g&&(e+=a.numberFormat(g,k)+n);d.push(p({chart:f,name:e,options:{},drawLegendSymbol:l.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){w=this.visible=!w;t(b.series,function(a){t(a.points,function(a){a.dataClass=== | ||
r&&a.setVisible(w)})});f.legend.colorizeItem(this,w)}},q))});return d},name:""});t(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,e.prototype.tweenColors(g(this.start),g(this.end),this.pos),null,!0)}});n(m.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new e(this,b)});n(v.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()): | ||
b.push(d)),t(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});n(v.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(x);(function(a){var h=a.defined,m=a.each,g=a.noop;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var e=this,g=a?"show":"hide";m(["graphic","dataLabel"],function(a){if(e[a])e[a][g]()})},setState:function(e){a.Point.prototype.setState.call(this, | ||
e);this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:g,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,t=this.options.nullColor,g=this.colorAxis,h=this.colorKey;m(this.data,function(e){var l=e[h];if(l=e.options.color||(e.isNull?t:g&&void 0!==l?g.toColor(l,e):e.color||a.color))e.color= | ||
l})},colorAttribs:function(a){var e={};h(a.color)&&(e[this.colorProp||"fill"]=a.color);return e}}})(x);(function(a){function h(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function m(a){this.init(a)}var g=a.addEvent,e=a.Chart,t=a.doc,p=a.each,u=a.extend,v=a.merge,l=a.pick,c=a.wrap;m.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};m.prototype.update=function(b){var c=this.chart,n=c.options.mapNavigation,e,f=function(a){this.handler.call(c, | ||
a);h(a)},d=c.mapNavButtons;b&&(n=c.options.mapNavigation=v(c.options.mapNavigation,b));for(;d.length;)d.pop().destroy();l(n.enableButtons,n.enabled)&&!c.renderer.forExport&&a.objectEach(n.buttons,function(a,b){e=v(n.buttonOptions,a);a=c.renderer.button(e.text,0,0,f,void 0,void 0,void 0,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:e.width,height:e.height,title:c.options.lang[b],padding:e.padding,zIndex:5}).add();a.handler=e.onclick;a.align(u(e,{width:a.width, | ||
height:2*a.height}),null,e.alignTo);g(a.element,"dblclick",h);d.push(a)});this.updateEvents(n)};m.prototype.updateEvents=function(a){var b=this.chart;l(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||g(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());l(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||g(b.container,void 0===t.onmousewheel? | ||
"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);h(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(e.prototype,{fitToBox:function(a,c){p([["x","width"],["y","height"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>c[e]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[e]=c[e]):a[e]=c[e]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[e]<c[e]&&(a[e]=c[e])});return a},mapZoom:function(a,c,e,r,f){var d=this.xAxis[0],b=d.max-d.min,k=l(c,d.min+b/2),n=b*a,b=this.yAxis[0],g= | ||
b.max-b.min,t=l(e,b.min+g/2),g=g*a,k=this.fitToBox({x:k-n*(r?(r-d.pos)/d.len:.5),y:t-g*(f?(f-b.pos)/b.len:.5),width:n,height:g},{x:d.dataMin,y:b.dataMin,width:d.dataMax-d.dataMin,height:b.dataMax-b.dataMin}),n=k.x<=d.dataMin&&k.width>=d.dataMax-d.dataMin&&k.y<=b.dataMin&&k.height>=b.dataMax-b.dataMin;r&&(d.fixTo=[r-d.pos,c]);f&&(b.fixTo=[f-b.pos,e]);void 0===a||n?(d.setExtremes(void 0,void 0,!1),b.setExtremes(void 0,void 0,!1)):(d.setExtremes(k.x,k.x+k.width,!1),b.setExtremes(k.y,k.y+k.height,!1)); | ||
this.redraw()}});c(e.prototype,"render",function(a){this.mapNavigation=new m(this);this.mapNavigation.update();a.call(this)})})(x);(function(a){var h=a.extend,m=a.pick,g=a.Pointer;a=a.wrap;h(g.prototype,{onContainerDblClick:function(a){var e=this.chart;a=this.normalize(a);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(a.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(a.chartX), | ||
e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var e=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/120);e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(Math.pow(e.options.mapNavigation.mouseWheelSensitivity,g),e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(g.prototype,"zoomOption",function(a){var e=this.chart.options.mapNavigation;m(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType= | ||
"xy");a.apply(this,[].slice.call(arguments,1))});a(g.prototype,"pinchTranslate",function(a,g,h,m,v,l,c){a.call(this,g,h,m,v,l,c);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=m.scaleX>m.scaleY,this.pinchTranslateDirection(!a,g,h,m,v,l,c,a?m.scaleX:m.scaleY))})})(x);(function(a){var h=a.colorPointMixin,m=a.each,g=a.extend,e=a.isNumber,t=a.map,p=a.merge,u=a.noop,v=a.pick,l=a.isArray,c=a.Point,b=a.Series,k=a.seriesType,n=a.seriesTypes,r=a.splat,f=void 0!==a.doc.documentElement.style.vectorEffect; | ||
k("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},p(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0, | ||
getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(d){var b=Number.MAX_VALUE,c=-b,f=b,k=-b,l=b,n=b,r=this.xAxis,g=this.yAxis,h;m(d||[],function(d){if(d.path){"string"===typeof d.path&&(d.path=a.splitPath(d.path));var q=d.path||[],r=q.length,g=!1,w=-b,m=b,z=-b,p=b,t=d.properties;if(!d._foundBox){for(;r--;)e(q[r])&&(g?(w=Math.max(w,q[r]),m=Math.min(m,q[r])):(z=Math.max(z,q[r]),p=Math.min(p,q[r])),g=!g);d._midX= | ||
m+(w-m)*(d.middleX||t&&t["hc-middle-x"]||.5);d._midY=p+(z-p)*(d.middleY||t&&t["hc-middle-y"]||.5);d._maxX=w;d._minX=m;d._maxY=z;d._minY=p;d.labelrank=v(d.labelrank,(w-m)*(z-p));d._foundBox=!0}c=Math.max(c,d._maxX);f=Math.min(f,d._minX);k=Math.max(k,d._maxY);l=Math.min(l,d._minY);n=Math.min(d._maxX-d._minX,d._maxY-d._minY,n);h=!0}});h&&(this.minY=Math.min(l,v(this.minY,b)),this.maxY=Math.max(k,v(this.maxY,-b)),this.minX=Math.min(f,v(this.minX,b)),this.maxX=Math.max(c,v(this.maxX,-b)),r&&void 0===r.options.minRange&& | ||
(r.minRange=Math.min(5*n,(this.maxX-this.minX)/5,r.minRange||b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxY-this.minY)/5,g.minRange||b)))},getExtremes:function(){b.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var d=!1,b=this.xAxis,c=this.yAxis,f=b.min,k=b.transA,b=b.minPixelPadding, | ||
l=c.min,r=c.transA,c=c.minPixelPadding,n,g=[];if(a)for(n=a.length;n--;)e(a[n])?(g[n]=d?(a[n]-f)*k+b:(a[n]-l)*r+c,d=!d):g[n]=a[n];return g},setData:function(d,c,f,k){var q=this.options,n=this.chart.options.chart,g=n&&n.map,w=q.mapData,h=q.joinBy,u=null===h,v=q.keys||this.pointArrayMap,y=[],B={},A=this.chart.mapTransforms;!w&&g&&(w="string"===typeof g?a.maps[g]:g);u&&(h="_i");h=this.joinBy=r(h);h[1]||(h[1]=h[0]);d&&m(d,function(a,b){var c=0;if(e(a))d[b]={value:a};else if(l(a)){d[b]={};!q.keys&&a.length> | ||
v.length&&"string"===typeof a[0]&&(d[b]["hc-key"]=a[0],++c);for(var f=0;f<v.length;++f,++c)v[f]&&(d[b][v[f]]=a[c])}u&&(d[b]._i=b)});this.getBox(d);(this.chart.mapTransforms=A=n&&n.mapTransforms||w&&w["hc-transform"]||A)&&a.objectEach(A,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(w){"FeatureCollection"===w.type&&(this.mapTitle=w.title,w=a.geojson(w,this.type,this));this.mapData=w;this.mapMap={};for(A=0;A<w.length;A++)n=w[A],g=n.properties,n._i=A,h[0]&& | ||
g&&g[h[0]]&&(n[h[0]]=g[h[0]]),B[n[h[0]]]=n;this.mapMap=B;d&&h[1]&&m(d,function(a){B[a[h[1]]]&&y.push(B[a[h[1]]])});q.allAreas?(this.getBox(w),d=d||[],h[1]&&m(d,function(a){y.push(a[h[1]])}),y="|"+t(y,function(a){return a&&a[h[0]]}).join("|")+"|",m(w,function(a){h[0]&&-1!==y.indexOf("|"+a[h[0]]+"|")||(d.push(p(a,{value:null})),k=!1)})):this.getBox(y)}b.prototype.setData.call(this,d,c,f,k)},drawGraph:u,drawDataLabels:u,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML|| | ||
!this.baseTrans},translate:function(){var a=this,b=a.xAxis,c=a.yAxis,f=a.doFullTranslate();a.generatePoints();m(a.data,function(d){d.plotX=b.toPixels(d._midX,!0);d.plotY=c.toPixels(d._midY,!0);f&&(d.shapeType="path",d.shapeArgs={d:a.translatePath(d.path)})});a.translateColors()},pointAttribs:function(a,b){b=this.colorAttribs(a);a.isFading&&delete b.fill;f?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,c=a.yAxis,k=a.group,e= | ||
a.chart,g=e.renderer,l,r,h,p,t=this.baseTrans,y,u,v,x,G;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(k),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,n.column.prototype.drawPoints.apply(a),a.group=k,m(a.points,function(b){b.graphic&&(b.name&&b.graphic.addClass("highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()),b.properties&&b.properties["hc-key"]&&b.graphic.addClass("highcharts-key-"+b.properties["hc-key"].toLowerCase()),b.graphic.css(a.pointAttribs(b, | ||
b.selected&&"select")))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(l=b.transA/t.transAX,r=c.transA/t.transAY,h=b.toPixels(t.originX,!0),p=c.toPixels(t.originY,!0),.99<l&&1.01>l&&.99<r&&1.01>r&&(r=l=1,h=Math.round(h),p=Math.round(p)),y=this.transformGroup,e.renderer.globalAnimation?(u=y.attr("translateX"), | ||
v=y.attr("translateY"),x=y.attr("scaleX"),G=y.attr("scaleY"),y.attr({animator:0}).animate({animator:1},{step:function(a,b){y.attr({translateX:u+(h-u)*b.pos,translateY:v+(p-v)*b.pos,scaleX:x+(l-x)*b.pos,scaleY:G+(r-G)*b.pos})}})):y.attr({translateX:h,translateY:p,scaleX:l,scaleY:r}));f||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(l||1));this.drawMapDataLabels()},drawMapDataLabels:function(){b.prototype.drawDataLabels.call(this); | ||
this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,c=b.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){c.call(a)}):c.call(a)},animate:function(a){var b=this.options.animation,d=this.group,c=this.xAxis,f=this.yAxis,k=c.pos,e=f.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?d.attr({translateX:k+c.len/2,translateY:e+f.len/2,scaleX:.001,scaleY:.001}):(d.animate({translateX:k,translateY:e,scaleX:1,scaleY:1}, | ||
b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,d=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],c=d.bBox,f=this.chart.options.drilldown.animation;a||(a=Math.min(c.width/b.width,c.height/b.height),d.shapeArgs={scaleX:a,scaleY:a,translateX:c.x,translateY:c.y},m(this.points,function(a){a.graphic&&a.graphic.attr(d.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},f)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle, | ||
animateDrillupFrom:function(a){n.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){n.column.prototype.animateDrillupTo.call(this,a)}}),g({applyOptions:function(a,b){a=c.prototype.applyOptions.call(this,a,b);b=this.series;var d=b.joinBy;b.mapData&&((d=void 0!==a[d[1]]&&b.mapMap[a[d[1]]])?(b.xyFromShape&&(a.x=d._midX,a.y=d._midY),g(a,d)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)c.prototype.onMouseOver.call(this, | ||
a);else this.series.onMouseOut(a)},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},h))})(x);(function(a){var h=a.seriesType;h("mapline","map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(x);(function(a){var h=a.merge,m=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1, | ||
defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,e){a=void 0!==a.lat&&void 0!==a.lon?h(a,this.series.chart.fromLatLonToPoint(a)):a;return m.prototype.applyOptions.call(this,a,e)}})})(x);(function(a){var h=a.arrayMax,m=a.arrayMin,g=a.Axis,e=a.each,t=a.isNumber,p=a.noop,u=a.pick,v=a.pInt,l=a.Point,c=a.seriesType,b=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{radius:null, | ||
states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(a,b,c,f){var d,e,k,n=this.zData,l=[],r=this.options,g="width"!==r.sizeBy,h=r.zThreshold,m=b-a; | ||
e=0;for(d=n.length;e<d;e++)k=n[e],r.sizeByAbsoluteValue&&null!==k&&(k=Math.abs(k-h),b=Math.max(b-h,Math.abs(a-h)),a=0),null===k?k=null:k<a?k=c/2-1:(k=0<m?(k-a)/m:.5,g&&0<=k&&(k=Math.sqrt(k)),k=Math.ceil(c+k*(f-c))/2),l.push(k);this.radii=l},animate:function(a){var b=this.options.animation;a||(e(this.points,function(a){var c=a.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(d,b))}),this.animate=null)},translate:function(){var c, | ||
e=this.data,l,f,d=this.radii;b.scatter.prototype.translate.call(this);for(c=e.length;c--;)l=e[c],f=d?d[c]:0,t(f)&&f>=this.minPxSize/2?(l.marker=a.extend(l.marker,{radius:f,width:2*f,height:2*f}),l.dlBox={x:l.plotX-f,y:l.plotY-f,width:2*f,height:2*f}):l.shapeArgs=l.plotY=l.dlBox=void 0},alignDataLabel:b.column.prototype.alignDataLabel,buildKDTree:p,applyZones:p},{haloPath:function(a){return l.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});g.prototype.beforePadding= | ||
function(){var a=this,b=this.len,c=this.chart,f=0,d=b,l=this.isXAxis,g=l?"xData":"yData",p=this.min,x={},H=Math.min(c.plotWidth,c.plotHeight),D=Number.MAX_VALUE,E=-Number.MAX_VALUE,z=this.max-p,C=b/z,F=[];e(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),l&&(e(["minSize","maxSize"],function(a){var b=d[a],c=/%$/.test(b),b=v(b);x[a]=c?H*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize), | ||
b=b.zData,b.length&&(D=u(d.zMin,Math.min(D,Math.max(m(b),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),E=u(d.zMax,Math.max(E,h(b))))))});e(F,function(b){var c=b[g],e=c.length,k;l&&b.getRadii(D,E,b.minPxSize,b.maxPxSize);if(0<z)for(;e--;)t(c[e])&&a.dataMin<=c[e]&&c[e]<=a.dataMax&&(k=b.radii[e],f=Math.min((c[e]-p)*C-k,f),d=Math.max((c[e]-p)*C+k,d))});F.length&&0<z&&!this.isLog&&(d-=b,C*=(b+f-d)/b,e([["min","userMin",f],["max","userMax",d]],function(b){void 0===u(a.options[b[0]],a[b[1]])&& | ||
(a[b[0]]+=b[2]/C)}))}})(x);(function(a){var h=a.merge,m=a.Point,g=a.seriesType,e=a.seriesTypes;e.bubble&&g("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:e.map.prototype.getMapData,getBox:e.map.prototype.getBox,setData:e.map.prototype.setData},{applyOptions:function(a,g){return a&&void 0!==a.lat&&void 0!==a.lon?m.prototype.applyOptions.call(this,h(a,this.series.chart.fromLatLonToPoint(a)),g): | ||
e.map.prototype.pointClass.prototype.applyOptions.call(this,a,g)},ttBelow:!1})})(x);(function(a){var h=a.colorPointMixin,m=a.each,g=a.merge,e=a.noop,t=a.pick,p=a.Series,u=a.seriesType,v=a.seriesTypes;u("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0}, | ||
hover:{halo:!1,brightness:.2}}},g(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,c=this.xAxis,b=this.yAxis,e=function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();m(this.points,function(k){var l= | ||
(a.colsize||1)/2,f=(a.rowsize||1)/2,d=e(Math.round(c.len-c.translate(k.x-l,0,1,0,1)),-c.len,2*c.len),l=e(Math.round(c.len-c.translate(k.x+l,0,1,0,1)),-c.len,2*c.len),g=e(Math.round(b.translate(k.y-f,0,1,0,1)),-b.len,2*b.len),f=e(Math.round(b.translate(k.y+f,0,1,0,1)),-b.len,2*b.len);k.plotX=k.clientX=(d+l)/2;k.plotY=(g+f)/2;k.shapeType="rect";k.shapeArgs={x:Math.min(d,l),y:Math.min(g,f),width:Math.abs(l-d),height:Math.abs(f-g)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this); | ||
m(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:e,getBox:e,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){p.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;p.prototype.getExtremes.call(this)}}),h)})(x);(function(a){function h(a,c){var b,e,l,g=!1,f=a.x,d=a.y;a=0;for(b=c.length-1;a<c.length;b=a++)e=c[a][1]>d,l=c[b][1]>d,e!==l&&f<(c[b][0]-c[a][0])* | ||
(d-c[a][1])/(c[b][1]-c[a][1])+c[a][0]&&(g=!g);return g}var m=a.Chart,g=a.each,e=a.extend,t=a.format,p=a.merge,u=a.win,v=a.wrap;m.prototype.transformFromLatLon=function(e,c){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(c.crs,[e.lon,e.lat]);var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation);e=c.rotation?[e[0]*b+e[1]*k,-e[0]*k+e[1]*b]:e;return{x:((e[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset|| | ||
0)-e[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};m.prototype.transformToLatLon=function(e,c){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-e.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale||1)+(c.yoffset||0)};var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=u.proj4(c.crs,"WGS84",c.rotation?{x:e.x*b+e.y*-k,y:e.x*k+e.y*b}:e);return{lat:c.y, | ||
lon:c.x}}};m.prototype.fromPointToLatLon=function(e){var c=this.mapTransforms,b;if(c){for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&h({x:e.x,y:-e.y},c[b].hitZone.coordinates[0]))return this.transformToLatLon(e,c[b]);return this.transformToLatLon(e,c["default"])}a.error(22)};m.prototype.fromLatLonToPoint=function(e){var c=this.mapTransforms,b,k;if(!c)return a.error(22),{x:0,y:null};for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&(k=this.transformFromLatLon(e,c[b]),h({x:k.x,y:-k.y},c[b].hitZone.coordinates[0])))return k; | ||
return this.transformFromLatLon(e,c["default"])};a.geojson=function(a,c,b){var k=[],h=[],l=function(a){var b,c=a.length;h.push("M");for(b=0;b<c;b++)1===b&&h.push("L"),h.push(a[b][0],-a[b][1])};c=c||"map";g(a.features,function(a){var b=a.geometry,f=b.type,b=b.coordinates;a=a.properties;var n;h=[];"map"===c||"mapbubble"===c?("Polygon"===f?(g(b,l),h.push("Z")):"MultiPolygon"===f&&(g(b,function(a){g(a,l)}),h.push("Z")),h.length&&(n={path:h})):"mapline"===c?("LineString"===f?l(b):"MultiLineString"===f&& | ||
g(b,l),h.length&&(n={path:h})):"mappoint"===c&&"Point"===f&&(n={x:b[0],y:-b[1]});n&&k.push(e(n,{name:a.name||a.NAME,properties:a}))});b&&a.copyrightShort&&(b.chart.mapCredits=t(b.chart.options.credits.mapText,{geojson:a}),b.chart.mapCreditsFull=t(b.chart.options.credits.mapTextFull,{geojson:a}));return k};v(m.prototype,"addCredits",function(a,c){c=p(!0,this.options.credits,c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(x); | ||
(function(a){function h(a,c,e,g,f,d,h,l){return["M",a+f,c,"L",a+e-d,c,"C",a+e-d/2,c,a+e,c+d/2,a+e,c+d,"L",a+e,c+g-h,"C",a+e,c+g-h/2,a+e-h/2,c+g,a+e-h,c+g,"L",a+l,c+g,"C",a+l/2,c+g,a,c+g-l/2,a,c+g-l,"L",a,c+f,"C",a,c+f/2,a+f/2,c,a+f,c,"Z"]}var m=a.Chart,g=a.defaultOptions,e=a.each,t=a.extend,p=a.merge,u=a.pick,v=a.Renderer,l=a.SVGRenderer,c=a.VMLRenderer;t(g.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});g.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18, | ||
padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};l.prototype.symbols.topbutton=function(a,c,e,g,f){return h(a-1,c-1,e,g,f.r,f.r,0,0)};l.prototype.symbols.bottombutton=function(a, | ||
c,e,g,f){return h(a-1,c-1,e,g,0,0,f.r,f.r)};v===c&&e(["topbutton","bottombutton"],function(a){c.prototype.symbols[a]=l.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,e){var g="string"===typeof b||b.nodeName,f=arguments[g?1:0],d={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h,k=a.getOptions().credits;h=f.series;f.series=null;f=p({chart:{panning:"xy",type:"map"},credits:{mapText:u(k.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'), | ||
mapTextFull:u(k.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:d,yAxis:p(d,{reversed:!0})},f,{chart:{inverted:!1,alignTicks:!1}});f.series=h;return g?new m(b,f,e):new m(f,c)}})(x)}); | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var h=a.Axis,l=a.each,d=a.pick;a=a.wrap;a(h.prototype,"getSeriesExtremes",function(a){var g=this.isXAxis,n,u,h=[],m;g&&l(this.series,function(a,b){a.useMapGeometry&&(h[b]=a.xData,a.xData=[])});a.call(this);g&&(n=d(this.dataMin,Number.MAX_VALUE),u=d(this.dataMax,-Number.MAX_VALUE),l(this.series,function(a,b){a.useMapGeometry&&(n=Math.min(n,d(a.minX,n)),u=Math.max(u,d(a.maxX,n)),a.xData=h[b], | ||
m=!0)}),m&&(this.dataMin=n,this.dataMax=u))});a(h.prototype,"setAxisTranslation",function(a){var g=this.chart,n=g.plotWidth/g.plotHeight,g=g.xAxis[0],d;a.call(this);"yAxis"===this.coll&&void 0!==g.transA&&l(this.series,function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=g.transA=Math.min(this.transA,g.transA),a=n/((g.max-g.min)/(this.max-this.min)),a=1>a?this:g,n=(a.max-a.min)*a.transA,a.pixelPadding=a.len-n,a.minPixelPadding=a.pixelPadding/2,n=a.fixTo)){n=n[1]-a.toValue(n[0],!0);n*=a.transA; | ||
if(Math.abs(n)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)n=0;a.minPixelPadding-=n}});a(h.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var h=a.Axis,l=a.Chart,d=a.color,g,t=a.each,n=a.extend,u=a.isNumber,v=a.Legend,m=a.LegendSymbolMixin,c=a.noop,b=a.merge,e=a.pick,r=a.wrap;g=a.ColorAxis=function(){this.init.apply(this,arguments)};n(g.prototype,h.prototype);n(g.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(h.prototype.keepProps),init:function(a,k){var f="vertical"!==a.options.legend.layout,p;this.coll="colorAxis";p=b(this.defaultColorAxisOptions,{side:f?2:1,reversed:!f},k,{opposite:!f,showEmpty:!1,title:null});h.prototype.init.call(this, | ||
a,p);k.dataClasses&&this.initDataClasses(k);this.initStops();this.horiz=f;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var p,f=0,q=this.chart.options.chart.colorCount,w=this.options,e=a.dataClasses.length;this.dataClasses=p=[];this.legendItems=[];t(a.dataClasses,function(a,k){a=b(a);p.push(a);a.color||("category"===w.dataClassColor?(a.colorIndex=f,f++,f===q&&(f=0)):a.color=d(w.minColor).tweenTo(d(w.maxColor),2>e?.5:k/(e-1)))})},initStops:function(){this.stops=this.options.stops|| | ||
[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=d(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,k=this.chart,f=k.options.legend||{},q,b;a?(this.left=f=a.attr("x"),this.top=q=a.attr("y"),this.width=b=a.attr("width"),this.height=a=a.attr("height"),this.right=k.chartWidth-f-b,this.bottom=k.chartHeight-q-a,this.len=this.horiz?b:a,this.pos=this.horiz?f: | ||
q):this.len=(this.horiz?f.symbolWidth:f.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,k){var f=this.stops,q,b,p=this.dataClasses,e,c;if(p)for(c=p.length;c--;){if(e=p[c],q=e.from,f=e.to,(void 0===q||a>=q)&&(void 0===f||a<=f)){b=e.color;k&&(k.dataClass=c,k.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(c=f.length;c--&&!(a>f[c][0]););q=f[c]||f[c+1];f=f[c+1]||q;a= | ||
1-(f[0]-a)/(f[0]-q[0]||1);b=q.color.tweenTo(f.color,a)}return b},getOffset:function(){var a=this.legendGroup,k=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=k)},setLegendColor:function(){var a,k=this.reversed;a=k?1:0;k=k?0:1;a=this.horiz?[a,0,k,0]:[0,k,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a, | ||
k){var f=a.padding,q=a.options,b=this.horiz,c=e(q.symbolWidth,b?this.defaultLegendLength:12),p=e(q.symbolHeight,b?12:this.defaultLegendLength),r=e(q.labelPadding,b?16:30),q=e(q.itemDistance,10);this.setLegendColor();k.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,p).attr({zIndex:1}).add(k.legendGroup);this.legendItemWidth=c+f+(b?q:r);this.legendItemHeight=p+f+(b?r:0)},setState:c,visible:!0,setVisible:c,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax= | ||
-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var f=b&&b.plotX,q=b&&b.plotY,k,e=this.pos,c=this.len;b&&(k=this.toPixels(b[b.series.colorKey]),k<e?k=e-2:k>e+c&&(k=e+c+2),b.plotX=k,b.plotY=this.len-k,h.prototype.drawCrosshair.call(this,a,b),b.plotX=f,b.plotY=q,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,f, | ||
q,e){return u(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,b,f,q)},update:function(a,e){var f=this.chart,q=f.legend;t(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&q.allItems&&(t(q.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),f.isDirtyLegend=!0);f.options[this.coll]=b(this.userOptions,a);h.prototype.update.call(this,a,e);this.legendItem&& | ||
(this.setLegendColor(),q.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var b=this,e=this.chart,f=this.legendItems,q=e.options.legend,r=q.valueDecimals,g=q.valueSuffix||"",d;f.length||t(this.dataClasses,function(q,k){var p=!0,w=q.from,h=q.to;d="";void 0===w?d="\x3c ":void 0===h&&(d="\x3e ");void 0!==w&&(d+=a.numberFormat(w,r)+g);void 0!==w&&void 0!==h&&(d+=" - ");void 0!==h&&(d+=a.numberFormat(h, | ||
r)+g);f.push(n({chart:e,name:d,options:{},drawLegendSymbol:m.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){p=this.visible=!p;t(b.series,function(a){t(a.points,function(a){a.dataClass===k&&a.setVisible(p)})});e.legend.colorizeItem(this,p)}},q))});return f},name:""});t(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,d(this.start).tweenTo(d(this.end),this.pos),null,!0)}});r(l.prototype,"getAxes",function(a){var b=this.options.colorAxis; | ||
a.call(this);this.colorAxis=[];b&&new g(this,b)});r(v.prototype,"getAllItems",function(a){var b=[],f=this.chart.colorAxis[0];f&&f.options&&(f.options.showInLegend&&(f.options.dataClasses?b=b.concat(f.getDataClassLegendSymbols()):b.push(f)),t(f.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});r(v.prototype,"colorizeItem",function(a,b,f){a.call(this,b,f);f&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(x);(function(a){var h=a.defined,l=a.each,d=a.noop;a.colorPointMixin= | ||
{isValid:function(){return null!==this.value},setVisible:function(a){var g=this,d=a?"show":"hide";l(["graphic","dataLabel"],function(a){if(g[a])g[a][d]()})},setState:function(g){a.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:d,parallelArrays:["x","y","value"],colorKey:"value", | ||
translateColors:function(){var a=this,t=this.options.nullColor,d=this.colorAxis,h=this.colorKey;l(this.data,function(g){var m=g[h];if(m=g.options.color||(g.isNull?t:d&&void 0!==m?d.toColor(m,g):g.color||a.color))g.color=m})},colorAttribs:function(a){var g={};h(a.color)&&(g[this.colorProp||"fill"]=a.color);return g}}})(x);(function(a){function h(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function l(a){this.init(a)}var d=a.addEvent,g=a.Chart, | ||
t=a.doc,n=a.each,u=a.extend,v=a.merge,m=a.pick,c=a.wrap;l.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};l.prototype.update=function(b){var e=this.chart,c=e.options.mapNavigation,p,k=function(a){this.handler.call(e,a);h(a)},f=e.mapNavButtons;b&&(c=e.options.mapNavigation=v(e.options.mapNavigation,b));for(;f.length;)f.pop().destroy();m(c.enableButtons,c.enabled)&&!e.renderer.forExport&&a.objectEach(c.buttons,function(a,b){p=v(c.buttonOptions,a);a=e.renderer.button(p.text,0,0,k,void 0, | ||
void 0,void 0,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:p.width,height:p.height,title:e.options.lang[b],padding:p.padding,zIndex:5}).add();a.handler=p.onclick;a.align(u(p,{width:a.width,height:2*a.height}),null,p.alignTo);d(a.element,"dblclick",h);f.push(a)});this.updateEvents(c)};l.prototype.updateEvents=function(a){var b=this.chart;m(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||d(b.container, | ||
"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());m(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||d(b.container,void 0===t.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);h(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(g.prototype,{fitToBox:function(a,e){n([["x","width"],["y","height"]],function(b){var c=b[0]; | ||
b=b[1];a[c]+a[b]>e[c]+e[b]&&(a[b]>e[b]?(a[b]=e[b],a[c]=e[c]):a[c]=e[c]+e[b]-a[b]);a[b]>e[b]&&(a[b]=e[b]);a[c]<e[c]&&(a[c]=e[c])});return a},mapZoom:function(a,c,g,p,k){var f=this.xAxis[0],b=f.max-f.min,e=m(c,f.min+b/2),r=b*a,b=this.yAxis[0],d=b.max-b.min,t=m(g,b.min+d/2),d=d*a,e=this.fitToBox({x:e-r*(p?(p-f.pos)/f.len:.5),y:t-d*(k?(k-b.pos)/b.len:.5),width:r,height:d},{x:f.dataMin,y:b.dataMin,width:f.dataMax-f.dataMin,height:b.dataMax-b.dataMin}),r=e.x<=f.dataMin&&e.width>=f.dataMax-f.dataMin&&e.y<= | ||
b.dataMin&&e.height>=b.dataMax-b.dataMin;p&&(f.fixTo=[p-f.pos,c]);k&&(b.fixTo=[k-b.pos,g]);void 0===a||r?(f.setExtremes(void 0,void 0,!1),b.setExtremes(void 0,void 0,!1)):(f.setExtremes(e.x,e.x+e.width,!1),b.setExtremes(e.y,e.y+e.height,!1));this.redraw()}});c(g.prototype,"render",function(a){this.mapNavigation=new l(this);this.mapNavigation.update();a.call(this)})})(x);(function(a){var h=a.extend,l=a.pick,d=a.Pointer;a=a.wrap;h(d.prototype,{onContainerDblClick:function(a){var g=this.chart;a=this.normalize(a); | ||
g.options.mapNavigation.enableDoubleClickZoomTo?g.pointer.inClass(a.target,"highcharts-tracker")&&g.hoverPoint&&g.hoverPoint.zoomTo():g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(.5,g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var g=this.chart,d;a=this.normalize(a);d=a.detail||-(a.wheelDelta/120);g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(Math.pow(g.options.mapNavigation.mouseWheelSensitivity, | ||
d),g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(d.prototype,"zoomOption",function(a){var g=this.chart.options.mapNavigation;l(g.enableTouchZoom,g.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(d.prototype,"pinchTranslate",function(a,d,h,l,v,m,c){a.call(this,d,h,l,v,m,c);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,d,h,l,v,m,c,a?l.scaleX:l.scaleY))})})(x); | ||
(function(a){var h=a.colorPointMixin,l=a.each,d=a.extend,g=a.isNumber,t=a.map,n=a.merge,u=a.noop,v=a.pick,m=a.isArray,c=a.Point,b=a.Series,e=a.seriesType,r=a.seriesTypes,p=a.splat,k=void 0!==a.doc.documentElement.style.vectorEffect;e("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0, | ||
tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},n(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(f){var b=Number.MAX_VALUE,e=-b,c=b,k=-b,p=b,m=b,d=this.xAxis,r=this.yAxis,h;l(f||[],function(f){if(f.path){"string"===typeof f.path&&(f.path= | ||
a.splitPath(f.path));var q=f.path||[],d=q.length,r=!1,w=-b,l=b,z=-b,n=b,t=f.properties;if(!f._foundBox){for(;d--;)g(q[d])&&(r?(w=Math.max(w,q[d]),l=Math.min(l,q[d])):(z=Math.max(z,q[d]),n=Math.min(n,q[d])),r=!r);f._midX=l+(w-l)*(f.middleX||t&&t["hc-middle-x"]||.5);f._midY=n+(z-n)*(f.middleY||t&&t["hc-middle-y"]||.5);f._maxX=w;f._minX=l;f._maxY=z;f._minY=n;f.labelrank=v(f.labelrank,(w-l)*(z-n));f._foundBox=!0}e=Math.max(e,f._maxX);c=Math.min(c,f._minX);k=Math.max(k,f._maxY);p=Math.min(p,f._minY);m= | ||
Math.min(f._maxX-f._minX,f._maxY-f._minY,m);h=!0}});h&&(this.minY=Math.min(p,v(this.minY,b)),this.maxY=Math.max(k,v(this.maxY,-b)),this.minX=Math.min(c,v(this.minX,b)),this.maxX=Math.max(e,v(this.maxX,-b)),d&&void 0===d.options.minRange&&(d.minRange=Math.min(5*m,(this.maxX-this.minX)/5,d.minRange||b)),r&&void 0===r.options.minRange&&(r.minRange=Math.min(5*m,(this.maxY-this.minY)/5,r.minRange||b)))},getExtremes:function(){b.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&& | ||
this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var f=!1,b=this.xAxis,e=this.yAxis,c=b.min,k=b.transA,b=b.minPixelPadding,p=e.min,m=e.transA,e=e.minPixelPadding,d,r=[];if(a)for(d=a.length;d--;)g(a[d])?(r[d]=f?(a[d]-c)*k+b:(a[d]-p)*m+e,f=!f):r[d]=a[d];return r},setData:function(f,e,c,k){var q=this.options,d=this.chart.options.chart,r=d&&d.map,w=q.mapData,h=q.joinBy,u=null===h,v=q.keys||this.pointArrayMap, | ||
y=[],B={},A=this.chart.mapTransforms;!w&&r&&(w="string"===typeof r?a.maps[r]:r);u&&(h="_i");h=this.joinBy=p(h);h[1]||(h[1]=h[0]);f&&l(f,function(a,b){var e=0;if(g(a))f[b]={value:a};else if(m(a)){f[b]={};!q.keys&&a.length>v.length&&"string"===typeof a[0]&&(f[b]["hc-key"]=a[0],++e);for(var c=0;c<v.length;++c,++e)v[c]&&(f[b][v[c]]=a[e])}u&&(f[b]._i=b)});this.getBox(f);(this.chart.mapTransforms=A=d&&d.mapTransforms||w&&w["hc-transform"]||A)&&a.objectEach(A,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation), | ||
a.sinAngle=Math.sin(a.rotation))});if(w){"FeatureCollection"===w.type&&(this.mapTitle=w.title,w=a.geojson(w,this.type,this));this.mapData=w;this.mapMap={};for(A=0;A<w.length;A++)d=w[A],r=d.properties,d._i=A,h[0]&&r&&r[h[0]]&&(d[h[0]]=r[h[0]]),B[d[h[0]]]=d;this.mapMap=B;f&&h[1]&&l(f,function(a){B[a[h[1]]]&&y.push(B[a[h[1]]])});q.allAreas?(this.getBox(w),f=f||[],h[1]&&l(f,function(a){y.push(a[h[1]])}),y="|"+t(y,function(a){return a&&a[h[0]]}).join("|")+"|",l(w,function(a){h[0]&&-1!==y.indexOf("|"+a[h[0]]+ | ||
"|")||(f.push(n(a,{value:null})),k=!1)})):this.getBox(y)}b.prototype.setData.call(this,f,e,c,k)},drawGraph:u,drawDataLabels:u,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,e=a.yAxis,c=a.doFullTranslate();a.generatePoints();l(a.data,function(f){f.plotX=b.toPixels(f._midX,!0);f.plotY=e.toPixels(f._midY,!0);c&&(f.shapeType="path",f.shapeArgs={d:a.translatePath(f.path)})});a.translateColors()}, | ||
pointAttribs:function(a,b){b=this.colorAttribs(a);a.isFading&&delete b.fill;k?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,e=a.yAxis,c=a.group,d=a.chart,p=d.renderer,m,g,h,n,t=this.baseTrans,y,u,v,x,H;a.transformGroup||(a.transformGroup=p.g().attr({scaleX:1,scaleY:1}).add(c),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,r.column.prototype.drawPoints.apply(a),a.group=c,l(a.points,function(b){b.graphic&& | ||
(b.name&&b.graphic.addClass("highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()),b.properties&&b.properties["hc-key"]&&b.graphic.addClass("highcharts-key-"+b.properties["hc-key"].toLowerCase()),b.graphic.css(a.pointAttribs(b,b.selected&&"select")))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:e.min-e.minPixelPadding/e.transA+(e.reversed?0:e.len/e.transA),transAX:b.transA,transAY:e.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(m=b.transA/ | ||
t.transAX,g=e.transA/t.transAY,h=b.toPixels(t.originX,!0),n=e.toPixels(t.originY,!0),.99<m&&1.01>m&&.99<g&&1.01>g&&(g=m=1,h=Math.round(h),n=Math.round(n)),y=this.transformGroup,d.renderer.globalAnimation?(u=y.attr("translateX"),v=y.attr("translateY"),x=y.attr("scaleX"),H=y.attr("scaleY"),y.attr({animator:0}).animate({animator:1},{step:function(a,b){y.attr({translateX:u+(h-u)*b.pos,translateY:v+(n-v)*b.pos,scaleX:x+(m-x)*b.pos,scaleY:H+(g-H)*b.pos})}})):y.attr({translateX:h,translateY:n,scaleX:m,scaleY:g})); | ||
k||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(m||1));this.drawMapDataLabels()},drawMapDataLabels:function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,e=b.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){e.call(a)}):e.call(a)},animate:function(a){var b=this.options.animation,f=this.group, | ||
e=this.xAxis,c=this.yAxis,k=e.pos,d=c.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?f.attr({translateX:k+e.len/2,translateY:d+c.len/2,scaleX:.001,scaleY:.001}):(f.animate({translateX:k,translateY:d,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,f=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],e=f.bBox,c=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),f.shapeArgs={scaleX:a,scaleY:a, | ||
translateX:e.x,translateY:e.y},l(this.points,function(a){a.graphic&&a.graphic.attr(f.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},c)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){r.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){r.column.prototype.animateDrillupTo.call(this,a)}}),d({applyOptions:function(a,b){a=c.prototype.applyOptions.call(this,a,b);b=this.series;var f=b.joinBy;b.mapData&& | ||
((f=void 0!==a[f[1]]&&b.mapMap[a[f[1]]])?(b.xyFromShape&&(a.x=f._midX,a.y=f._midY),d(a,f)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)c.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},h))})(x);(function(a){var h=a.seriesType;h("mapline", | ||
"map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(x);(function(a){var h=a.merge,l=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,g){a=void 0!==a.lat&&void 0!==a.lon?h(a,this.series.chart.fromLatLonToPoint(a)):a;return l.prototype.applyOptions.call(this,a,g)}})})(x); | ||
(function(a){var h=a.arrayMax,l=a.arrayMin,d=a.Axis,g=a.each,t=a.isNumber,n=a.noop,u=a.pick,v=a.pInt,m=a.Point,c=a.seriesType,b=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y", | ||
"z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(a,b,c,k){var f,e,d,m=this.zData,g=[],p=this.options,r="width"!==p.sizeBy,h=p.zThreshold,l=b-a;e=0;for(f=m.length;e<f;e++)d=m[e],p.sizeByAbsoluteValue&&null!==d&&(d=Math.abs(d-h),b=Math.max(b-h,Math.abs(a-h)),a=0),null===d?d=null:d<a?d=c/2-1:(d=0<l?(d-a)/l:.5,r&&0<=d&&(d=Math.sqrt(d)),d=Math.ceil(c+d*(k-c))/2),g.push(d);this.radii=g},animate:function(a){var b= | ||
this.options.animation;a||(g(this.points,function(a){var e=a.graphic,f;e&&e.width&&(f={x:e.x,y:e.y,width:e.width,height:e.height},e.attr({x:a.plotX,y:a.plotY,width:1,height:1}),e.animate(f,b))}),this.animate=null)},translate:function(){var e,c=this.data,d,k,f=this.radii;b.scatter.prototype.translate.call(this);for(e=c.length;e--;)d=c[e],k=f?f[e]:0,t(k)&&k>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:k,width:2*k,height:2*k}),d.dlBox={x:d.plotX-k,y:d.plotY-k,width:2*k,height:2*k}):d.shapeArgs= | ||
d.plotY=d.dlBox=void 0},alignDataLabel:b.column.prototype.alignDataLabel,buildKDTree:n,applyZones:n},{haloPath:function(a){return m.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});d.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,m=this.isXAxis,n=m?"xData":"yData",x=this.min,C={},I=Math.min(c.plotWidth,c.plotHeight),E=Number.MAX_VALUE,F=-Number.MAX_VALUE,z=this.max-x,D=b/z,G=[];g(this.series,function(b){var f=b.options;!b.bubblePadding|| | ||
!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),m&&(g(["minSize","maxSize"],function(a){var b=f[a],e=/%$/.test(b),b=v(b);C[a]=e?I*b/100:b}),b.minPxSize=C.minSize,b.maxPxSize=Math.max(C.maxSize,C.minSize),b=b.zData,b.length&&(E=u(f.zMin,Math.min(E,Math.max(l(b),!1===f.displayNegative?f.zThreshold:-Number.MAX_VALUE))),F=u(f.zMax,Math.max(F,h(b))))))});g(G,function(b){var e=b[n],c=e.length,k;m&&b.getRadii(E,F,b.minPxSize,b.maxPxSize);if(0<z)for(;c--;)t(e[c])&&a.dataMin<= | ||
e[c]&&e[c]<=a.dataMax&&(k=b.radii[c],d=Math.min((e[c]-x)*D-k,d),f=Math.max((e[c]-x)*D+k,f))});G.length&&0<z&&!this.isLog&&(f-=b,D*=(b+d-f)/b,g([["min","userMin",d],["max","userMax",f]],function(b){void 0===u(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/D)}))}})(x);(function(a){var h=a.merge,l=a.Point,d=a.seriesType,g=a.seriesTypes;g.bubble&&d("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:g.map.prototype.getMapData, | ||
getBox:g.map.prototype.getBox,setData:g.map.prototype.setData},{applyOptions:function(a,d){return a&&void 0!==a.lat&&void 0!==a.lon?l.prototype.applyOptions.call(this,h(a,this.series.chart.fromLatLonToPoint(a)),d):g.map.prototype.pointClass.prototype.applyOptions.call(this,a,d)},ttBelow:!1})})(x);(function(a){var h=a.colorPointMixin,l=a.each,d=a.merge,g=a.noop,t=a.pick,n=a.Series,u=a.seriesType,v=a.seriesTypes;u("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value}, | ||
inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},d(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange= | ||
a.rowsize||1},translate:function(){var a=this.options,c=this.xAxis,b=this.yAxis,e=function(a,b,e){return Math.min(Math.max(b,a),e)};this.generatePoints();l(this.points,function(d){var g=(a.colsize||1)/2,k=(a.rowsize||1)/2,f=e(Math.round(c.len-c.translate(d.x-g,0,1,0,1)),-c.len,2*c.len),g=e(Math.round(c.len-c.translate(d.x+g,0,1,0,1)),-c.len,2*c.len),m=e(Math.round(b.translate(d.y-k,0,1,0,1)),-b.len,2*b.len),k=e(Math.round(b.translate(d.y+k,0,1,0,1)),-b.len,2*b.len);d.plotX=d.clientX=(f+g)/2;d.plotY= | ||
(m+k)/2;d.shapeType="rect";d.shapeArgs={x:Math.min(f,g),y:Math.min(m,k),width:Math.abs(g-f),height:Math.abs(k-m)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this);l(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:g,getBox:g,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax= | ||
this.dataMax;n.prototype.getExtremes.call(this)}}),h)})(x);(function(a){function h(a,c){var b,e,d,g=!1,k=a.x,f=a.y;a=0;for(b=c.length-1;a<c.length;b=a++)e=c[a][1]>f,d=c[b][1]>f,e!==d&&k<(c[b][0]-c[a][0])*(f-c[a][1])/(c[b][1]-c[a][1])+c[a][0]&&(g=!g);return g}var l=a.Chart,d=a.each,g=a.extend,t=a.format,n=a.merge,u=a.win,v=a.wrap;l.prototype.transformFromLatLon=function(d,c){if(void 0===u.proj4)return a.error(21),{x:0,y:null};d=u.proj4(c.crs,[d.lon,d.lat]);var b=c.cosAngle||c.rotation&&Math.cos(c.rotation), | ||
e=c.sinAngle||c.rotation&&Math.sin(c.rotation);d=c.rotation?[d[0]*b+d[1]*e,-d[0]*e+d[1]*b]:d;return{x:((d[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset||0)-d[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};l.prototype.transformToLatLon=function(d,c){if(void 0===u.proj4)a.error(21);else{d={x:((d.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-d.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale|| | ||
1)+(c.yoffset||0)};var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),e=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=u.proj4(c.crs,"WGS84",c.rotation?{x:d.x*b+d.y*-e,y:d.x*e+d.y*b}:d);return{lat:c.y,lon:c.x}}};l.prototype.fromPointToLatLon=function(d){var c=this.mapTransforms,b;if(c){for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&h({x:d.x,y:-d.y},c[b].hitZone.coordinates[0]))return this.transformToLatLon(d,c[b]);return this.transformToLatLon(d,c["default"])}a.error(22)};l.prototype.fromLatLonToPoint= | ||
function(d){var c=this.mapTransforms,b,e;if(!c)return a.error(22),{x:0,y:null};for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&(e=this.transformFromLatLon(d,c[b]),h({x:e.x,y:-e.y},c[b].hitZone.coordinates[0])))return e;return this.transformFromLatLon(d,c["default"])};a.geojson=function(a,c,b){var e=[],h=[],p=function(a){var b,e=a.length;h.push("M");for(b=0;b<e;b++)1===b&&h.push("L"),h.push(a[b][0],-a[b][1])};c=c||"map";d(a.features,function(a){var b=a.geometry,k=b.type,b=b.coordinates;a=a.properties; | ||
var l;h=[];"map"===c||"mapbubble"===c?("Polygon"===k?(d(b,p),h.push("Z")):"MultiPolygon"===k&&(d(b,function(a){d(a,p)}),h.push("Z")),h.length&&(l={path:h})):"mapline"===c?("LineString"===k?p(b):"MultiLineString"===k&&d(b,p),h.length&&(l={path:h})):"mappoint"===c&&"Point"===k&&(l={x:b[0],y:-b[1]});l&&e.push(g(l,{name:a.name||a.NAME,properties:a}))});b&&a.copyrightShort&&(b.chart.mapCredits=t(b.chart.options.credits.mapText,{geojson:a}),b.chart.mapCreditsFull=t(b.chart.options.credits.mapTextFull,{geojson:a})); | ||
return e};v(l.prototype,"addCredits",function(a,c){c=n(!0,this.options.credits,c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(x);(function(a){function h(a,e,c,d,g,f,h,l){return["M",a+g,e,"L",a+c-f,e,"C",a+c-f/2,e,a+c,e+f/2,a+c,e+f,"L",a+c,e+d-h,"C",a+c,e+d-h/2,a+c-h/2,e+d,a+c-h,e+d,"L",a+l,e+d,"C",a+l/2,e+d,a,e+d-l/2,a,e+d-l,"L",a,e+g,"C",a,e+g/2,a+g/2,e,a+g,e,"Z"]}var l=a.Chart,d=a.defaultOptions,g=a.each,t=a.extend, | ||
n=a.merge,u=a.pick,v=a.Renderer,m=a.SVGRenderer,c=a.VMLRenderer;t(d.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});d.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/); | ||
for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};m.prototype.symbols.topbutton=function(a,c,d,g,k){return h(a-1,c-1,d,g,k.r,k.r,0,0)};m.prototype.symbols.bottombutton=function(a,c,d,g,k){return h(a-1,c-1,d,g,0,0,k.r,k.r)};v===c&&g(["topbutton","bottombutton"],function(a){c.prototype.symbols[a]=m.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,d){var e="string"===typeof b||b.nodeName,g=arguments[e?1:0],f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0, | ||
startOnTick:!1},h,m=a.getOptions().credits;h=g.series;g.series=null;g=n({chart:{panning:"xy",type:"map"},credits:{mapText:u(m.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:u(m.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:n(f,{reversed:!0})},g,{chart:{inverted:!1,alignTicks:!1}});g.series=h;return e?new l(b,g,d):new l(g,c)}})(x)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Plugin for displaying a message when there is no data visible in chart. | ||
@@ -10,4 +10,4 @@ | ||
*/ | ||
(function(d){"object"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){function d(){return!!this.points.length}function f(){this.hasData()?this.hideNoData():this.showNoData()}var g=c.seriesTypes,e=c.Chart.prototype,h=c.getOptions(),k=c.extend,l=c.each;k(h.lang,{noData:"No data to display"});h.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"}};l(["pie","gauge","waterfall","bubble","treemap"],function(a){g[a]&&(g[a].prototype.hasData=d)});c.Series.prototype.hasData= | ||
function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin};e.showNoData=function(a){var b=this.options;a=a||b.lang.noData;b=b.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(a,0,0,null,null,null,b.useHTML,null,"no-data"),this.noDataLabel.add(),this.noDataLabel.align(k(this.noDataLabel.getBBox(),b.position),!1,"plotBox"))};e.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};e.hasData=function(){for(var a=this.series,b=a.length;b--;)if(a[b].hasData()&& | ||
!a[b].options.isInternal)return!0;return!1};e.callbacks.push(function(a){c.addEvent(a,"load",f);c.addEvent(a,"redraw",f)})})(d)}); | ||
(function(d){"object"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){function d(){this.hasData()?this.hideNoData():this.showNoData()}var f=c.seriesTypes,e=c.Chart.prototype,g=c.getOptions(),h=c.extend,k=c.each;h(g.lang,{noData:"No data to display"});g.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"}};k("bubble gauge heatmap pie treemap waterfall".split(" "),function(a){f[a]&&(f[a].prototype.hasData=function(){return!!this.points.length})}); | ||
c.Series.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin};e.showNoData=function(a){var b=this.options;a=a||b.lang.noData;b=b.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(a,0,0,null,null,null,b.useHTML,null,"no-data"),this.noDataLabel.add(),this.noDataLabel.align(h(this.noDataLabel.getBBox(),b.position),!1,"plotBox"))};e.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};e.hasData=function(){for(var a= | ||
this.series,b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return this.loadingShown};e.callbacks.push(function(a){c.addEvent(a,"load",d);c.addEvent(a,"redraw",d)})})(d)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Plugin for displaying a message when there is no data visible in chart. | ||
@@ -52,15 +52,24 @@ * | ||
/** | ||
* Define hasData functions for series. These return true if there are data points on this series within the plot area | ||
*/ | ||
function hasDataPie() { | ||
return !!this.points.length; /* != 0 */ | ||
} | ||
each(['pie', 'gauge', 'waterfall', 'bubble', 'treemap'], function(type) { | ||
// Define hasData function for non-cartesian seris. Returns true if the series | ||
// has points at all. | ||
each([ | ||
'bubble', | ||
'gauge', | ||
'heatmap', | ||
'pie', | ||
'treemap', | ||
'waterfall' | ||
], function(type) { | ||
if (seriesTypes[type]) { | ||
seriesTypes[type].prototype.hasData = hasDataPie; | ||
seriesTypes[type].prototype.hasData = function() { | ||
return !!this.points.length; /* != 0 */ | ||
}; | ||
} | ||
}); | ||
/** | ||
* Define hasData functions for series. These return true if there are data | ||
* points on this series within the plot area. | ||
*/ | ||
H.Series.prototype.hasData = function() { | ||
@@ -127,3 +136,3 @@ return this.visible && this.dataMax !== undefined && this.dataMin !== undefined; // #3703 | ||
return false; | ||
return chart.loadingShown; // #4588 | ||
}; | ||
@@ -130,0 +139,0 @@ |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Client side exporting module | ||
@@ -9,12 +9,13 @@ | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(c){function n(a,c){var d=t.getElementsByTagName("head")[0],b=t.createElement("script");b.type="text/javascript";b.src=a;b.onload=c;b.onerror=function(){console.error("Error loading script",a)};d.appendChild(b)}var C=c.merge,e=c.win,r=e.navigator,t=e.document,z=c.each,w=e.URL||e.webkitURL||e,B=/Edge\/|Trident\/|MSIE /.test(r.userAgent),D=/Edge\/\d+/.test(r.userAgent),E=B?150:0;c.CanVGRenderer= | ||
{};c.dataURLtoBlob=function(a){if(e.atob&&e.ArrayBuffer&&e.Uint8Array&&e.Blob&&w.createObjectURL){a=a.match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/);for(var c=e.atob(a[3]),d=new e.ArrayBuffer(c.length),d=new e.Uint8Array(d),b=0;b<d.length;++b)d[b]=c.charCodeAt(b);a=new e.Blob([d],{type:a[1]});return w.createObjectURL(a)}};c.downloadURL=function(a,f){var d=t.createElement("a"),b;if(r.msSaveOrOpenBlob)r.msSaveOrOpenBlob(a,f);else{if(2E6<a.length&&(a=c.dataURLtoBlob(a),!a))throw"Data URL length limit reached"; | ||
if(void 0!==d.download)d.href=a,d.download=f,t.body.appendChild(d),d.click(),t.body.removeChild(d);else try{if(b=e.open(a,"chart"),void 0===b||null===b)throw"Failed to open window";}catch(u){e.location.href=a}}};c.svgToDataUrl=function(a){var c=-1<r.userAgent.indexOf("WebKit")&&0>r.userAgent.indexOf("Chrome");try{if(!c&&0>r.userAgent.toLowerCase().indexOf("firefox"))return w.createObjectURL(new e.Blob([a],{type:"image/svg+xml;charset-utf-16"}))}catch(d){}return"data:image/svg+xml;charset\x3dUTF-8,"+ | ||
encodeURIComponent(a)};c.imageToDataUrl=function(a,c,d,b,u,l,k,m,p){var g=new e.Image,h,f=function(){setTimeout(function(){var e=t.createElement("canvas"),f=e.getContext&&e.getContext("2d"),x;try{if(f){e.height=g.height*b;e.width=g.width*b;f.drawImage(g,0,0,e.width,e.height);try{x=e.toDataURL(c),u(x,c,d,b)}catch(F){h(a,c,d,b)}}else k(a,c,d,b)}finally{p&&p(a,c,d,b)}},E)},q=function(){m(a,c,d,b);p&&p(a,c,d,b)};h=function(){g=new e.Image;h=l;g.crossOrigin="Anonymous";g.onload=f;g.onerror=q;g.src=a}; | ||
g.onload=f;g.onerror=q;g.src=a};c.downloadSVGLocal=function(a,f,d,b){function u(b,a){a=new e.jsPDF("l","pt",[b.width.baseVal.value+2*a,b.height.baseVal.value+2*a]);e.svg2pdf(b,a,{removeInvalid:!0});return a.output("datauristring")}function l(){y.innerHTML=a;var e=y.getElementsByTagName("text"),g,f=y.getElementsByTagName("svg")[0].style;z(e,function(b){z(["font-family","font-size"],function(a){!b.style[a]&&f[a]&&(b.style[a]=f[a])});b.style["font-family"]=b.style["font-family"]&&b.style["font-family"].split(" ").splice(-1); | ||
g=b.getElementsByTagName("title");z(g,function(a){b.removeChild(a)})});e=u(y.firstChild,0);try{c.downloadURL(e,v),b&&b()}catch(G){d()}}var k,m,p=!0,g,h=f.libURL||c.getOptions().exporting.libURL,y=t.createElement("div"),q=f.type||"image/png",v=(f.filename||"chart")+"."+("image/svg+xml"===q?"svg":q.split("/")[1]),A=f.scale||1,h="/"!==h.slice(-1)?h+"/":h;if("image/svg+xml"===q)try{r.msSaveOrOpenBlob?(m=new MSBlobBuilder,m.append(a),k=m.getBlob("image/svg+xml")):k=c.svgToDataUrl(a),c.downloadURL(k,v), | ||
b&&b()}catch(x){d()}else"application/pdf"===q?e.jsPDF&&e.svg2pdf?l():(p=!0,n(h+"jspdf.js",function(){n(h+"svg2pdf.js",function(){l()})})):(k=c.svgToDataUrl(a),g=function(){try{w.revokeObjectURL(k)}catch(x){}},c.imageToDataUrl(k,q,{},A,function(a){try{c.downloadURL(a,v),b&&b()}catch(F){d()}},function(){var f=t.createElement("canvas"),u=f.getContext("2d"),l=a.match(/^<svg[^>]*width\s*=\s*\"?(\d+)\"?[^>]*>/)[1]*A,k=a.match(/^<svg[^>]*height\s*=\s*\"?(\d+)\"?[^>]*>/)[1]*A,m=function(){u.drawSvg(a,0,0, | ||
l,k);try{c.downloadURL(r.msSaveOrOpenBlob?f.msToBlob():f.toDataURL(q),v),b&&b()}catch(H){d()}finally{g()}};f.width=l;f.height=k;e.canvg?m():(p=!0,n(h+"rgbcolor.js",function(){n(h+"canvg.js",function(){m()})}))},d,d,function(){p&&g()}))};c.Chart.prototype.getSVGForLocalExport=function(a,e,d,b){var f=this,l,k=0,m,p,g,h,n,q=function(a,c,d){++k;d.imageElement.setAttributeNS("http://www.w3.org/1999/xlink","href",a);k===l.length&&b(f.sanitizeSVG(m.innerHTML,p))};c.wrap(c.Chart.prototype,"getChartHTML", | ||
function(b){var a=b.apply(this,Array.prototype.slice.call(arguments,1));p=this.options;m=this.container.cloneNode(!0);return a});f.getSVGForExport(a,e);l=m.getElementsByTagName("image");try{if(l.length)for(h=0,n=l.length;h<n;++h)g=l[h],c.imageToDataUrl(g.getAttributeNS("http://www.w3.org/1999/xlink","href"),"image/png",{imageElement:g},a.scale,q,d,d,d);else b(f.sanitizeSVG(m.innerHTML,p))}catch(v){d()}};c.Chart.prototype.exportChartLocal=function(a,e){var d=this,b=c.merge(d.options.exporting,a),f= | ||
function(){if(!1===b.fallbackToExportServer)if(b.error)b.error(b);else throw"Fallback to export server disabled";else d.exportChart(b)};B&&("application/pdf"===b.type||d.container.getElementsByTagName("image").length&&"image/svg+xml"!==b.type)||D&&"image/svg+xml"!==b.type||"application/pdf"===b.type&&d.container.getElementsByTagName("image").length?f():d.getSVGForLocalExport(b,e,f,function(a){-1<a.indexOf("\x3cforeignObject")&&"image/svg+xml"!==b.type?f():c.downloadSVGLocal(a,b,f)})};C(!0,c.getOptions().exporting, | ||
{libURL:"https://code.highcharts.com/5.0.11/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(b){function n(c,b){var d=t.getElementsByTagName("head")[0],a=t.createElement("script");a.type="text/javascript";a.src=c;a.onload=b;a.onerror=function(){console.error("Error loading script",c)};d.appendChild(a)}var C=b.merge,e=b.win,r=e.navigator,t=e.document,z=b.each,w=e.URL||e.webkitURL||e,A=/Edge\/|Trident\/|MSIE /.test(r.userAgent),D=/Edge\/\d+/.test(r.userAgent),E=A?150:0;b.CanVGRenderer= | ||
{};b.dataURLtoBlob=function(c){if(e.atob&&e.ArrayBuffer&&e.Uint8Array&&e.Blob&&w.createObjectURL){c=c.match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/);for(var b=e.atob(c[3]),d=new e.ArrayBuffer(b.length),d=new e.Uint8Array(d),a=0;a<d.length;++a)d[a]=b.charCodeAt(a);c=new e.Blob([d],{type:c[1]});return w.createObjectURL(c)}};b.downloadURL=function(c,f){var d=t.createElement("a"),a;if(r.msSaveOrOpenBlob)r.msSaveOrOpenBlob(c,f);else{if(2E6<c.length&&(c=b.dataURLtoBlob(c),!c))throw"Data URL length limit reached"; | ||
if(void 0!==d.download)d.href=c,d.download=f,t.body.appendChild(d),d.click(),t.body.removeChild(d);else try{if(a=e.open(c,"chart"),void 0===a||null===a)throw"Failed to open window";}catch(u){e.location.href=c}}};b.svgToDataUrl=function(c){var b=-1<r.userAgent.indexOf("WebKit")&&0>r.userAgent.indexOf("Chrome");try{if(!b&&0>r.userAgent.toLowerCase().indexOf("firefox"))return w.createObjectURL(new e.Blob([c],{type:"image/svg+xml;charset-utf-16"}))}catch(d){}return"data:image/svg+xml;charset\x3dUTF-8,"+ | ||
encodeURIComponent(c)};b.imageToDataUrl=function(c,b,d,a,u,l,k,m,p){var g=new e.Image,h,f=function(){setTimeout(function(){var e=t.createElement("canvas"),f=e.getContext&&e.getContext("2d"),x;try{if(f){e.height=g.height*a;e.width=g.width*a;f.drawImage(g,0,0,e.width,e.height);try{x=e.toDataURL(b),u(x,b,d,a)}catch(F){h(c,b,d,a)}}else k(c,b,d,a)}finally{p&&p(c,b,d,a)}},E)},q=function(){m(c,b,d,a);p&&p(c,b,d,a)};h=function(){g=new e.Image;h=l;g.crossOrigin="Anonymous";g.onload=f;g.onerror=q;g.src=c}; | ||
g.onload=f;g.onerror=q;g.src=c};b.downloadSVGLocal=function(c,f,d,a){function u(a,b){b=new e.jsPDF("l","pt",[a.width.baseVal.value+2*b,a.height.baseVal.value+2*b]);e.svg2pdf(a,b,{removeInvalid:!0});return b.output("datauristring")}function l(){y.innerHTML=c;var e=y.getElementsByTagName("text"),g,f=y.getElementsByTagName("svg")[0].style;z(e,function(a){z(["font-family","font-size"],function(b){!a.style[b]&&f[b]&&(a.style[b]=f[b])});a.style["font-family"]=a.style["font-family"]&&a.style["font-family"].split(" ").splice(-1); | ||
g=a.getElementsByTagName("title");z(g,function(b){a.removeChild(b)})});e=u(y.firstChild,0);try{b.downloadURL(e,v),a&&a()}catch(G){d()}}var k,m,p=!0,g,h=f.libURL||b.getOptions().exporting.libURL,y=t.createElement("div"),q=f.type||"image/png",v=(f.filename||"chart")+"."+("image/svg+xml"===q?"svg":q.split("/")[1]),B=f.scale||1,h="/"!==h.slice(-1)?h+"/":h;if("image/svg+xml"===q)try{r.msSaveOrOpenBlob?(m=new MSBlobBuilder,m.append(c),k=m.getBlob("image/svg+xml")):k=b.svgToDataUrl(c),b.downloadURL(k,v), | ||
a&&a()}catch(x){d()}else"application/pdf"===q?e.jsPDF&&e.svg2pdf?l():(p=!0,n(h+"jspdf.js",function(){n(h+"svg2pdf.js",function(){l()})})):(k=b.svgToDataUrl(c),g=function(){try{w.revokeObjectURL(k)}catch(x){}},b.imageToDataUrl(k,q,{},B,function(c){try{b.downloadURL(c,v),a&&a()}catch(F){d()}},function(){var f=t.createElement("canvas"),u=f.getContext("2d"),l=c.match(/^<svg[^>]*width\s*=\s*\"?(\d+)\"?[^>]*>/)[1]*B,k=c.match(/^<svg[^>]*height\s*=\s*\"?(\d+)\"?[^>]*>/)[1]*B,m=function(){u.drawSvg(c,0,0, | ||
l,k);try{b.downloadURL(r.msSaveOrOpenBlob?f.msToBlob():f.toDataURL(q),v),a&&a()}catch(H){d()}finally{g()}};f.width=l;f.height=k;e.canvg?m():(p=!0,n(h+"rgbcolor.js",function(){n(h+"canvg.js",function(){m()})}))},d,d,function(){p&&g()}))};b.Chart.prototype.getSVGForLocalExport=function(c,e,d,a){var f=this,l,k=0,m,p,g,h,n,q=function(b,c,d){++k;d.imageElement.setAttributeNS("http://www.w3.org/1999/xlink","href",b);k===l.length&&a(f.sanitizeSVG(m.innerHTML,p))};b.wrap(b.Chart.prototype,"getChartHTML", | ||
function(a){var b=a.apply(this,Array.prototype.slice.call(arguments,1));p=this.options;m=this.container.cloneNode(!0);return b});f.getSVGForExport(c,e);l=m.getElementsByTagName("image");try{if(l.length)for(h=0,n=l.length;h<n;++h)g=l[h],b.imageToDataUrl(g.getAttributeNS("http://www.w3.org/1999/xlink","href"),"image/png",{imageElement:g},c.scale,q,d,d,d);else a(f.sanitizeSVG(m.innerHTML,p))}catch(v){d()}};b.Chart.prototype.exportChartLocal=function(c,e){var d=this,a=b.merge(d.options.exporting,c),f= | ||
function(){if(!1===a.fallbackToExportServer)if(a.error)a.error(a);else throw"Fallback to export server disabled";else d.exportChart(a)};A&&(b.SVGRenderer.prototype.inlineWhitelist=[/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/, | ||
/^y$/]);A&&("application/pdf"===a.type||d.container.getElementsByTagName("image").length&&"image/svg+xml"!==a.type)||D&&"image/svg+xml"!==a.type||"application/pdf"===a.type&&d.container.getElementsByTagName("image").length?f():d.getSVGForLocalExport(a,e,f,function(c){-1<c.indexOf("\x3cforeignObject")&&"image/svg+xml"!==a.type?f():b.downloadSVGLocal(c,a,f)})};C(!0,b.getOptions().exporting,{libURL:"https://code.highcharts.com/5.0.12/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}}, | ||
{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Client side exporting module | ||
@@ -483,2 +483,40 @@ * | ||
// If we are on IE and in styled mode, add a whitelist to the renderer | ||
// for inline styles that we want to pass through. There are so many | ||
// styles by default in IE that we don't want to blacklist them all. | ||
if (isMSBrowser) { | ||
Highcharts.SVGRenderer.prototype.inlineWhitelist = [ | ||
/^blockSize/, | ||
/^border/, | ||
/^caretColor/, | ||
/^color/, | ||
/^columnRule/, | ||
/^columnRuleColor/, | ||
/^cssFloat/, | ||
/^cursor/, | ||
/^fill$/, | ||
/^fillOpacity/, | ||
/^font/, | ||
/^inlineSize/, | ||
/^length/, | ||
/^lineHeight/, | ||
/^opacity/, | ||
/^outline/, | ||
/^parentRule/, | ||
/^rx$/, | ||
/^ry$/, | ||
/^stroke/, | ||
/^textAlign/, | ||
/^textAnchor/, | ||
/^textDecoration/, | ||
/^transform/, | ||
/^vectorEffect/, | ||
/^visibility/, | ||
/^x$/, | ||
/^y$/ | ||
]; | ||
} | ||
// Always fall back on: | ||
@@ -512,3 +550,3 @@ // - MS browsers: Embedded images JPEG/PNG, or any PDF | ||
merge(true, Highcharts.getOptions().exporting, { | ||
libURL: 'https://code.highcharts.com/5.0.11/lib/', | ||
libURL: 'https://code.highcharts.com/5.0.12/lib/', | ||
buttons: { | ||
@@ -515,0 +553,0 @@ contextButton: { |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Solid angular gauge module | ||
@@ -9,8 +9,7 @@ | ||
*/ | ||
(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= | ||
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, | ||
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]+ | ||
(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= | ||
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, | ||
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)})},animate:function(a){a|| | ||
(this.startAngleRad=this.thresholdAngleRad,f.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(e){var l=e.pInt,u=e.pick,m=e.each,r=e.isNumber,w=e.wrap,v;w(e.Renderer.prototype.symbols,"arc",function(a,f,d,c,e,b){a=a(f,d,c,e,b);b.rounded&&(c=((b.r||c)-b.innerR)/2,b=["A",c,c,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",c,c,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(b)));return a});v={initDataClasses:function(a){var f=this.chart,d,c=0,t=this.options;this.dataClasses= | ||
d=[];m(a.dataClasses,function(b,h){b=e.merge(b);d.push(b);b.color||("category"===t.dataClassColor?(h=f.options.colors,b.color=h[c++],c===h.length&&(c=0)):b.color=e.color(t.minColor).tweenTo(e.color(t.maxColor),h/(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=e.color(a[1])})},toColor:function(a,f){var d=this.stops,c,e,b=this.dataClasses,h,g;if(b)for(g=b.length;g--;){if(h=b[g],c=h.from,d= | ||
h.to,(void 0===c||a>=c)&&(void 0===d||a<=d)){e=h.color;f&&(f.dataClass=g);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(g=d.length;g--&&!(a>d[g][0]););c=d[g]||d[g+1];d=d[g+1]||c;a=1-(d[0]-a)/(d[0]-c[0]||1);e=c.color.tweenTo(d.color,a)}return e}};e.seriesType("solidgauge","gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;e.extend(a,v);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);e.seriesTypes.gauge.prototype.translate.call(this)}, | ||
drawPoints:function(){var a=this,f=a.yAxis,d=f.center,c=a.options,t=a.chart.renderer,b=c.overshoot,h=r(b)?b/180*Math.PI:0,g;r(c.threshold)&&(g=f.startAngleRad+f.translate(c.threshold,null,null,null,!0));this.thresholdAngleRad=u(g,f.startAngleRad);m(a.points,function(b){var g=b.graphic,k=f.startAngleRad+f.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,c.radius,100))*d[2]/200,n=l(u(b.options.innerRadius,c.innerRadius,60))*d[2]/200,p=f.toColor(b.y,b),q=Math.min(f.startAngleRad,f.endAngleRad), | ||
r=Math.max(f.startAngleRad,f.endAngleRad);"none"===p&&(p=b.color||a.color||"none");"none"!==p&&(b.color=p);k=Math.max(q-h,Math.min(r+h,k));!1===c.wrap&&(k=Math.max(q,Math.min(r,k)));q=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-q>2*Math.PI&&(k=q+2*Math.PI);b.shapeArgs=n={x:d[0],y:d[1],r:m,innerR:n,start:q,end:k,rounded:c.rounded};b.startR=m;g?(b=n.d,g.animate(e.extend({fill:p},n)),b&&(n.d=b)):b.graphic=t.arc(n).addClass(b.getClassName(),!0).attr({fill:p,"sweep-flag":0}).add(a.group)})}, | ||
animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,e.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Solid angular gauge module | ||
@@ -73,4 +73,3 @@ * | ||
initDataClasses: function(userOptions) { | ||
var axis = this, | ||
chart = this.chart, | ||
var chart = this.chart, | ||
dataClasses, | ||
@@ -95,3 +94,6 @@ colorCounter = 0, | ||
} else { | ||
dataClass.color = axis.tweenColors(H.color(options.minColor), H.color(options.maxColor), i / (userOptions.dataClasses.length - 1)); | ||
dataClass.color = H.color(options.minColor).tweenTo( | ||
H.color(options.maxColor), | ||
i / (userOptions.dataClasses.length - 1) | ||
); | ||
} | ||
@@ -157,4 +159,3 @@ } | ||
color = this.tweenColors( | ||
from.color, | ||
color = from.color.tweenTo( | ||
to.color, | ||
@@ -165,50 +166,5 @@ pos | ||
return color; | ||
}, | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. | ||
*/ | ||
tweenColors: function(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
} | ||
}; | ||
/** | ||
* Handle animation of the color attributes directly | ||
*/ | ||
each(['fill', 'stroke'], function(prop) { | ||
H.Fx.prototype[prop + 'Setter'] = function() { | ||
this.elem.attr( | ||
prop, | ||
colorAxisMethods.tweenColors( | ||
H.color(this.start), | ||
H.color(this.end), | ||
this.pos | ||
), | ||
null, | ||
true | ||
); | ||
}; | ||
}); | ||
// The solidgauge series type | ||
@@ -215,0 +171,0 @@ H.seriesType('solidgauge', 'gauge', { |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
StaticScale | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* StaticScale | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highstock as a plugin for Highcharts | ||
@@ -29,11 +29,11 @@ | ||
[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],x={sum:function(c){var f=c.length,a;if(!f&&c.hasNulls)a=null;else if(f)for(a=0;f--;)a+=c[f];return a},average:function(c){var f=c.length;c=x.sum(c);h(c)&&f&&(c/=f);return c},averages:function(){var c=[];H(arguments,function(f){c.push(x.average(f))});return c},open:function(c){return c.length?c[0]:c.hasNulls?null:void 0},high:function(c){return c.length?E(c):c.hasNulls?null:void 0},low:function(c){return c.length? | ||
k(c):c.hasNulls?null:void 0},close:function(c){return c.length?c[c.length-1]:c.hasNulls?null:void 0},ohlc:function(c,f,a,g){c=x.open(c);f=x.high(f);a=x.low(a);g=x.close(g);if(h(c)||h(f)||h(a)||h(g))return[c,f,a,g]},range:function(c,f){c=x.low(c);f=x.high(f);if(h(c)||h(f))return[c,f]}};u.groupData=function(c,f,a,b){var n=this.data,v=this.options.data,m=[],d=[],B=[],e=c.length,J,M,l=!!f,C=[];b="function"===typeof b?b:x[b]||r[this.type]&&x[r[this.type].approximation]||x[g.approximation];var L=this.pointArrayMap, | ||
q=L&&L.length,p=0;M=0;var u,k;q?H(L,function(){C.push([])}):C.push([]);u=q||1;for(k=0;k<=e&&!(c[k]>=a[0]);k++);for(k;k<=e;k++){for(;void 0!==a[p+1]&&c[k]>=a[p+1]||k===e;){J=a[p];this.dataGroupInfo={start:M,length:C[0].length};M=b.apply(this,C);void 0!==M&&(m.push(J),d.push(M),B.push(this.dataGroupInfo));M=k;for(J=0;J<u;J++)C[J].length=0,C[J].hasNulls=!1;p+=1;if(k===e)break}if(k===e)break;if(L){J=this.cropStart+k;var G=n&&n[J]||this.pointClass.prototype.applyOptions.apply({series:this},[v[J]]),w;for(J= | ||
0;J<q;J++)w=G[L[J]],h(w)?C[J].push(w):null===w&&(C[J].hasNulls=!0)}else J=l?f[k]:null,h(J)?C[0].push(J):null===J&&(C[0].hasNulls=!0)}return[m,d,B]};u.processData=function(){var c=this.chart,f=this.options.dataGrouping,a=!1!==this.allowDG&&f&&G(f.enabled,c.options.isStock),g=this.visible||!c.options.chart.ignoreHiddenSeries,n;this.forceCrop=a;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==A.apply(this,arguments)&&a){this.destroyGroupedData();var v=this.processedXData,y=this.processedYData, | ||
b=c.plotSizeX,c=this.xAxis,d=c.options.ordinal,r=this.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();if(r){this.isDirty=n=!0;var e=c.getExtremes(),a=e.min,e=e.max,d=d&&c.getGroupIntervalFactor(a,e,this)||1,b=r*(e-a)/b*d,r=c.getTimeTicks(c.normalizeTimeTickInterval(b,f.units||C),Math.min(a,v[0]),Math.max(e,v[v.length-1]),c.options.startOfWeek,v,this.closestPointRange),v=u.groupData.apply(this,[v,y,r,f.approximation]),y=v[0],d=v[1];if(f.smoothed){f=y.length-1;for(y[f]=Math.min(y[f],e);f--&& | ||
0<f;)y[f]+=b/2;y[0]=Math.max(y[0],a)}this.currentDataGrouping=r.info;this.closestPointRange=r.info.totalRange;this.groupMap=v[2];F(y[0])&&y[0]<c.dataMin&&g&&(c.min===c.dataMin&&(c.min=y[0]),c.dataMin=y[0]);this.processedXData=y;this.processedYData=d}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=n}};u.destroyGroupedData=function(){var c=this.groupedData;H(c||[],function(f,a){f&&(c[a]=f.destroy?f.destroy():null)});this.groupedData=null};u.generatePoints=function(){l.apply(this); | ||
this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};d(e.prototype,"update",function(c){this.dataGroup?a.error(24):c.apply(this,[].slice.call(arguments,1))});d(b.prototype,"tooltipFooterHeaderFormatter",function(c,f,g){var m=f.series,n=m.tooltipOptions,v=m.options.dataGrouping,y=n.xDateFormat,b,d=m.xAxis,r=a.dateFormat;return d&&"datetime"===d.options.type&&v&&h(f.key)?(c=m.currentDataGrouping,v=v.dateTimeLabelFormats,c?(d=v[c.unitName],1===c.count?y=d[0]:(y=d[1],b=d[2])): | ||
!y&&v&&(y=this.getXDateFormat(f,n,d)),y=r(y,f.key),b&&(y+=r(b,f.key+c.totalRange-1)),w(n[(g?"footer":"header")+"Format"],{point:I(f.point,{key:y}),series:m})):c.call(this,f,g)});u.destroy=function(){for(var c=this.groupedData||[],f=c.length;f--;)c[f]&&c[f].destroy();p.apply(this)};d(u,"setOptions",function(c,f){c=c.call(this,f);var a=this.type,b=this.chart.options.plotOptions,n=z[a].dataGrouping;r[a]&&(n||(n=q(g,r[a])),c.dataGrouping=q(n,b.series&&b.series.dataGrouping,b[a].dataGrouping,f.dataGrouping)); | ||
this.chart.options.isStock&&(this.requireSorting=!0);return c});d(t.prototype,"setScale",function(c){c.call(this);H(this.series,function(c){c.hasProcessed=!1})});t.prototype.getGroupPixelWidth=function(){var c=this.series,a=c.length,g,b=0,n=!1,v;for(g=a;g--;)(v=c[g].options.dataGrouping)&&(b=Math.max(b,v.groupPixelWidth));for(g=a;g--;)(v=c[g].options.dataGrouping)&&c[g].hasProcessed&&(a=(c[g].processedXData||c[g].data).length,c[g].groupPixelWidth||a>this.chart.plotSizeX/b||a&&v.forced)&&(n=!0);return n? | ||
b:0};t.prototype.setDataGrouping=function(a,f){var c;f=G(f,!0);a||(a={forced:!1,units:null});if(this instanceof t)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},!1);else H(this.chart.options.series,function(c){c.dataGrouping=a},!1);f&&this.chart.redraw()}})(K);(function(a){var E=a.each,k=a.Point,t=a.seriesType,z=a.seriesTypes;t("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
k(c):c.hasNulls?null:void 0},close:function(c){return c.length?c[c.length-1]:c.hasNulls?null:void 0},ohlc:function(c,f,a,g){c=x.open(c);f=x.high(f);a=x.low(a);g=x.close(g);if(h(c)||h(f)||h(a)||h(g))return[c,f,a,g]},range:function(c,f){c=x.low(c);f=x.high(f);if(h(c)||h(f))return[c,f];if(null===c&&null===f)return null}};u.groupData=function(c,f,a,b){var n=this.data,v=this.options.data,m=[],d=[],B=[],e=c.length,J,M,l=!!f,C=[];b="function"===typeof b?b:x[b]||r[this.type]&&x[r[this.type].approximation]|| | ||
x[g.approximation];var L=this.pointArrayMap,q=L&&L.length,p=0;M=0;var u,k;q?H(L,function(){C.push([])}):C.push([]);u=q||1;for(k=0;k<=e&&!(c[k]>=a[0]);k++);for(k;k<=e;k++){for(;void 0!==a[p+1]&&c[k]>=a[p+1]||k===e;){J=a[p];this.dataGroupInfo={start:M,length:C[0].length};M=b.apply(this,C);void 0!==M&&(m.push(J),d.push(M),B.push(this.dataGroupInfo));M=k;for(J=0;J<u;J++)C[J].length=0,C[J].hasNulls=!1;p+=1;if(k===e)break}if(k===e)break;if(L){J=this.cropStart+k;var G=n&&n[J]||this.pointClass.prototype.applyOptions.apply({series:this}, | ||
[v[J]]),w;for(J=0;J<q;J++)w=G[L[J]],h(w)?C[J].push(w):null===w&&(C[J].hasNulls=!0)}else J=l?f[k]:null,h(J)?C[0].push(J):null===J&&(C[0].hasNulls=!0)}return[m,d,B]};u.processData=function(){var c=this.chart,f=this.options.dataGrouping,a=!1!==this.allowDG&&f&&G(f.enabled,c.options.isStock),g=this.visible||!c.options.chart.ignoreHiddenSeries,n;this.forceCrop=a;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==A.apply(this,arguments)&&a){this.destroyGroupedData();var v=this.processedXData,y=this.processedYData, | ||
b=c.plotSizeX,c=this.xAxis,d=c.options.ordinal,r=this.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();if(r){this.isDirty=n=!0;this.points=null;var e=c.getExtremes(),a=e.min,e=e.max,d=d&&c.getGroupIntervalFactor(a,e,this)||1,b=r*(e-a)/b*d,r=c.getTimeTicks(c.normalizeTimeTickInterval(b,f.units||C),Math.min(a,v[0]),Math.max(e,v[v.length-1]),c.options.startOfWeek,v,this.closestPointRange),v=u.groupData.apply(this,[v,y,r,f.approximation]),y=v[0],d=v[1];if(f.smoothed){f=y.length-1;for(y[f]= | ||
Math.min(y[f],e);f--&&0<f;)y[f]+=b/2;y[0]=Math.max(y[0],a)}this.currentDataGrouping=r.info;this.closestPointRange=r.info.totalRange;this.groupMap=v[2];F(y[0])&&y[0]<c.dataMin&&g&&(c.min===c.dataMin&&(c.min=y[0]),c.dataMin=y[0]);this.processedXData=y;this.processedYData=d}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=n}};u.destroyGroupedData=function(){var c=this.groupedData;H(c||[],function(f,a){f&&(c[a]=f.destroy?f.destroy():null)});this.groupedData=null};u.generatePoints= | ||
function(){l.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};d(e.prototype,"update",function(c){this.dataGroup?a.error(24):c.apply(this,[].slice.call(arguments,1))});d(b.prototype,"tooltipFooterHeaderFormatter",function(c,f,g){var m=f.series,n=m.tooltipOptions,v=m.options.dataGrouping,y=n.xDateFormat,b,d=m.xAxis,r=a.dateFormat;return d&&"datetime"===d.options.type&&v&&h(f.key)?(c=m.currentDataGrouping,v=v.dateTimeLabelFormats,c?(d=v[c.unitName],1===c.count? | ||
y=d[0]:(y=d[1],b=d[2])):!y&&v&&(y=this.getXDateFormat(f,n,d)),y=r(y,f.key),b&&(y+=r(b,f.key+c.totalRange-1)),w(n[(g?"footer":"header")+"Format"],{point:I(f.point,{key:y}),series:m})):c.call(this,f,g)});u.destroy=function(){for(var c=this.groupedData||[],f=c.length;f--;)c[f]&&c[f].destroy();p.apply(this)};d(u,"setOptions",function(c,f){c=c.call(this,f);var a=this.type,b=this.chart.options.plotOptions,n=z[a].dataGrouping;r[a]&&(n||(n=q(g,r[a])),c.dataGrouping=q(n,b.series&&b.series.dataGrouping,b[a].dataGrouping, | ||
f.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return c});d(t.prototype,"setScale",function(c){c.call(this);H(this.series,function(c){c.hasProcessed=!1})});t.prototype.getGroupPixelWidth=function(){var c=this.series,a=c.length,g,b=0,n=!1,v;for(g=a;g--;)(v=c[g].options.dataGrouping)&&(b=Math.max(b,v.groupPixelWidth));for(g=a;g--;)(v=c[g].options.dataGrouping)&&c[g].hasProcessed&&(a=(c[g].processedXData||c[g].data).length,c[g].groupPixelWidth||a>this.chart.plotSizeX/b||a&&v.forced)&& | ||
(n=!0);return n?b:0};t.prototype.setDataGrouping=function(a,f){var c;f=G(f,!0);a||(a={forced:!1,units:null});if(this instanceof t)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},!1);else H(this.chart.options.series,function(c){c.dataGrouping=a},!1);f&&this.chart.redraw()}})(K);(function(a){var E=a.each,k=a.Point,t=a.seriesType,z=a.seriesTypes;t("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
threshold:null},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"close",translate:function(){var a=this,k=a.yAxis,t=!!a.modifyValue,w=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];z.column.prototype.translate.apply(a);E(a.points,function(h){E([h.open,h.high,h.low,h.close,h.low],function(q,G){null!==q&&(t&&(q=a.modifyValue(q)),h[w[G]]=k.toPixels(q,!0))});h.tooltipPos[1]=h.plotHigh+k.pos-a.chart.plotTop})},drawPoints:function(){var a= | ||
@@ -72,17 +72,17 @@ this,k=a.chart;E(a.points,function(t){var w,h,q,G,e=t.graphic,b,d=!e;void 0!==t.plotY&&(e||(t.graphic=e=k.renderer.path().add(a.group)),h=e.strokeWidth()%2/2,b=Math.round(t.plotX)-h,q=Math.round(t.shapeArgs.width/2),G=["M",b,Math.round(t.yBottom),"L",b,Math.round(t.plotHigh)],null!==t.open&&(w=Math.round(t.plotOpen)+h,G.push("M",b,w,"L",b-q,w)),null!==t.close&&(w=Math.round(t.plotClose)+h,G.push("M",b,w,"L",b+q,w)),e[d?"attr":"animate"]({d:G}).addClass(t.getClassName(),!0))})},animate:null},{getClassName:function(){return k.prototype.getClassName.call(this)+ | ||
2*v);n=e?v:m+2*v;c=p(c,y.toPixels(a,!0));f=p(f,y.toPixels(b,!0));u(c)&&Infinity!==Math.abs(c)||(c=0,f=n);a=y.toValue(c,!0);b=y.toValue(f,!0);if(Math.abs(b-a)<h)if(this.grabbedLeft)c=y.toPixels(b-h,!0);else if(this.grabbedRight)f=y.toPixels(a+h,!0);else return;this.zoomedMax=Math.min(Math.max(c,f,0),D);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,f),0),D);this.range=this.zoomedMax-this.zoomedMin;D=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin); | ||
g&&(this.navigatorGroup.attr({visibility:"visible"}),B=B&&!this.hasDragged?"animate":"attr",this.drawMasks(c,D,e,B),this.drawOutline(c,D,e,B),this.drawHandle(c,0,e,B),this.drawHandle(D,1,e,B));this.scrollbar&&(e?(e=this.top-v,d=this.left-v+(g?0:(d.titleOffset||0)+d.axisTitleMargin),v=m+2*v):(e=this.top+(g?this.height:-v),d=this.left-v),this.scrollbar.position(d,e,n,v),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container, | ||
f=[],e,m;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=m=function(b){a.onMouseUp(b)};f=a.getPartsEvents("mousedown");f.push(k(c,"mousemove",e),k(w,"mouseup",m));d&&(f.push(k(c,"touchmove",e),k(w,"touchend",m)),f.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=f;a.series&&a.series[0]&&f.push(k(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];h(["shades","handles"],function(n){h(b[n], | ||
function(f,d){c.push(k(f.element,a,function(a){b[n+"Mousedown"](a,d)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,f=this.xAxis,n=this.zoomedMin,d=this.left,e=this.size,v=this.range,m=a.chartX,g;c.inverted&&(m=a.chartY,d=this.top);1===b?(this.grabbedCenter=m,this.fixedWidth=v,this.dragOffset=m-n):(a=m-d-v/2,0===b?a=Math.max(0,a):2===b&&a+v>=e&&(a=e-v,g=this.getUnionExtremes().dataMax),a!==n&&(this.fixedWidth=v,b=f.toFixedRange(a,a+v,null,g),c.xAxis[0].setExtremes(Math.min(b.min, | ||
b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],f=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=f?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=f?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,f=b.left,n=b.navigatorSize,d=b.range,e=b.dragOffset, | ||
m=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,m&&(f=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-f,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-f)):b.grabbedCenter&&(b.hasDragged=!0,c<e?c=e:c>n+e-d&&(c=n+e-d),b.render(0,0,c-e,c-e+d)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis, | ||
f=this.scrollbar,n,d,e=a.DOMEvent||a;(!this.hasDragged||f&&f.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(d=this.fixedExtreme),this.zoomedMax===this.size&&(d=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,n,d),H(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e}));"mousemove"!== | ||
a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(h(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(h(a,function(a){g(a,"updatedData",this.updatedDataHandler)}, | ||
this),a[0].xAxis&&g(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,f=b.navigator,d=f.enabled,e=b.scrollbar,n=e.enabled,b=d?f.height:0,m=n?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=m;this.scrollbarEnabled=n;this.navigatorEnabled=d;this.navigatorOptions=f;this.scrollbarOptions=e;this.outlineHeight=b+m;this.opposite=p(f.opposite,!d&&a.inverted);var g=this,e=g.baseSeries,n=a.xAxis.length,h= | ||
a.yAxis.length,q=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:g.opposite?"plotTop":"marginBottom",value:(d||!a.inverted?g.outlineHeight:0)+f.margin};a.inverted&&(a.extraMargin.type=g.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;g.navigatorEnabled?(g.xAxis=new t(a,l({breaks:q.options.breaks,ordinal:q.options.ordinal},f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:n,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0, | ||
zoomEnabled:!1},a.inverted?{offsets:[m,0,-m,0],width:b}:{offsets:[0,-m,0,m],height:b})),g.yAxis=new t(a,l(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||f.series.data?g.addBaseSeries():0===a.series.length&&c(a,"redraw",function(b,c){0<a.series.length&&!g.series&&(g.setBaseSeries(),a.redraw=b);b.call(a,c)}),g.renderElements(),g.addMouseEvents()):g.xAxis={translate:function(b,c){var f=a.xAxis[0],d=f.getExtremes(),e=f.len-2*m,n=B("min", | ||
f.options.min,d.dataMin),f=B("max",f.options.max,d.dataMax)-n;return c?b*f/e+n:e*(b-n)/f},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:t.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=g.scrollbar=new r(a.renderer,l(a.options.scrollbar,{margin:g.navigatorEnabled?0:10,vertical:a.inverted}),a),k(g.scrollbar,"changed",function(b){var c=g.size,f=c*this.to,c=c*this.from;g.hasDragged=g.scrollbar.hasDragged;g.render(0, | ||
0,c,f);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType)&&setTimeout(function(){g.onMouseUp(b)})}));g.addBaseSeriesEvents();g.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,f=c.options,d=b.options,e;a&&null===b.dataMin||(e={dataMin:p(f&&f.min,B("min",d.min,b.dataMin,c.dataMin,c.min)),dataMax:p(f&&f.max,B("max",d.max,b.dataMax,c.dataMax,c.max))});return e},setBaseSeries:function(a){var b=this.chart,c;a=a||b.options&&b.options.navigator.baseSeries||0;this.series&& | ||
(this.removeBaseSeriesEvents(),h(this.series,function(a){a.destroy()}));c=this.baseSeries=[];h(b.series||[],function(b,f){(b.options.showInNavigator||(f===a||b.options.id===a)&&!1!==b.options.showInNavigator)&&c.push(b)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,b=a.chart,c=a.series=[],f=a.baseSeries,d,e,m=a.navigatorOptions.series,g,B={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1, | ||
stacking:!1,isInternal:!0,visible:!0};f?h(f,function(f,n){B.name="Navigator "+(n+1);d=f.options||{};g=d.navigatorOptions||{};e=l(d,B,m,g);n=g.data||m.data;a.hasNavigatorData=a.hasNavigatorData||!!n;e.data=n||d.data&&d.data.slice(0);f.navigatorSeries=b.initSeries(e);c.push(f.navigatorSeries)}):(e=l(m,B),e.data=m.data,a.hasNavigatorData=!!e.data,c.push(b.initSeries(e)));this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&k(b[0].xAxis,"foundExtremes", | ||
this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&h(b,function(b){b.xAxis&&k(b,"updatedData",this.updatedDataHandler);k(b,"remove",function(){this.navigatorSeries&&(q(a.series,this.navigatorSeries),this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a= | ||
g&&(this.navigatorGroup.attr({visibility:"visible"}),B=B&&!this.hasDragged?"animate":"attr",this.drawMasks(c,D,e,B),this.drawOutline(c,D,e,B),this.drawHandle(c,0,e,B),this.drawHandle(D,1,e,B));this.scrollbar&&(e?(e=this.top-v,d=this.left-v+(g||!d.opposite?0:(d.titleOffset||0)+d.axisTitleMargin),v=m+2*v):(e=this.top+(g?this.height:-v),d=this.left-v),this.scrollbar.position(d,e,n,v),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b= | ||
a.chart,c=b.container,f=[],e,m;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=m=function(b){a.onMouseUp(b)};f=a.getPartsEvents("mousedown");f.push(k(c,"mousemove",e),k(w,"mouseup",m));d&&(f.push(k(c,"touchmove",e),k(w,"touchend",m)),f.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=f;a.series&&a.series[0]&&f.push(k(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];h(["shades","handles"], | ||
function(n){h(b[n],function(f,d){c.push(k(f.element,a,function(a){b[n+"Mousedown"](a,d)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,f=this.xAxis,n=this.zoomedMin,d=this.left,e=this.size,v=this.range,m=a.chartX,g;c.inverted&&(m=a.chartY,d=this.top);1===b?(this.grabbedCenter=m,this.fixedWidth=v,this.dragOffset=m-n):(a=m-d-v/2,0===b?a=Math.max(0,a):2===b&&a+v>=e&&(a=e-v,g=this.getUnionExtremes().dataMax),a!==n&&(this.fixedWidth=v,b=f.toFixedRange(a, | ||
a+v,null,g),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],f=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=f?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=f?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart, | ||
f=b.left,n=b.navigatorSize,d=b.range,e=b.dragOffset,m=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,m&&(f=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-f,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-f)):b.grabbedCenter&&(b.hasDragged=!0,c<e?c=e:c>n+e-d&&(c=n+e-d),b.render(0,0,c-e,c-e+d)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))}, | ||
onMouseUp:function(a){var b=this.chart,c=this.xAxis,f=this.scrollbar,n,d,e=a.DOMEvent||a;(!this.hasDragged||f&&f.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(d=this.fixedExtreme),this.zoomedMax===this.size&&(d=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,n,d),H(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator", | ||
triggerOp:"navigator-drag",DOMEvent:e}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(h(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(h(a,function(a){g(a, | ||
"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&g(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,f=b.navigator,d=f.enabled,e=b.scrollbar,n=e.enabled,b=d?f.height:0,m=n?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=m;this.scrollbarEnabled=n;this.navigatorEnabled=d;this.navigatorOptions=f;this.scrollbarOptions=e;this.outlineHeight=b+m;this.opposite=p(f.opposite,!d&&a.inverted);var g= | ||
this,e=g.baseSeries,n=a.xAxis.length,h=a.yAxis.length,q=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:g.opposite?"plotTop":"marginBottom",value:(d||!a.inverted?g.outlineHeight:0)+f.margin};a.inverted&&(a.extraMargin.type=g.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;g.navigatorEnabled?(g.xAxis=new t(a,l({breaks:q.options.breaks,ordinal:q.options.ordinal},f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:n,offset:0,keepOrdinalPadding:!0,startOnTick:!1, | ||
endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[m,0,-m,0],width:b}:{offsets:[0,-m,0,m],height:b})),g.yAxis=new t(a,l(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||f.series.data?g.addBaseSeries():0===a.series.length&&c(a,"redraw",function(b,c){0<a.series.length&&!g.series&&(g.setBaseSeries(),a.redraw=b);b.call(a,c)}),g.renderElements(),g.addMouseEvents()):g.xAxis={translate:function(b,c){var f=a.xAxis[0], | ||
d=f.getExtremes(),e=f.len-2*m,n=B("min",f.options.min,d.dataMin),f=B("max",f.options.max,d.dataMax)-n;return c?b*f/e+n:e*(b-n)/f},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:t.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=g.scrollbar=new r(a.renderer,l(a.options.scrollbar,{margin:g.navigatorEnabled?0:10,vertical:a.inverted}),a),k(g.scrollbar,"changed",function(b){var c=g.size,f=c*this.to,c=c*this.from;g.hasDragged= | ||
g.scrollbar.hasDragged;g.render(0,0,c,f);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType)&&setTimeout(function(){g.onMouseUp(b)})}));g.addBaseSeriesEvents();g.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,f=c.options,d=b.options,e;a&&null===b.dataMin||(e={dataMin:p(f&&f.min,B("min",d.min,b.dataMin,c.dataMin,c.min)),dataMax:p(f&&f.max,B("max",d.max,b.dataMax,c.dataMax,c.max))});return e},setBaseSeries:function(a){var b=this.chart,c;a=a||b.options&&b.options.navigator.baseSeries|| | ||
0;this.series&&(this.removeBaseSeriesEvents(),h(this.series,function(a){a.destroy()}));c=this.baseSeries=[];h(b.series||[],function(b,f){(b.options.showInNavigator||(f===a||b.options.id===a)&&!1!==b.options.showInNavigator)&&c.push(b)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,b=a.chart,c=a.series=[],f=a.baseSeries,d,e,m=a.navigatorOptions.series,g,B={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis", | ||
showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};f?h(f,function(f,n){B.name="Navigator "+(n+1);d=f.options||{};g=d.navigatorOptions||{};e=l(d,B,m,g);n=g.data||m.data;a.hasNavigatorData=a.hasNavigatorData||!!n;e.data=n||d.data&&d.data.slice(0);f.navigatorSeries=b.initSeries(e);c.push(f.navigatorSeries)}):(e=l(m,B),e.data=m.data,a.hasNavigatorData=!!e.data,c.push(b.initSeries(e)));this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&k(b[0].xAxis, | ||
"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&h(b,function(b){b.xAxis&&k(b,"updatedData",this.updatedDataHandler);k(b,"remove",function(){this.navigatorSeries&&(q(a.series,this.navigatorSeries),this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a= | ||
this.chart.navigator,b=this.getExtremes(),c=b.dataMin,f=b.dataMax,b=b.max-b.min,d=a.stickToMin,e=a.stickToMax,m,g,B=a.series&&a.series[0],h=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(d&&(g=c,m=g+b),e&&(m=f,d||(g=Math.max(m-b,B&&B.xData?B.xData[0]:-Number.MAX_VALUE))),h&&(d||e)&&u(g)&&(this.min=this.userMin=g,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMin= | ||
@@ -99,4 +99,4 @@ u(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){k(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(q(this.chart.xAxis,this.xAxis),q(this.chart.axes, | ||
e=d.buttons||[].concat(c.defaultButtons),g=d.selected,h=function(){var a=c.minInput,b=c.maxInput;a&&a.blur&&u(a,"blur");b&&b.blur&&u(b,"blur")};c.chart=a;c.options=d;c.buttons=[];a.extraTopMargin=d.height;c.buttonOptions=e;this.unMouseDown=k(a.container,"mousedown",h);this.unResize=k(a,"resize",h);b(e,c.computeButtonRange);void 0!==g&&e[g]&&this.clickButton(g,!1);k(a,"load",function(){k(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!== | ||
b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,f=a.xAxis[0],d=Math.round(f.max-f.min),e=!f.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||f,g=a.dataMin,v=a.dataMax,a=this.getYTDExtremes(v,g,h),q=a.min,k=a.max,p=this.selected,r=l(p),u=this.options.allButtonsEnabled,t=this.buttons;b(this.buttonOptions,function(a,b){var c=a._range,m=a.type,n=a.count||1;a=t[b];var h=0;b=b===p;var B=c>v-g,l=c<f.minRange,y=!1,D=!1,c=c===d; | ||
("month"===m||"year"===m)&&d>=864E5*{month:28,year:365}[m]*n&&d<=864E5*{month:31,year:366}[m]*n?c=!0:"ytd"===m?(c=k-q===d,y=!b):"all"===m&&(c=f.max-f.min>=v-g,D=!b&&r&&c);m=!u&&(B||l||D||e);c=b&&c||c&&!r&&!y;m?h=3:c&&(r=!0,h=2);a.state!==h&&a.setState(h)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c},setInputValue:function(a, | ||
b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,f=a.xAxis[0],d=Math.round(f.max-f.min),e=!f.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||f,g=a.dataMin,v=a.dataMax,a=this.getYTDExtremes(v,g,h),q=a.min,k=a.max,p=this.selected,r=l(p),u=this.options.allButtonsEnabled,t=this.buttons;b(this.buttonOptions,function(a,b){var c=a._range,m=a.type,n=a.count||1;a=t[b];var h=0;b=b===p;var B=c>v-g,l=c<f.minRange,D=!1,y=!1,c=c===d; | ||
("month"===m||"year"===m)&&d>=864E5*{month:28,year:365}[m]*n&&d<=864E5*{month:31,year:366}[m]*n?c=!0:"ytd"===m?(c=k-q===d,D=!b):"all"===m&&(c=f.max-f.min>=v-g,y=!b&&r&&c);m=!u&&(B||l||y||e);c=b&&c||c&&!r&&!D;m?h=3:c&&(r=!0,h=2);a.state!==h&&a.setState(h)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c},setInputValue:function(a, | ||
b){var c=this.chart.options.rangeSelector,f=this[a+"Input"];q(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=I(c.inputEditDateFormat||"%Y-%m-%d",f.HCTime);this[a+"DateBox"].attr({text:I(c.inputDateFormat||"%b %e, %Y",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"];F(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){F(this[a+"Input"],{border:0,width:"1px",height:"1px"}); | ||
@@ -116,6 +116,6 @@ this.setInputValue(a)},drawInput:function(a){function b(){var a=p.value,b=(g.inputDateParser||Date.parse)(a),f=d.xAxis[0],e=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:f,m=e.dataMin,e=e.dataMax;b!==p.previousValue&&(p.previousValue=b,l(b)||(b=a.split("-"),b=Date.UTC(r(b[0]),r(b[1])-1,r(b[2]))),l(b)&&(h||(b+=6E4*(new Date).getTimezoneOffset()),k?b>c.maxInput.HCTime?b=void 0:b<m&&(b=m):b<c.minInput.HCTime?b=void 0:b>e&&(b=e),void 0!==b&&f.setExtremes(k?b:f.min,k?f.max:b,void 0,void 0,{trigger:"rangeSelectorInput"})))} | ||
(d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,"right"):a.call(this,[].slice.call(arguments,1))});g(t.prototype,"destroy",function(a){var b=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&b._labelPanes&&b._labelPanes[c]===this&&delete b._labelPanes[c];return a.call(this,Array.prototype.slice.call(arguments,1))});g(t.prototype,"getPlotLinePath",function(b,c,g,n,l,p){var f=this,m=this.isLinked&&!this.series?this.linkedParent.series:this.series,k=f.chart,r=k.renderer,t= | ||
f.left,v=f.top,u,B,y,w,x=[],A=[],z,C;if("colorAxis"===f.coll)return b.apply(this,[].slice.call(arguments,1));A=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=f.options[b];return q(a)?[k[b][a]]:G(a)?[k.get(a)]:e(m,function(a){return a[b]})}(f.coll);H(f.isXAxis?k.yAxis:k.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?k[b][a.options[b]]:k[b][0];f===b&&A.push(a)}});z=A.length?[]:[f.isXAxis?k.yAxis[0]:k.xAxis[0]];H(A,function(b){-1!== | ||
h(b,z)||a.find(z,function(a){return a.pos===b.pos&&a.len&&b.len})||z.push(b)});C=d(p,f.translate(c,null,null,n));q(C)&&(f.horiz?H(z,function(a){var b;B=a.pos;w=B+a.len;u=y=Math.round(C+f.transB);if(u<t||u>t+f.width)l?u=y=Math.min(Math.max(t,u),t+f.width):b=!0;b||x.push("M",u,B,"L",y,w)}):H(z,function(a){var b;u=a.pos;y=u+a.len;B=w=Math.round(v+f.height-C);if(B<v||B>v+f.height)l?B=w=Math.min(Math.max(v,B),f.top+f.height):b=!0;b||x.push("M",u,B,"L",y,w)}));return 0<x.length?r.crispPolyLine(x,g||1): | ||
null});t.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};p.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/ | ||
2);return a};g(t.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});g(t.prototype,"drawCrosshair",function(a,b,c){var e,f;a.call(this,b,c);if(F(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var g=this.options.crosshair.label,h=this.horiz;e=this.opposite;f=this.left;var m=this.top,k=this.crossLabel,l,p=g.format,q="",t="inside"===this.options.tickPosition,r=!1!==this.crosshair.snap,u=0;b||(b=this.cross&& | ||
f.left,v=f.top,u,B,y,w,x=[],A=[],z,C;if("xAxis"!==f.coll&&"yAxis"!==f.coll)return b.apply(this,[].slice.call(arguments,1));A=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=f.options[b];return q(a)?[k[b][a]]:G(a)?[k.get(a)]:e(m,function(a){return a[b]})}(f.coll);H(f.isXAxis?k.yAxis:k.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?k[b][a.options[b]]:k[b][0];f===b&&A.push(a)}});z=A.length?[]:[f.isXAxis?k.yAxis[0]:k.xAxis[0]]; | ||
H(A,function(b){-1!==h(b,z)||a.find(z,function(a){return a.pos===b.pos&&a.len&&b.len})||z.push(b)});C=d(p,f.translate(c,null,null,n));q(C)&&(f.horiz?H(z,function(a){var b;B=a.pos;w=B+a.len;u=y=Math.round(C+f.transB);if(u<t||u>t+f.width)l?u=y=Math.min(Math.max(t,u),t+f.width):b=!0;b||x.push("M",u,B,"L",y,w)}):H(z,function(a){var b;u=a.pos;y=u+a.len;B=w=Math.round(v+f.height-C);if(B<v||B>v+f.height)l?B=w=Math.min(Math.max(v,B),f.top+f.height):b=!0;b||x.push("M",u,B,"L",y,w)}));return 0<x.length?r.crispPolyLine(x, | ||
g||1):null});t.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};p.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+ | ||
b%2/2);return a};g(t.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});g(t.prototype,"drawCrosshair",function(a,b,c){var e,f;a.call(this,b,c);if(F(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var g=this.options.crosshair.label,h=this.horiz;e=this.opposite;f=this.left;var m=this.top,k=this.crossLabel,l,p=g.format,q="",t="inside"===this.options.tickPosition,r=!1!==this.crosshair.snap,u=0;b||(b=this.cross&& | ||
this.cross.e);l=h?"center":e?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";k||(k=this.crossLabel=a.renderer.label(null,null,null,g.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:g.align||l,padding:d(g.padding,8),r:d(g.borderRadius,3),zIndex:2}).add(this.labelGroup));h?(l=r?c.plotX+f:b.chartX,m+=e?0:this.height):(l=e?this.width+f:0,m=r?c.plotY+m:b.chartY);p||g.formatter||(this.isDatetimeAxis&& | ||
@@ -122,0 +122,0 @@ (q="%b %d, %Y"),p="{value"+(q?":"+q:"")+"}");b=r?c[this.isXAxis?"x":"y"]:this.toValue(h?b.chartX:b.chartY);k.attr({text:p?I(p,{value:b}):g.formatter.call(this,b),x:l,y:m,visibility:"visible"});b=k.getBBox();if(h){if(t&&!e||!t&&e)m=k.y-b.height}else m=k.y-b.height/2;h?(e=f-b.x,f=f+this.width-b.x):(e="left"===this.labelAlign?f:0,f="right"===this.labelAlign?f+this.width:a.chartWidth);k.translateX<e&&(u=e-k.translateX);k.translateX+b.width>=f&&(u=-(k.translateX+b.width-f));k.attr({x:l+u,y:m,anchorX:h? |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2014 Highsoft AS |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2014 Highsoft AS |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
X-range series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* X-range series | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Accessibility module | ||
@@ -11,3 +11,3 @@ | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(e){function q(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function z(a){for(var c=a.childNodes.length;c--;)a.appendChild(a.childNodes[c])}function k(a){var c;a&&a.onclick&&l.createEvent&&(c=l.createEvent("Events"),c.initEvent("click",!0,!1),a.onclick(c))}var y=e.win,l=y.document, | ||
g=e.each,A=e.erase,v=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
g=e.each,A=e.erase,u=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
"boxes"],arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
@@ -18,33 +18,33 @@ "data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},D={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
function(){var a=this.chart.options.accessibility,c=this.points&&this.points.length&&this.points[0].graphic&&this.points[0].graphic.element,d=c&&c.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===c&&z(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(b){b.graphic&&(b.graphic.element.setAttribute("role","img"),b.graphic.element.setAttribute("tabindex","-1"),b.graphic.element.setAttribute("aria-label", | ||
a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1=== | ||
this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f= | ||
c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description? | ||
" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&&d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments, | ||
1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),v(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart."; | ||
if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b=0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+ | ||
c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName||a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label", | ||
"Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1; | ||
if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation.skipNullPoints||b.series.options.skipKeyboardNavigation?(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&& | ||
(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus();if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c= | ||
this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx= | ||
a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap; | ||
this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex=0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex]; | ||
9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39===a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c= | ||
b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0,d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&& | ||
d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){k(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&&!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu(); | ||
if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+=c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus(); | ||
a.setState(2)}],[[13,32],function(){k(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx= | ||
0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&k(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role", | ||
"button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!==b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&& | ||
b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){k(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return b.legend&&b.legend.allItems&&!(b.colorAxis&&b.colorAxis.length)}, | ||
init:function(a){g(b.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex","0");v(b.renderTo,"keydown",d);v(b,"destroy",function(){B(b.renderTo, | ||
"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=l.createElement("div"),k=l.createElement("h4"),n=l.createElement("a"),t=l.createElement("h4"),u={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]||r["default"];m.setAttribute("id",a);m.setAttribute("role","region"); | ||
m.setAttribute("aria-label","Chart screen reader information.");m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+ | ||
(e.chart.typeDescription||d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick=g.onTableAnchorClick||function(){d.viewData();l.getElementById(c).focus()},k.appendChild(n),m.appendChild(k));t.innerHTML= | ||
"Chart graphic.";d.renderTo.insertBefore(t,d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,t.style,u);w(!0,m.style,u)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=l.createElementNS("http://www.w3.org/2000/svg","title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0],m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+ | ||
a.index,t="highcharts-information-region-"+a.index,u=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(u);b.id=r;k.parentNode.insertBefore(b,k);a.renderTo.setAttribute("role","region");a.container.setAttribute("aria-details",t);a.renderTo.setAttribute("aria-label","Interactive chart. "+u+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&&a.exportSVGElements[0].element){var v= | ||
a.exportSVGElements[0].element.onclick,b=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){v.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region");f.setAttribute("aria-label","Chart export menu"); | ||
b.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(t,n);d.keyboardNavigation.enabled&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a,b,c){if(!a)return"Category"; | ||
if(a instanceof e.Axis)return a.options.title&&a.options.title.text||(a.isDatetimeAxis?"DateTime":"Category");var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+u+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this, | ||
Array.prototype.slice.call(arguments,1));var b=l.getElementById(n),c=b.getElementsByTagName("thead")[0],d=b.getElementsByTagName("tbody")[0],e=c.firstChild.children,f="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",h,k;b.setAttribute("tabindex","-1");g(d.children,function(a){h=a.firstChild;k=l.createElement("th");k.setAttribute("scope","row");k.innerHTML=h.innerHTML;h.parentNode.replaceChild(k,h)});g(e,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});p.length&&(g(p,function(a){f+='\x3cth scope\x3d"col" colspan\x3d"'+ | ||
a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",f))}})}})})(q)}); | ||
b.series.options.pointDescriptionFormatter&&b.series.options.pointDescriptionFormatter(b)||a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role",this.options.exposeElementToA11y?"img":"region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString= | ||
function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1===this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription(): | ||
"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f=c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category|| | ||
this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description?" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&& | ||
d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),u(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&& | ||
this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart.";if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b= | ||
0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName|| | ||
a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label","Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint= | ||
function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1;if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation.skipNullPoints||b.series.options.skipKeyboardNavigation? | ||
(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&&(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus(); | ||
if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c=this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem= | ||
function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx=a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout(); | ||
this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap;this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex= | ||
0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39=== | ||
a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c=b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0, | ||
d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&&d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){k(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&& | ||
!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu();if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+= | ||
c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus();a.setState(2)}],[[13,32],function(){k(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label", | ||
"Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx=0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&k(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons, | ||
function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!== | ||
b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&&b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){k(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]], | ||
{validate:function(){return b.legend&&b.legend.allItems&&!(b.colorAxis&&b.colorAxis.length)},init:function(a){g(b.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex", | ||
"0");u(b.renderTo,"keydown",d);u(b,"destroy",function(){B(b.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=l.createElement("div"),k=l.createElement("h4"),n=l.createElement("a"),v=l.createElement("h4"),t={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]|| | ||
r["default"];m.setAttribute("id",a);m.setAttribute("role","region");m.setAttribute("aria-label","Chart screen reader information.");m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+ | ||
(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+(e.chart.typeDescription||d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick= | ||
g.onTableAnchorClick||function(){d.viewData();l.getElementById(c).focus()},k.appendChild(n),m.appendChild(k));v.innerHTML="Chart graphic.";d.renderTo.insertBefore(v,d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,v.style,t);w(!0,m.style,t)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=l.createElementNS("http://www.w3.org/2000/svg","title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0], | ||
m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+a.index,v="highcharts-information-region-"+a.index,t=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(t);b.id=r;k.parentNode.insertBefore(b,k);a.renderTo.setAttribute("role","region");a.renderTo.setAttribute("aria-label","Interactive chart. "+t+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&& | ||
a.exportSVGElements[0].element){var u=a.exportSVGElements[0].element.onclick,b=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){u.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region"); | ||
f.setAttribute("aria-label","Chart export menu");b.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(v,n);d.keyboardNavigation.enabled&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a, | ||
b,c){if(!a)return"Category";if(a instanceof e.Axis)return a.options.title&&a.options.title.text||(a.isDatetimeAxis?"DateTime":"Category");var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+t+"\x3c/caption\x3e")});e.wrap(a,"viewData", | ||
function(a){if(!this.dataTableDiv){a.apply(this,Array.prototype.slice.call(arguments,1));var b=l.getElementById(n),c=b.getElementsByTagName("thead")[0],d=b.getElementsByTagName("tbody")[0],e=c.firstChild.children,f="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",h,k;b.setAttribute("tabindex","-1");g(d.children,function(a){h=a.firstChild;k=l.createElement("th");k.setAttribute("scope","row");k.innerHTML=h.innerHTML;h.parentNode.replaceChild(k,h)});g(e,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")}); | ||
p.length&&(g(p,function(a){f+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",f))}})}})})(q)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Accessibility module | ||
@@ -161,3 +161,7 @@ * | ||
point.graphic.element.setAttribute('tabindex', '-1'); | ||
point.graphic.element.setAttribute('aria-label', a11yOptions.pointDescriptionFormatter && a11yOptions.pointDescriptionFormatter(point) || | ||
point.graphic.element.setAttribute('aria-label', | ||
point.series.options.pointDescriptionFormatter && | ||
point.series.options.pointDescriptionFormatter(point) || | ||
a11yOptions.pointDescriptionFormatter && | ||
a11yOptions.pointDescriptionFormatter(point) || | ||
point.buildPointInfoString()); | ||
@@ -169,3 +173,6 @@ } | ||
if (this.chart.series.length > 1 || a11yOptions.describeSingleSeries) { | ||
seriesEl.setAttribute('role', 'region'); | ||
seriesEl.setAttribute( | ||
'role', | ||
this.options.exposeElementToA11y ? 'img' : 'region' | ||
); | ||
seriesEl.setAttribute('tabindex', '-1'); | ||
@@ -419,3 +426,3 @@ seriesEl.setAttribute('aria-label', a11yOptions.seriesDescriptionFormatter && a11yOptions.seriesDescriptionFormatter(this) || | ||
this.options.accessibility.keyboardNavigation.skipNullPoints || | ||
newPoint.series.options.skipKeyboardNavigation // docs | ||
newPoint.series.options.skipKeyboardNavigation | ||
) { | ||
@@ -1006,3 +1013,3 @@ this.highlightedPoint = newPoint; | ||
chart.renderTo.setAttribute('role', 'region'); | ||
chart.container.setAttribute('aria-details', hiddenSectionId); | ||
//chart.container.setAttribute('aria-details', hiddenSectionId); // JAWS currently doesn't handle this too well | ||
chart.renderTo.setAttribute('aria-label', 'Interactive chart. ' + chartTitle + | ||
@@ -1093,3 +1100,3 @@ '. Use up and down arrows to navigate with most screen readers.'); | ||
H.wrap(chart, 'viewData', function(proceed) { | ||
if (!this.insertedTable) { | ||
if (!this.dataTableDiv) { | ||
proceed.apply(this, Array.prototype.slice.call(arguments, 1)); | ||
@@ -1096,0 +1103,0 @@ |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Boost module | ||
@@ -11,3 +11,3 @@ | ||
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(d){function p(a,b,c,g,e){e=e||0;g=g||5E4;for(var d=e+g,f=!0;f&&e<d&&e<a.length;)f=b(a[e],e),e+=1;f&&(e<a.length?setTimeout(function(){p(a,b,c,g,e)}):c&&c())}function x(a){return a.series.length>=((a.options.boost?a.options.boost.seriesThreshold:0)||a.options.chart.seriesBoostThreshold||10)}var A=d.win.document,Z=function(){},aa=d.Color,m=d.Series,k=d.seriesTypes,w=d.each,B=d.extend,y=d.addEvent, | ||
ba=d.fireEvent,r=d.isNumber,ca=d.merge,da=d.pick,n=d.wrap,L;d.initCanvasBoost=function(){d.seriesTypes.heatmap&&d.wrap(d.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.getContext();a?(w(this.points,function(b){var c=b.plotY;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,b=b.pointAttr&&b.pointAttr[""]||b.series.pointAttribs(b),a.fillStyle=b.fill,a.fillRect(c.x,c.y,c.width,c.height))}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, \x3cbr\x3eplease use a modern browser")}); | ||
ba=d.fireEvent,r=d.isNumber,ca=d.merge,da=d.pick,n=d.wrap,L;d.initCanvasBoost=function(){d.seriesTypes.heatmap&&d.wrap(d.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.getContext();a?(w(this.points,function(b){var c=b.plotY;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,b=b.series.pointAttribs(b),a.fillStyle=b.fill,a.fillRect(c.x,c.y,c.width,c.height))}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, \x3cbr\x3eplease use a modern browser")}); | ||
d.extend(m.prototype,{directTouch:!1,pointRange:0,allowDG:!1,hasExtremes:function(a){var b=this.options,c=this.xAxis&&this.xAxis.options,g=this.yAxis&&this.yAxis.options;return b.data.length>(b.boostThreshold||Number.MAX_VALUE)&&r(g.min)&&r(g.max)&&(!a||r(c.min)&&r(c.max))},destroyGraphics:function(){var a=this,b=this.points,c,g;if(b)for(g=0;g<b.length;g+=1)(c=b[g])&&c.graphic&&(c.graphic=c.graphic.destroy());w(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},getContext:function(){var a= | ||
@@ -14,0 +14,0 @@ this.chart,b=a.chartWidth,c=a.chartHeight,g=this.group,e=this,d,f=function(a,c,b,e,g,d,f){a.call(this,b,c,e,g,d,f)};x(a)&&(e=a,g=a.seriesGroup);d=e.ctx;e.canvas||(e.canvas=A.createElement("canvas"),e.image=a.renderer.image("",0,0,b,c).add(g),e.ctx=d=e.canvas.getContext("2d"),a.inverted&&w(["moveTo","lineTo","rect","arc"],function(a){n(d,a,f)}),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect));e.canvas.width!==b&&(e.canvas.width=b);e.canvas.height!== |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Boost module | ||
@@ -138,4 +138,6 @@ * | ||
pointAttr = (point.pointAttr && point.pointAttr['']) || point.series.pointAttribs(point); | ||
pointAttr = point.series.pointAttribs(point); | ||
ctx.fillStyle = pointAttr.fill; | ||
@@ -142,0 +144,0 @@ ctx.fillRect(shapeArgs.x, shapeArgs.y, shapeArgs.width, shapeArgs.height); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Boost module | ||
@@ -10,29 +10,29 @@ | ||
*/ | ||
(function(A){"object"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(h){function z(a){return a.series.length>=G(a.options.boost&&a.options.boost.seriesThreshold,10)}function B(a){function c(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;C(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}return z(a.chart)||c(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold|| | ||
Number.MAX_VALUE)}function A(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function e(b){return a.getUniformLocation(l,b)}var d=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),f=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!d||!f)return l=!1;l=a.createProgram();a.attachShader(l,d);a.attachShader(l,f);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=e("uPMatrix");n=e("pSize");I=e("fillColor");y=e("isBubble");k=e("bubbleSizeAbs");t=e("bubbleSizeByArea");D=e("uSampler");b=e("skipTranslation");p=e("isCircle");g=e("isInverted");return!0}function f(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,n,I,y,k,t,b,p,g,D;a&&d();return{psUniform:function(){return n},pUniform:function(){return h},fillColorUniform:function(){return I},setBubbleUniforms:function(b,c,e){var d= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=G(d.zMin,Math.min(l,Math.max(c,!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),h=G(d.zMax,Math.max(h,e)),a.uniform1i(y,1),a.uniform1i(p,1),a.uniform1i(t,"width"!==b.options.sizeBy),a.uniform1i(k,b.options.sizeByAbsoluteValue),f("bubbleZMin",l),f("bubbleZMax",h),f("bubbleZThreshold",b.options.zThreshold),f("bubbleMinSize",b.minPxSize),f("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:f,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(I,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(n,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(D,0)},setDrawAsCircle:function(b){a.uniform1i(p,b?1:0)},reset:function(){a.uniform1i(y,0);a.uniform1i(p,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var f=!1,e= | ||
!1,l=d||2,h=!1,n=0,g;return{destroy:function(){f&&a.deleteBuffer(f)},bind:function(){if(!f)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,k,t){g=d||[];if(!(g&&0!==g.length||h))return f=!1;l=t||l;f&&a.deleteBuffer(f);f=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,f);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),k);a.enableVertexAttribArray(e);return!0},render:function(c,e,d){var b=h?h.length:g.length;if(!f||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!e||e>b)e=b;a.drawArrays(a[(d||"points").toUpperCase()],c/l,(e-c)/l);return!0},allocate:function(a){n=-1;h=new Float32Array(4*a)},push:function(a,c,e,b){h&&(h[++n]=a,h[++n]=c,h[++n]=e,h[++n]=b)}}}function fa(a){function c(a){var b,c;return B(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:N[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function f(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function e(a,b,e,d,f){c(f);q.usePreallocated?t.push(a,b,e?1:0,d||1):(D.push(a),D.push(b),D.push(e?1:0),D.push(d||1))}function d(a,b,d,f,v){c(v);e(a+d,b);c(v);e(a,b);c(v);e(a,b+f);c(v);e(a,b+f);c(v);e(a+d,b+f);c(v);e(a+d,b)}function f(a){q.useGPUTranslations||(b.skipTranslation=!0,a.x=B.toPixels(a.x,!0),a.y=F.toPixels(a.y,!0));e(a.x,a.y,0,2)}var v=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),k=a.chart,m=a.options,l=!!m.stacking,g=m.data,n=a.xAxis.getExtremes(),p=n.min,u=n.max,n=a.yAxis.getExtremes(),r=n.min,z=n.max,n=a.xData||m.xData||a.processedXData,w=a.yData||m.yData||a.processedYData,y=a.zData||m.zData||a.processedZData,F=a.yAxis,B=a.xAxis,L=!n||0===n.length,x=a.points||!1,I=!1,E,J,K,H=l?a.data:n||g,A={x:Number.MIN_VALUE,y:0},R={x:Number.MIN_VALUE,y:0};m.boostData&&0<m.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,x&&0<x.length?(b.skipTranslation= | ||
!0,b.drawMode="triangles",x[0].node&&x[0].node.levelDynamic&&x.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}),C(x,function(b){var c=b.plotY,e;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,e=b.series.pointAttribs(b),b=e["stroke-width"]||0,J=h.color(e.fill).rgba,J[0]/=255,J[1]/=255,J[2]/=255,"treemap"===a.type&&(b=b||1,K=h.color(e.stroke).rgba,K[0]/=255,K[1]/=255,K[2]/=255,d(c.x,c.y,c.width,c.height, | ||
K),b/=2),d(c.x+b,c.y+b,c.width-2*b,c.height-2*b,J))})):(C(H,function(c,d){var f,m,h,n=!1,P=!1,g=!1,Y=!1,ga=N[a.type],t=!1,x=!0;if("undefined"===typeof k.index)return!1;L?(f=c[0],m=c[1],H[d+1]&&(P=H[d+1][0]),H[d-1]&&(n=H[d-1][0]),3<=c.length&&(h=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,m=w[d],H[d+1]&&(P=H[d+1]),H[d-1]&&(n=H[d-1]),y&&y.length&&(h=y[d],y[d]>b.zMax&&(b.zMax=y[d]),y[d]<b.zMin&&(b.zMin=y[d])));P&&P>=p&&P<=u&&(g=!0);n&&n>=p&&n<=u&&(Y=!0);v?(L&&(m=c.slice(1,3)),m= | ||
m[1]):l&&(f=c.x,m=c.stackY);a.requireSorting||(x=m>=r&&m<=z);f>u&&R.x<u&&(R.x=f,R.y=m);f<p&&A.x<p&&(A.x=f,A.y=m);if(0===m||m&&x)if(f>=p&&f<=u&&(t=!0),t||g||Y)q.useGPUTranslations||(b.skipTranslation=!0,f=B.toPixels(f,!0),m=F.toPixels(m,!0)),ga&&(E=0,0>m&&(E=m,m=0),q.useGPUTranslations||(E=F.toPixels(E,!0)),e(f,E,0,0,!1)),b.hasMarkers&&!1!==I&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-I))),e(f,m,0,"bubble"===a.type?h||1:2,!1),I=f}),I||(f(A),f(R))))}function e(){u=[];x.data=D= | ||
[];z=[]}function l(a){k&&(k.setUniform("xAxisTrans",a.transA),k.setUniform("xAxisMin",a.min),k.setUniform("xAxisMinPad",a.minPixelPadding),k.setUniform("xAxisPointRange",a.pointRange),k.setUniform("xAxisLen",a.len),k.setUniform("xAxisPos",a.pos),k.setUniform("xAxisCVSCoord",!a.horiz))}function g(a){k&&(k.setUniform("yAxisTrans",a.transA),k.setUniform("yAxisMin",a.min),k.setUniform("yAxisMinPad",a.minPixelPadding),k.setUniform("yAxisPointRange",a.pointRange),k.setUniform("yAxisLen",a.len),k.setUniform("yAxisPos", | ||
a.pos),k.setUniform("yAxisCVSCoord",!a.horiz))}function n(a,b){k.setUniform("hasThreshold",a);k.setUniform("translatedThreshold",b)}function r(c){if(c)p=c.chartWidth||800,F=c.chartHeight||400;else return!1;if(!b||!p||!F)return!1;q.timeRendering&&console.time("gl rendering");k.bind();b.viewport(0,0,p,F);k.setPMatrix([2/p,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1]);1<q.lineWidth&&!h.isMS&&b.lineWidth(q.lineWidth);t.build(x.data,"aVertexPosition",4);t.bind();w&&(b.bindTexture(b.TEXTURE_2D,E),k.setTexture(E)); | ||
k.setInverted(c.options.chart?c.options.chart.inverted:!1);C(u,function(a,c){var e=a.series.options,d=e.threshold,f=Q(d),d=a.series.yAxis.getThreshold(d),m=G(e.marker?e.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((e.marker?e.marker.radius:10)||10)),v=a.series.fillOpacity?(new Z(a.series.color)).setOpacity(G(e.fillOpacity,.85)).get():a.series.color;t.bind();e.colorByPoint&&(v=a.series.chart.options.colors[c]);v=h.color(v).rgba;q.useAlpha||(v[3]=1);"add"===e.boostBlending? | ||
(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===e.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===e.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);k.reset();0<a.colorData.length&&(k.setUniform("hasColor",1),c=X(b,k),c.build(a.colorData,"aColor",4),c.bind());k.setColor(v);l(a.series.xAxis);g(a.series.yAxis);n(f,d);"points"===a.drawMode&&(e.marker&&e.marker.radius? | ||
k.setPointSize(2*e.marker.radius):k.setPointSize(1));k.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&k.setBubbleUniforms(a.series,a.zMin,a.zMax);k.setDrawAsCircle(ha[a.series.type]&&w||!1);t.render(a.from,a.to,a.drawMode);a.hasMarkers&&m&&(e.marker&&e.marker.radius?k.setPointSize(2*e.marker.radius):k.setPointSize(10),k.setDrawAsCircle(!0),t.render(a.from,a.to,"POINTS"))});t.destroy();q.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function y(a){d();if(a.renderer.forExport)return r(a); | ||
L?r(a):setTimeout(function(){y(a)},1)}var k=!1,t=!1,b=!1,p=0,F=0,D=!1,z=!1,w=!1,x={},L=!1,u=[],M=U.createElement("canvas"),O=M.getContext("2d"),E,N={column:!0,area:!0},ha={scatter:!0,bubble:!0},q={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1};return x={allocateBufferForSingleSeries:function(a){var b=0;q.usePreallocated&&(B(a)&&(b=c(a)),t.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length- | ||
1].to=D.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=z.length));q.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:D.length,markerFrom:z.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]|| | ||
"line_strip"});f(a,u[u.length-1]);q.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(p!==a||b!==b)p=a,F=b,k.bind(),k.setPMatrix([2/p,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return L},setThreshold:n,init:function(a,c){var d=0,f=["webgl","experimental-webgl","moz-webgl","webkit-3d"];L=!1;if(!a)return!1;for(q.timeSetup&&console.time("gl setup");d<f.length&&!(b=a.getContext(f[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA, | ||
b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);k=A(b);t=X(b,k);w=!1;E=b.createTexture();M.width=512;M.height=512;O.fillStyle="#FFF";O.beginPath();O.arc(256,256,256,0,2*Math.PI);O.fill();try{b.bindTexture(b.TEXTURE_2D,E),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),w=!0}catch(na){}L=!0;q.timeSetup&&console.timeEnd("gl setup");return!0},render:y,settings:q,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:D,gl:function(){return b},allocateBuffer:function(a){var b=0;q.usePreallocated&&(C(a.series,function(a){B(a)&&(b+=c(a))}),t.allocate(b))},destroy:function(){t.destroy();k.destroy()},setOptions:function(a){ia(!0,q,a)}}}function aa(a, | ||
c){var d=a.chartWidth,f=a.chartHeight,e=a,l=a.seriesGroup||c.group,g=function(a,e,d,f,h,b,l){a.call(c,d,e,f,h,b,l)},e=z(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,f).add(l),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect),e.inverted&&C(["moveTo","lineTo","rect","arc"],function(a){r(!1,a,g)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(l),e.markerGroup.translate(c.xAxis.pos,c.yAxis.pos))); | ||
e.canvas.width=d;e.canvas.height=f;e.image.attr({x:0,y:0,width:d,height:f,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=fa(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}),e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,f);return e.ogl}function ba(a,c,d){a&&c.image&&c.canvas&&!z(d||c.chart)&&a.render(d||c.chart)}function ca(a, | ||
c){a&&c.image&&c.canvas&&!z(c.chart)&&a.allocateBufferForSingleSeries(c)}function S(a,c,d,f,e,h){e=e||0;f=f||5E4;for(var l=e+f,g=!0;g&&e<l&&e<a.length;)g=c(a[e],e),++e;g&&(e<a.length?h?S(a,c,d,f,e,h):T.requestAnimationFrame?T.requestAnimationFrame(function(){S(a,c,d,f,e)}):setTimeout(function(){S(a,c,d,f,e)}):d&&d())}function ja(a){if(!B(this))return a.call(this);if(a=aa(this.chart,this))ca(a,this),a.pushSeries(this);ba(a,this)}var T=h.win,U=T.document,ka=function(){},Z=h.Color,w=h.Series,g=h.seriesTypes, | ||
C=h.each,da=h.extend,ea=h.addEvent,la=h.fireEvent,ma=h.grep,Q=h.isNumber,ia=h.merge,G=h.pick,r=h.wrap,V=h.getOptions().plotOptions,W;Z.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc", | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(h){function x(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;C(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}function z(a){var c=0,d;if(1<a.series.length)for(var f=0;f<a.series.length;f++)d=a.series[f],x(d.processedXData,d.options.data,d.points)>=(d.options.boostThreshold||Number.MAX_VALUE)&&c++;return 5< | ||
c||a.series.length>=G(a.options.boost&&a.options.boost.seriesThreshold,50)}function A(a){return z(a.chart)||x(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold||Number.MAX_VALUE)}function fa(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function d(b){return a.getUniformLocation(l,b)}var f=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),e=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!f||!e)return l=!1;l=a.createProgram();a.attachShader(l,f);a.attachShader(l,e);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=d("uPMatrix");n=d("pSize");J=d("fillColor");H=d("isBubble");k=d("bubbleSizeAbs");t=d("bubbleSizeByArea");B=d("uSampler");b=d("skipTranslation");q=d("isCircle");g=d("isInverted");return!0}function f(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,n,J,H,k,t,b,q,g,B;a&&d();return{psUniform:function(){return n},pUniform:function(){return h},fillColorUniform:function(){return J},setBubbleUniforms:function(b,c,d){var e= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=G(e.zMin,Math.min(l,Math.max(c,!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),h=G(e.zMax,Math.max(h,d)),a.uniform1i(H,1),a.uniform1i(q,1),a.uniform1i(t,"width"!==b.options.sizeBy),a.uniform1i(k,b.options.sizeByAbsoluteValue),f("bubbleZMin",l),f("bubbleZMax",h),f("bubbleZThreshold",b.options.zThreshold),f("bubbleMinSize",b.minPxSize),f("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:f,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(J,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(n,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(B,0)},setDrawAsCircle:function(b){a.uniform1i(q,b?1:0)},reset:function(){a.uniform1i(H,0);a.uniform1i(q,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var f=!1,e= | ||
!1,l=d||2,h=!1,n=0,g;return{destroy:function(){f&&a.deleteBuffer(f)},bind:function(){if(!f)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,k,t){g=d||[];if(!(g&&0!==g.length||h))return f=!1;l=t||l;f&&a.deleteBuffer(f);f=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,f);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),k);a.enableVertexAttribArray(e);return!0},render:function(c,d,e){var b=h?h.length:g.length;if(!f||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!d||d>b)d=b;a.drawArrays(a[(e||"points").toUpperCase()],c/l,(d-c)/l);return!0},allocate:function(a){n=-1;h=new Float32Array(4*a)},push:function(a,c,d,b){h&&(h[++n]=a,h[++n]=c,h[++n]=d,h[++n]=b)}}}function ga(a){function c(a){var b,c;return A(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:N[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function f(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function d(a,b,d,e,f){c(f);r.usePreallocated?t.push(a,b,d?1:0,e||1):(B.push(a),B.push(b),B.push(d?1:0),B.push(e||1))}function e(a,b,e,f,v){c(v);d(a+e,b);c(v);d(a,b);c(v);d(a,b+f);c(v);d(a,b+f);c(v);d(a+e,b+f);c(v);d(a+e,b)}function f(a){r.useGPUTranslations||(b.skipTranslation=!0,a.x=A.toPixels(a.x,!0),a.y=F.toPixels(a.y,!0));d(a.x,a.y,0,2)}var v=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),k=a.chart,m=a.options,l=!!m.stacking,g=m.data,n=a.xAxis.getExtremes(),q=n.min,u=n.max,n=a.yAxis.getExtremes(),w=n.min,z=n.max,n=a.xData||m.xData||a.processedXData,x=a.yData||m.yData||a.processedYData,p=a.zData||m.zData||a.processedZData,F=a.yAxis,A=a.xAxis,E=!n||0===n.length,y=a.points||!1,J=!1,H,K,L,I=l?a.data:n||g,D={x:Number.MIN_VALUE,y:0},R={x:Number.MIN_VALUE,y:0};m.boostData&&0<m.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,y&&0<y.length?(b.skipTranslation= | ||
!0,b.drawMode="triangles",y[0].node&&y[0].node.levelDynamic&&y.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}),C(y,function(b){var c=b.plotY,d;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,d=b.series.pointAttribs(b),b=d["stroke-width"]||0,K=h.color(d.fill).rgba,K[0]/=255,K[1]/=255,K[2]/=255,"treemap"===a.type&&(b=b||1,L=h.color(d.stroke).rgba,L[0]/=255,L[1]/=255,L[2]/=255,e(c.x,c.y,c.width,c.height, | ||
L),b/=2),e(c.x+b,c.y+b,c.width-2*b,c.height-2*b,K))})):(C(I,function(c,e){var f,m,h,n=!1,P=!1,g=!1,Y=!1,ha=N[a.type],t=!1,y=!0;if("undefined"===typeof k.index)return!1;E?(f=c[0],m=c[1],I[e+1]&&(P=I[e+1][0]),I[e-1]&&(n=I[e-1][0]),3<=c.length&&(h=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,m=x[e],I[e+1]&&(P=I[e+1]),I[e-1]&&(n=I[e-1]),p&&p.length&&(h=p[e],p[e]>b.zMax&&(b.zMax=p[e]),p[e]<b.zMin&&(b.zMin=p[e])));P&&P>=q&&P<=u&&(g=!0);n&&n>=q&&n<=u&&(Y=!0);v?(E&&(m=c.slice(1,3)),m= | ||
m[1]):l&&(f=c.x,m=c.stackY);a.requireSorting||(y=m>=w&&m<=z);f>u&&R.x<u&&(R.x=f,R.y=m);f<q&&D.x<q&&(D.x=f,D.y=m);if(0===m||m&&y)if(f>=q&&f<=u&&(t=!0),t||g||Y)r.useGPUTranslations||(b.skipTranslation=!0,f=A.toPixels(f,!0),m=F.toPixels(m,!0)),ha&&(H=0,0>m&&(H=m,m=0),r.useGPUTranslations||(H=F.toPixels(H,!0)),d(f,H,0,0,!1)),b.hasMarkers&&!1!==J&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-J))),d(f,m,0,"bubble"===a.type?h||1:2,!1),J=f}),J||(f(D),f(R))))}function e(){u=[];y.data=B= | ||
[];p=[]}function l(a){k&&(k.setUniform("xAxisTrans",a.transA),k.setUniform("xAxisMin",a.min),k.setUniform("xAxisMinPad",a.minPixelPadding),k.setUniform("xAxisPointRange",a.pointRange),k.setUniform("xAxisLen",a.len),k.setUniform("xAxisPos",a.pos),k.setUniform("xAxisCVSCoord",!a.horiz))}function g(a){k&&(k.setUniform("yAxisTrans",a.transA),k.setUniform("yAxisMin",a.min),k.setUniform("yAxisMinPad",a.minPixelPadding),k.setUniform("yAxisPointRange",a.pointRange),k.setUniform("yAxisLen",a.len),k.setUniform("yAxisPos", | ||
a.pos),k.setUniform("yAxisCVSCoord",!a.horiz))}function n(a,b){k.setUniform("hasThreshold",a);k.setUniform("translatedThreshold",b)}function w(c){if(c)q=c.chartWidth||800,F=c.chartHeight||400;else return!1;if(!b||!q||!F)return!1;r.timeRendering&&console.time("gl rendering");k.bind();b.viewport(0,0,q,F);k.setPMatrix([2/q,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1]);1<r.lineWidth&&!h.isMS&&b.lineWidth(r.lineWidth);t.build(y.data,"aVertexPosition",4);t.bind();x&&(b.bindTexture(b.TEXTURE_2D,D),k.setTexture(D)); | ||
k.setInverted(c.options.chart?c.options.chart.inverted:!1);C(u,function(a,c){var d=a.series.options,e=d.threshold,f=Q(e),e=a.series.yAxis.getThreshold(e),m=G(d.marker?d.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((d.marker?d.marker.radius:10)||10)),v=a.series.fillOpacity?(new Z(a.series.color)).setOpacity(G(d.fillOpacity,.85)).get():a.series.color;t.bind();d.colorByPoint&&(v=a.series.chart.options.colors[c]);v=h.color(v).rgba;r.useAlpha||(v[3]=1);"add"===d.boostBlending? | ||
(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===d.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===d.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);k.reset();0<a.colorData.length&&(k.setUniform("hasColor",1),c=X(b,k),c.build(a.colorData,"aColor",4),c.bind());k.setColor(v);l(a.series.xAxis);g(a.series.yAxis);n(f,e);"points"===a.drawMode&&(d.marker&&d.marker.radius? | ||
k.setPointSize(2*d.marker.radius):k.setPointSize(1));k.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&k.setBubbleUniforms(a.series,a.zMin,a.zMax);k.setDrawAsCircle(ia[a.series.type]&&x||!1);t.render(a.from,a.to,a.drawMode);a.hasMarkers&&m&&(d.marker&&d.marker.radius?k.setPointSize(2*d.marker.radius):k.setPointSize(10),k.setDrawAsCircle(!0),t.render(a.from,a.to,"POINTS"))});t.destroy();r.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function z(a){d();if(a.renderer.forExport)return w(a); | ||
E?w(a):setTimeout(function(){z(a)},1)}var k=!1,t=!1,b=!1,q=0,F=0,B=!1,p=!1,x=!1,y={},E=!1,u=[],M=U.createElement("canvas"),O=M.getContext("2d"),D,N={column:!0,area:!0},ia={scatter:!0,bubble:!0},r={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1};return y={allocateBufferForSingleSeries:function(a){var b=0;r.usePreallocated&&(A(a)&&(b=c(a)),t.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length- | ||
1].to=B.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=p.length));r.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:B.length,markerFrom:p.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]|| | ||
"line_strip"});f(a,u[u.length-1]);r.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(q!==a||b!==b)q=a,F=b,k.bind(),k.setPMatrix([2/q,0,0,0,0,-(2/F),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return E},setThreshold:n,init:function(a,c){var d=0,f=["webgl","experimental-webgl","moz-webgl","webkit-3d"];E=!1;if(!a)return!1;for(r.timeSetup&&console.time("gl setup");d<f.length&&!(b=a.getContext(f[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA, | ||
b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);k=fa(b);t=X(b,k);x=!1;D=b.createTexture();M.width=512;M.height=512;O.fillStyle="#FFF";O.beginPath();O.arc(256,256,256,0,2*Math.PI);O.fill();try{b.bindTexture(b.TEXTURE_2D,D),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),x=!0}catch(oa){}E=!0;r.timeSetup&&console.timeEnd("gl setup");return!0},render:z,settings:r,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:B,gl:function(){return b},allocateBuffer:function(a){var b=0;r.usePreallocated&&(C(a.series,function(a){A(a)&&(b+=c(a))}),t.allocate(b))},destroy:function(){t.destroy();k.destroy()},setOptions:function(a){ja(!0,r,a)}}}function aa(a, | ||
c){var d=a.chartWidth,f=a.chartHeight,e=a,l=a.seriesGroup||c.group,g=function(a,d,e,f,h,b,l){a.call(c,e,d,f,h,b,l)},e=z(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,f).add(l),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect),e.inverted&&C(["moveTo","lineTo","rect","arc"],function(a){w(!1,a,g)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(l),e.markerGroup.translate(c.xAxis.pos,c.yAxis.pos))); | ||
e.canvas.width=d;e.canvas.height=f;e.image.attr({x:0,y:0,width:d,height:f,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=ga(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}),e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,f);return e.ogl}function ba(a,c,d){a&&c.image&&c.canvas&&!z(d||c.chart)&&a.render(d||c.chart)}function ca(a, | ||
c){a&&c.image&&c.canvas&&!z(c.chart)&&a.allocateBufferForSingleSeries(c)}function S(a,c,d,f,e,h){e=e||0;f=f||5E4;for(var l=e+f,g=!0;g&&e<l&&e<a.length;)g=c(a[e],e),++e;g&&(e<a.length?h?S(a,c,d,f,e,h):T.requestAnimationFrame?T.requestAnimationFrame(function(){S(a,c,d,f,e)}):setTimeout(function(){S(a,c,d,f,e)}):d&&d())}function ka(a){if(!A(this))return a.call(this);if(a=aa(this.chart,this))ca(a,this),a.pushSeries(this);ba(a,this)}var T=h.win,U=T.document,la=function(){},Z=h.Color,p=h.Series,g=h.seriesTypes, | ||
C=h.each,da=h.extend,ea=h.addEvent,ma=h.fireEvent,na=h.grep,Q=h.isNumber,ja=h.merge,G=h.pick,w=h.wrap,V=h.getOptions().plotOptions,W;Z.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc", | ||
crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222", | ||
@@ -42,12 +42,12 @@ floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90", | ||
mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072", | ||
sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};w.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData|| | ||
!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c};r(w.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});r(w.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=ma(d.hoverPoints,function(a){return a.series=== | ||
c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});r(w.prototype,"getExtremes",function(a){if(!B(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments,1))});C("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});C(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&& | ||
("translate"===a||"generatePoints"===a);if(!B(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!z(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}r(w.prototype,a,c);"translate"===a&&(g.column&&r(g.column.prototype,a,c),g.arearange&&r(g.arearange.prototype,a,c),g.treemap&&r(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],f=!1;if("undefined"!== | ||
typeof T.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(f=c.getContext(d[a]),"undefined"!==typeof f&&null!==f)return!0}catch(e){}return!1})()?(r(w.prototype,"processData",function(a){B(this)&&"heatmap"!==this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(w.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c= | ||
sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};p.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData|| | ||
!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c};w(p.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});w(p.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=na(d.hoverPoints,function(a){return a.series=== | ||
c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});w(p.prototype,"getExtremes",function(a){if(!A(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments,1))});C("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});C(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&& | ||
("translate"===a||"generatePoints"===a);if(!A(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!z(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}w(p.prototype,a,c);"translate"===a&&(g.column&&w(g.column.prototype,a,c),g.arearange&&w(g.arearange.prototype,a,c),g.treemap&&w(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],f=!1;if("undefined"!== | ||
typeof T.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(f=c.getContext(d[a]),"undefined"!==typeof f&&null!==f)return!0}catch(e){}return!1})()?(w(p.prototype,"processData",function(a){A(this)&&"heatmap"!==this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(p.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c= | ||
this.options,d=this.xAxis&&this.xAxis.options,f=this.yAxis&&this.yAxis.options;return c.data.length>(c.boostThreshold||Number.MAX_VALUE)&&Q(f.min)&&Q(f.max)&&(!a||Q(d.min)&&Q(d.max))},destroyGraphics:function(){var a=this,c=this.points,d,f;if(c)for(f=0;f<c.length;f+=1)(d=c[f])&&d.graphic&&(d.graphic=d.graphic.destroy());C(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},renderCanvas:function(){var a=this,c=a.options||{},d=!1,f=a.chart,e=this.xAxis,h=this.yAxis,g=c.xData||a.processedXData, | ||
n=c.yData||a.processedYData,r=c.data,d=e.getExtremes(),y=d.min,k=d.max,d=h.getExtremes(),t=d.min,b=d.max,p={},w,D=!!a.sampling,A,B=!1!==c.enableMouseTracking,x=h.getThreshold(c.threshold),C=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,O=a.requireSorting,E=!g,N,G,q,v,m=function(a,b,c){W=a+","+b;B&&!p[W]&&(p[W]=!0,f.inverted&&(a=e.len-a,b=h.len-b),A.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=aa(f,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(), | ||
z(f)?this.markerGroup=f.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,f.seriesGroup),A=this.points=[],a.buildKDTree=ka,d&&(ca(d,this),d.pushSeries(a),ba(d,this,f)),S(u?a.data:g||r,function(a,c){var d,g,l,p="undefined"===typeof f.index,r=!0;if(!p&&(E?(d=a[0],g=a[1]):(d=a,g=n[c]),C?(E&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),O||(r=g>=t&&g<=b),null!==g&&d>=y&&d<=k&&r))if(a=Math.ceil(e.toPixels(d,!0)),D){if(void 0===q||a===w){C||(l=g);if(void 0===v||g>G)G= | ||
g,v=c;if(void 0===q||l<N)N=l,q=c}a!==w&&(void 0!==q&&(g=h.toPixels(G,!0),x=h.toPixels(N,!0),m(a,g,v),x!==g&&m(a,x,q)),q=v=void 0,w=a)}else g=Math.ceil(h.toPixels(g,!0)),m(a,g,c);return!p},function(){la(a,"renderedCanvas");a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},f.renderer.forExport?Number.MAX_VALUE:void 0)):!z(f)&&d&&(d.clear(),this.image.attr({href:""}))}}),C(["heatmap","treemap"],function(a){g[a]&&(r(g[a].prototype,"drawPoints",ja),g[a].prototype.directTouch= | ||
!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,r(g.bubble.prototype,"markerAttribs",function(a){return B(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill=!0,da(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),da(g.column.prototype,{fill:!0,sampling:!0}),r(w.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}), | ||
h.Chart.prototype.callbacks.push(function(a){ea(a,"predraw",function(){a.canvas&&a.ogl&&z(a)&&a.ogl.allocateBuffer(a);a.markerGroup&&a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});ea(a,"render",function(){a.ogl&&z(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost?h.initCanvasBoost():h.error(26)})(A)}); | ||
n=c.yData||a.processedYData,p=c.data,d=e.getExtremes(),w=d.min,k=d.max,d=h.getExtremes(),t=d.min,b=d.max,q={},x,B=!!a.sampling,A,C=!1!==c.enableMouseTracking,y=h.getThreshold(c.threshold),E=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,O=a.requireSorting,D=!g,N,G,r,v,m=function(a,b,c){W=a+","+b;C&&!q[W]&&(q[W]=!0,f.inverted&&(a=e.len-a,b=h.len-b),A.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=aa(f,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(), | ||
z(f)?this.markerGroup=f.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,f.seriesGroup),A=this.points=[],a.buildKDTree=la,d&&(ca(d,this),d.pushSeries(a),ba(d,this,f)),S(u?a.data:g||p,function(a,c){var d,g,l,p="undefined"===typeof f.index,q=!0;if(!p&&(D?(d=a[0],g=a[1]):(d=a,g=n[c]),E?(D&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),O||(q=g>=t&&g<=b),null!==g&&d>=w&&d<=k&&q))if(a=Math.ceil(e.toPixels(d,!0)),B){if(void 0===r||a===x){E||(l=g);if(void 0===v||g>G)G= | ||
g,v=c;if(void 0===r||l<N)N=l,r=c}a!==x&&(void 0!==r&&(g=h.toPixels(G,!0),y=h.toPixels(N,!0),m(a,g,v),y!==g&&m(a,y,r)),r=v=void 0,x=a)}else g=Math.ceil(h.toPixels(g,!0)),m(a,g,c);return!p},function(){ma(a,"renderedCanvas");a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},f.renderer.forExport?Number.MAX_VALUE:void 0)):!z(f)&&d&&(d.clear(),this.image.attr({href:""}))}}),C(["heatmap","treemap"],function(a){g[a]&&(w(g[a].prototype,"drawPoints",ka),g[a].prototype.directTouch= | ||
!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,w(g.bubble.prototype,"markerAttribs",function(a){return A(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill=!0,da(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),da(g.column.prototype,{fill:!0,sampling:!0}),w(p.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}), | ||
h.Chart.prototype.callbacks.push(function(a){ea(a,"predraw",function(){!z(a)&&a.didBoost&&(a.didBoost=!1,a.image&&a.image.attr({href:""}));a.canvas&&a.ogl&&z(a)&&(a.didBoost=!0,a.ogl.allocateBuffer(a));a.markerGroup&&a.xAxis&&0<a.xAxis.length&&a.yAxis&&0<a.yAxis.length&&a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});ea(a,"render",function(){a.ogl&&z(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost?h.initCanvasBoost():h.error(26)})(x)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Data module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Data module | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highcharts Drilldown module | ||
@@ -9,19 +9,18 @@ | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){function n(a,b,d){var c;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,c=1!==b[3]||1!==a[3],a=(c?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(c?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a}var z=f.noop,u=f.color,A=f.defaultOptions,h=f.each,p=f.extend,H=f.format,B=f.objectEach,C=f.pick, | ||
v=f.wrap,q=f.Chart,w=f.seriesTypes,D=w.pie,r=w.column,E=f.Tick,x=f.fireEvent,F=f.inArray,G=1;h(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n(u(this.start),u(this.end),this.pos),null,!0)}});p(A.lang,{drillUpText:"\u25c1 Back to {series.name}"});A.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500}, | ||
drillUpButton:{position:{align:"right",x:-10,y:10}}};f.SVGRenderer.prototype.Element.prototype.fadeIn=function(a){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:C(this.newOpacity,1)},a||{duration:250})};q.prototype.addSeriesAsDrilldown=function(a,b){this.addSingleSeriesAsDrilldown(a,b);this.applyDrilldown()};q.prototype.addSingleSeriesAsDrilldown=function(a,b){var d=a.series,c=d.xAxis,e=d.yAxis,g,l=[],k=[],t,m,y;y={color:a.color||d.color};this.drilldownLevels||(this.drilldownLevels= | ||
[]);t=d.options._levelNumber||0;(m=this.drilldownLevels[this.drilldownLevels.length-1])&&m.levelNumber!==t&&(m=void 0);b=p(p({_ddSeriesId:G++},y),b);g=F(a,d.points);h(d.chart.series,function(b){b.xAxis!==c||b.isDrilling||(b.options._ddSeriesId=b.options._ddSeriesId||G++,b.options._colorIndex=b.userOptions._colorIndex,b.options._levelNumber=b.options._levelNumber||t,m?(l=m.levelSeries,k=m.levelSeriesOptions):(l.push(b),k.push(b.options)))});a=p({levelNumber:t,seriesOptions:d.options,levelSeriesOptions:k, | ||
levelSeries:l,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?(new f.Color(u)).setOpacity(0).get():u,lowerSeriesOptions:b,pointOptions:d.options.data[g],pointIndex:g,oldExtremes:{xMin:c&&c.userMin,xMax:c&&c.userMax,yMin:e&&e.userMin,yMax:e&&e.userMax}},y);this.drilldownLevels.push(a);b=a.lowerSeries=this.addSeries(b,!1);b.options._levelNumber=t+1;c&&(c.oldPos=c.pos,c.userMin=c.userMax=null,e.userMin=e.userMax=null);d.type===b.type&&(b.animate=b.animateDrilldown||z,b.options.animation= | ||
!0)};q.prototype.applyDrilldown=function(){var a=this.drilldownLevels,b;a&&0<a.length&&(b=a[a.length-1].levelNumber,h(this.drilldownLevels,function(a){a.levelNumber===b&&h(a.levelSeries,function(a){a.options&&a.options._levelNumber===b&&a.remove(!1)})}));this.redraw();this.showDrillUpButton()};q.prototype.getDrilldownBackText=function(){var a=this.drilldownLevels;if(a&&0<a.length)return a=a[a.length-1],a.series=a.seriesOptions,H(this.options.lang.drillUpText,a)};q.prototype.showDrillUpButton=function(){var a= | ||
this,b=this.getDrilldownBackText(),d=a.options.drilldown.drillUpButton,c,e;this.drillUpButton?this.drillUpButton.attr({text:b}).align():(e=(c=d.theme)&&c.states,this.drillUpButton=this.renderer.button(b,null,null,function(){a.drillUp()},c,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,d.relativeTo||"plotBox"))};q.prototype.drillUp=function(){for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,c=b.length,e= | ||
a.series,g,l,k,f,m=function(b){var c;h(e,function(a){a.options._ddSeriesId===b._ddSeriesId&&(c=a)});c=c||a.addSeries(b,!1);c.type===k.type&&c.animateDrillupTo&&(c.animate=c.animateDrillupTo);b===l.seriesOptions&&(f=c)};c--;)if(l=b[c],l.levelNumber===d){b.pop();k=l.lowerSeries;if(!k.chart)for(g=e.length;g--;)if(e[g].options.id===l.lowerSeriesOptions.id&&e[g].options._levelNumber===d+1){k=e[g];break}k.xData=[];h(l.levelSeriesOptions,m);x(a,"drillup",{seriesOptions:l.seriesOptions});f.type===k.type&& | ||
(f.drilldownLevel=l,f.options.animation=a.options.drilldown.animation,k.animateDrillupFrom&&k.chart&&k.animateDrillupFrom(l));f.options._levelNumber=d;k.remove(!1);f.xAxis&&(g=l.oldExtremes,f.xAxis.setExtremes(g.xMin,g.xMax,!1),f.yAxis.setExtremes(g.yMin,g.yMax,!1))}x(a,"drillupall");this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[]};r.prototype.supportsDrilldown= | ||
!0;r.prototype.animateDrillupTo=function(a){if(!a){var b=this,d=b.drilldownLevel;h(this.points,function(b){var a=b.dataLabel;b.graphic&&b.graphic.hide();a&&(a.hidden="hidden"===a.attr("visibility"),a.hidden||(a.hide(),b.connector&&b.connector.hide()))});setTimeout(function(){b.points&&h(b.points,function(b,a){a=a===(d&&d.pointIndex)?"show":"fadeIn";var c="show"===a?!0:void 0,e=b.dataLabel;if(b.graphic)b.graphic[a](c);if(e&&!e.hidden&&(e[a](c),b.connector))b.connector[a](c)})},Math.max(this.chart.options.drilldown.animation.duration- | ||
50,0));this.animate=z}};r.prototype.animateDrilldown=function(a){var b=this,d=this.chart.drilldownLevels,c,e=this.chart.options.drilldown.animation,g=this.xAxis;a||(h(d,function(a){b.options._ddSeriesId===a.lowerSeriesOptions._ddSeriesId&&(c=a.shapeArgs,c.fill=a.color)}),c.x+=C(g.oldPos,g.pos)-g.pos,h(this.points,function(a){a.shapeArgs.fill=a.color;a.graphic&&a.graphic.attr(c).animate(p(a.shapeArgs,{fill:a.color||b.color}),e);a.dataLabel&&a.dataLabel.fadeIn(e)}),this.animate=null)};r.prototype.animateDrillupFrom= | ||
function(a){var b=this.chart.options.drilldown.animation,d=this.group,c=d!==this.chart.seriesGroup,e=this;h(e.trackerGroups,function(a){if(e[a])e[a].on("mouseover")});c&&delete this.group;h(this.points,function(e){var g=e.graphic,k=a.shapeArgs,h=function(){g.destroy();d&&c&&(d=d.destroy())};g&&(delete e.graphic,k.fill=a.color,b?g.animate(k,f.merge(b,{complete:h})):(g.attr(k),h()))})};D&&p(D.prototype,{supportsDrilldown:!0,animateDrillupTo:r.prototype.animateDrillupTo,animateDrillupFrom:r.prototype.animateDrillupFrom, | ||
animateDrilldown:function(a){var b=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=this.chart.options.drilldown.animation,c=b.shapeArgs,e=c.start,g=(c.end-e)/this.points.length;a||(h(this.points,function(a,k){var h=a.shapeArgs;c.fill=b.color;h.fill=a.color;if(a.graphic)a.graphic.attr(f.merge(c,{start:e+k*g,end:e+(k+1)*g}))[d?"animate":"attr"](h,d)}),this.animate=null)}});f.Point.prototype.doDrilldown=function(a,b,d){var c=this.series.chart,e=c.options.drilldown,g=(e.series||[]).length, | ||
f;c.ddDupes||(c.ddDupes=[]);for(;g--&&!f;)e.series[g].id===this.drilldown&&-1===F(this.drilldown,c.ddDupes)&&(f=e.series[g],c.ddDupes.push(this.drilldown));x(c,"drilldown",{point:this,seriesOptions:f,category:b,originalEvent:d,points:void 0!==b&&this.series.xAxis.getDDPoints(b).slice(0)},function(b){var c=b.point.series&&b.point.series.chart,d=b.seriesOptions;c&&d&&(a?c.addSingleSeriesAsDrilldown(b.point,d):c.addSeriesAsDrilldown(b.point,d))})};f.Axis.prototype.drilldownCategory=function(a,b){B(this.getDDPoints(a), | ||
function(d){d&&d.series&&d.series.visible&&d.doDrilldown&&d.doDrilldown(!0,a,b)});this.chart.applyDrilldown()};f.Axis.prototype.getDDPoints=function(a){var b=[];h(this.series,function(d){var c,e=d.xData,f=d.points;for(c=0;c<e.length;c++)if(e[c]===a&&d.options.data[c]&&d.options.data[c].drilldown){b.push(f?f[c]:!0);break}});return b};E.prototype.drillable=function(){var a=this.pos,b=this.label,d=this.axis,c="xAxis"===d.coll&&d.getDDPoints,e=c&&d.getDDPoints(a);c&&(b&&e.length?(b.drillable=!0,b.basicStyles|| | ||
(b.basicStyles=f.merge(b.styles)),b.addClass("highcharts-drilldown-axis-label").css(d.chart.options.drilldown.activeAxisLabelStyle).on("click",function(b){d.drilldownCategory(a,b)})):b&&b.drillable&&(b.styles={},b.css(b.basicStyles),b.on("click",null),b.removeClass("highcharts-drilldown-axis-label")))};v(E.prototype,"addLabel",function(a){a.call(this);this.drillable()});v(f.Point.prototype,"init",function(a,b,d,c){var e=a.call(this,b,d,c);c=(a=b.xAxis)&&a.ticks[c];e.drilldown&&f.addEvent(e,"click", | ||
function(a){b.xAxis&&!1===b.chart.options.drilldown.allowPointDrilldown?b.xAxis.drilldownCategory(e.x,a):e.doDrilldown(void 0,void 0,a)});c&&c.drillable();return e});v(f.Series.prototype,"drawDataLabels",function(a){var b=this.chart.options.drilldown.activeDataLabelStyle,d=this.chart.renderer;a.call(this);h(this.points,function(a){var c={};a.drilldown&&a.dataLabel&&("contrast"===b.color&&(c.color=d.getContrast(a.color||this.color)),a.dataLabel.addClass("highcharts-drilldown-data-label"),a.dataLabel.css(b).css(c))}, | ||
this)});var I=function(a){a.call(this);h(this.points,function(a){a.drilldown&&a.graphic&&(a.graphic.addClass("highcharts-drilldown-point"),a.graphic.css({cursor:"pointer"}))})};B(w,function(a){a.prototype.supportsDrilldown&&v(a.prototype,"drawTracker",I)})})(n)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){var n=f.noop,y=f.color,z=f.defaultOptions,h=f.each,p=f.extend,G=f.format,A=f.objectEach,B=f.pick,u=f.wrap,q=f.Chart,v=f.seriesTypes,C=v.pie,r=v.column,D=f.Tick,w=f.fireEvent,E=f.inArray,F=1;p(z.lang,{drillUpText:"\u25c1 Back to {series.name}"});z.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer", | ||
color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};f.SVGRenderer.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:B(this.newOpacity,1)},b||{duration:250})};q.prototype.addSeriesAsDrilldown=function(b,a){this.addSingleSeriesAsDrilldown(b,a);this.applyDrilldown()};q.prototype.addSingleSeriesAsDrilldown=function(b,a){var d=b.series,c=d.xAxis,e=d.yAxis,g, | ||
l=[],k=[],t,m,x;x={color:b.color||d.color};this.drilldownLevels||(this.drilldownLevels=[]);t=d.options._levelNumber||0;(m=this.drilldownLevels[this.drilldownLevels.length-1])&&m.levelNumber!==t&&(m=void 0);a=p(p({_ddSeriesId:F++},x),a);g=E(b,d.points);h(d.chart.series,function(a){a.xAxis!==c||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||F++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||t,m?(l=m.levelSeries,k=m.levelSeriesOptions):(l.push(a), | ||
k.push(a.options)))});b=p({levelNumber:t,seriesOptions:d.options,levelSeriesOptions:k,levelSeries:l,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?(new f.Color(y)).setOpacity(0).get():y,lowerSeriesOptions:a,pointOptions:d.options.data[g],pointIndex:g,oldExtremes:{xMin:c&&c.userMin,xMax:c&&c.userMax,yMin:e&&e.userMin,yMax:e&&e.userMax}},x);this.drilldownLevels.push(b);c&&c.names&&(c.names.length=0);a=b.lowerSeries=this.addSeries(a,!1);a.options._levelNumber=t+1;c&&(c.oldPos= | ||
c.pos,c.userMin=c.userMax=null,e.userMin=e.userMax=null);d.type===a.type&&(a.animate=a.animateDrilldown||n,a.options.animation=!0)};q.prototype.applyDrilldown=function(){var b=this.drilldownLevels,a;b&&0<b.length&&(a=b[b.length-1].levelNumber,h(this.drilldownLevels,function(b){b.levelNumber===a&&h(b.levelSeries,function(c){c.options&&c.options._levelNumber===a&&c.remove(!1)})}));this.redraw();this.showDrillUpButton()};q.prototype.getDrilldownBackText=function(){var b=this.drilldownLevels;if(b&&0< | ||
b.length)return b=b[b.length-1],b.series=b.seriesOptions,G(this.options.lang.drillUpText,b)};q.prototype.showDrillUpButton=function(){var b=this,a=this.getDrilldownBackText(),d=b.options.drilldown.drillUpButton,c,e;this.drillUpButton?this.drillUpButton.attr({text:a}).align():(e=(c=d.theme)&&c.states,this.drillUpButton=this.renderer.button(a,null,null,function(){b.drillUp()},c,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position, | ||
!1,d.relativeTo||"plotBox"))};q.prototype.drillUp=function(){for(var b=this,a=b.drilldownLevels,d=a[a.length-1].levelNumber,c=a.length,e=b.series,g,l,k,f,m=function(a){var c;h(e,function(b){b.options._ddSeriesId===a._ddSeriesId&&(c=b)});c=c||b.addSeries(a,!1);c.type===k.type&&c.animateDrillupTo&&(c.animate=c.animateDrillupTo);a===l.seriesOptions&&(f=c)};c--;)if(l=a[c],l.levelNumber===d){a.pop();k=l.lowerSeries;if(!k.chart)for(g=e.length;g--;)if(e[g].options.id===l.lowerSeriesOptions.id&&e[g].options._levelNumber=== | ||
d+1){k=e[g];break}k.xData=[];h(l.levelSeriesOptions,m);w(b,"drillup",{seriesOptions:l.seriesOptions});f.type===k.type&&(f.drilldownLevel=l,f.options.animation=b.options.drilldown.animation,k.animateDrillupFrom&&k.chart&&k.animateDrillupFrom(l));f.options._levelNumber=d;k.remove(!1);f.xAxis&&(g=l.oldExtremes,f.xAxis.setExtremes(g.xMin,g.xMax,!1),f.yAxis.setExtremes(g.yMin,g.yMax,!1))}w(b,"drillupall");this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align(); | ||
this.ddDupes.length=[]};r.prototype.supportsDrilldown=!0;r.prototype.animateDrillupTo=function(b){if(!b){var a=this,d=a.drilldownLevel;h(this.points,function(a){var c=a.dataLabel;a.graphic&&a.graphic.hide();c&&(c.hidden="hidden"===c.attr("visibility"),c.hidden||(c.hide(),a.connector&&a.connector.hide()))});setTimeout(function(){a.points&&h(a.points,function(a,b){b=b===(d&&d.pointIndex)?"show":"fadeIn";var c="show"===b?!0:void 0,e=a.dataLabel;if(a.graphic)a.graphic[b](c);if(e&&!e.hidden&&(e[b](c), | ||
a.connector))a.connector[b](c)})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=n}};r.prototype.animateDrilldown=function(b){var a=this,d=this.chart.drilldownLevels,c,e=this.chart.options.drilldown.animation,g=this.xAxis;b||(h(d,function(b){a.options._ddSeriesId===b.lowerSeriesOptions._ddSeriesId&&(c=b.shapeArgs,c.fill=b.color)}),c.x+=B(g.oldPos,g.pos)-g.pos,h(this.points,function(b){b.shapeArgs.fill=b.color;b.graphic&&b.graphic.attr(c).animate(p(b.shapeArgs,{fill:b.color|| | ||
a.color}),e);b.dataLabel&&b.dataLabel.fadeIn(e)}),this.animate=null)};r.prototype.animateDrillupFrom=function(b){var a=this.chart.options.drilldown.animation,d=this.group,c=d!==this.chart.seriesGroup,e=this;h(e.trackerGroups,function(a){if(e[a])e[a].on("mouseover")});c&&delete this.group;h(this.points,function(e){var g=e.graphic,k=b.shapeArgs,h=function(){g.destroy();d&&c&&(d=d.destroy())};g&&(delete e.graphic,k.fill=b.color,a?g.animate(k,f.merge(a,{complete:h})):(g.attr(k),h()))})};C&&p(C.prototype, | ||
{supportsDrilldown:!0,animateDrillupTo:r.prototype.animateDrillupTo,animateDrillupFrom:r.prototype.animateDrillupFrom,animateDrilldown:function(b){var a=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=this.chart.options.drilldown.animation,c=a.shapeArgs,e=c.start,g=(c.end-e)/this.points.length;b||(h(this.points,function(b,k){var h=b.shapeArgs;c.fill=a.color;h.fill=b.color;if(b.graphic)b.graphic.attr(f.merge(c,{start:e+k*g,end:e+(k+1)*g}))[d?"animate":"attr"](h,d)}),this.animate= | ||
null)}});f.Point.prototype.doDrilldown=function(b,a,d){var c=this.series.chart,e=c.options.drilldown,g=(e.series||[]).length,f;c.ddDupes||(c.ddDupes=[]);for(;g--&&!f;)e.series[g].id===this.drilldown&&-1===E(this.drilldown,c.ddDupes)&&(f=e.series[g],c.ddDupes.push(this.drilldown));w(c,"drilldown",{point:this,seriesOptions:f,category:a,originalEvent:d,points:void 0!==a&&this.series.xAxis.getDDPoints(a).slice(0)},function(a){var c=a.point.series&&a.point.series.chart,d=a.seriesOptions;c&&d&&(b?c.addSingleSeriesAsDrilldown(a.point, | ||
d):c.addSeriesAsDrilldown(a.point,d))})};f.Axis.prototype.drilldownCategory=function(b,a){A(this.getDDPoints(b),function(d){d&&d.series&&d.series.visible&&d.doDrilldown&&d.doDrilldown(!0,b,a)});this.chart.applyDrilldown()};f.Axis.prototype.getDDPoints=function(b){var a=[];h(this.series,function(d){var c,e=d.xData,f=d.points;for(c=0;c<e.length;c++)if(e[c]===b&&d.options.data[c]&&d.options.data[c].drilldown){a.push(f?f[c]:!0);break}});return a};D.prototype.drillable=function(){var b=this.pos,a=this.label, | ||
d=this.axis,c="xAxis"===d.coll&&d.getDDPoints,e=c&&d.getDDPoints(b);c&&(a&&e.length?(a.drillable=!0,a.basicStyles||(a.basicStyles=f.merge(a.styles)),a.addClass("highcharts-drilldown-axis-label").css(d.chart.options.drilldown.activeAxisLabelStyle).on("click",function(a){d.drilldownCategory(b,a)})):a&&a.drillable&&(a.styles={},a.css(a.basicStyles),a.on("click",null),a.removeClass("highcharts-drilldown-axis-label")))};u(D.prototype,"addLabel",function(b){b.call(this);this.drillable()});u(f.Point.prototype, | ||
"init",function(b,a,d,c){var e=b.call(this,a,d,c);c=(b=a.xAxis)&&b.ticks[c];e.drilldown&&f.addEvent(e,"click",function(b){a.xAxis&&!1===a.chart.options.drilldown.allowPointDrilldown?a.xAxis.drilldownCategory(e.x,b):e.doDrilldown(void 0,void 0,b)});c&&c.drillable();return e});u(f.Series.prototype,"drawDataLabels",function(b){var a=this.chart.options.drilldown.activeDataLabelStyle,d=this.chart.renderer;b.call(this);h(this.points,function(b){var c={};b.drilldown&&b.dataLabel&&("contrast"===a.color&& | ||
(c.color=d.getContrast(b.color||this.color)),b.dataLabel.addClass("highcharts-drilldown-data-label"),b.dataLabel.css(a).css(c))},this)});var H=function(b){b.call(this);h(this.points,function(a){a.drilldown&&a.graphic&&(a.graphic.addClass("highcharts-drilldown-point"),a.graphic.css({cursor:"pointer"}))})};A(v,function(b){b.prototype.supportsDrilldown&&u(b.prototype,"drawTracker",H)})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Highcharts Drilldown module | ||
@@ -45,45 +45,2 @@ * | ||
// Utilities | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. This method is copied from ColorAxis.js | ||
* and should always be kept updated, until we get AMD support. | ||
*/ | ||
function tweenColors(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
} | ||
/** | ||
* Handle animation of the color attributes directly | ||
*/ | ||
each(['fill', 'stroke'], function(prop) { | ||
H.Fx.prototype[prop + 'Setter'] = function() { | ||
this.elem.attr( | ||
prop, | ||
tweenColors(color(this.start), color(this.end), this.pos), | ||
null, | ||
true | ||
); | ||
}; | ||
}); | ||
// Add language | ||
@@ -237,2 +194,7 @@ extend(defaultOptions.lang, { | ||
// Reset names to prevent extending (#6704) | ||
if (xAxis && xAxis.names) { | ||
xAxis.names.length = 0; | ||
} | ||
newSeries = level.lowerSeries = this.addSeries(ddOptions, false); | ||
@@ -239,0 +201,0 @@ newSeries.options._levelNumber = levelNumber + 1; |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Exporting module | ||
@@ -9,10 +9,10 @@ | ||
*/ | ||
(function(f){"object"===typeof module&&module.exports?module.exports=f:f(Highcharts)})(function(f){(function(c){function f(a,k,m,b,l){var g,e=((a.options.exporting||{}).csv||{}).url||"http://www.highcharts.com/studies/csv-export/download.php";g=a.options.exporting.filename?a.options.exporting.filename:a.title?a.title.textStr.replace(/ /g,"-").toLowerCase():"chart";d.Blob&&d.navigator.msSaveOrOpenBlob?(a=new d.Blob([b]),d.navigator.msSaveOrOpenBlob(a,g+"."+m)):w?(b=t.createElement("a"),b.href=k,b.target= | ||
"_blank",b.download=g+"."+m,a.container.append(b),b.click(),b.remove()):c.post(e,{data:b,type:l,extension:m})}var q=c.each,v=c.pick,d=c.win,t=d.document,n=c.seriesTypes,w=void 0!==t.createElement("a").download;c.setOptions({lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",viewData:"View data table"}});c.Chart.prototype.getDataRows=function(){var a=(this.options.exporting||{}).csv||{},k,m=this.xAxis,b={},l=[],g=[],e,p,u=a.dateFormat||"%Y-%m-%d %H:%M:%S",f=a.columnHeaderFormatter||function(h, | ||
b,a){return h instanceof c.Axis?h.options.title&&h.options.title.text||(h.isDatetimeAxis?"DateTime":"Category"):h?h.name+(1<a?" ("+b+")":""):"Category"},r=[];e=0;q(this.series,function(h){var a=h.options.keys||h.pointArrayMap||["y"],k=a.length,u=h.requireSorting,p={},l=c.inArray(h.xAxis,m),d;q(a,function(a){p[a]=h[a+"Axis"]&&h[a+"Axis"].categories||[]});if(!1!==h.options.includeInCSVExport&&!1!==h.visible){c.find(r,function(a){return a[0]===l})||r.push([l,e]);for(d=0;d<k;)g.push(f(h,a[d],a.length)), | ||
d++;q(h.points,function(c,g){g=u?c.x:g;var m,f;d=0;b[g]||(b[g]=[],b[g].xValues=[]);b[g].x=c.x;b[g].xValues[l]=c.x;h.xAxis&&"name"!==h.exportKey||(b[g].name=c.name);for(;d<k;)m=a[d],f=c[m],b[g][e+d]=v(p[m][f],f),d++});e+=d}});for(p in b)b.hasOwnProperty(p)&&l.push(b[p]);var d,n,a=[g];for(e=r.length;e--;)d=r[e][0],n=r[e][1],k=m[d],l.sort(function(a,b){return a.xValues[d]-b.xValues[d]}),p=f(k),a[0].splice(n,0,p),q(l,function(a){var b=a.name;b||(k.isDatetimeAxis?(a.x instanceof Date&&(a.x=a.x.getTime()), | ||
b=c.dateFormat(u,a.x)):b=k.categories?v(k.names[a.x],k.categories[a.x],a.x):a.x);a.splice(n,0,b)});return a=a.concat(l)};c.Chart.prototype.getCSV=function(a){var c="",d=this.getDataRows(),b=(this.options.exporting||{}).csv||{},l=b.itemDelimiter||",",g=b.lineDelimiter||"\n";q(d,function(b,k){for(var e,f=b.length,p=a?(1.1).toLocaleString()[1]:".";f--;)e=b[f],"string"===typeof e&&(e='"'+e+'"'),"number"===typeof e&&","===p&&(e=e.toString().replace(".",",")),b[f]=e;c+=b.join(l);k<d.length-1&&(c+=g)}); | ||
return c};c.Chart.prototype.getTable=function(a){var c="\x3ctable\x3e\x3cthead\x3e",d=this.getDataRows();q(d,function(b,d){var g=d?"td":"th",e,f,k=a?(1.1).toLocaleString()[1]:".";c+="\x3ctr\x3e";for(f=0;f<b.length;f+=1)e=b[f],"number"===typeof e?(e=e.toString(),","===k&&(e=e.replace(".",k)),c+="\x3c"+g+' class\x3d"number"\x3e'+e+"\x3c/"+g+"\x3e"):c+="\x3c"+g+"\x3e"+(void 0===e?"":e)+"\x3c/"+g+"\x3e";c+="\x3c/tr\x3e";d||(c+="\x3c/thead\x3e\x3ctbody\x3e")});return c+="\x3c/tbody\x3e\x3c/table\x3e"}; | ||
c.Chart.prototype.downloadCSV=function(){var a=this.getCSV(!0);f(this,"data:text/csv,\ufeff"+encodeURIComponent(a),"csv",a,"text/csv")};c.Chart.prototype.downloadXLS=function(){var a='\x3chtml xmlns:o\x3d"urn:schemas-microsoft-com:office:office" xmlns:x\x3d"urn:schemas-microsoft-com:office:excel" xmlns\x3d"http://www.w3.org/TR/REC-html40"\x3e\x3chead\x3e\x3c!--[if gte mso 9]\x3e\x3cxml\x3e\x3cx:ExcelWorkbook\x3e\x3cx:ExcelWorksheets\x3e\x3cx:ExcelWorksheet\x3e\x3cx:Name\x3eArk1\x3c/x:Name\x3e\x3cx:WorksheetOptions\x3e\x3cx:DisplayGridlines/\x3e\x3c/x:WorksheetOptions\x3e\x3c/x:ExcelWorksheet\x3e\x3c/x:ExcelWorksheets\x3e\x3c/x:ExcelWorkbook\x3e\x3c/xml\x3e\x3c![endif]--\x3e\x3cstyle\x3etd{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}\x3c/style\x3e\x3cmeta name\x3dProgId content\x3dExcel.Sheet\x3e\x3cmeta charset\x3dUTF-8\x3e\x3c/head\x3e\x3cbody\x3e'+ | ||
this.getTable(!0)+"\x3c/body\x3e\x3c/html\x3e";f(this,"data:application/vnd.ms-excel;base64,"+d.btoa(unescape(encodeURIComponent(a))),"xls",a,"application/vnd.ms-excel")};c.Chart.prototype.viewData=function(){this.dataTableDiv||(this.dataTableDiv=t.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling));this.dataTableDiv.innerHTML=this.getTable()};c.getOptions().exporting&&c.getOptions().exporting.buttons.contextButton.menuItems.push({textKey:"downloadCSV", | ||
onclick:function(){this.downloadCSV()}},{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},{textKey:"viewData",onclick:function(){this.viewData()}});n.map&&(n.map.prototype.exportKey="name");n.mapbubble&&(n.mapbubble.prototype.exportKey="name");n.treemap&&(n.treemap.prototype.exportKey="name")})(f)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(d){var q=d.each,n=d.pick,k=d.win,p=k.document,a=d.seriesTypes,v=void 0!==p.createElement("a").download;d.setOptions({lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",viewData:"View data table"}});d.Chart.prototype.getDataRows=function(){var h=(this.options.exporting||{}).csv||{},b,c=this.xAxis,g={},r=[],m=[],f,l,u=h.dateFormat||"%Y-%m-%d %H:%M:%S",k=h.columnHeaderFormatter||function(e, | ||
f,b){return e instanceof d.Axis?e.options.title&&e.options.title.text||(e.isDatetimeAxis?"DateTime":"Category"):e?e.name+(1<b?" ("+f+")":""):"Category"},t=[];f=0;q(this.series,function(e){var b=e.options.keys||e.pointArrayMap||["y"],h=b.length,r=e.requireSorting,u={},l=d.inArray(e.xAxis,c),a;q(b,function(b){u[b]=e[b+"Axis"]&&e[b+"Axis"].categories||[]});if(!1!==e.options.includeInCSVExport&&!1!==e.visible){d.find(t,function(b){return b[0]===l})||t.push([l,f]);for(a=0;a<h;)m.push(k(e,b[a],b.length)), | ||
a++;q(e.points,function(d,c){c=r?d.x:c;var m,k;a=0;g[c]||(g[c]=[],g[c].xValues=[]);g[c].x=d.x;g[c].xValues[l]=d.x;e.xAxis&&"name"!==e.exportKey||(g[c].name=d.name);for(;a<h;)m=b[a],k=d[m],g[c][f+a]=n(u[m][k],k),a++});f+=a}});for(l in g)g.hasOwnProperty(l)&&r.push(g[l]);var a,p,h=[m];for(f=t.length;f--;)a=t[f][0],p=t[f][1],b=c[a],r.sort(function(b,c){return b.xValues[a]-c.xValues[a]}),l=k(b),h[0].splice(p,0,l),q(r,function(e){var c=e.name;c||(b.isDatetimeAxis?(e.x instanceof Date&&(e.x=e.x.getTime()), | ||
c=d.dateFormat(u,e.x)):c=b.categories?n(b.names[e.x],b.categories[e.x],e.x):e.x);e.splice(p,0,c)});return h=h.concat(r)};d.Chart.prototype.getCSV=function(d){var b="",c=this.getDataRows(),a=(this.options.exporting||{}).csv||{},h=a.itemDelimiter||",",m=a.lineDelimiter||"\n";q(c,function(a,l){for(var f,g=a.length,k=d?(1.1).toLocaleString()[1]:".";g--;)f=a[g],"string"===typeof f&&(f='"'+f+'"'),"number"===typeof f&&","===k&&(f=f.toString().replace(".",",")),a[g]=f;b+=a.join(h);l<c.length-1&&(b+=m)}); | ||
return b};d.Chart.prototype.getTable=function(a){var b="\x3ctable\x3e\x3cthead\x3e",c=this.getDataRows();q(c,function(c,d){var h=d?"td":"th",f,g,k=a?(1.1).toLocaleString()[1]:".";b+="\x3ctr\x3e";for(g=0;g<c.length;g+=1)f=c[g],"number"===typeof f?(f=f.toString(),","===k&&(f=f.replace(".",k)),b+="\x3c"+h+' class\x3d"number"\x3e'+f+"\x3c/"+h+"\x3e"):b+="\x3c"+h+"\x3e"+(void 0===f?"":f)+"\x3c/"+h+"\x3e";b+="\x3c/tr\x3e";d||(b+="\x3c/thead\x3e\x3ctbody\x3e")});return b+="\x3c/tbody\x3e\x3c/table\x3e"}; | ||
d.Chart.prototype.fileDownload=function(a,b,c,g){var h,m=((this.options.exporting||{}).csv||{}).url||"http://www.highcharts.com/studies/csv-export/download.php";h=this.options.exporting.filename?this.options.exporting.filename:this.title?this.title.textStr.replace(/ /g,"-").toLowerCase():"chart";k.Blob&&k.navigator.msSaveOrOpenBlob?(a=new k.Blob([c]),k.navigator.msSaveOrOpenBlob(a,h+"."+b)):v?(c=p.createElement("a"),c.href=a,c.target="_blank",c.download=h+"."+b,this.container.append(c),c.click(), | ||
c.remove()):d.post(m,{data:c,type:g,extension:b})};d.Chart.prototype.downloadCSV=function(){var a=this.getCSV(!0);this.fileDownload("data:text/csv,\ufeff"+encodeURIComponent(a),"csv",a,"text/csv")};d.Chart.prototype.downloadXLS=function(){var a='\x3chtml xmlns:o\x3d"urn:schemas-microsoft-com:office:office" xmlns:x\x3d"urn:schemas-microsoft-com:office:excel" xmlns\x3d"http://www.w3.org/TR/REC-html40"\x3e\x3chead\x3e\x3c!--[if gte mso 9]\x3e\x3cxml\x3e\x3cx:ExcelWorkbook\x3e\x3cx:ExcelWorksheets\x3e\x3cx:ExcelWorksheet\x3e\x3cx:Name\x3eArk1\x3c/x:Name\x3e\x3cx:WorksheetOptions\x3e\x3cx:DisplayGridlines/\x3e\x3c/x:WorksheetOptions\x3e\x3c/x:ExcelWorksheet\x3e\x3c/x:ExcelWorksheets\x3e\x3c/x:ExcelWorkbook\x3e\x3c/xml\x3e\x3c![endif]--\x3e\x3cstyle\x3etd{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}\x3c/style\x3e\x3cmeta name\x3dProgId content\x3dExcel.Sheet\x3e\x3cmeta charset\x3dUTF-8\x3e\x3c/head\x3e\x3cbody\x3e'+ | ||
this.getTable(!0)+"\x3c/body\x3e\x3c/html\x3e";this.fileDownload("data:application/vnd.ms-excel;base64,"+k.btoa(unescape(encodeURIComponent(a))),"xls",a,"application/vnd.ms-excel")};d.Chart.prototype.viewData=function(){this.dataTableDiv||(this.dataTableDiv=p.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling));this.dataTableDiv.innerHTML=this.getTable()};d.getOptions().exporting&&d.getOptions().exporting.buttons.contextButton.menuItems.push({textKey:"downloadCSV", | ||
onclick:function(){this.downloadCSV()}},{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},{textKey:"viewData",onclick:function(){this.viewData()}});a.map&&(a.map.prototype.exportKey="name");a.mapbubble&&(a.mapbubble.prototype.exportKey="name");a.treemap&&(a.treemap.prototype.exportKey="name")})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Exporting module | ||
@@ -281,13 +281,13 @@ * | ||
function getContent(chart, href, extension, content, MIME) { | ||
Highcharts.Chart.prototype.fileDownload = function(href, extension, content, MIME) { | ||
var a, | ||
blobObject, | ||
name, | ||
options = (chart.options.exporting || {}).csv || {}, | ||
options = (this.options.exporting || {}).csv || {}, | ||
url = options.url || 'http://www.highcharts.com/studies/csv-export/download.php'; | ||
if (chart.options.exporting.filename) { | ||
name = chart.options.exporting.filename; | ||
} else if (chart.title) { | ||
name = chart.title.textStr.replace(/ /g, '-').toLowerCase(); | ||
if (this.options.exporting.filename) { | ||
name = this.options.exporting.filename; | ||
} else if (this.title) { | ||
name = this.title.textStr.replace(/ /g, '-').toLowerCase(); | ||
} else { | ||
@@ -309,3 +309,3 @@ name = 'chart'; | ||
a.download = name + '.' + extension; | ||
chart.container.append(a); // #111 | ||
this.container.append(a); // #111 | ||
a.click(); | ||
@@ -322,3 +322,3 @@ a.remove(); | ||
} | ||
} | ||
}; | ||
@@ -330,4 +330,3 @@ /** | ||
var csv = this.getCSV(true); | ||
getContent( | ||
this, | ||
this.fileDownload( | ||
'data:text/csv,\uFEFF' + encodeURIComponent(csv), | ||
@@ -358,4 +357,3 @@ 'csv', | ||
}; | ||
getContent( | ||
this, | ||
this.fileDownload( | ||
uri + base64(template), | ||
@@ -362,0 +360,0 @@ 'xls', |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Exporting module | ||
@@ -9,19 +9,20 @@ | ||
*/ | ||
(function(k){"object"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(f){var k=f.defaultOptions,p=f.doc,A=f.Chart,w=f.addEvent,H=f.removeEvent,D=f.fireEvent,t=f.createElement,B=f.discardElement,v=f.css,n=f.merge,C=f.pick,h=f.each,E=f.objectEach,u=f.extend,I=f.isTouchDevice,F=f.win,J=f.Renderer.prototype.symbols;u(k.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image", | ||
contextButtonTitle:"Chart context menu"});k.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}};n(!0,k.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:I?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666", | ||
symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}});k.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}}, | ||
{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};f.post=function(a,b,e){var c=t("form",n({method:"post",action:a,enctype:"multipart/form-data"},e),{display:"none"},p.body);E(b,function(a,b){t("input",{type:"hidden",name:b,value:a},null,c)});c.submit();B(c)};u(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\/svg>(.*?$)/);e&& | ||
e[1]&&(e='\x3cforeignObject x\x3d"0" y\x3d"0" width\x3d"'+b.chart.width+'" height\x3d"'+b.chart.height+'"\x3e\x3cbody xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e'+e[1]+"\x3c/body\x3e\x3c/foreignObject\x3e",a=a.replace("\x3c/svg\x3e",e+"\x3c/svg\x3e"))}a=a.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(\S+)("|")\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'\x3csvg xmlns:xlink\x3d"http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g, | ||
" xlink:href\x3d").replace(/\n/," ").replace(/<\/svg>.*?$/,"\x3c/svg\x3e").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1\x3d"rgb($2)" $1-opacity\x3d"$3"').replace(/ /g,"\u00a0").replace(/­/g,"\u00ad");return a=a.replace(/<IMG /g,"\x3cimage ").replace(/<(\/?)TITLE>/g,"\x3c$1title\x3e").replace(/height=([^" ]+)/g,'height\x3d"$1"').replace(/width=([^" ]+)/g,'width\x3d"$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href\x3d"$1"/\x3e').replace(/ id=([^" >]+)/g,' id\x3d"$1"').replace(/class=([^" >]+)/g, | ||
'class\x3d"$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(a){return a.toLowerCase()})},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,r,m,g=n(this.options,a);p.createElementNS||(p.createElementNS=function(a,b){return p.createElement(b)});e=t("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},p.body);c=this.renderTo.style.width;m=this.renderTo.style.height; | ||
c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&parseInt(m,10)||400;u(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:"SVGRenderer",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];h(this.series,function(a){r=n(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});r.isInternal||g.series.push(r)});h(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey= | ||
f.uniqueKey())});b=new f.Chart(g,this.callback);a&&h(["xAxis","yAxis","series"],function(c){var d={};a[c]&&(d[c]=a[c],b.update(d))});h(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(n({chart:{borderRadius:0}}, | ||
e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=n(this.options.exporting,a);f.post(a.url,{filename:a.filename||"chart",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=p.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,G;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null, | ||
0);D(a,"beforePrint");if(G=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);h(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display="none")});f.appendChild(b);F.focus();F.print();setTimeout(function(){c.appendChild(b);h(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;G&&a.setSize.apply(a,d);D(a,"afterPrint")},1E3)}},contextMenu:function(a,b,e,c,f,m,g){var d=this,r=d.options.navigation,k=d.chartWidth,q=d.chartHeight,n="cache-"+a, | ||
l=d[n],x=Math.max(f,m),y,z;l||(d[n]=l=t("div",{className:a},{position:"absolute",zIndex:1E3,padding:x+"px"},d.container),y=t("div",{className:"highcharts-menu"},null,l),v(y,u({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},r.menuStyle)),z=function(){v(l,{display:"none"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,"mouseleave",function(){l.hideTimer=setTimeout(z,500)}),w(l,"mouseenter",function(){clearTimeout(l.hideTimer)}),w(p,"mouseup", | ||
function(b){d.pointer.inClass(b.target,a)||z()})),h(b,function(a){if(a){var b;a.separator?b=t("hr",null,null,y):(b=t("div",{className:"highcharts-menu-item",onclick:function(b){b&&b.stopPropagation();z();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){v(this,r.menuItemHoverStyle)},b.onmouseout=function(){v(this,r.menuItemStyle)},v(b,u({cursor:"pointer"},r.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y, | ||
l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:"block"};e+d.exportMenuWidth>k?b.right=k-e-f-x+"px":b.left=e-x+"px";c+m+d.exportMenuHeight>q&&"top"!==g.alignOptions.verticalAlign?b.bottom=q-c-x+"px":b.top=c+m-x+"px";v(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=n(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,k=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]); | ||
if(!1!==c.enabled){var h=c.theme,q=h.states,p=q&&q.hover,q=q&&q.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=C(h.paddingLeft,25):c.text||u(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,p,q).addClass(a.className).attr({"stroke-linecap":"round",title:b.options.lang[c._titleKey],zIndex:3});d.menuClassName=a.menuClassName|| | ||
"highcharts-menu-"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-k/2,c.symbolY-k/2,k,k).addClass("highcharts-button-symbol").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,"stroke-width":c.symbolStrokeWidth||1}));d.add().align(u(c,{width:d.width,x:C(c.x,b.buttonOffset)}),!0,"spacingBox");b.buttonOffset+=(d.width+c.buttonSpacing)*("right"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements, | ||
c=b.exportEvents,f;a&&(h(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,f="cache-"+a.menuClassName,b[f]&&delete b[f],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(h(e,function(a,c){clearTimeout(a.hideTimer);H(a,"mouseleave");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(h(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return["M",a,b+2.5,"L",a+e,b+2.5,"M",a,b+c/2+.5,"L",a+e,b+c/2+.5,"M",a,b+c-1.5,"L",a+e,b+c-1.5]};A.prototype.renderExporting= | ||
function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,"destroy",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,"redraw",a.renderExporting);h(["exporting","navigation"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;n(!0,a.options[b],e);C(c,!0)&&a.redraw()}}})})})(k)}); | ||
(function(k){"object"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(f){var k=f.defaultOptions,p=f.doc,A=f.Chart,w=f.addEvent,I=f.removeEvent,E=f.fireEvent,t=f.createElement,B=f.discardElement,v=f.css,n=f.merge,C=f.pick,h=f.each,F=f.objectEach,u=f.extend,J=f.isTouchDevice,D=f.win,G=D.navigator.userAgent,K=f.Renderer.prototype.symbols;/Edge\/|Trident\/|MSIE /.test(G);/firefox/i.test(G);u(k.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image", | ||
downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});k.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}};n(!0,k.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:J?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad", | ||
color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}});k.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}}, | ||
{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};f.post=function(a,b,e){var c=t("form",n({method:"post",action:a,enctype:"multipart/form-data"},e),{display:"none"},p.body);F(b,function(a,b){t("input",{type:"hidden",name:b,value:a},null,c)});c.submit();B(c)};u(A.prototype,{sanitizeSVG:function(a, | ||
b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\/svg>(.*?$)/);e&&e[1]&&(e='\x3cforeignObject x\x3d"0" y\x3d"0" width\x3d"'+b.chart.width+'" height\x3d"'+b.chart.height+'"\x3e\x3cbody xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e'+e[1]+"\x3c/body\x3e\x3c/foreignObject\x3e",a=a.replace("\x3c/svg\x3e",e+"\x3c/svg\x3e"))}a=a.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(\S+)("|")\)/g, | ||
"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'\x3csvg xmlns:xlink\x3d"http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g," xlink:href\x3d").replace(/\n/," ").replace(/<\/svg>.*?$/,"\x3c/svg\x3e").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1\x3d"rgb($2)" $1-opacity\x3d"$3"').replace(/ /g,"\u00a0").replace(/­/g,"\u00ad");return a=a.replace(/<IMG /g,"\x3cimage ").replace(/<(\/?)TITLE>/g,"\x3c$1title\x3e").replace(/height=([^" ]+)/g, | ||
'height\x3d"$1"').replace(/width=([^" ]+)/g,'width\x3d"$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href\x3d"$1"/\x3e').replace(/ id=([^" >]+)/g,' id\x3d"$1"').replace(/class=([^" >]+)/g,'class\x3d"$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(a){return a.toLowerCase()})},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,r,m,g=n(this.options,a);p.createElementNS||(p.createElementNS=function(a,b){return p.createElement(b)}); | ||
e=t("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},p.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&parseInt(m,10)||400;u(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:"SVGRenderer",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];h(this.series,function(a){r=n(a.userOptions, | ||
{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});r.isInternal||g.series.push(r)});h(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&h(["xAxis","yAxis","series"],function(c){var d={};a[c]&&(d[c]=a[c],b.update(d))});h(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d|| | ||
c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(n({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=n(this.options.exporting,a);f.post(a.url,{filename:a.filename||"chart",type:a.type,width:a.width||0,scale:a.scale, | ||
svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=p.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,H;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);E(a,"beforePrint");if(H=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);h(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display="none")});f.appendChild(b);D.focus();D.print();setTimeout(function(){c.appendChild(b);h(m,function(a,b){1===a.nodeType&& | ||
(a.style.display=e[b])});a.isPrinting=!1;H&&a.setSize.apply(a,d);E(a,"afterPrint")},1E3)}},contextMenu:function(a,b,e,c,f,m,g){var d=this,r=d.options.navigation,k=d.chartWidth,q=d.chartHeight,n="cache-"+a,l=d[n],x=Math.max(f,m),y,z;l||(d[n]=l=t("div",{className:a},{position:"absolute",zIndex:1E3,padding:x+"px"},d.container),y=t("div",{className:"highcharts-menu"},null,l),v(y,u({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},r.menuStyle)),z=function(){v(l, | ||
{display:"none"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,"mouseleave",function(){l.hideTimer=setTimeout(z,500)}),w(l,"mouseenter",function(){clearTimeout(l.hideTimer)}),w(p,"mouseup",function(b){d.pointer.inClass(b.target,a)||z()})),h(b,function(a){if(a){var b;a.separator?b=t("hr",null,null,y):(b=t("div",{className:"highcharts-menu-item",onclick:function(b){b&&b.stopPropagation();z();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover= | ||
function(){v(this,r.menuItemHoverStyle)},b.onmouseout=function(){v(this,r.menuItemStyle)},v(b,u({cursor:"pointer"},r.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:"block"};e+d.exportMenuWidth>k?b.right=k-e-f-x+"px":b.left=e-x+"px";c+m+d.exportMenuHeight>q&&"top"!==g.alignOptions.verticalAlign?b.bottom=q-c-x+"px":b.top=c+m-x+"px";v(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer, | ||
c=n(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,k=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,q=h.states,p=q&&q.hover,q=q&&q.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=C(h.paddingLeft,25):c.text||u(h,{width:c.width, | ||
height:c.height,padding:0});d=e.button(c.text,0,0,l,h,p,q).addClass(a.className).attr({"stroke-linecap":"round",title:b.options.lang[c._titleKey],zIndex:3});d.menuClassName=a.menuClassName||"highcharts-menu-"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-k/2,c.symbolY-k/2,k,k).addClass("highcharts-button-symbol").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,"stroke-width":c.symbolStrokeWidth||1}));d.add().align(u(c,{width:d.width,x:C(c.x,b.buttonOffset)}),!0,"spacingBox"); | ||
b.buttonOffset+=(d.width+c.buttonSpacing)*("right"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,f;a&&(h(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,f="cache-"+a.menuClassName,b[f]&&delete b[f],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(h(e,function(a,c){clearTimeout(a.hideTimer);I(a,"mouseleave");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick= | ||
null;B(a)}),e.length=0);c&&(h(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return["M",a,b+2.5,"L",a+e,b+2.5,"M",a,b+c/2+.5,"L",a+e,b+c/2+.5,"M",a,b+c-1.5,"L",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],F(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,"destroy",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting(); | ||
w(a,"redraw",a.renderExporting);h(["exporting","navigation"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;n(!0,a.options[b],e);C(c,!0)&&a.redraw()}}})})})(k)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Exporting module | ||
@@ -45,6 +45,8 @@ * | ||
win = H.win, | ||
SVGRenderer = H.SVGRenderer; | ||
userAgent = win.navigator.userAgent, | ||
SVGRenderer = H.SVGRenderer, | ||
symbols = H.Renderer.prototype.symbols, | ||
isMSBrowser = /Edge\/|Trident\/|MSIE /.test(userAgent), | ||
isFirefoxBrowser = /firefox/i.test(userAgent); | ||
var symbols = H.Renderer.prototype.symbols; | ||
// Add language | ||
@@ -440,2 +442,4 @@ extend(defaultOptions.lang, { | ||
* Different chart background in export | ||
* @sample stock/members/chart-exportchart/ | ||
* Export with Highstock | ||
*/ | ||
@@ -442,0 +446,0 @@ exportChart: function(exportingOptions, chartOptions) { |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highcharts funnel module | ||
@@ -9,6 +9,6 @@ | ||
*/ | ||
(function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,z=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e("funnel","pie",{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:"#cccccc",borderColor:"#000000",shadow:!1}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a, | ||
10)},E=0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),z=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,A,B,D="left"===f.dataLabels.position?1:0,C,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(z-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&& | ||
!1===a.visible||(E+=a.y)});I(b,function(a){p=null;B=E?a.y/E:0;n=r-m/2+q*m;k=n+B*m;l=v(n);C=h-l/2;G=C+l;l=v(k);u=h-l/2;y=u+l;n>x?(C=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);A=["M",C,n,"L",G,n,y,k];p&&A.push(y,p,u,p);A.push(u,k,"Z");a.shapeType="path";a.shapeArgs={d:A};a.percentage=100*B;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=B)})},drawPoints:z.column.prototype.drawPoints,sortByAngle:function(b){b.sort(function(b, | ||
c){return b.plotY-c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?"right":"left",0];z.pie.prototype.drawDataLabels.call(this)}});e("pyramid","funnel", | ||
{neckWidth:"0%",neckHeight:"0%",reversed:!0})})(e)}); | ||
(function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e("funnel","pie",{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:"#cccccc",borderColor:"#000000",shadow:!1}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a, | ||
10)},E=0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D="left"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&& | ||
!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=["M",B,n,"L",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,"Z");a.shapeType="path";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY- | ||
c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?"right":"left",0];C.pie.prototype.drawDataLabels.call(this)}});e("pyramid","funnel",{neckWidth:"0%", | ||
neckHeight:"0%",reversed:!0})})(e)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Highcharts funnel module | ||
@@ -233,9 +233,2 @@ * | ||
}, | ||
/** | ||
* Draw a single point (wedge) | ||
* @param {Object} point The point object | ||
* @param {Object} color The color of the point | ||
* @param {Number} brightness The brightness relative to the color | ||
*/ | ||
drawPoints: seriesTypes.column.prototype.drawPoints, | ||
@@ -242,0 +235,0 @@ /** |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Gantt series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Gantt series | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
GridAxis | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* GridAxis | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -8,20 +8,19 @@ (c) 2009-2017 Torstein Honsi | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(c){var k=c.Axis,r=c.Chart,m=c.color,l,e=c.each,v=c.extend,w=c.isNumber,p=c.Legend,f=c.LegendSymbolMixin,x=c.noop,q=c.merge,u=c.pick,t=c.wrap;l=c.ColorAxis=function(){this.init.apply(this,arguments)};v(l.prototype,k.prototype);v(l.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,g;this.coll="colorAxis";g=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,g);b.dataClasses&&this.initDataClasses(b); | ||
this.initStops(b);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var g;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,g=1!==b[3]||1!==a[3],a=(g?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(g?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d=this.chart,g,h=0,c=d.options.chart.colorCount,y=this.options,f=a.dataClasses.length; | ||
this.dataClasses=g=[];this.legendItems=[];e(a.dataClasses,function(a,e){a=q(a);g.push(a);a.color||("category"===y.dataClassColor?(e=d.options.colors,c=e.length,a.color=e[h],a.colorIndex=h,h++,h===c&&(h=0)):a.color=b.tweenColors(m(y.minColor),m(y.maxColor),2>f?.5:e/(f-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=m(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}, | ||
setAxisSize:function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,g,h,c=this.dataClasses,e,f;if(c)for(f=c.length;f--;){if(e=c[f],g=e.from,d=e.to,(void 0=== | ||
g||a>=g)&&(void 0===d||a<=d)){h=e.color;b&&(b.dataClass=f,b.colorIndex=e.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(f=d.length;f--&&!(a>d[f][0]););g=d[f]||d[f+1];d=d[f+1]||g;a=1-(d[0]-a)/(d[0]-g[0]||1);h=this.tweenColors(g.color,d.color,a)}return h},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight= | ||
this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,g=a.options,h=this.horiz,c=u(g.symbolWidth,h?this.defaultLegendLength:12),f=u(g.symbolHeight,h?12:this.defaultLegendLength),e=u(g.labelPadding,h?16:30),g=u(g.itemDistance,10);this.setLegendColor(); | ||
b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,f).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=c+d+(h?g:e);this.legendItemHeight=f+d+(h?e:0)},setState:x,visible:!0,setVisible:x,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,h,f= | ||
this.pos,e=this.len;b&&(h=this.toPixels(b[b.series.colorKey]),h<f?h=f-2:h>f+e&&(h=f+e+2),b.plotX=h,b.plotY=this.len-h,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,d,c,h){return w(h)?this.horiz?["M",h-4,this.top-6,"L",h+4,this.top-6,h,this.top,"Z"]:["M",this.left,h,"L",this.left-6,h+6,this.left-6,h-6,"Z"]:k.prototype.getPlotLinePath.call(this, | ||
a,b,d,c)},update:function(a,b){var d=this.chart,c=d.legend;e(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&c.allItems&&(e(c.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);k.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var a= | ||
this,b=this.chart,d=this.legendItems,g=b.options.legend,h=g.valueDecimals,t=g.valueSuffix||"",k;d.length||e(this.dataClasses,function(g,p){var l=!0,q=g.from,m=g.to;k="";void 0===q?k="\x3c ":void 0===m&&(k="\x3e ");void 0!==q&&(k+=c.numberFormat(q,h)+t);void 0!==q&&void 0!==m&&(k+=" - ");void 0!==m&&(k+=c.numberFormat(m,h)+t);d.push(v({chart:b,name:k,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:x,isDataClass:!0,setVisible:function(){l=this.visible=!l;e(a.series,function(a){e(a.points, | ||
function(a){a.dataClass===p&&a.setVisible(l)})});b.legend.colorizeItem(this,l)}},g))});return d},name:""});e(["fill","stroke"],function(a){c.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,l.prototype.tweenColors(m(this.start),m(this.end),this.pos),null,!0)}});t(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new l(this,b)});t(p.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses? | ||
b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});t(p.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(n);(function(c){var k=c.defined,r=c.each,m=c.noop,l=c.seriesTypes;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,k=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][k]()})}, | ||
setState:function(e){c.Point.prototype.setState.call(this,e);this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}};c.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:m,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:l.column.prototype.pointAttribs,translateColors:function(){var c=this,k=this.options.nullColor,l=this.colorAxis,m=this.colorKey;r(this.data, | ||
function(f){var e=f[m];if(e=f.options.color||(f.isNull?k:l&&void 0!==e?l.toColor(e,f):f.color||c.color))f.color=e})},colorAttribs:function(c){var e={};k(c.color)&&(e[this.colorProp||"fill"]=c.color);return e}}})(n);(function(c){var k=c.colorPointMixin,r=c.each,m=c.merge,l=c.noop,e=c.pick,n=c.Series,w=c.seriesType,p=c.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1, | ||
padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},m(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;p.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options, | ||
e=this.xAxis,k=this.yAxis,l=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints();r(this.points,function(f){var a=(c.colsize||1)/2,b=(c.rowsize||1)/2,d=l(Math.round(e.len-e.translate(f.x-a,0,1,0,1)),-e.len,2*e.len),a=l(Math.round(e.len-e.translate(f.x+a,0,1,0,1)),-e.len,2*e.len),g=l(Math.round(k.translate(f.y-b,0,1,0,1)),-k.len,2*k.len),b=l(Math.round(k.translate(f.y+b,0,1,0,1)),-k.len,2*k.len);f.plotX=f.clientX=(d+a)/2;f.plotY=(g+b)/2;f.shapeType="rect";f.shapeArgs={x:Math.min(d, | ||
a),y:Math.min(g,b),width:Math.abs(a-d),height:Math.abs(b-g)}});this.translateColors()},drawPoints:function(){p.column.prototype.drawPoints.call(this);r(this.points,function(c){c.graphic.attr(this.colorAttribs(c))},this)},animate:l,getBox:l,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,alignDataLabel:p.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;n.prototype.getExtremes.call(this)}}), | ||
k)})(n)}); | ||
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(b){var h=b.Axis,r=b.Chart,k=b.color,n,d=b.each,w=b.extend,x=b.isNumber,l=b.Legend,g=b.LegendSymbolMixin,q=b.noop,u=b.merge,v=b.pick,t=b.wrap;n=b.ColorAxis=function(){this.init.apply(this,arguments)};w(n.prototype,h.prototype);w(n.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(h.prototype.keepProps),init:function(a,c){var e="vertical"!==a.options.legend.layout,f;this.coll="colorAxis";f=u(this.defaultColorAxisOptions,{side:e?2:1,reversed:!e},c,{opposite:!e,showEmpty:!1,title:null});h.prototype.init.call(this,a,f);c.dataClasses&&this.initDataClasses(c); | ||
this.initStops();this.horiz=e;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,e,f=0,m=c.options.chart.colorCount,b=this.options,y=a.dataClasses.length;this.dataClasses=e=[];this.legendItems=[];d(a.dataClasses,function(a,d){a=u(a);e.push(a);a.color||("category"===b.dataClassColor?(d=c.options.colors,m=d.length,a.color=d[f],a.colorIndex=f,f++,f===m&&(f=0)):a.color=k(b.minColor).tweenTo(k(b.maxColor),2>y?.5:d/(y-1)))})},initStops:function(){this.stops=this.options.stops|| | ||
[[0,this.options.minColor],[1,this.options.maxColor]];d(this.stops,function(a){a.color=k(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,c=this.chart,e=c.options.legend||{},f,m;a?(this.left=e=a.attr("x"),this.top=f=a.attr("y"),this.width=m=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-e-m,this.bottom=c.chartHeight-f-a,this.len=this.horiz?m:a,this.pos=this.horiz?e: | ||
f):this.len=(this.horiz?e.symbolWidth:e.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var e=this.stops,f,m,b=this.dataClasses,d,g;if(b)for(g=b.length;g--;){if(d=b[g],f=d.from,e=d.to,(void 0===f||a>=f)&&(void 0===e||a<=e)){m=d.color;c&&(c.dataClass=g,c.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(g=e.length;g--&&!(a>e[g][0]););f=e[g]||e[g+1];e=e[g+1]||f;a= | ||
1-(e[0]-a)/(e[0]-f[0]||1);m=f.color.tweenTo(e.color,a)}return m},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a, | ||
c){var e=a.padding,f=a.options,b=this.horiz,d=v(f.symbolWidth,b?this.defaultLegendLength:12),g=v(f.symbolHeight,b?12:this.defaultLegendLength),q=v(f.labelPadding,b?16:30),f=v(f.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,d,g).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=d+e+(b?f:q);this.legendItemHeight=g+e+(b?q:0)},setState:q,visible:!0,setVisible:q,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax= | ||
-Infinity;c--;)void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var e=c&&c.plotX,b=c&&c.plotY,d,g=this.pos,q=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),d<g?d=g-2:d>g+q&&(d=g+q+2),c.plotX=d,c.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,c),c.plotX=e,c.plotY=b,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))}, | ||
getPlotLinePath:function(a,c,e,b,d){return x(d)?this.horiz?["M",d-4,this.top-6,"L",d+4,this.top-6,d,this.top,"Z"]:["M",this.left,d,"L",this.left-6,d+6,this.left-6,d-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,c,e,b)},update:function(a,c){var e=this.chart,b=e.legend;d(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(d(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),e.isDirtyLegend=!0);e.options[this.coll]=u(this.userOptions,a);h.prototype.update.call(this, | ||
a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var a=this,c=this.chart,e=this.legendItems,f=c.options.legend,t=f.valueDecimals,h=f.valueSuffix||"",l;e.length||d(this.dataClasses,function(f,u){var m=!0,k=f.from,n=f.to;l="";void 0===k?l="\x3c ":void 0===n&&(l="\x3e ");void 0!==k&&(l+=b.numberFormat(k,t)+h);void 0!==k&&void 0!==n&&(l+=" - "); | ||
void 0!==n&&(l+=b.numberFormat(n,t)+h);e.push(w({chart:c,name:l,options:{},drawLegendSymbol:g.drawRectangle,visible:!0,setState:q,isDataClass:!0,setVisible:function(){m=this.visible=!m;d(a.series,function(a){d(a.points,function(a){a.dataClass===u&&a.setVisible(m)})});c.legend.colorizeItem(this,m)}},f))});return e},name:""});d(["fill","stroke"],function(a){b.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,k(this.start).tweenTo(k(this.end),this.pos),null,!0)}});t(r.prototype,"getAxes",function(a){var c= | ||
this.options.colorAxis;a.call(this);this.colorAxis=[];c&&new n(this,c)});t(l.prototype,"getAllItems",function(a){var c=[],b=this.chart.colorAxis[0];b&&b.options&&(b.options.showInLegend&&(b.options.dataClasses?c=c.concat(b.getDataClassLegendSymbols()):c.push(b)),d(b.series,function(a){a.options.showInLegend=!1}));return c.concat(a.call(this))});t(l.prototype,"colorizeItem",function(a,c,b){a.call(this,c,b);b&&c.legendColor&&c.legendSymbol.attr({fill:c.legendColor})})})(p);(function(b){var h=b.defined, | ||
r=b.each,k=b.noop,n=b.seriesTypes;b.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(b){var d=this,h=b?"show":"hide";r(["graphic","dataLabel"],function(b){if(d[b])d[b][h]()})},setState:function(d){b.Point.prototype.setState.call(this,d);this.graphic&&this.graphic.attr({zIndex:"hover"===d?1:0})}};b.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:k, | ||
parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:n.column.prototype.pointAttribs,translateColors:function(){var b=this,h=this.options.nullColor,k=this.colorAxis,l=this.colorKey;r(this.data,function(d){var g=d[l];if(g=d.options.color||(d.isNull?h:k&&void 0!==g?k.toColor(g,d):d.color||b.color))d.color=g})},colorAttribs:function(b){var d={};h(b.color)&&(d[this.colorProp||"fill"]=b.color);return d}}})(p);(function(b){var h=b.colorPointMixin,r=b.each,k=b.merge,n=b.noop,d=b.pick,p=b.Series, | ||
x=b.seriesType,l=b.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},k(b.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0, | ||
directTouch:!0,init:function(){var b;l.scatter.prototype.init.apply(this,arguments);b=this.options;b.pointRange=d(b.pointRange,b.colsize||1);this.yAxis.axisPointRange=b.rowsize||1},translate:function(){var b=this.options,d=this.xAxis,h=this.yAxis,k=function(b,a,c){return Math.min(Math.max(a,b),c)};this.generatePoints();r(this.points,function(g){var a=(b.colsize||1)/2,c=(b.rowsize||1)/2,e=k(Math.round(d.len-d.translate(g.x-a,0,1,0,1)),-d.len,2*d.len),a=k(Math.round(d.len-d.translate(g.x+a,0,1,0,1)), | ||
-d.len,2*d.len),f=k(Math.round(h.translate(g.y-c,0,1,0,1)),-h.len,2*h.len),c=k(Math.round(h.translate(g.y+c,0,1,0,1)),-h.len,2*h.len);g.plotX=g.clientX=(e+a)/2;g.plotY=(f+c)/2;g.shapeType="rect";g.shapeArgs={x:Math.min(e,a),y:Math.min(f,c),width:Math.abs(a-e),height:Math.abs(c-f)}});this.translateColors()},drawPoints:function(){l.column.prototype.drawPoints.call(this);r(this.points,function(b){b.graphic.attr(this.colorAttribs(b))},this)},animate:n,getBox:n,drawLegendSymbol:b.LegendSymbolMixin.drawRectangle, | ||
alignDataLabel:l.column.prototype.alignDataLabel,getExtremes:function(){p.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;p.prototype.getExtremes.call(this)}}),h)})(p)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -109,3 +109,3 @@ * (c) 2009-2017 Torstein Honsi | ||
} | ||
this.initStops(userOptions); | ||
this.initStops(); | ||
@@ -120,35 +120,4 @@ // Override original axis properties | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. | ||
* NOTE: Changes here should be copied | ||
* to the same function in drilldown.src.js and solid-gauge-src.js. | ||
*/ | ||
tweenColors: function(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
}, | ||
initDataClasses: function(userOptions) { | ||
var axis = this, | ||
chart = this.chart, | ||
var chart = this.chart, | ||
dataClasses, | ||
@@ -182,4 +151,3 @@ colorCounter = 0, | ||
} else { | ||
dataClass.color = axis.tweenColors( | ||
color(options.minColor), | ||
dataClass.color = color(options.minColor).tweenTo( | ||
color(options.maxColor), | ||
@@ -193,4 +161,4 @@ len < 2 ? 0.5 : i / (len - 1) // #3219 | ||
initStops: function(userOptions) { | ||
this.stops = userOptions.stops || [ | ||
initStops: function() { | ||
this.stops = this.options.stops || [ | ||
[0, this.options.minColor], | ||
@@ -239,2 +207,9 @@ [1, this.options.maxColor] | ||
normalizedValue: function(value) { | ||
if (this.isLog) { | ||
value = this.val2lin(value); | ||
} | ||
return 1 - ((this.max - value) / ((this.max - this.min) || 1)); | ||
}, | ||
/** | ||
@@ -271,6 +246,3 @@ * Translate from a value to a color | ||
if (this.isLog) { | ||
value = this.val2lin(value); | ||
} | ||
pos = 1 - ((this.max - value) / ((this.max - this.min) || 1)); | ||
pos = this.normalizedValue(value); | ||
i = stops.length; | ||
@@ -288,4 +260,3 @@ while (i--) { | ||
color = this.tweenColors( | ||
from.color, | ||
color = from.color.tweenTo( | ||
to.color, | ||
@@ -332,3 +303,2 @@ pos | ||
horiz = this.horiz, | ||
options = this.options, | ||
reversed = this.reversed, | ||
@@ -346,6 +316,3 @@ one = reversed ? 1 : 0, | ||
}, | ||
stops: options.stops || [ | ||
[0, options.minColor], | ||
[1, options.maxColor] | ||
] | ||
stops: this.stops | ||
}; | ||
@@ -550,4 +517,3 @@ }, | ||
prop, | ||
ColorAxis.prototype.tweenColors( | ||
color(this.start), | ||
color(this.start).tweenTo( | ||
color(this.end), | ||
@@ -554,0 +520,0 @@ this.pos |
/* | ||
Highmaps JS v5.0.11 (2017-05-04) | ||
Highmaps JS v5.0.12 (2017-05-24) | ||
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file) | ||
@@ -9,63 +9,62 @@ | ||
*/ | ||
(function(y){"object"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(a){var m=a.Axis,p=a.each,l=a.pick;a=a.wrap;a(m.prototype,"getSeriesExtremes",function(a){var g=this.isXAxis,w,m,v=[],d;g&&p(this.series,function(a,c){a.useMapGeometry&&(v[c]=a.xData,a.xData=[])});a.call(this);g&&(w=l(this.dataMin,Number.MAX_VALUE),m=l(this.dataMax,-Number.MAX_VALUE),p(this.series,function(a,c){a.useMapGeometry&&(w=Math.min(w,l(a.minX,w)),m=Math.max(m,l(a.maxX,w)),a.xData=v[c], | ||
d=!0)}),d&&(this.dataMin=w,this.dataMax=m))});a(m.prototype,"setAxisTranslation",function(a){var n=this.chart,g=n.plotWidth/n.plotHeight,n=n.xAxis[0],l;a.call(this);"yAxis"===this.coll&&void 0!==n.transA&&p(this.series,function(a){a.preserveAspectRatio&&(l=!0)});if(l&&(this.transA=n.transA=Math.min(this.transA,n.transA),a=g/((n.max-n.min)/(this.max-this.min)),a=1>a?this:n,g=(a.max-a.min)*a.transA,a.pixelPadding=a.len-g,a.minPixelPadding=a.pixelPadding/2,g=a.fixTo)){g=g[1]-a.toValue(g[0],!0);g*=a.transA; | ||
if(Math.abs(g)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)g=0;a.minPixelPadding-=g}});a(m.prototype,"render",function(a){a.call(this);this.fixTo=null})})(y);(function(a){var m=a.Axis,p=a.Chart,l=a.color,g,n=a.each,w=a.extend,x=a.isNumber,v=a.Legend,d=a.LegendSymbolMixin,b=a.noop,c=a.merge,h=a.pick,r=a.wrap;g=a.ColorAxis=function(){this.init.apply(this,arguments)};w(g.prototype,m.prototype);w(g.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(m.prototype.keepProps),init:function(a,e){var k="vertical"!==a.options.legend.layout,b;this.coll="colorAxis";b=c(this.defaultColorAxisOptions,{side:k?2:1,reversed:!k},e,{opposite:!k,showEmpty:!1,title:null}); | ||
m.prototype.init.call(this,a,b);e.dataClasses&&this.initDataClasses(e);this.initStops(e);this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,e,q){var k;e.rgba.length&&a.rgba.length?(a=a.rgba,e=e.rgba,k=1!==e[3]||1!==a[3],a=(k?"rgba(":"rgb(")+Math.round(e[0]+(a[0]-e[0])*(1-q))+","+Math.round(e[1]+(a[1]-e[1])*(1-q))+","+Math.round(e[2]+(a[2]-e[2])*(1-q))+(k?","+(e[3]+(a[3]-e[3])*(1-q)):"")+")"):a=e.input||"none";return a},initDataClasses:function(a){var k=this,q=this.chart, | ||
b,f=0,h=q.options.chart.colorCount,u=this.options,d=a.dataClasses.length;this.dataClasses=b=[];this.legendItems=[];n(a.dataClasses,function(a,e){a=c(a);b.push(a);a.color||("category"===u.dataClassColor?(e=q.options.colors,h=e.length,a.color=e[f],a.colorIndex=f,f++,f===h&&(f=0)):a.color=k.tweenColors(l(u.minColor),l(u.maxColor),2>d?.5:e/(d-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=l(a[1])})},setOptions:function(a){m.prototype.setOptions.call(this, | ||
a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,e=this.chart,q=e.options.legend||{},c,f;a?(this.left=q=a.attr("x"),this.top=c=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=e.chartWidth-q-f,this.bottom=e.chartHeight-c-a,this.len=this.horiz?f:a,this.pos=this.horiz?q:c):this.len=(this.horiz?q.symbolWidth:q.symbolHeight)||this.defaultLegendLength},toColor:function(a,e){var k=this.stops,c,f,b=this.dataClasses,h,d;if(b)for(d= | ||
b.length;d--;){if(h=b[d],c=h.from,k=h.to,(void 0===c||a>=c)&&(void 0===k||a<=k)){f=h.color;e&&(e.dataClass=d,e.colorIndex=h.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(d=k.length;d--&&!(a>k[d][0]););c=k[d]||k[d+1];k=k[d+1]||c;a=1-(k[0]-a)/(k[0]-c[0]||1);f=this.tweenColors(c.color,k.color,a)}return f},getOffset:function(){var a=this.legendGroup,e=this.chart.axisOffset[this.side];a&&(this.axisParent=a,m.prototype.getOffset.call(this),this.added|| | ||
(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=e)},setLegendColor:function(){var a,e=this.options,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:e.stops||[[0,e.minColor],[1,e.maxColor]]}},drawLegendSymbol:function(a,e){var c=a.padding,k=a.options,f=this.horiz,b=h(k.symbolWidth,f?this.defaultLegendLength:12),d=h(k.symbolHeight,f?12:this.defaultLegendLength),r=h(k.labelPadding, | ||
f?16:30),k=h(k.itemDistance,10);this.setLegendColor();e.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,b,d).attr({zIndex:1}).add(e.legendGroup);this.legendItemWidth=b+c+(f?k:r);this.legendItemHeight=d+c+(f?r:0)},setState:b,visible:!0,setVisible:b,getSeriesExtremes:function(){var a=this.series,e=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;e--;)void 0!==a[e].valueMin&&(this.dataMin=Math.min(this.dataMin,a[e].valueMin),this.dataMax=Math.max(this.dataMax,a[e].valueMax))},drawCrosshair:function(a, | ||
e){var c=e&&e.plotX,k=e&&e.plotY,f,b=this.pos,d=this.len;e&&(f=this.toPixels(e[e.series.colorKey]),f<b?f=b-2:f>b+d&&(f=b+d+2),e.plotX=f,e.plotY=this.len-f,m.prototype.drawCrosshair.call(this,a,e),e.plotX=c,e.plotY=k,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,e,c,b,f){return x(f)?this.horiz?["M",f-4,this.top-6,"L",f+4,this.top-6,f,this.top,"Z"]:["M",this.left,f,"L",this.left-6,f+6, | ||
this.left-6,f-6,"Z"]:m.prototype.getPlotLinePath.call(this,a,e,c,b)},update:function(a,e){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=c(this.userOptions,a);m.prototype.update.call(this,a,e);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this); | ||
m.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var c=this,e=this.chart,q=this.legendItems,h=e.options.legend,f=h.valueDecimals,r=h.valueSuffix||"",g;q.length||n(this.dataClasses,function(k,h){var t=!0,z=k.from,u=k.to;g="";void 0===z?g="\x3c ":void 0===u&&(g="\x3e ");void 0!==z&&(g+=a.numberFormat(z,f)+r);void 0!==z&&void 0!==u&&(g+=" - ");void 0!==u&&(g+=a.numberFormat(u,f)+r);q.push(w({chart:e,name:g,options:{},drawLegendSymbol:d.drawRectangle,visible:!0,setState:b,isDataClass:!0, | ||
setVisible:function(){t=this.visible=!t;n(c.series,function(a){n(a.points,function(a){a.dataClass===h&&a.setVisible(t)})});e.legend.colorizeItem(this,t)}},k))});return q},name:""});n(["fill","stroke"],function(c){a.Fx.prototype[c+"Setter"]=function(){this.elem.attr(c,g.prototype.tweenColors(l(this.start),l(this.end),this.pos),null,!0)}});r(p.prototype,"getAxes",function(a){var c=this.options.colorAxis;a.call(this);this.colorAxis=[];c&&new g(this,c)});r(v.prototype,"getAllItems",function(a){var c= | ||
[],b=this.chart.colorAxis[0];b&&b.options&&(b.options.showInLegend&&(b.options.dataClasses?c=c.concat(b.getDataClassLegendSymbols()):c.push(b)),n(b.series,function(a){a.options.showInLegend=!1}));return c.concat(a.call(this))});r(v.prototype,"colorizeItem",function(a,c,b){a.call(this,c,b);b&&c.legendColor&&c.legendSymbol.attr({fill:c.legendColor})})})(y);(function(a){var m=a.defined,p=a.each,l=a.noop,g=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var g= | ||
this,n=a?"show":"hide";p(["graphic","dataLabel"],function(a){if(g[a])g[a][n]()})},setState:function(g){a.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:l,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:g.column.prototype.pointAttribs,translateColors:function(){var a= | ||
this,g=this.options.nullColor,l=this.colorAxis,m=this.colorKey;p(this.data,function(d){var b=d[m];if(b=d.options.color||(d.isNull?g:l&&void 0!==b?l.toColor(b,d):d.color||a.color))d.color=b})},colorAttribs:function(a){var g={};m(a.color)&&(g[this.colorProp||"fill"]=a.color);return g}}})(y);(function(a){function m(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function p(a){this.init(a)}var l=a.addEvent,g=a.Chart,n=a.doc,w=a.each,x=a.extend,v=a.merge, | ||
d=a.pick,b=a.wrap;p.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};p.prototype.update=function(c){var b=this.chart,g=b.options.mapNavigation,k,e,q,z,f,t=function(a){this.handler.call(b,a);m(a)},u=b.mapNavButtons;c&&(g=b.options.mapNavigation=v(b.options.mapNavigation,c));for(;u.length;)u.pop().destroy();d(g.enableButtons,g.enabled)&&!b.renderer.forExport&&a.objectEach(g.buttons,function(a,c){k=v(g.buttonOptions,a);e=k.theme;e.style=v(k.theme.style,k.style);z=(q=e.states)&&q.hover;f=q&& | ||
q.select;a=b.renderer.button(k.text,0,0,t,e,z,f,0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:k.width,height:k.height,title:b.options.lang[c],padding:k.padding,zIndex:5}).add();a.handler=k.onclick;a.align(x(k,{width:a.width,height:2*a.height}),null,k.alignTo);l(a.element,"dblclick",m);u.push(a)});this.updateEvents(g)};p.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick= | ||
this.unbindDblClick||l(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===n.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};x(g.prototype,{fitToBox:function(a,b){w([["x","width"],["y", | ||
"height"]],function(c){var k=c[0];c=c[1];a[k]+a[c]>b[k]+b[c]&&(a[c]>b[c]?(a[c]=b[c],a[k]=b[k]):a[k]=b[k]+b[c]-a[c]);a[c]>b[c]&&(a[c]=b[c]);a[k]<b[k]&&(a[k]=b[k])});return a},mapZoom:function(a,b,g,k,e){var c=this.xAxis[0],h=c.max-c.min,f=d(b,c.min+h/2),t=h*a,h=this.yAxis[0],u=h.max-h.min,n=d(g,h.min+u/2),u=u*a,f=this.fitToBox({x:f-t*(k?(k-c.pos)/c.len:.5),y:n-u*(e?(e-h.pos)/h.len:.5),width:t,height:u},{x:c.dataMin,y:h.dataMin,width:c.dataMax-c.dataMin,height:h.dataMax-h.dataMin}),t=f.x<=c.dataMin&& | ||
f.width>=c.dataMax-c.dataMin&&f.y<=h.dataMin&&f.height>=h.dataMax-h.dataMin;k&&(c.fixTo=[k-c.pos,b]);e&&(h.fixTo=[e-h.pos,g]);void 0===a||t?(c.setExtremes(void 0,void 0,!1),h.setExtremes(void 0,void 0,!1)):(c.setExtremes(f.x,f.x+f.width,!1),h.setExtremes(f.y,f.y+f.height,!1));this.redraw()}});b(g.prototype,"render",function(a){this.mapNavigation=new p(this);this.mapNavigation.update();a.call(this)})})(y);(function(a){var m=a.extend,p=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var g= | ||
this.chart;a=this.normalize(a);g.options.mapNavigation.enableDoubleClickZoomTo?g.pointer.inClass(a.target,"highcharts-tracker")&&g.hoverPoint&&g.hoverPoint.zoomTo():g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(.5,g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var g=this.chart,l;a=this.normalize(a);l=a.detail||-(a.wheelDelta/120);g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(Math.pow(g.options.mapNavigation.mouseWheelSensitivity, | ||
l),g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,"zoomOption",function(a){var g=this.chart.options.mapNavigation;p(g.enableTouchZoom,g.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,"pinchTranslate",function(a,l,m,p,v,d,b){a.call(this,l,m,p,v,d,b);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=p.scaleX>p.scaleY,this.pinchTranslateDirection(!a,l,m,p,v,d,b,a?p.scaleX:p.scaleY))})})(y); | ||
(function(a){var m=a.color,p=a.ColorAxis,l=a.colorPointMixin,g=a.each,n=a.extend,w=a.isNumber,x=a.map,v=a.merge,d=a.noop,b=a.pick,c=a.isArray,h=a.Point,r=a.Series,k=a.seriesType,e=a.seriesTypes,q=a.splat,z=void 0!==a.doc.documentElement.style.vectorEffect;k("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1, | ||
overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},v(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:d,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(f){var c=Number.MAX_VALUE,e=-c,k=c,d=-c,h=c,q=c,l=this.xAxis,r=this.yAxis,z;g(f||[],function(f){if(f.path){"string"=== | ||
typeof f.path&&(f.path=a.splitPath(f.path));var g=f.path||[],u=g.length,l=!1,r=-c,t=c,m=-c,n=c,p=f.properties;if(!f._foundBox){for(;u--;)w(g[u])&&(l?(r=Math.max(r,g[u]),t=Math.min(t,g[u])):(m=Math.max(m,g[u]),n=Math.min(n,g[u])),l=!l);f._midX=t+(r-t)*(f.middleX||p&&p["hc-middle-x"]||.5);f._midY=n+(m-n)*(f.middleY||p&&p["hc-middle-y"]||.5);f._maxX=r;f._minX=t;f._maxY=m;f._minY=n;f.labelrank=b(f.labelrank,(r-t)*(m-n));f._foundBox=!0}e=Math.max(e,f._maxX);k=Math.min(k,f._minX);d=Math.max(d,f._maxY); | ||
h=Math.min(h,f._minY);q=Math.min(f._maxX-f._minX,f._maxY-f._minY,q);z=!0}});z&&(this.minY=Math.min(h,b(this.minY,c)),this.maxY=Math.max(d,b(this.maxY,-c)),this.minX=Math.min(k,b(this.minX,c)),this.maxX=Math.max(e,b(this.maxX,-c)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*q,(this.maxX-this.minX)/5,l.minRange||c)),r&&void 0===r.options.minRange&&(r.minRange=Math.min(5*q,(this.maxY-this.minY)/5,r.minRange||c)))},getExtremes:function(){r.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&& | ||
this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var f=!1,c=this.xAxis,b=this.yAxis,e=c.min,k=c.transA,c=c.minPixelPadding,d=b.min,g=b.transA,b=b.minPixelPadding,h,q=[];if(a)for(h=a.length;h--;)w(a[h])?(q[h]=f?(a[h]-e)*k+c:(a[h]-d)*g+b,f=!f):q[h]=a[h];return q},setData:function(f,b,e,k){var d=this.options,h=this.chart.options.chart,u=h&&h.map,l=d.mapData,t=d.joinBy,z=null=== | ||
t,m=d.keys||this.pointArrayMap,n=[],p={},A=this.chart.mapTransforms;!l&&u&&(l="string"===typeof u?a.maps[u]:u);z&&(t="_i");t=this.joinBy=q(t);t[1]||(t[1]=t[0]);f&&g(f,function(a,b){var e=0;if(w(a))f[b]={value:a};else if(c(a)){f[b]={};!d.keys&&a.length>m.length&&"string"===typeof a[0]&&(f[b]["hc-key"]=a[0],++e);for(var k=0;k<m.length;++k,++e)m[k]&&(f[b][m[k]]=a[e])}z&&(f[b]._i=b)});this.getBox(f);(this.chart.mapTransforms=A=h&&h.mapTransforms||l&&l["hc-transform"]||A)&&a.objectEach(A,function(a){a.rotation&& | ||
(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=a.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(A=0;A<l.length;A++)h=l[A],u=h.properties,h._i=A,t[0]&&u&&u[t[0]]&&(h[t[0]]=u[t[0]]),p[h[t[0]]]=h;this.mapMap=p;f&&t[1]&&g(f,function(a){p[a[t[1]]]&&n.push(p[a[t[1]]])});d.allAreas?(this.getBox(l),f=f||[],t[1]&&g(f,function(a){n.push(a[t[1]])}),n="|"+x(n,function(a){return a&&a[t[0]]}).join("|")+"|",g(l,function(a){t[0]&& | ||
-1!==n.indexOf("|"+a[t[0]]+"|")||(f.push(v(a,{value:null})),k=!1)})):this.getBox(n)}r.prototype.setData.call(this,f,b,e,k)},drawGraph:d,drawDataLabels:d,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,c=a.yAxis,e=a.doFullTranslate();a.generatePoints();g(a.data,function(f){f.plotX=b.toPixels(f._midX,!0);f.plotY=c.toPixels(f._midY,!0);e&&(f.shapeType="path",f.shapeArgs={d:a.translatePath(f.path)})}); | ||
a.translateColors()},pointAttribs:function(a,b){b=e.column.prototype.pointAttribs.call(this,a,b);a.isFading&&delete b.fill;z?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,c=a.yAxis,k=a.group,d=a.chart,h=d.renderer,q,l,r,n,m=this.baseTrans,p,w,v,x,y;a.transformGroup||(a.transformGroup=h.g().attr({scaleX:1,scaleY:1}).add(k),a.transformGroup.survive=!0);a.doFullTranslate()?(d.hasRendered&&g(a.points,function(b){b.shapeArgs&&(b.shapeArgs.fill= | ||
a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,e.column.prototype.drawPoints.apply(a),a.group=k,g(a.points,function(a){a.graphic&&(a.name&&a.graphic.addClass("highcharts-name-"+a.name.replace(/ /g,"-").toLowerCase()),a.properties&&a.properties["hc-key"]&&a.graphic.addClass("highcharts-key-"+a.properties["hc-key"].toLowerCase()))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA}, | ||
this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(q=b.transA/m.transAX,l=c.transA/m.transAY,r=b.toPixels(m.originX,!0),n=c.toPixels(m.originY,!0),.99<q&&1.01>q&&.99<l&&1.01>l&&(l=q=1,r=Math.round(r),n=Math.round(n)),p=this.transformGroup,d.renderer.globalAnimation?(w=p.attr("translateX"),v=p.attr("translateY"),x=p.attr("scaleX"),y=p.attr("scaleY"),p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:w+(r-w)*b.pos,translateY:v+(n-v)*b.pos,scaleX:x+ | ||
(q-x)*b.pos,scaleY:y+(l-y)*b.pos})}})):p.attr({translateX:r,translateY:n,scaleX:q,scaleY:l}));z||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(q||1));this.drawMapDataLabels()},drawMapDataLabels:function(){r.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=r.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}): | ||
b.call(a)},animate:function(a){var b=this.options.animation,c=this.group,f=this.xAxis,e=this.yAxis,k=f.pos,d=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:k+f.len/2,translateY:d+e.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:k,translateY:d,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],f=c.bBox,e=this.chart.options.drilldown.animation;a|| | ||
(a=Math.min(f.width/b.width,f.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:f.x,translateY:f.y},g(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){e.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){e.column.prototype.animateDrillupTo.call(this,a)}}),n({applyOptions:function(a,b){a=h.prototype.applyOptions.call(this, | ||
a,b);b=this.series;var c=b.joinBy;b.mapData&&((c=void 0!==a[c[1]]&&b.mapMap[a[c[1]]])?(b.xyFromShape&&(a.x=c._midX,a.y=c._midY),n(a,c)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)h.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},onMouseOut:function(){var a=this,b=+new Date,c=m(this.series.pointAttribs(a).fill),e=m(this.series.pointAttribs(a,"hover").fill),k=a.series.options.states.normal.animation, | ||
d=k&&(k.duration||500);d&&4===c.rgba.length&&4===e.rgba.length&&"select"!==a.state&&(clearTimeout(a.colorInterval),a.colorInterval=setInterval(function(){var k=(new Date-b)/d,f=a.graphic;1<k&&(k=1);f&&f.attr("fill",p.prototype.tweenColors.call(0,e,c,k));1<=k&&clearTimeout(a.colorInterval)},13),a.isFading=!0);h.prototype.onMouseOut.call(a);a.isFading=null},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}}, | ||
l))})(y);(function(a){var m=a.seriesType,p=a.seriesTypes;m("mapline","map",{lineWidth:1,fillColor:"none"},{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,g){a=p.map.prototype.pointAttribs.call(this,a,g);a.fill=this.options.fillColor;return a},drawLegendSymbol:p.line.prototype.drawLegendSymbol})})(y);(function(a){var m=a.merge,p=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name}, | ||
crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,g){a=void 0!==a.lat&&void 0!==a.lon?m(a,this.series.chart.fromLatLonToPoint(a)):a;return p.prototype.applyOptions.call(this,a,g)}})})(y);(function(a){var m=a.arrayMax,p=a.arrayMin,l=a.Axis,g=a.color,n=a.each,w=a.isNumber,x=a.noop,v=a.pick,d=a.pInt,b=a.Point,c=a.Series,h=a.seriesType,r=a.seriesTypes;h("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}, | ||
marker:{lineColor:null,lineWidth:1,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,pointAttribs:function(a,b){var e=v(this.options.marker.fillOpacity, | ||
.5);a=c.prototype.pointAttribs.call(this,a,b);1!==e&&(a.fill=g(a.fill).setOpacity(e).get("rgba"));return a},getRadii:function(a,b,c,d){var e,k,h,g=this.zData,q=[],l=this.options,r="width"!==l.sizeBy,n=l.zThreshold,m=b-a;k=0;for(e=g.length;k<e;k++)h=g[k],l.sizeByAbsoluteValue&&null!==h&&(h=Math.abs(h-n),b=Math.max(b-n,Math.abs(a-n)),a=0),null===h?h=null:h<a?h=c/2-1:(h=0<m?(h-a)/m:.5,r&&0<=h&&(h=Math.sqrt(h)),h=Math.ceil(c+h*(d-c))/2),q.push(h);this.radii=q},animate:function(a){var b=this.options.animation; | ||
a||(n(this.points,function(a){var c=a.graphic,e;c&&c.width&&(e={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(e,b))}),this.animate=null)},translate:function(){var b,c=this.data,h,d,f=this.radii;r.scatter.prototype.translate.call(this);for(b=c.length;b--;)h=c[b],d=f?f[b]:0,w(d)&&d>=this.minPxSize/2?(h.marker=a.extend(h.marker,{radius:d,width:2*d,height:2*d}),h.dlBox={x:h.plotX-d,y:h.plotY-d,width:2*d,height:2*d}):h.shapeArgs=h.plotY=h.dlBox=void 0}, | ||
alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:x,applyZones:x},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,h=0,f=b,g=this.isXAxis,l=g?"xData":"yData",r=this.min,x={},y=Math.min(c.plotWidth,c.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,B=b/E,F=[];n(this.series,function(b){var h=b.options;!b.bubblePadding||!b.visible&& | ||
c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),g&&(n(["minSize","maxSize"],function(a){var b=h[a],c=/%$/.test(b),b=d(b);x[a]=c?y*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=b.zData,b.length&&(C=v(h.zMin,Math.min(C,Math.max(p(b),!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=v(h.zMax,Math.max(D,m(b))))))});n(F,function(b){var c=b[l],e=c.length,d;g&&b.getRadii(C,D,b.minPxSize,b.maxPxSize);if(0<E)for(;e--;)w(c[e])&&a.dataMin<=c[e]&&c[e]<= | ||
a.dataMax&&(d=b.radii[e],h=Math.min((c[e]-r)*B-d,h),f=Math.max((c[e]-r)*B+d,f))});F.length&&0<E&&!this.isLog&&(f-=b,B*=(b+h-f)/b,n([["min","userMin",h],["max","userMax",f]],function(b){void 0===v(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/B)}))}})(y);(function(a){var m=a.merge,p=a.Point,l=a.seriesType,g=a.seriesTypes;g.bubble&&l("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:g.map.prototype.getMapData, | ||
getBox:g.map.prototype.getBox,setData:g.map.prototype.setData},{applyOptions:function(a,l){return a&&void 0!==a.lat&&void 0!==a.lon?p.prototype.applyOptions.call(this,m(a,this.series.chart.fromLatLonToPoint(a)),l):g.map.prototype.pointClass.prototype.applyOptions.call(this,a,l)},ttBelow:!1})})(y);(function(a){var m=a.colorPointMixin,p=a.each,l=a.merge,g=a.noop,n=a.pick,w=a.Series,x=a.seriesType,v=a.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value}, | ||
inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},l(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=n(a.pointRange,a.colsize||1);this.yAxis.axisPointRange= | ||
a.rowsize||1},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,h=function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();p(this.points,function(d){var k=(a.colsize||1)/2,e=(a.rowsize||1)/2,g=h(Math.round(b.len-b.translate(d.x-k,0,1,0,1)),-b.len,2*b.len),k=h(Math.round(b.len-b.translate(d.x+k,0,1,0,1)),-b.len,2*b.len),l=h(Math.round(c.translate(d.y-e,0,1,0,1)),-c.len,2*c.len),e=h(Math.round(c.translate(d.y+e,0,1,0,1)),-c.len,2*c.len);d.plotX=d.clientX=(g+k)/2;d.plotY= | ||
(l+e)/2;d.shapeType="rect";d.shapeArgs={x:Math.min(g,k),y:Math.min(l,e),width:Math.abs(k-g),height:Math.abs(e-l)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this);p(this.points,function(a){a.graphic.attr(this.colorAttribs(a))},this)},animate:g,getBox:g,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){w.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax= | ||
this.dataMax;w.prototype.getExtremes.call(this)}}),m)})(y);(function(a){function m(a,b){var c,h,d,k=!1,e=a.x,g=a.y;a=0;for(c=b.length-1;a<b.length;c=a++)h=b[a][1]>g,d=b[c][1]>g,h!==d&&e<(b[c][0]-b[a][0])*(g-b[a][1])/(b[c][1]-b[a][1])+b[a][0]&&(k=!k);return k}var p=a.Chart,l=a.each,g=a.extend,n=a.format,w=a.merge,x=a.win,v=a.wrap;p.prototype.transformFromLatLon=function(d,b){if(void 0===x.proj4)return a.error(21),{x:0,y:null};d=x.proj4(b.crs,[d.lon,d.lat]);var c=b.cosAngle||b.rotation&&Math.cos(b.rotation), | ||
h=b.sinAngle||b.rotation&&Math.sin(b.rotation);d=b.rotation?[d[0]*c+d[1]*h,-d[0]*h+d[1]*c]:d;return{x:((d[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-d[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};p.prototype.transformToLatLon=function(d,b){if(void 0===x.proj4)a.error(21);else{d={x:((d.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-d.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale|| | ||
1)+(b.yoffset||0)};var c=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=x.proj4(b.crs,"WGS84",b.rotation?{x:d.x*c+d.y*-h,y:d.x*h+d.y*c}:d);return{lat:b.y,lon:b.x}}};p.prototype.fromPointToLatLon=function(d){var b=this.mapTransforms,c;if(b){for(c in b)if(b.hasOwnProperty(c)&&b[c].hitZone&&m({x:d.x,y:-d.y},b[c].hitZone.coordinates[0]))return this.transformToLatLon(d,b[c]);return this.transformToLatLon(d,b["default"])}a.error(22)};p.prototype.fromLatLonToPoint= | ||
function(d){var b=this.mapTransforms,c,h;if(!b)return a.error(22),{x:0,y:null};for(c in b)if(b.hasOwnProperty(c)&&b[c].hitZone&&(h=this.transformFromLatLon(d,b[c]),m({x:h.x,y:-h.y},b[c].hitZone.coordinates[0])))return h;return this.transformFromLatLon(d,b["default"])};a.geojson=function(a,b,c){var h=[],d=[],k=function(a){var b,c=a.length;d.push("M");for(b=0;b<c;b++)1===b&&d.push("L"),d.push(a[b][0],-a[b][1])};b=b||"map";l(a.features,function(a){var c=a.geometry,e=c.type,c=c.coordinates;a=a.properties; | ||
var f;d=[];"map"===b||"mapbubble"===b?("Polygon"===e?(l(c,k),d.push("Z")):"MultiPolygon"===e&&(l(c,function(a){l(a,k)}),d.push("Z")),d.length&&(f={path:d})):"mapline"===b?("LineString"===e?k(c):"MultiLineString"===e&&l(c,k),d.length&&(f={path:d})):"mappoint"===b&&"Point"===e&&(f={x:c[0],y:-c[1]});f&&h.push(g(f,{name:a.name||a.NAME,properties:a}))});c&&a.copyrightShort&&(c.chart.mapCredits=n(c.chart.options.credits.mapText,{geojson:a}),c.chart.mapCreditsFull=n(c.chart.options.credits.mapTextFull,{geojson:a})); | ||
return h};v(p.prototype,"addCredits",function(a,b){b=w(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(y);(function(a){function m(a,b,d,k,e,g,l,f){return["M",a+e,b,"L",a+d-g,b,"C",a+d-g/2,b,a+d,b+g/2,a+d,b+g,"L",a+d,b+k-l,"C",a+d,b+k-l/2,a+d-l/2,b+k,a+d-l,b+k,"L",a+f,b+k,"C",a+f/2,b+k,a,b+k-f/2,a,b+k-f,"L",a,b+e,"C",a,b+e/2,a+e/2,b,a+e,b,"Z"]}var p=a.Chart,l=a.defaultOptions,g=a.each,n=a.extend, | ||
w=a.merge,x=a.pick,v=a.Renderer,d=a.SVGRenderer,b=a.VMLRenderer;n(l.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});l.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b; | ||
a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};d.prototype.symbols.topbutton=function(a,b,d,k,e){return m(a-1,b-1,d,k,e.r,e.r,0,0)};d.prototype.symbols.bottombutton=function(a,b,d,k,e){return m(a-1,b-1,d,k,0,0,e.r,e.r)};v===b&&g(["topbutton","bottombutton"],function(a){b.prototype.symbols[a]=d.prototype.symbols[a]});a.Map=a.mapChart=function(b,d,g){var c="string"=== | ||
typeof b||b.nodeName,e=arguments[c?1:0],h={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},l,f=a.getOptions().credits;l=e.series;e.series=null;e=w({chart:{panning:"xy",type:"map"},credits:{mapText:x(f.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:x(f.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:h,yAxis:w(h,{reversed:!0})},e,{chart:{inverted:!1,alignTicks:!1}});e.series=l;return c?new p(b,e,g): | ||
new p(e,d)}})(y)}); | ||
(function(v){"object"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){var h=a.Axis,n=a.each,k=a.pick;a=a.wrap;a(h.prototype,"getSeriesExtremes",function(a){var p=this.isXAxis,d,h,t=[],f;p&&n(this.series,function(a,b){a.useMapGeometry&&(t[b]=a.xData,a.xData=[])});a.call(this);p&&(d=k(this.dataMin,Number.MAX_VALUE),h=k(this.dataMax,-Number.MAX_VALUE),n(this.series,function(a,b){a.useMapGeometry&&(d=Math.min(d,k(a.minX,d)),h=Math.max(h,k(a.maxX,d)),a.xData=t[b], | ||
f=!0)}),f&&(this.dataMin=d,this.dataMax=h))});a(h.prototype,"setAxisTranslation",function(a){var p=this.chart,d=p.plotWidth/p.plotHeight,p=p.xAxis[0],k;a.call(this);"yAxis"===this.coll&&void 0!==p.transA&&n(this.series,function(a){a.preserveAspectRatio&&(k=!0)});if(k&&(this.transA=p.transA=Math.min(this.transA,p.transA),a=d/((p.max-p.min)/(this.max-this.min)),a=1>a?this:p,d=(a.max-a.min)*a.transA,a.pixelPadding=a.len-d,a.minPixelPadding=a.pixelPadding/2,d=a.fixTo)){d=d[1]-a.toValue(d[0],!0);d*=a.transA; | ||
if(Math.abs(d)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)d=0;a.minPixelPadding-=d}});a(h.prototype,"render",function(a){a.call(this);this.fixTo=null})})(v);(function(a){var h=a.Axis,n=a.Chart,k=a.color,d,p=a.each,z=a.extend,w=a.isNumber,t=a.Legend,f=a.LegendSymbolMixin,c=a.noop,b=a.merge,l=a.pick,r=a.wrap;d=a.ColorAxis=function(){this.init.apply(this,arguments)};z(d.prototype,h.prototype);z(d.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(h.prototype.keepProps),init:function(a,q){var g="vertical"!==a.options.legend.layout,e;this.coll="colorAxis";e=b(this.defaultColorAxisOptions,{side:g?2:1,reversed:!g},q,{opposite:!g,showEmpty:!1,title:null}); | ||
h.prototype.init.call(this,a,e);q.dataClasses&&this.initDataClasses(q);this.initStops();this.horiz=g;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var g=this.chart,u,e=0,m=g.options.chart.colorCount,c=this.options,l=a.dataClasses.length;this.dataClasses=u=[];this.legendItems=[];p(a.dataClasses,function(a,q){a=b(a);u.push(a);a.color||("category"===c.dataClassColor?(q=g.options.colors,m=q.length,a.color=q[e],a.colorIndex=e,e++,e===m&&(e=0)):a.color=k(c.minColor).tweenTo(k(c.maxColor), | ||
2>l?.5:q/(l-1)))})},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];p(this.stops,function(a){a.color=k(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,q=this.chart,b=q.options.legend||{},e,m;a?(this.left=b=a.attr("x"),this.top=e=a.attr("y"),this.width=m=a.attr("width"),this.height=a=a.attr("height"),this.right=q.chartWidth-b-m,this.bottom= | ||
q.chartHeight-e-a,this.len=this.horiz?m:a,this.pos=this.horiz?b:e):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var g=this.stops,e,m,q=this.dataClasses,c,l;if(q)for(l=q.length;l--;){if(c=q[l],e=c.from,g=c.to,(void 0===e||a>=e)&&(void 0===g||a<=g)){m=c.color;b&&(b.dataClass=l,b.colorIndex=c.colorIndex);break}}else{a=this.normalizedValue(a); | ||
for(l=g.length;l--&&!(a>g[l][0]););e=g[l]||g[l+1];g=g[l+1]||e;a=1-(g[0]-a)/(g[0]-e[0]||1);m=e.color.tweenTo(g.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0], | ||
y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var g=a.padding,e=a.options,m=this.horiz,q=l(e.symbolWidth,m?this.defaultLegendLength:12),c=l(e.symbolHeight,m?12:this.defaultLegendLength),f=l(e.labelPadding,m?16:30),e=l(e.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,q,c).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=q+g+(m?e:f);this.legendItemHeight=c+g+(m?f:0)},setState:c,visible:!0,setVisible:c,getSeriesExtremes:function(){var a= | ||
this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var g=b&&b.plotX,e=b&&b.plotY,m,c=this.pos,q=this.len;b&&(m=this.toPixels(b[b.series.colorKey]),m<c?m=c-2:m>c+q&&(m=c+q+2),b.plotX=m,b.plotY=this.len-m,h.prototype.drawCrosshair.call(this,a,b),b.plotX=g,b.plotY=e,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup), | ||
this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,e,m){return w(m)?this.horiz?["M",m-4,this.top-6,"L",m+4,this.top-6,m,this.top,"Z"]:["M",this.left,m,"L",this.left-6,m+6,this.left-6,m-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,b,c,e)},update:function(a,c){var g=this.chart,e=g.legend;p(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&e.allItems&&(p(e.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),g.isDirtyLegend=!0);g.options[this.coll]= | ||
b(this.userOptions,a);h.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var b=this,q=this.chart,l=this.legendItems,e=q.options.legend,m=e.valueDecimals,r=e.valueSuffix||"",d;l.length||p(this.dataClasses,function(e,g){var u=!0,k=e.from,x=e.to;d="";void 0===k?d="\x3c ":void 0===x&&(d="\x3e ");void 0!==k&&(d+=a.numberFormat(k, | ||
m)+r);void 0!==k&&void 0!==x&&(d+=" - ");void 0!==x&&(d+=a.numberFormat(x,m)+r);l.push(z({chart:q,name:d,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){u=this.visible=!u;p(b.series,function(a){p(a.points,function(a){a.dataClass===g&&a.setVisible(u)})});q.legend.colorizeItem(this,u)}},e))});return l},name:""});p(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,k(this.start).tweenTo(k(this.end),this.pos),null, | ||
!0)}});r(n.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new d(this,b)});r(t.prototype,"getAllItems",function(a){var b=[],c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?b=b.concat(c.getDataClassLegendSymbols()):b.push(c)),p(c.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});r(t.prototype,"colorizeItem",function(a,b,c){a.call(this,b,c);c&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(v); | ||
(function(a){var h=a.defined,n=a.each,k=a.noop,d=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var d=this,p=a?"show":"hide";n(["graphic","dataLabel"],function(a){if(d[a])d[a][p]()})},setState:function(d){a.Point.prototype.setState.call(this,d);this.graphic&&this.graphic.attr({zIndex:"hover"===d?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup", | ||
"dataLabelsGroup"],getSymbol:k,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:d.column.prototype.pointAttribs,translateColors:function(){var a=this,d=this.options.nullColor,k=this.colorAxis,h=this.colorKey;n(this.data,function(f){var c=f[h];if(c=f.options.color||(f.isNull?d:k&&void 0!==c?k.toColor(c,f):f.color||a.color))f.color=c})},colorAttribs:function(a){var d={};h(a.color)&&(d[this.colorProp||"fill"]=a.color);return d}}})(v);(function(a){function h(a){a&&(a.preventDefault&&a.preventDefault(), | ||
a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function n(a){this.init(a)}var k=a.addEvent,d=a.Chart,p=a.doc,z=a.each,w=a.extend,t=a.merge,f=a.pick,c=a.wrap;n.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};n.prototype.update=function(b){var c=this.chart,d=c.options.mapNavigation,g,q,u,e,m,p=function(a){this.handler.call(c,a);h(a)},y=c.mapNavButtons;b&&(d=c.options.mapNavigation=t(c.options.mapNavigation,b));for(;y.length;)y.pop().destroy();f(d.enableButtons,d.enabled)&&!c.renderer.forExport&& | ||
a.objectEach(d.buttons,function(a,b){g=t(d.buttonOptions,a);q=g.theme;q.style=t(g.theme.style,g.style);e=(u=q.states)&&u.hover;m=u&&u.select;a=c.renderer.button(g.text,0,0,p,q,e,m,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:g.width,height:g.height,title:c.options.lang[b],padding:g.padding,zIndex:5}).add();a.handler=g.onclick;a.align(w(g,{width:a.width,height:2*a.height}),null,g.alignTo);k(a.element,"dblclick",h);y.push(a)});this.updateEvents(d)};n.prototype.updateEvents= | ||
function(a){var b=this.chart;f(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());f(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===p.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);h(a);return!1}):this.unbindMouseWheel&& | ||
(this.unbindMouseWheel=this.unbindMouseWheel())};w(d.prototype,{fitToBox:function(a,c){z([["x","width"],["y","height"]],function(b){var g=b[0];b=b[1];a[g]+a[b]>c[g]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[g]=c[g]):a[g]=c[g]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[g]<c[g]&&(a[g]=c[g])});return a},mapZoom:function(a,c,d,g,q){var b=this.xAxis[0],e=b.max-b.min,m=f(c,b.min+e/2),l=e*a,e=this.yAxis[0],p=e.max-e.min,k=f(d,e.min+p/2),p=p*a,m=this.fitToBox({x:m-l*(g?(g-b.pos)/b.len:.5),y:k-p*(q?(q-e.pos)/e.len:.5),width:l, | ||
height:p},{x:b.dataMin,y:e.dataMin,width:b.dataMax-b.dataMin,height:e.dataMax-e.dataMin}),l=m.x<=b.dataMin&&m.width>=b.dataMax-b.dataMin&&m.y<=e.dataMin&&m.height>=e.dataMax-e.dataMin;g&&(b.fixTo=[g-b.pos,c]);q&&(e.fixTo=[q-e.pos,d]);void 0===a||l?(b.setExtremes(void 0,void 0,!1),e.setExtremes(void 0,void 0,!1)):(b.setExtremes(m.x,m.x+m.width,!1),e.setExtremes(m.y,m.y+m.height,!1));this.redraw()}});c(d.prototype,"render",function(a){this.mapNavigation=new n(this);this.mapNavigation.update();a.call(this)})})(v); | ||
(function(a){var h=a.extend,n=a.pick,k=a.Pointer;a=a.wrap;h(k.prototype,{onContainerDblClick:function(a){var d=this.chart;a=this.normalize(a);d.options.mapNavigation.enableDoubleClickZoomTo?d.pointer.inClass(a.target,"highcharts-tracker")&&d.hoverPoint&&d.hoverPoint.zoomTo():d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(.5,d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var d=this.chart,k;a=this.normalize(a);k=a.detail|| | ||
-(a.wheelDelta/120);d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(Math.pow(d.options.mapNavigation.mouseWheelSensitivity,k),d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,"zoomOption",function(a){var d=this.chart.options.mapNavigation;n(d.enableTouchZoom,d.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,"pinchTranslate",function(a,k,h,n,t,f,c){a.call(this,k,h,n,t,f,c);"map"=== | ||
this.chart.options.chart.type&&this.hasZoom&&(a=n.scaleX>n.scaleY,this.pinchTranslateDirection(!a,k,h,n,t,f,c,a?n.scaleX:n.scaleY))})})(v);(function(a){var h=a.color,n=a.colorPointMixin,k=a.each,d=a.extend,p=a.isNumber,z=a.map,w=a.merge,t=a.noop,f=a.pick,c=a.isArray,b=a.Point,l=a.Series,r=a.seriesType,g=a.seriesTypes,q=a.splat,u=void 0!==a.doc.documentElement.style.vectorEffect;r("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1, | ||
joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},w(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:t,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"], | ||
getBox:function(e){var b=Number.MAX_VALUE,c=-b,g=b,d=-b,q=b,l=b,u=this.xAxis,r=this.yAxis,h;k(e||[],function(e){if(e.path){"string"===typeof e.path&&(e.path=a.splitPath(e.path));var m=e.path||[],u=m.length,k=!1,r=-b,x=b,y=-b,n=b,A=e.properties;if(!e._foundBox){for(;u--;)p(m[u])&&(k?(r=Math.max(r,m[u]),x=Math.min(x,m[u])):(y=Math.max(y,m[u]),n=Math.min(n,m[u])),k=!k);e._midX=x+(r-x)*(e.middleX||A&&A["hc-middle-x"]||.5);e._midY=n+(y-n)*(e.middleY||A&&A["hc-middle-y"]||.5);e._maxX=r;e._minX=x;e._maxY= | ||
y;e._minY=n;e.labelrank=f(e.labelrank,(r-x)*(y-n));e._foundBox=!0}c=Math.max(c,e._maxX);g=Math.min(g,e._minX);d=Math.max(d,e._maxY);q=Math.min(q,e._minY);l=Math.min(e._maxX-e._minX,e._maxY-e._minY,l);h=!0}});h&&(this.minY=Math.min(q,f(this.minY,b)),this.maxY=Math.max(d,f(this.maxY,-b)),this.minX=Math.min(g,f(this.minX,b)),this.maxX=Math.max(c,f(this.maxX,-b)),u&&void 0===u.options.minRange&&(u.minRange=Math.min(5*l,(this.maxX-this.minX)/5,u.minRange||b)),r&&void 0===r.options.minRange&&(r.minRange= | ||
Math.min(5*l,(this.maxY-this.minY)/5,r.minRange||b)))},getExtremes:function(){l.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var e=!1,b=this.xAxis,c=this.yAxis,g=b.min,d=b.transA,b=b.minPixelPadding,q=c.min,f=c.transA,c=c.minPixelPadding,l,u=[];if(a)for(l=a.length;l--;)p(a[l])?(u[l]=e?(a[l]-g)*d+b: | ||
(a[l]-q)*f+c,e=!e):u[l]=a[l];return u},setData:function(e,b,g,d){var m=this.options,f=this.chart.options.chart,u=f&&f.map,r=m.mapData,h=m.joinBy,n=null===h,x=m.keys||this.pointArrayMap,y=[],B={},t=this.chart.mapTransforms;!r&&u&&(r="string"===typeof u?a.maps[u]:u);n&&(h="_i");h=this.joinBy=q(h);h[1]||(h[1]=h[0]);e&&k(e,function(a,b){var g=0;if(p(a))e[b]={value:a};else if(c(a)){e[b]={};!m.keys&&a.length>x.length&&"string"===typeof a[0]&&(e[b]["hc-key"]=a[0],++g);for(var d=0;d<x.length;++d,++g)x[d]&& | ||
(e[b][x[d]]=a[g])}n&&(e[b]._i=b)});this.getBox(e);(this.chart.mapTransforms=t=f&&f.mapTransforms||r&&r["hc-transform"]||t)&&a.objectEach(t,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(r){"FeatureCollection"===r.type&&(this.mapTitle=r.title,r=a.geojson(r,this.type,this));this.mapData=r;this.mapMap={};for(t=0;t<r.length;t++)f=r[t],u=f.properties,f._i=t,h[0]&&u&&u[h[0]]&&(f[h[0]]=u[h[0]]),B[f[h[0]]]=f;this.mapMap=B;e&&h[1]&&k(e,function(a){B[a[h[1]]]&& | ||
y.push(B[a[h[1]]])});m.allAreas?(this.getBox(r),e=e||[],h[1]&&k(e,function(a){y.push(a[h[1]])}),y="|"+z(y,function(a){return a&&a[h[0]]}).join("|")+"|",k(r,function(a){h[0]&&-1!==y.indexOf("|"+a[h[0]]+"|")||(e.push(w(a,{value:null})),d=!1)})):this.getBox(y)}l.prototype.setData.call(this,e,b,g,d)},drawGraph:t,drawDataLabels:t,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,c=a.yAxis,g=a.doFullTranslate(); | ||
a.generatePoints();k(a.data,function(e){e.plotX=b.toPixels(e._midX,!0);e.plotY=c.toPixels(e._midY,!0);g&&(e.shapeType="path",e.shapeArgs={d:a.translatePath(e.path)})});a.translateColors()},pointAttribs:function(a,b){b=g.column.prototype.pointAttribs.call(this,a,b);a.isFading&&delete b.fill;u?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,f=a.chart,q=f.renderer,l,r,h,p,n=this.baseTrans,t,B,z,w,v;a.transformGroup|| | ||
(a.transformGroup=q.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);a.doFullTranslate()?(f.hasRendered&&k(a.points,function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,g.column.prototype.drawPoints.apply(a),a.group=d,k(a.points,function(a){a.graphic&&(a.name&&a.graphic.addClass("highcharts-name-"+a.name.replace(/ /g,"-").toLowerCase()),a.properties&&a.properties["hc-key"]&&a.graphic.addClass("highcharts-key-"+a.properties["hc-key"].toLowerCase()))}), | ||
this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(l=b.transA/n.transAX,r=c.transA/n.transAY,h=b.toPixels(n.originX,!0),p=c.toPixels(n.originY,!0),.99<l&&1.01>l&&.99<r&&1.01>r&&(r=l=1,h=Math.round(h),p=Math.round(p)),t=this.transformGroup,f.renderer.globalAnimation?(B=t.attr("translateX"),z=t.attr("translateY"), | ||
w=t.attr("scaleX"),v=t.attr("scaleY"),t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:B+(h-B)*b.pos,translateY:z+(p-z)*b.pos,scaleX:w+(l-w)*b.pos,scaleY:v+(r-v)*b.pos})}})):t.attr({translateX:h,translateY:p,scaleX:l,scaleY:r}));u||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(l||1));this.drawMapDataLabels()},drawMapDataLabels:function(){l.prototype.drawDataLabels.call(this);this.dataLabelsGroup&& | ||
this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=l.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)},animate:function(a){var b=this.options.animation,e=this.group,c=this.xAxis,g=this.yAxis,d=c.pos,f=g.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?e.attr({translateX:d+c.len/2,translateY:f+g.len/2,scaleX:.001,scaleY:.001}):(e.animate({translateX:d,translateY:f,scaleX:1,scaleY:1},b),this.animate=null))}, | ||
animateDrilldown:function(a){var b=this.chart.plotBox,e=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],c=e.bBox,g=this.chart.options.drilldown.animation;a||(a=Math.min(c.width/b.width,c.height/b.height),e.shapeArgs={scaleX:a,scaleY:a,translateX:c.x,translateY:c.y},k(this.points,function(a){a.graphic&&a.graphic.attr(e.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},g)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){g.column.prototype.animateDrillupFrom.call(this, | ||
a)},animateDrillupTo:function(a){g.column.prototype.animateDrillupTo.call(this,a)}}),d({applyOptions:function(a,c){a=b.prototype.applyOptions.call(this,a,c);c=this.series;var e=c.joinBy;c.mapData&&((e=void 0!==a[e[1]]&&c.mapMap[a[e[1]]])?(c.xyFromShape&&(a.x=e._midX,a.y=e._midY),d(a,e)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)}, | ||
onMouseOut:function(){var a=this,c=+new Date,g=h(this.series.pointAttribs(a).fill),d=h(this.series.pointAttribs(a,"hover").fill),f=a.series.options.states.normal.animation,l=f&&(f.duration||500);l&&4===g.rgba.length&&4===d.rgba.length&&"select"!==a.state&&(clearTimeout(a.colorInterval),a.colorInterval=setInterval(function(){var b=(new Date-c)/l,e=a.graphic;1<b&&(b=1);e&&e.attr("fill",d.tweenTo(g,b));1<=b&&clearTimeout(a.colorInterval)},13),a.isFading=!0);b.prototype.onMouseOut.call(a);a.isFading= | ||
null},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},n))})(v);(function(a){var h=a.seriesType,n=a.seriesTypes;h("mapline","map",{lineWidth:1,fillColor:"none"},{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,d){a=n.map.prototype.pointAttribs.call(this,a,d);a.fill=this.options.fillColor;return a},drawLegendSymbol:n.line.prototype.drawLegendSymbol})})(v); | ||
(function(a){var h=a.merge,n=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,d){a=void 0!==a.lat&&void 0!==a.lon?h(a,this.series.chart.fromLatLonToPoint(a)):a;return n.prototype.applyOptions.call(this,a,d)}})})(v);(function(a){var h=a.arrayMax,n=a.arrayMin,k=a.Axis,d=a.color,p=a.each,z=a.isNumber,w=a.noop,t=a.pick,f=a.pInt, | ||
c=a.Point,b=a.Series,l=a.seriesType,r=a.seriesTypes;l("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group", | ||
"dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,pointAttribs:function(a,c){var g=t(this.options.marker.fillOpacity,.5);a=b.prototype.pointAttribs.call(this,a,c);1!==g&&(a.fill=d(a.fill).setOpacity(g).get("rgba"));return a},getRadii:function(a,b,c,e){var g,d,f,l=this.zData,q=[],u=this.options,r="width"!==u.sizeBy,h=u.zThreshold,k=b-a;d=0;for(g=l.length;d<g;d++)f=l[d],u.sizeByAbsoluteValue&&null!==f&&(f=Math.abs(f-h),b=Math.max(b-h,Math.abs(a-h)),a=0),null===f?f= | ||
null:f<a?f=c/2-1:(f=0<k?(f-a)/k:.5,r&&0<=f&&(f=Math.sqrt(f)),f=Math.ceil(c+f*(e-c))/2),q.push(f);this.radii=q},animate:function(a){var b=this.options.animation;a||(p(this.points,function(a){var c=a.graphic,g;c&&c.width&&(g={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(g,b))}),this.animate=null)},translate:function(){var b,c=this.data,f,e,d=this.radii;r.scatter.prototype.translate.call(this);for(b=c.length;b--;)f=c[b],e=d?d[b]:0,z(e)&&e>=this.minPxSize/ | ||
2?(f.marker=a.extend(f.marker,{radius:e,width:2*e,height:2*e}),f.dlBox={x:f.plotX-e,y:f.plotY-e,width:2*e,height:2*e}):f.shapeArgs=f.plotY=f.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:w,applyZones:w},{haloPath:function(a){return c.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,e=0,d=b,l=this.isXAxis,r=l?"xData":"yData",k=this.min,w={},v=Math.min(c.plotWidth, | ||
c.plotHeight),D=Number.MAX_VALUE,A=-Number.MAX_VALUE,E=this.max-k,C=b/E,F=[];p(this.series,function(b){var e=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),l&&(p(["minSize","maxSize"],function(a){var b=e[a],c=/%$/.test(b),b=f(b);w[a]=c?v*b/100:b}),b.minPxSize=w.minSize,b.maxPxSize=Math.max(w.maxSize,w.minSize),b=b.zData,b.length&&(D=t(e.zMin,Math.min(D,Math.max(n(b),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),A=t(e.zMax,Math.max(A, | ||
h(b))))))});p(F,function(b){var c=b[r],f=c.length,g;l&&b.getRadii(D,A,b.minPxSize,b.maxPxSize);if(0<E)for(;f--;)z(c[f])&&a.dataMin<=c[f]&&c[f]<=a.dataMax&&(g=b.radii[f],e=Math.min((c[f]-k)*C-g,e),d=Math.max((c[f]-k)*C+g,d))});F.length&&0<E&&!this.isLog&&(d-=b,C*=(b+e-d)/b,p([["min","userMin",e],["max","userMax",d]],function(b){void 0===t(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/C)}))}})(v);(function(a){var h=a.merge,n=a.Point,k=a.seriesType,d=a.seriesTypes;d.bubble&&k("mapbubble","bubble",{animationLimit:500, | ||
tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:d.map.prototype.getMapData,getBox:d.map.prototype.getBox,setData:d.map.prototype.setData},{applyOptions:function(a,k){return a&&void 0!==a.lat&&void 0!==a.lon?n.prototype.applyOptions.call(this,h(a,this.series.chart.fromLatLonToPoint(a)),k):d.map.prototype.pointClass.prototype.applyOptions.call(this,a,k)},ttBelow:!1})})(v);(function(a){var h=a.colorPointMixin,n=a.each,k=a.merge,d=a.noop, | ||
p=a.pick,v=a.Series,w=a.seriesType,t=a.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},k(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0, | ||
getExtremesFromAll:!0,directTouch:!0,init:function(){var a;t.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,c=this.xAxis,b=this.yAxis,d=function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();n(this.points,function(f){var g=(a.colsize||1)/2,l=(a.rowsize||1)/2,h=d(Math.round(c.len-c.translate(f.x-g,0,1,0,1)),-c.len,2*c.len),g=d(Math.round(c.len-c.translate(f.x+ | ||
g,0,1,0,1)),-c.len,2*c.len),e=d(Math.round(b.translate(f.y-l,0,1,0,1)),-b.len,2*b.len),l=d(Math.round(b.translate(f.y+l,0,1,0,1)),-b.len,2*b.len);f.plotX=f.clientX=(h+g)/2;f.plotY=(e+l)/2;f.shapeType="rect";f.shapeArgs={x:Math.min(h,g),y:Math.min(e,l),width:Math.abs(g-h),height:Math.abs(l-e)}});this.translateColors()},drawPoints:function(){t.column.prototype.drawPoints.call(this);n(this.points,function(a){a.graphic.attr(this.colorAttribs(a))},this)},animate:d,getBox:d,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle, | ||
alignDataLabel:t.column.prototype.alignDataLabel,getExtremes:function(){v.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;v.prototype.getExtremes.call(this)}}),h)})(v);(function(a){function h(a,c){var b,d,f,g=!1,h=a.x,k=a.y;a=0;for(b=c.length-1;a<c.length;b=a++)d=c[a][1]>k,f=c[b][1]>k,d!==f&&h<(c[b][0]-c[a][0])*(k-c[a][1])/(c[b][1]-c[a][1])+c[a][0]&&(g=!g);return g}var n=a.Chart,k=a.each,d=a.extend,p=a.format,v=a.merge,w=a.win,t=a.wrap;n.prototype.transformFromLatLon= | ||
function(d,c){if(void 0===w.proj4)return a.error(21),{x:0,y:null};d=w.proj4(c.crs,[d.lon,d.lat]);var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),f=c.sinAngle||c.rotation&&Math.sin(c.rotation);d=c.rotation?[d[0]*b+d[1]*f,-d[0]*f+d[1]*b]:d;return{x:((d[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset||0)-d[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};n.prototype.transformToLatLon=function(d,c){if(void 0===w.proj4)a.error(21);else{d= | ||
{x:((d.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-d.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale||1)+(c.yoffset||0)};var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),f=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=w.proj4(c.crs,"WGS84",c.rotation?{x:d.x*b+d.y*-f,y:d.x*f+d.y*b}:d);return{lat:c.y,lon:c.x}}};n.prototype.fromPointToLatLon=function(d){var c=this.mapTransforms,b;if(c){for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&h({x:d.x,y:-d.y}, | ||
c[b].hitZone.coordinates[0]))return this.transformToLatLon(d,c[b]);return this.transformToLatLon(d,c["default"])}a.error(22)};n.prototype.fromLatLonToPoint=function(d){var c=this.mapTransforms,b,f;if(!c)return a.error(22),{x:0,y:null};for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&(f=this.transformFromLatLon(d,c[b]),h({x:f.x,y:-f.y},c[b].hitZone.coordinates[0])))return f;return this.transformFromLatLon(d,c["default"])};a.geojson=function(a,c,b){var f=[],h=[],g=function(a){var b,c=a.length;h.push("M"); | ||
for(b=0;b<c;b++)1===b&&h.push("L"),h.push(a[b][0],-a[b][1])};c=c||"map";k(a.features,function(a){var b=a.geometry,e=b.type,b=b.coordinates;a=a.properties;var l;h=[];"map"===c||"mapbubble"===c?("Polygon"===e?(k(b,g),h.push("Z")):"MultiPolygon"===e&&(k(b,function(a){k(a,g)}),h.push("Z")),h.length&&(l={path:h})):"mapline"===c?("LineString"===e?g(b):"MultiLineString"===e&&k(b,g),h.length&&(l={path:h})):"mappoint"===c&&"Point"===e&&(l={x:b[0],y:-b[1]});l&&f.push(d(l,{name:a.name||a.NAME,properties:a}))}); | ||
b&&a.copyrightShort&&(b.chart.mapCredits=p(b.chart.options.credits.mapText,{geojson:a}),b.chart.mapCreditsFull=p(b.chart.options.credits.mapTextFull,{geojson:a}));return f};t(n.prototype,"addCredits",function(a,c){c=v(!0,this.options.credits,c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(v);(function(a){function h(a,c,d,g,f,h,e,k){return["M",a+f,c,"L",a+d-h,c,"C",a+d-h/2,c,a+d,c+h/2,a+d,c+h,"L",a+d,c+g-e,"C",a+ | ||
d,c+g-e/2,a+d-e/2,c+g,a+d-e,c+g,"L",a+k,c+g,"C",a+k/2,c+g,a,c+g-k/2,a,c+g-k,"L",a,c+f,"C",a,c+f/2,a+f/2,c,a+f,c,"Z"]}var n=a.Chart,k=a.defaultOptions,d=a.each,p=a.extend,v=a.merge,w=a.pick,t=a.Renderer,f=a.SVGRenderer,c=a.VMLRenderer;p(k.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});k.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)}, | ||
text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};f.prototype.symbols.topbutton=function(a,c,d,g,f){return h(a-1,c-1,d,g,f.r,f.r,0,0)};f.prototype.symbols.bottombutton=function(a,c,d,g,f){return h(a-1,c-1,d,g,0,0,f.r,f.r)};t===c&&d(["topbutton", | ||
"bottombutton"],function(a){c.prototype.symbols[a]=f.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,d){var f="string"===typeof b||b.nodeName,h=arguments[f?1:0],k={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},e,l=a.getOptions().credits;e=h.series;h.series=null;h=v({chart:{panning:"xy",type:"map"},credits:{mapText:w(l.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:w(l.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1}, | ||
xAxis:k,yAxis:v(k,{reversed:!0})},h,{chart:{inverted:!1,alignTicks:!1}});h.series=e;return f?new n(b,h,d):new n(h,c)}})(v)}); |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Plugin for displaying a message when there is no data visible in chart. | ||
@@ -10,4 +10,4 @@ | ||
*/ | ||
(function(d){"object"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){function d(){return!!this.points.length}function g(){this.hasData()?this.hideNoData():this.showNoData()}var h=c.seriesTypes,e=c.Chart.prototype,f=c.getOptions(),k=c.extend,l=c.each;k(f.lang,{noData:"No data to display"});f.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"}};f.noData.style={fontWeight:"bold",fontSize:"12px",color:"#666666"};l(["pie","gauge","waterfall","bubble", | ||
"treemap"],function(a){h[a]&&(h[a].prototype.hasData=d)});c.Series.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin};e.showNoData=function(a){var b=this.options;a=a||b.lang.noData;b=b.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(a,0,0,null,null,null,b.useHTML,null,"no-data"),this.noDataLabel.attr(b.attr).css(b.style),this.noDataLabel.add(),this.noDataLabel.align(k(this.noDataLabel.getBBox(),b.position),!1,"plotBox"))};e.hideNoData=function(){this.noDataLabel&& | ||
(this.noDataLabel=this.noDataLabel.destroy())};e.hasData=function(){for(var a=this.series,b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return!1};e.callbacks.push(function(a){c.addEvent(a,"load",g);c.addEvent(a,"redraw",g)})})(d)}); | ||
(function(d){"object"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){function d(){this.hasData()?this.hideNoData():this.showNoData()}var g=c.seriesTypes,e=c.Chart.prototype,f=c.getOptions(),h=c.extend,k=c.each;h(f.lang,{noData:"No data to display"});f.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"}};f.noData.style={fontWeight:"bold",fontSize:"12px",color:"#666666"};k("bubble gauge heatmap pie treemap waterfall".split(" "),function(a){g[a]&& | ||
(g[a].prototype.hasData=function(){return!!this.points.length})});c.Series.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin};e.showNoData=function(a){var b=this.options;a=a||b.lang.noData;b=b.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(a,0,0,null,null,null,b.useHTML,null,"no-data"),this.noDataLabel.attr(b.attr).css(b.style),this.noDataLabel.add(),this.noDataLabel.align(h(this.noDataLabel.getBBox(),b.position),!1,"plotBox"))};e.hideNoData= | ||
function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};e.hasData=function(){for(var a=this.series,b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return this.loadingShown};e.callbacks.push(function(a){c.addEvent(a,"load",d);c.addEvent(a,"redraw",d)})})(d)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Plugin for displaying a message when there is no data visible in chart. | ||
@@ -59,15 +59,24 @@ * | ||
/** | ||
* Define hasData functions for series. These return true if there are data points on this series within the plot area | ||
*/ | ||
function hasDataPie() { | ||
return !!this.points.length; /* != 0 */ | ||
} | ||
each(['pie', 'gauge', 'waterfall', 'bubble', 'treemap'], function(type) { | ||
// Define hasData function for non-cartesian seris. Returns true if the series | ||
// has points at all. | ||
each([ | ||
'bubble', | ||
'gauge', | ||
'heatmap', | ||
'pie', | ||
'treemap', | ||
'waterfall' | ||
], function(type) { | ||
if (seriesTypes[type]) { | ||
seriesTypes[type].prototype.hasData = hasDataPie; | ||
seriesTypes[type].prototype.hasData = function() { | ||
return !!this.points.length; /* != 0 */ | ||
}; | ||
} | ||
}); | ||
/** | ||
* Define hasData functions for series. These return true if there are data | ||
* points on this series within the plot area. | ||
*/ | ||
H.Series.prototype.hasData = function() { | ||
@@ -138,3 +147,3 @@ return this.visible && this.dataMax !== undefined && this.dataMin !== undefined; // #3703 | ||
return false; | ||
return chart.loadingShown; // #4588 | ||
}; | ||
@@ -141,0 +150,0 @@ |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Client side exporting module | ||
@@ -19,2 +19,2 @@ | ||
function(){if(!1===b.fallbackToExportServer)if(b.error)b.error(b);else throw"Fallback to export server disabled";else d.exportChart(b)};B&&("application/pdf"===b.type||d.container.getElementsByTagName("image").length&&"image/svg+xml"!==b.type)||D&&"image/svg+xml"!==b.type||"application/pdf"===b.type&&d.container.getElementsByTagName("image").length?f():d.getSVGForLocalExport(b,e,f,function(a){-1<a.indexOf("\x3cforeignObject")&&"image/svg+xml"!==b.type?f():c.downloadSVGLocal(a,b,f)})};C(!0,c.getOptions().exporting, | ||
{libURL:"https://code.highcharts.com/5.0.11/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); | ||
{libURL:"https://code.highcharts.com/5.0.12/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Client side exporting module | ||
@@ -483,2 +483,7 @@ * | ||
// If we are on IE and in styled mode, add a whitelist to the renderer | ||
// for inline styles that we want to pass through. There are so many | ||
// styles by default in IE that we don't want to blacklist them all. | ||
// Always fall back on: | ||
@@ -512,3 +517,3 @@ // - MS browsers: Embedded images JPEG/PNG, or any PDF | ||
merge(true, Highcharts.getOptions().exporting, { | ||
libURL: 'https://code.highcharts.com/5.0.11/lib/', | ||
libURL: 'https://code.highcharts.com/5.0.12/lib/', | ||
buttons: { | ||
@@ -515,0 +520,0 @@ contextButton: { |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Solid angular gauge module | ||
@@ -9,8 +9,7 @@ | ||
*/ | ||
(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,d,e,c,f,g){a=a(d,e,c,f,g);g.rounded&&(c=((g.r||c)-g.innerR)/2,g=["A",c,c,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",c,c,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(g)));return a});n={initDataClasses:function(a){var d=this,e=this.chart,c,t=0,g=this.options;this.dataClasses= | ||
c=[];m(a.dataClasses,function(h,b){h=f.merge(h);c.push(h);h.color||("category"===g.dataClassColor?(b=e.options.colors,h.color=b[t++],t===b.length&&(t=0)):h.color=d.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,d){var e=this.stops,c,f,g=this.dataClasses,h,b;if(g)for(b=g.length;b--;){if(h=g[b],c=h.from, | ||
e=h.to,(void 0===c||a>=c)&&(void 0===e||a<=e)){f=h.color;d&&(d.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]););c=e[b]||e[b+1];e=e[b+1]||c;a=1-(e[0]-a)/(e[0]-c[0]||1);f=this.tweenColors(c.color,e.color,a)}return f},tweenColors:function(a,d,e){var c;d.rgba.length&&a.rgba.length?(a=a.rgba,d=d.rgba,c=1!==d[3]||1!==a[3],a=(c?"rgba(":"rgb(")+Math.round(d[0]+(a[0]-d[0])*(1-e))+","+Math.round(d[1]+(a[1]-d[1])*(1-e))+","+Math.round(d[2]+ | ||
(a[2]-d[2])*(1-e))+(c?","+(d[3]+(a[3]-d[3])*(1-e)):"")+")"):a=d.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= | ||
this,d=a.yAxis,e=d.center,c=a.options,t=a.chart.renderer,g=c.overshoot,h=v(g)?g/180*Math.PI:0,b;v(c.threshold)&&(b=d.startAngleRad+d.translate(c.threshold,null,null,null,!0));this.thresholdAngleRad=u(b,d.startAngleRad);m(a.points,function(b){var g=b.graphic,k=d.startAngleRad+d.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,c.radius,100))*e[2]/200,p=l(u(b.options.innerRadius,c.innerRadius,60))*e[2]/200,q=d.toColor(b.y,b),r=Math.min(d.startAngleRad,d.endAngleRad),n=Math.max(d.startAngleRad, | ||
d.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===c.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:c.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),"square"!==c.linecap&& | ||
b.graphic.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),b.graphic.attr({stroke:c.borderColor||"none","stroke-width":c.borderWidth||0}))})},animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,f.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(e){var l=e.pInt,u=e.pick,m=e.each,r=e.isNumber,w=e.wrap,v;w(e.Renderer.prototype.symbols,"arc",function(a,f,d,c,e,b){a=a(f,d,c,e,b);b.rounded&&(c=((b.r||c)-b.innerR)/2,b=["A",c,c,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",c,c,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(b)));return a});v={initDataClasses:function(a){var f=this.chart,d,c=0,t=this.options;this.dataClasses= | ||
d=[];m(a.dataClasses,function(b,h){b=e.merge(b);d.push(b);b.color||("category"===t.dataClassColor?(h=f.options.colors,b.color=h[c++],c===h.length&&(c=0)):b.color=e.color(t.minColor).tweenTo(e.color(t.maxColor),h/(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=e.color(a[1])})},toColor:function(a,f){var d=this.stops,c,e,b=this.dataClasses,h,g;if(b)for(g=b.length;g--;){if(h=b[g],c=h.from,d= | ||
h.to,(void 0===c||a>=c)&&(void 0===d||a<=d)){e=h.color;f&&(f.dataClass=g);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(g=d.length;g--&&!(a>d[g][0]););c=d[g]||d[g+1];d=d[g+1]||c;a=1-(d[0]-a)/(d[0]-c[0]||1);e=c.color.tweenTo(d.color,a)}return e}};e.seriesType("solidgauge","gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;e.extend(a,v);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);e.seriesTypes.gauge.prototype.translate.call(this)}, | ||
drawPoints:function(){var a=this,f=a.yAxis,d=f.center,c=a.options,t=a.chart.renderer,b=c.overshoot,h=r(b)?b/180*Math.PI:0,g;r(c.threshold)&&(g=f.startAngleRad+f.translate(c.threshold,null,null,null,!0));this.thresholdAngleRad=u(g,f.startAngleRad);m(a.points,function(b){var g=b.graphic,k=f.startAngleRad+f.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,c.radius,100))*d[2]/200,n=l(u(b.options.innerRadius,c.innerRadius,60))*d[2]/200,p=f.toColor(b.y,b),q=Math.min(f.startAngleRad,f.endAngleRad), | ||
r=Math.max(f.startAngleRad,f.endAngleRad);"none"===p&&(p=b.color||a.color||"none");"none"!==p&&(b.color=p);k=Math.max(q-h,Math.min(r+h,k));!1===c.wrap&&(k=Math.max(q,Math.min(r,k)));q=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-q>2*Math.PI&&(k=q+2*Math.PI);b.shapeArgs=n={x:d[0],y:d[1],r:m,innerR:n,start:q,end:k,rounded:c.rounded};b.startR=m;g?(b=n.d,g.animate(e.extend({fill:p},n)),b&&(n.d=b)):(b.graphic=t.arc(n).addClass(b.getClassName(),!0).attr({fill:p,"sweep-flag":0}).add(a.group), | ||
"square"!==c.linecap&&b.graphic.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),b.graphic.attr({stroke:c.borderColor||"none","stroke-width":c.borderWidth||0}))})},animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,e.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* Solid angular gauge module | ||
@@ -73,4 +73,3 @@ * | ||
initDataClasses: function(userOptions) { | ||
var axis = this, | ||
chart = this.chart, | ||
var chart = this.chart, | ||
dataClasses, | ||
@@ -95,3 +94,6 @@ colorCounter = 0, | ||
} else { | ||
dataClass.color = axis.tweenColors(H.color(options.minColor), H.color(options.maxColor), i / (userOptions.dataClasses.length - 1)); | ||
dataClass.color = H.color(options.minColor).tweenTo( | ||
H.color(options.maxColor), | ||
i / (userOptions.dataClasses.length - 1) | ||
); | ||
} | ||
@@ -157,4 +159,3 @@ } | ||
color = this.tweenColors( | ||
from.color, | ||
color = from.color.tweenTo( | ||
to.color, | ||
@@ -165,50 +166,5 @@ pos | ||
return color; | ||
}, | ||
/* | ||
* Return an intermediate color between two colors, according to pos where 0 | ||
* is the from color and 1 is the to color. | ||
*/ | ||
tweenColors: function(from, to, pos) { | ||
// Check for has alpha, because rgba colors perform worse due to lack of | ||
// support in WebKit. | ||
var hasAlpha, | ||
ret; | ||
// Unsupported color, return to-color (#3920) | ||
if (!to.rgba.length || !from.rgba.length) { | ||
ret = to.input || 'none'; | ||
// Interpolate | ||
} else { | ||
from = from.rgba; | ||
to = to.rgba; | ||
hasAlpha = (to[3] !== 1 || from[3] !== 1); | ||
ret = (hasAlpha ? 'rgba(' : 'rgb(') + | ||
Math.round(to[0] + (from[0] - to[0]) * (1 - pos)) + ',' + | ||
Math.round(to[1] + (from[1] - to[1]) * (1 - pos)) + ',' + | ||
Math.round(to[2] + (from[2] - to[2]) * (1 - pos)) + | ||
(hasAlpha ? (',' + (to[3] + (from[3] - to[3]) * (1 - pos))) : '') + ')'; | ||
} | ||
return ret; | ||
} | ||
}; | ||
/** | ||
* Handle animation of the color attributes directly | ||
*/ | ||
each(['fill', 'stroke'], function(prop) { | ||
H.Fx.prototype[prop + 'Setter'] = function() { | ||
this.elem.attr( | ||
prop, | ||
colorAxisMethods.tweenColors( | ||
H.color(this.start), | ||
H.color(this.end), | ||
this.pos | ||
), | ||
null, | ||
true | ||
); | ||
}; | ||
}); | ||
// The solidgauge series type | ||
@@ -215,0 +171,0 @@ H.seriesType('solidgauge', 'gauge', { |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
StaticScale | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* StaticScale | ||
@@ -4,0 +4,0 @@ * |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
Highstock as a plugin for Highcharts | ||
@@ -29,11 +29,11 @@ | ||
[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],q={sum:function(b){var a=b.length,f;if(!a&&b.hasNulls)f=null;else if(a)for(f=0;a--;)f+=b[a];return f},average:function(b){var a=b.length;b=q.sum(b);w(b)&&a&&(b/=a);return b},averages:function(){var b=[];y(arguments,function(a){b.push(q.average(a))});return b},open:function(b){return b.length?b[0]:b.hasNulls?null:void 0},high:function(b){return b.length?G(b):b.hasNulls?null:void 0},low:function(b){return b.length? | ||
p(b):b.hasNulls?null:void 0},close:function(b){return b.length?b[b.length-1]:b.hasNulls?null:void 0},ohlc:function(b,a,f,h){b=q.open(b);a=q.high(a);f=q.low(f);h=q.close(h);if(w(b)||w(a)||w(f)||w(h))return[b,a,f,h]},range:function(b,a){b=q.low(b);a=q.high(a);if(w(b)||w(a))return[b,a]}};g.groupData=function(b,a,c,d){var m=this.data,l=this.options.data,v=[],z=[],E=[],e=b.length,B,g,N=!!a,k=[];d="function"===typeof d?d:q[d]||h[this.type]&&q[h[this.type].approximation]||q[f.approximation];var H=this.pointArrayMap, | ||
x=H&&H.length,n=0;g=0;var u,r;x?y(H,function(){k.push([])}):k.push([]);u=x||1;for(r=0;r<=e&&!(b[r]>=c[0]);r++);for(r;r<=e;r++){for(;void 0!==c[n+1]&&b[r]>=c[n+1]||r===e;){B=c[n];this.dataGroupInfo={start:g,length:k[0].length};g=d.apply(this,k);void 0!==g&&(v.push(B),z.push(g),E.push(this.dataGroupInfo));g=r;for(B=0;B<u;B++)k[B].length=0,k[B].hasNulls=!1;n+=1;if(r===e)break}if(r===e)break;if(H){B=this.cropStart+r;var C=m&&m[B]||this.pointClass.prototype.applyOptions.apply({series:this},[l[B]]),p;for(B= | ||
0;B<x;B++)p=C[H[B]],w(p)?k[B].push(p):null===p&&(k[B].hasNulls=!0)}else B=N?a[r]:null,w(B)?k[0].push(B):null===B&&(k[0].hasNulls=!0)}return[v,z,E]};g.processData=function(){var b=this.chart,a=this.options.dataGrouping,f=!1!==this.allowDG&&a&&J(a.enabled,b.options.isStock),h=this.visible||!b.options.chart.ignoreHiddenSeries,c;this.forceCrop=f;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==k.apply(this,arguments)&&f){this.destroyGroupedData();var l=this.processedXData,v=this.processedYData, | ||
z=b.plotSizeX,b=this.xAxis,d=b.options.ordinal,e=this.groupPixelWidth=b.getGroupPixelWidth&&b.getGroupPixelWidth();if(e){this.isDirty=c=!0;var B=b.getExtremes(),f=B.min,B=B.max,d=d&&b.getGroupIntervalFactor(f,B,this)||1,z=e*(B-f)/z*d,e=b.getTimeTicks(b.normalizeTimeTickInterval(z,a.units||x),Math.min(f,l[0]),Math.max(B,l[l.length-1]),b.options.startOfWeek,l,this.closestPointRange),l=g.groupData.apply(this,[l,v,e,a.approximation]),v=l[0],d=l[1];if(a.smoothed){a=v.length-1;for(v[a]=Math.min(v[a],B);a--&& | ||
0<a;)v[a]+=z/2;v[0]=Math.max(v[0],f)}this.currentDataGrouping=e.info;this.closestPointRange=e.info.totalRange;this.groupMap=l[2];F(v[0])&&v[0]<b.dataMin&&h&&(b.min===b.dataMin&&(b.min=v[0]),b.dataMin=v[0]);this.processedXData=v;this.processedYData=d}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=c}};g.destroyGroupedData=function(){var a=this.groupedData;y(a||[],function(b,f){b&&(a[f]=b.destroy?b.destroy():null)});this.groupedData=null};g.generatePoints=function(){n.apply(this); | ||
this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};c(d.prototype,"update",function(b){this.dataGroup?a.error(24):b.apply(this,[].slice.call(arguments,1))});c(e.prototype,"tooltipFooterHeaderFormatter",function(b,f,h){var c=f.series,d=c.tooltipOptions,l=c.options.dataGrouping,v=d.xDateFormat,z,m=c.xAxis,e=a.dateFormat;return m&&"datetime"===m.options.type&&l&&w(f.key)?(b=c.currentDataGrouping,l=l.dateTimeLabelFormats,b?(m=l[b.unitName],1===b.count?v=m[0]:(v=m[1],z=m[2])): | ||
!v&&l&&(v=this.getXDateFormat(f,d,m)),v=e(v,f.key),z&&(v+=e(z,f.key+b.totalRange-1)),C(d[(h?"footer":"header")+"Format"],{point:I(f.point,{key:v}),series:c})):b.call(this,f,h)});g.destroy=function(){for(var a=this.groupedData||[],f=a.length;f--;)a[f]&&a[f].destroy();u.apply(this)};c(g,"setOptions",function(a,c){a=a.call(this,c);var b=this.type,d=this.chart.options.plotOptions,m=D[b].dataGrouping;h[b]&&(m||(m=r(f,h[b])),a.dataGrouping=r(m,d.series&&d.series.dataGrouping,d[b].dataGrouping,c.dataGrouping)); | ||
this.chart.options.isStock&&(this.requireSorting=!0);return a});c(A.prototype,"setScale",function(a){a.call(this);y(this.series,function(a){a.hasProcessed=!1})});A.prototype.getGroupPixelWidth=function(){var a=this.series,f=a.length,h,c=0,d=!1,l;for(h=f;h--;)(l=a[h].options.dataGrouping)&&(c=Math.max(c,l.groupPixelWidth));for(h=f;h--;)(l=a[h].options.dataGrouping)&&a[h].hasProcessed&&(f=(a[h].processedXData||a[h].data).length,a[h].groupPixelWidth||f>this.chart.plotSizeX/c||f&&l.forced)&&(d=!0);return d? | ||
c:0};A.prototype.setDataGrouping=function(a,f){var b;f=J(f,!0);a||(a={forced:!1,units:null});if(this instanceof A)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:a},!1);else y(this.chart.options.series,function(b){b.dataGrouping=a},!1);f&&this.chart.redraw()}})(K);(function(a){var G=a.each,p=a.Point,A=a.seriesType,D=a.seriesTypes;A("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
p(b):b.hasNulls?null:void 0},close:function(b){return b.length?b[b.length-1]:b.hasNulls?null:void 0},ohlc:function(b,a,f,h){b=q.open(b);a=q.high(a);f=q.low(f);h=q.close(h);if(w(b)||w(a)||w(f)||w(h))return[b,a,f,h]},range:function(b,a){b=q.low(b);a=q.high(a);if(w(b)||w(a))return[b,a];if(null===b&&null===a)return null}};g.groupData=function(b,a,c,d){var m=this.data,l=this.options.data,v=[],z=[],E=[],e=b.length,B,g,N=!!a,k=[];d="function"===typeof d?d:q[d]||h[this.type]&&q[h[this.type].approximation]|| | ||
q[f.approximation];var H=this.pointArrayMap,x=H&&H.length,n=0;g=0;var u,r;x?y(H,function(){k.push([])}):k.push([]);u=x||1;for(r=0;r<=e&&!(b[r]>=c[0]);r++);for(r;r<=e;r++){for(;void 0!==c[n+1]&&b[r]>=c[n+1]||r===e;){B=c[n];this.dataGroupInfo={start:g,length:k[0].length};g=d.apply(this,k);void 0!==g&&(v.push(B),z.push(g),E.push(this.dataGroupInfo));g=r;for(B=0;B<u;B++)k[B].length=0,k[B].hasNulls=!1;n+=1;if(r===e)break}if(r===e)break;if(H){B=this.cropStart+r;var C=m&&m[B]||this.pointClass.prototype.applyOptions.apply({series:this}, | ||
[l[B]]),p;for(B=0;B<x;B++)p=C[H[B]],w(p)?k[B].push(p):null===p&&(k[B].hasNulls=!0)}else B=N?a[r]:null,w(B)?k[0].push(B):null===B&&(k[0].hasNulls=!0)}return[v,z,E]};g.processData=function(){var b=this.chart,a=this.options.dataGrouping,f=!1!==this.allowDG&&a&&J(a.enabled,b.options.isStock),h=this.visible||!b.options.chart.ignoreHiddenSeries,c;this.forceCrop=f;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==k.apply(this,arguments)&&f){this.destroyGroupedData();var l=this.processedXData,v=this.processedYData, | ||
z=b.plotSizeX,b=this.xAxis,d=b.options.ordinal,e=this.groupPixelWidth=b.getGroupPixelWidth&&b.getGroupPixelWidth();if(e){this.isDirty=c=!0;this.points=null;var B=b.getExtremes(),f=B.min,B=B.max,d=d&&b.getGroupIntervalFactor(f,B,this)||1,z=e*(B-f)/z*d,e=b.getTimeTicks(b.normalizeTimeTickInterval(z,a.units||x),Math.min(f,l[0]),Math.max(B,l[l.length-1]),b.options.startOfWeek,l,this.closestPointRange),l=g.groupData.apply(this,[l,v,e,a.approximation]),v=l[0],d=l[1];if(a.smoothed){a=v.length-1;for(v[a]= | ||
Math.min(v[a],B);a--&&0<a;)v[a]+=z/2;v[0]=Math.max(v[0],f)}this.currentDataGrouping=e.info;this.closestPointRange=e.info.totalRange;this.groupMap=l[2];F(v[0])&&v[0]<b.dataMin&&h&&(b.min===b.dataMin&&(b.min=v[0]),b.dataMin=v[0]);this.processedXData=v;this.processedYData=d}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=c}};g.destroyGroupedData=function(){var a=this.groupedData;y(a||[],function(b,f){b&&(a[f]=b.destroy?b.destroy():null)});this.groupedData=null};g.generatePoints= | ||
function(){n.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};c(d.prototype,"update",function(b){this.dataGroup?a.error(24):b.apply(this,[].slice.call(arguments,1))});c(e.prototype,"tooltipFooterHeaderFormatter",function(b,f,h){var c=f.series,d=c.tooltipOptions,l=c.options.dataGrouping,v=d.xDateFormat,z,m=c.xAxis,e=a.dateFormat;return m&&"datetime"===m.options.type&&l&&w(f.key)?(b=c.currentDataGrouping,l=l.dateTimeLabelFormats,b?(m=l[b.unitName],1===b.count? | ||
v=m[0]:(v=m[1],z=m[2])):!v&&l&&(v=this.getXDateFormat(f,d,m)),v=e(v,f.key),z&&(v+=e(z,f.key+b.totalRange-1)),C(d[(h?"footer":"header")+"Format"],{point:I(f.point,{key:v}),series:c})):b.call(this,f,h)});g.destroy=function(){for(var a=this.groupedData||[],f=a.length;f--;)a[f]&&a[f].destroy();u.apply(this)};c(g,"setOptions",function(a,c){a=a.call(this,c);var b=this.type,d=this.chart.options.plotOptions,m=D[b].dataGrouping;h[b]&&(m||(m=r(f,h[b])),a.dataGrouping=r(m,d.series&&d.series.dataGrouping,d[b].dataGrouping, | ||
c.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return a});c(A.prototype,"setScale",function(a){a.call(this);y(this.series,function(a){a.hasProcessed=!1})});A.prototype.getGroupPixelWidth=function(){var a=this.series,f=a.length,h,c=0,d=!1,l;for(h=f;h--;)(l=a[h].options.dataGrouping)&&(c=Math.max(c,l.groupPixelWidth));for(h=f;h--;)(l=a[h].options.dataGrouping)&&a[h].hasProcessed&&(f=(a[h].processedXData||a[h].data).length,a[h].groupPixelWidth||f>this.chart.plotSizeX/c||f&&l.forced)&& | ||
(d=!0);return d?c:0};A.prototype.setDataGrouping=function(a,f){var b;f=J(f,!0);a||(a={forced:!1,units:null});if(this instanceof A)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:a},!1);else y(this.chart.options.series,function(b){b.dataGrouping=a},!1);f&&this.chart.redraw()}})(K);(function(a){var G=a.each,p=a.Point,A=a.seriesType,D=a.seriesTypes;A("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,p){p=D.column.prototype.pointAttribs.call(this,a,p);var y=this.options;delete p.fill;!a.options.color&&y.upColor&&a.open<a.close&&(p.stroke=y.upColor);return p},translate:function(){var a=this,p=a.yAxis,I=!!a.modifyValue, | ||
@@ -74,12 +74,12 @@ C=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];D.column.prototype.translate.apply(a);G(a.points,function(w){G([w.open,w.high,w.low,w.close,w.low],function(r,y){null!==r&&(I&&(r=a.modifyValue(r)),w[C[y]]=p.toPixels(r,!0))});w.tooltipPos[1]=w.plotHigh+p.pos-a.chart.plotTop})},drawPoints:function(){var a=this,p=a.chart;G(a.points,function(y){var C,w,r,A,d=y.graphic,e,c=!d;void 0!==y.plotY&&(d||(y.graphic=d=p.renderer.path().add(a.group)),d.attr(a.pointAttribs(y,y.selected&&"select")),w=d.strokeWidth()% | ||
t+f-v,m+=z,a=["M",t,m,"L",a,m,"L",a,m+e,"L",b,m+e,"L",b,m,"L",t+g+2*f,m].concat(l?["M",a-z,m,"L",b+z,m]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var l=this.left,v=this.top,z=this.height,e,f,t,m;c?(t=[l,l,l],m=[v,v+a,v+b],f=[z,z,z],e=[a,b-a,this.size-b]):(t=[l,l+a,l+b],m=[v,v,v],f=[a,b-a,this.size-b],e=[z,z,z]);r(this.shades,function(a,l){a[d]({x:t[l],y:m[l],width:f[l],height:e[l]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f= | ||
d.renderer,t;a.navigatorGroup=t=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var m={cursor:e?"ns-resize":"ew-resize"};r([!c,c,!c],function(l,c){a.shades[c]=f.rect().addClass("highcharts-navigator-mask"+(1===c?"-inside":"-outside")).attr({fill:l?b.maskFill:"transparent"}).css(1===c&&m).add(t)});a.outline=f.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor}).add(t);r([0,1],function(l){a.handles[l]=f.path(a.getHandlePath(e)).attr({zIndex:7- | ||
d.renderer,t;a.navigatorGroup=t=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var m={cursor:e?"ns-resize":"ew-resize"};r([!c,c,!c],function(l,c){a.shades[c]=f.rect().addClass("highcharts-navigator-mask"+(1===c?"-inside":"-outside")).attr({fill:l?b.maskFill:"rgba(0,0,0,0)"}).css(1===c&&m).add(t)});a.outline=f.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor}).add(t);r([0,1],function(l){a.handles[l]=f.path(a.getHandlePath(e)).attr({zIndex:7- | ||
l}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][l]).add(t);var c=b.handles;a.handles[l].attr({fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":1}).css(m)})},update:function(a){this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,b,c,d){var l=this.chart,v,e,z=this.scrollbarHeight,t,m=this.xAxis;v=m.fake?l.xAxis[0]:m;var g=this.navigatorEnabled,h,L=this.rendered;e=l.inverted;var E=l.xAxis[0].minRange; | ||
if(!this.hasDragged||I(c)){if(!k(a)||!k(b))if(L)c=0,d=m.width;else return;this.left=f(m.left,l.plotLeft+z+(e?l.plotWidth:0));this.size=h=t=f(m.len,(e?l.plotHeight:l.plotWidth)-2*z);l=e?z:t+2*z;c=f(c,m.toPixels(a,!0));d=f(d,m.toPixels(b,!0));k(c)&&Infinity!==Math.abs(c)||(c=0,d=l);a=m.toValue(c,!0);b=m.toValue(d,!0);if(Math.abs(b-a)<E)if(this.grabbedLeft)c=m.toPixels(b-E,!0);else if(this.grabbedRight)d=m.toPixels(a+E,!0);else return;this.zoomedMax=Math.min(Math.max(c,d,0),h);this.zoomedMin=Math.min(Math.max(this.fixedWidth? | ||
this.zoomedMax-this.fixedWidth:Math.min(c,d),0),h);this.range=this.zoomedMax-this.zoomedMin;h=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);g&&(this.navigatorGroup.attr({visibility:"visible"}),L=L&&!this.hasDragged?"animate":"attr",this.drawMasks(c,h,e,L),this.drawOutline(c,h,e,L),this.drawHandle(c,0,e,L),this.drawHandle(h,1,e,L));this.scrollbar&&(e?(e=this.top-z,v=this.left-z+(g?0:(v.titleOffset||0)+v.axisTitleMargin),z=t+2*z):(e=this.top+(g?this.height:-z),v=this.left-z),this.scrollbar.position(v, | ||
e,l,z),this.scrollbar.setRange(this.zoomedMin/t,this.zoomedMax/t));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(p(c,"mousemove",e),p(w,"mouseup",f));g&&(d.push(p(c,"touchmove",e),p(w,"touchend",f)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(p(a.series[0].xAxis,"foundExtremes", | ||
function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,l=[];r(["shades","handles"],function(c){r(b[c],function(d,v){l.push(p(d.element,a,function(a){b[c+"Mousedown"](a,v)}))})});return l},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,l=this.xAxis,d=this.zoomedMin,v=this.left,e=this.size,f=this.range,m=a.chartX,t;c.inverted&&(m=a.chartY,v=this.top);1===b?(this.grabbedCenter=m,this.fixedWidth=f,this.dragOffset=m-d):(a=m-v-f/ | ||
2,0===b?a=Math.max(0,a):2===b&&a+f>=e&&(a=e-f,t=this.getUnionExtremes().dataMax),a!==d&&(this.fixedWidth=f,b=l.toFixedRange(a,a+f,null,t),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],l=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=l?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos= | ||
this.zoomedMin,this.fixedExtreme=l?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,l=b.left,d=b.navigatorSize,e=b.range,f=b.dragOffset,m=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,m&&(l=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-l,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-l)):b.grabbedCenter&&(b.hasDragged=!0,c<f?c=f:c>d+f-e&&(c=d+f-e),b.render(0,0,c-f,c-f+e)),b.hasDragged&& | ||
b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,l=this.scrollbar,d,e,f=a.DOMEvent||a;(!this.hasDragged||l&&l.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?d=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(e=this.fixedExtreme),this.zoomedMax===this.size&&(e=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,d,e),I(c.min)&& | ||
b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(r(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a= | ||
this.zoomedMax-this.fixedWidth:Math.min(c,d),0),h);this.range=this.zoomedMax-this.zoomedMin;h=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);g&&(this.navigatorGroup.attr({visibility:"visible"}),L=L&&!this.hasDragged?"animate":"attr",this.drawMasks(c,h,e,L),this.drawOutline(c,h,e,L),this.drawHandle(c,0,e,L),this.drawHandle(h,1,e,L));this.scrollbar&&(e?(e=this.top-z,v=this.left-z+(g||!v.opposite?0:(v.titleOffset||0)+v.axisTitleMargin),z=t+2*z):(e=this.top+(g?this.height:-z),v=this.left-z), | ||
this.scrollbar.position(v,e,l,z),this.scrollbar.setRange(this.zoomedMin/t,this.zoomedMax/t));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(p(c,"mousemove",e),p(w,"mouseup",f));g&&(d.push(p(c,"touchmove",e),p(w,"touchend",f)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(p(a.series[0].xAxis, | ||
"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,l=[];r(["shades","handles"],function(c){r(b[c],function(d,v){l.push(p(d.element,a,function(a){b[c+"Mousedown"](a,v)}))})});return l},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,l=this.xAxis,d=this.zoomedMin,v=this.left,e=this.size,f=this.range,m=a.chartX,t;c.inverted&&(m=a.chartY,v=this.top);1===b?(this.grabbedCenter=m,this.fixedWidth=f,this.dragOffset= | ||
m-d):(a=m-v-f/2,0===b?a=Math.max(0,a):2===b&&a+f>=e&&(a=e-f,t=this.getUnionExtremes().dataMax),a!==d&&(this.fixedWidth=f,b=l.toFixedRange(a,a+f,null,t),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],l=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=l?c.min:c.max):(this.grabbedRight= | ||
!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=l?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,l=b.left,d=b.navigatorSize,e=b.range,f=b.dragOffset,m=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,m&&(l=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-l,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-l)):b.grabbedCenter&&(b.hasDragged=!0,c<f?c=f:c>d+f-e&&(c=d+f-e),b.render(0, | ||
0,c-f,c-f+e)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,l=this.scrollbar,d,e,f=a.DOMEvent||a;(!this.hasDragged||l&&l.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?d=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(e=this.fixedExtreme),this.zoomedMax===this.size&&(e=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin,this.zoomedMax, | ||
d,e),I(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(r(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a= | ||
this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(r(a,function(a){h(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&h(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,l=b.scrollbar,e=l.enabled,b=d?c.height:0,g=e?l.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=e;this.navigatorEnabled=d;this.navigatorOptions= | ||
@@ -121,6 +121,6 @@ c;this.scrollbarOptions=l;this.outlineHeight=b+g;this.opposite=f(c.opposite,!d&&a.inverted);var h=this,l=h.baseSeries,e=a.xAxis.length,k=a.yAxis.length,E=l&&l[0]&&l[0].xAxis||a.xAxis[0];a.extraMargin={type:h.opposite?"plotTop":"marginBottom",value:(d||!a.inverted?h.outlineHeight:0)+c.margin};a.inverted&&(a.extraMargin.type=h.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;h.navigatorEnabled?(h.xAxis=new A(a,u({breaks:E.options.breaks,ordinal:E.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis", | ||
(d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,"right"):a.call(this,[].slice.call(arguments,1))});q(A.prototype,"destroy",function(a){var b=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&b._labelPanes&&b._labelPanes[c]===this&&delete b._labelPanes[c];return a.call(this,Array.prototype.slice.call(arguments,1))});q(A.prototype,"getPlotLinePath",function(b,c,f,h,k,m){var l=this,t=this.isLinked&&!this.series?this.linkedParent.series:this.series,n=l.chart,v=n.renderer,p= | ||
l.left,q=l.top,z,u,w,x,A=[],C=[],D,E;if("colorAxis"===l.coll)return b.apply(this,[].slice.call(arguments,1));C=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=l.options[b];return J(a)?[n[b][a]]:d(a)?[n.get(a)]:e(t,function(a){return a[b]})}(l.coll);y(l.isXAxis?n.yAxis:n.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?n[b][a.options[b]]:n[b][0];l===b&&C.push(a)}});D=C.length?[]:[l.isXAxis?n.yAxis[0]:n.xAxis[0]];y(C,function(b){-1!== | ||
r(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=g(m,l.translate(c,null,null,h));J(E)&&(l.horiz?y(D,function(a){var b;u=a.pos;x=u+a.len;z=w=Math.round(E+l.transB);if(z<p||z>p+l.width)k?z=w=Math.min(Math.max(p,z),p+l.width):b=!0;b||A.push("M",z,u,"L",w,x)}):y(D,function(a){var b;z=a.pos;w=z+a.len;u=x=Math.round(q+l.height-E);if(u<q||u>q+l.height)k?u=x=Math.min(Math.max(q,u),l.top+l.height):b=!0;b||A.push("M",z,u,"L",w,x)}));return 0<A.length?v.crispPolyLine(A,f||1): | ||
null});A.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};h.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/ | ||
2);return a};n===x&&(x.prototype.crispPolyLine=h.prototype.crispPolyLine);q(A.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});q(A.prototype,"drawCrosshair",function(a,b,c){var d,e;a.call(this,b,c);if(F(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var f=this.options.crosshair.label,l=this.horiz;d=this.opposite;e=this.left;var h=this.top,k=this.crossLabel,m,n=f.format,p="",t="inside"===this.options.tickPosition, | ||
l.left,q=l.top,z,u,w,x,A=[],C=[],D,E;if("xAxis"!==l.coll&&"yAxis"!==l.coll)return b.apply(this,[].slice.call(arguments,1));C=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=l.options[b];return J(a)?[n[b][a]]:d(a)?[n.get(a)]:e(t,function(a){return a[b]})}(l.coll);y(l.isXAxis?n.yAxis:n.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?n[b][a.options[b]]:n[b][0];l===b&&C.push(a)}});D=C.length?[]:[l.isXAxis?n.yAxis[0]:n.xAxis[0]]; | ||
y(C,function(b){-1!==r(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=g(m,l.translate(c,null,null,h));J(E)&&(l.horiz?y(D,function(a){var b;u=a.pos;x=u+a.len;z=w=Math.round(E+l.transB);if(z<p||z>p+l.width)k?z=w=Math.min(Math.max(p,z),p+l.width):b=!0;b||A.push("M",z,u,"L",w,x)}):y(D,function(a){var b;z=a.pos;w=z+a.len;u=x=Math.round(q+l.height-E);if(u<q||u>q+l.height)k?u=x=Math.min(Math.max(q,u),l.top+l.height):b=!0;b||A.push("M",z,u,"L",w,x)}));return 0<A.length?v.crispPolyLine(A, | ||
f||1):null});A.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};h.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+ | ||
b%2/2);return a};n===x&&(x.prototype.crispPolyLine=h.prototype.crispPolyLine);q(A.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});q(A.prototype,"drawCrosshair",function(a,b,c){var d,e;a.call(this,b,c);if(F(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var f=this.options.crosshair.label,l=this.horiz;d=this.opposite;e=this.left;var h=this.top,k=this.crossLabel,m,n=f.format,p="",t="inside"===this.options.tickPosition, | ||
q=!1!==this.crosshair.snap,r=0;b||(b=this.cross&&this.cross.e);m=l?"center":d?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";k||(k=this.crossLabel=a.renderer.label(null,null,null,f.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:f.align||m,padding:g(f.padding,8),r:g(f.borderRadius,3),zIndex:2}).add(this.labelGroup),k.attr({fill:f.backgroundColor||this.series[0]&&this.series[0].color|| | ||
@@ -127,0 +127,0 @@ "#666666",stroke:f.borderColor||"","stroke-width":f.borderWidth||0}).css(I({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},f.style)));l?(m=q?c.plotX+e:b.chartX,h+=d?0:this.height):(m=d?this.width+e:0,h=q?c.plotY+h:b.chartY);n||f.formatter||(this.isDatetimeAxis&&(p="%b %d, %Y"),n="{value"+(p?":"+p:"")+"}");b=q?c[this.isXAxis?"x":"y"]:this.toValue(l?b.chartX:b.chartY);k.attr({text:n?C(n,{value:b}):f.formatter.call(this,b),x:m,y:h,visibility:"visible"});b=k.getBBox();if(l){if(t&& |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
@@ -4,0 +4,0 @@ (c) 2014 Highsoft AS |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2014 Highsoft AS |
/* | ||
Highcharts JS v5.0.11 (2017-05-04) | ||
Highcharts JS v5.0.12 (2017-05-24) | ||
X-range series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* X-range series | ||
@@ -4,0 +4,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://www.highcharts.com", | ||
"version": "v5.0.11", | ||
"version": "v5.0.12", | ||
"author": "Highsoft AS <support@highcharts.com> (http://www.highcharts.com/about)", | ||
@@ -8,0 +8,0 @@ "main": "highcharts.js", |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.11 (2017-05-04) | ||
* @license Highcharts JS v5.0.12 (2017-05-24) | ||
* | ||
@@ -4,0 +4,0 @@ * (c) 2009-2017 Torstein Honsi |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
16115346
219272