!function(s,S){function t(){}var m=s.arrayMin,y=s.arrayMax,R=s.each,f=s.extend,x=s.merge,d=s.map,X=s.pick,b=s.pInt,i=s.getOptions().plotOptions,g=s.seriesTypes,a=s.extendClass,A=s.splat,e=s.wrap,o=s.Axis,n=s.Tick,w=s.Series,h=g.column.prototype,P=Math,Y=P.round,T=P.floor,v=P.max;function L(t,i,a){this.init.call(this,t,i,a)}f(L.prototype,{init:function(t,i,a){var e,o=this,n=o.defaultOptions;(o.chart=i).angular&&(n.background={}),o.options=t=x(n,t),(e=t.background)&&R([].concat(A(e)).reverse(),function(t){var i=t.backgroundColor;t=x(o.defaultBackgroundOptions,t),i&&(t.backgroundColor=i),t.color=t.backgroundColor,a.options.plotBands.unshift(t)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:Number.MIN_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var r=o.prototype,l=n.prototype,M={getOffset:t,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:t,setCategories:t,setTitle:t},k={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,plotBands:[],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,plotBands:[],showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},plotBands:[],showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){this.options=x(this.defaultOptions,this.defaultRadialOptions,t)},getOffset:function(){r.getOffset.call(this),this.chart.axisOffset[this.side]=0},getLinePath:function(t,i){var a=this.center;return i=X(i,a[2]/2-this.offset),this.chart.renderer.symbols.arc(this.left+a[0],this.top+a[1],i,i,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){r.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=this.center[2]/2/(this.max-this.min||1),this.isXAxis&&(this.minPixelPadding=this.transA*this.minPointOffset+(this.reversed?(this.endAngleRad-this.startAngleRad)/4:0)))},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)},setAxisSize:function(){r.setAxisSize.call(this),this.isRadial&&(this.center=this.pane.center=g.pie.prototype.getCenter.call(this.pane),this.len=this.width=this.height=this.isCircular?this.center[2]*(this.endAngleRad-this.startAngleRad)/2:this.center[2]/2)},getPosition:function(t,i){return this.isCircular||(i=this.translate(t),t=this.min),this.postTranslate(this.translate(t),X(i,this.center[2]/2)-this.offset)},postTranslate:function(t,i){var a=this.chart,e=this.center;return t=this.startAngleRad+t,{x:a.plotLeft+e[0]+Math.cos(t)*i,y:a.plotTop+e[1]+Math.sin(t)*i}},getPlotBandPath:function(t,i,a){var e,o,n,r=this.center,s=this.startAngleRad,l=r[2]/2,h=[X(a.outerRadius,"100%"),a.innerRadius,X(a.thickness,10)],p=/%$/,c=this.isCircular;return"polygon"===this.options.gridLineInterpolation?this.getPlotLinePath(t).concat(this.getPlotLinePath(i,!0)):(c||(h[0]=this.translate(t),h[1]=this.translate(i)),h=d(h,function(t){return p.test(t)&&(t=b(t,10)*l/100),t}),"circle"!==a.shape&&c?(e=s+this.translate(t),o=s+this.translate(i)):(e=-Math.PI/2,o=1.5*Math.PI,n=!0),this.chart.renderer.symbols.arc(this.left+r[0],this.top+r[1],h[0],h[0],{start:e,end:o,innerR:X(h[1],h[0]-h[2]),open:n}))},getPlotLinePath:function(a,t){var e,o,i,n,r=this,s=r.center,l=r.chart,h=r.getPosition(a);return r.isCircular?n=["M",s[0]+l.plotLeft,s[1]+l.plotTop,"L",h.x,h.y]:"circle"===r.options.gridLineInterpolation?(a=r.translate(a))&&(n=r.getLinePath(0,a)):(e=l.xAxis[0],n=[],a=r.translate(a),i=e.tickPositions,e.autoConnect&&(i=i.concat([i[0]])),t&&(i=[].concat(i).reverse()),R(i,function(t,i){o=e.getPosition(t,a),n.push(i?"L":"M",o.x,o.y)})),n},getTitlePosition:function(){var t=this.center,i=this.chart,a=this.options.title;return{x:i.plotLeft+t[0]+(a.x||0),y:i.plotTop+t[1]-{high:.5,middle:.25,low:0}[a.align]*t[2]+(a.y||0)}}};e(r,"init",function(t,i,a){var e,o,n,r,s,l,h=i.angular,p=i.polar,c=a.isX,d=h&&c,u=i.options,g=a.pane||0;h?(f(this,d?M:k),(e=!c)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):p&&(f(this,k),e=c,this.defaultRadialOptions=c?this.defaultRadialXOptions:x(this.defaultYAxisOptions,this.defaultRadialYOptions)),t.call(this,i,a),d||!h&&!p||(r=this.options,i.panes||(i.panes=[]),this.pane=s=i.panes[g]=i.panes[g]||new L(A(u.pane)[g],i,this),l=s.options,i.inverted=!1,u.chart.zoomType=null,this.startAngleRad=o=(l.startAngle-90)*Math.PI/180,this.endAngleRad=n=(X(l.endAngle,l.startAngle+360)-90)*Math.PI/180,this.offset=r.offset||0,(this.isCircular=e)&&a.max===S&&n-o==2*Math.PI&&(this.autoConnect=!0))}),e(l,"getPosition",function(t,i,a,e,o){var n=this.axis;return n.getPosition?n.getPosition(a):t.call(this,i,a,e,o)}),e(l,"getLabelPosition",function(t,i,a,e,o,n,r,s,l){var h,p=this.axis,c=n.y,d=n.align,u=(p.translate(this.pos)+p.startAngleRad+Math.PI/2)/Math.PI*180%360;return p.isRadial?(h=p.getPosition(this.pos,p.center[2]/2+X(n.distance,-25)),"auto"===n.rotation?e.attr({rotation:u}):null===c&&(c=.9*b(e.styles.lineHeight)-e.getBBox().height/2),null===d&&(d=p.isCircular?20<u&&u<160?"left":200<u&&u<340?"right":"center":"center",e.attr({align:d})),h.x+=n.x,h.y+=c):h=t.call(this,i,a,e,o,n,r,s,l),h}),e(l,"getMarkPath",function(t,i,a,e,o,n,r){var s,l=this.axis;return l.isRadial?["M",i,a,"L",(s=l.getPosition(this.pos,l.center[2]/2+e)).x,s.y]:t.call(this,i,a,e,o,n,r)}),i.arearange=x(i.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}}),g.arearange=s.extendClass(g.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",getSegments:function(){var i=this;R(i.points,function(t){i.options.connectNulls||null!==t.low&&null!==t.high?null===t.low&&null!==t.high&&(t.y=t.high):t.y=null}),w.prototype.getSegments.call(this)},translate:function(){var o=this.yAxis;g.area.prototype.translate.apply(this),R(this.points,function(t){var i=t.low,a=t.high,e=t.plotY;null===a&&null===i?t.y=null:null===i?(t.plotLow=t.plotY=null,t.plotHigh=o.translate(a,0,1,0,1)):null===a?(t.plotLow=e,t.plotHigh=null):(t.plotLow=e,t.plotHigh=o.translate(a,0,1,0,1))})},getSegmentPath:function(t){var i,a,e,o,n,r=[],s=t.length,l=w.prototype.getSegmentPath,h=this.options,p=h.step;for(i=HighchartsAdapter.grep(t,function(t){return null!==t.plotLow});s--;)null!==(a=t[s]).plotHigh&&r.push({plotX:a.plotX,plotY:a.plotHigh});return o=l.call(this,i),p&&(!0===p&&(p="left"),h.step={left:"right",center:"center",right:"left"}[p]),n=l.call(this,r),h.step=p,e=[].concat(o,n),n[0]="L",this.areaPath=this.areaPath.concat(o,n),e},drawDataLabels:function(){var t,i,a=this.data,e=a.length,o=[],n=w.prototype,r=this.options.dataLabels,s=this.chart.inverted;if(r.enabled||this._hasPointLabels){for(t=e;t--;)(i=a[t]).y=i.high,i.plotY=i.plotHigh,o[t]=i.dataLabel,i.dataLabel=i.dataLabelUpper,i.below=!1,s?(r.align="left",r.x=r.xHigh):r.y=r.yHigh;for(n.drawDataLabels.apply(this,arguments),t=e;t--;)(i=a[t]).dataLabelUpper=i.dataLabel,i.dataLabel=o[t],i.y=i.low,i.plotY=i.plotLow,i.below=!0,s?(r.align="right",r.x=r.xLow):r.y=r.yLow;n.drawDataLabels.apply(this,arguments)}},alignDataLabel:g.column.prototype.alignDataLabel,getSymbol:g.column.prototype.getSymbol,drawPoints:t}),i.areasplinerange=x(i.arearange),g.areasplinerange=a(g.arearange,{type:"areasplinerange",getPointSpline:g.spline.prototype.getPointSpline}),i.columnrange=x(i.column,i.arearange,{lineWidth:1,pointRange:null}),g.columnrange=a(g.arearange,{type:"columnrange",translate:function(){var r,s=this,l=s.yAxis;h.translate.apply(s),R(s.points,function(t){var i,a,e,o=t.shapeArgs,n=s.options.minPointLength;t.plotHigh=r=l.translate(t.high,0,1,0,1),t.plotLow=t.plotY,e=r,(a=t.plotY-r)<n&&(a+=i=n-a,e-=i/2),o.height=a,o.y=e})},trackerGroups:["group","dataLabels"],drawGraph:t,pointAttrToOptions:h.pointAttrToOptions,drawPoints:h.drawPoints,drawTracker:h.drawTracker,animate:h.animate,getColumnMetrics:h.getColumnMetrics}),i.gauge=x(i.line,{dataLabels:{enabled:!0,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,style:{fontWeight:"bold"},verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});var p={type:"gauge",pointClass:s.extendClass(s.Point,{setState:function(t){this.state=t}}),angular:!0,drawGraph:t,fixedBox:!0,trackerGroups:["group","dataLabels"],translate:function(){var l=this.yAxis,h=this.options,p=l.center;this.generatePoints(),R(this.points,function(t){var i=x(h.dial,t.dial),a=b(X(i.radius,80))*p[2]/200,e=b(X(i.baseLength,70))*a/100,o=b(X(i.rearLength,10))*a/100,n=i.baseWidth||3,r=i.topWidth||1,s=l.startAngleRad+l.translate(t.y,null,null,null,!0);!1===h.wrap&&(s=Math.max(l.startAngleRad,Math.min(l.endAngleRad,s))),s=180*s/Math.PI,t.shapeType="path",t.shapeArgs={d:i.path||["M",-o,-n/2,"L",e,-n/2,a,-r/2,a,r/2,e,n/2,-o,n/2,"z"],translateX:p[0],translateY:p[1],rotation:s},t.plotX=p[0],t.plotY=p[1]})},drawPoints:function(){var n=this,t=n.yAxis.center,i=n.pivot,r=n.options,a=r.pivot,s=n.chart.renderer;R(n.points,function(t){var i=t.graphic,a=t.shapeArgs,e=a.d,o=x(r.dial,t.dial);i?(i.animate(a),a.d=e):t.graphic=s[t.shapeType](a).attr({stroke:o.borderColor||"none","stroke-width":o.borderWidth||0,fill:o.backgroundColor||"black",rotation:a.rotation}).add(n.group)}),i?i.animate({translateX:t[0],translateY:t[1]}):n.pivot=s.circle(0,0,X(a.radius,5)).attr({"stroke-width":a.borderWidth||0,stroke:a.borderColor||"silver",fill:a.backgroundColor||"black"}).translate(t[0],t[1]).add(n.group)},animate:function(t){var a=this;t||(R(a.points,function(t){var i=t.graphic;i&&(i.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.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),g.pie.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:g.pie.prototype.setData,drawTracker:g.column.prototype.drawTracker};g.gauge=s.extendClass(g.line,p),i.boxplot=x(i.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{series.color};font-weight:bold">{series.name}</span><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",whiskerWidth:2}),g.boxplot=a(g.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:t,translate:function(){var a=this.yAxis,t=this.pointArrayMap;g.column.prototype.translate.apply(this),R(this.points,function(i){R(t,function(t){null!==i[t]&&(i[t+"Plot"]=a.translate(i[t],0,1,0,1))})})},drawPoints:function(){var i,a,e,o,n,r,s,l,h,p,c,d,u,g,f,m,y,x,b,A,w,P,v=this,t=v.points,L=v.options,M=v.chart.renderer,k=!1!==v.doQuartiles,C=parseInt(v.options.whiskerLength,10)/100;R(t,function(t){h=t.graphic,w=t.shapeArgs,c={},g={},m={},P=t.color||v.color,t.plotY!==S&&(i=t.pointAttr[t.selected?"selected":""],y=w.width,x=T(w.x),b=x+y,A=Y(y/2),a=T(k?t.q1Plot:t.lowPlot),e=T(k?t.q3Plot:t.lowPlot),o=T(t.highPlot),n=T(t.lowPlot),c.stroke=t.stemColor||L.stemColor||P,c["stroke-width"]=X(t.stemWidth,L.stemWidth,L.lineWidth),c.dashstyle=t.stemDashStyle||L.stemDashStyle,g.stroke=t.whiskerColor||L.whiskerColor||P,g["stroke-width"]=X(t.whiskerWidth,L.whiskerWidth,L.lineWidth),m.stroke=t.medianColor||L.medianColor||P,m["stroke-width"]=X(t.medianWidth,L.medianWidth,L.lineWidth),s=c["stroke-width"]%2/2,p=["M",l=x+A+s,e,"L",l,o,"M",l,a,"L",l,n,"z"],k&&(s=i["stroke-width"]%2/2,l=T(l)+s,a=T(a)+s,e=T(e)+s,d=["M",x+=s,e,"L",x,a,"L",b+=s,a,"L",b,e,"L",x,e,"z"]),C&&(s=g["stroke-width"]%2/2,u=["M",l-A*C,o+=s,"L",l+A*C,o,"M",l-A*C,n+=s,"L",l+A*C,n]),s=m["stroke-width"]%2/2,r=Y(t.medianPlot)+s,f=["M",x,r,"L",b,r,"z"],h?(t.stem.animate({d:p}),C&&t.whiskers.animate({d:u}),k&&t.box.animate({d:d}),t.medianShape.animate({d:f})):(t.graphic=h=M.g().add(v.group),t.stem=M.path(p).attr(c).add(h),C&&(t.whiskers=M.path(u).attr(g).add(h)),k&&(t.box=M.path(d).attr(i).add(h)),t.medianShape=M.path(f).attr(m).add(h)))})}}),i.errorbar=x(i.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:i.arearange.tooltip.pointFormat},whiskerWidth:null}),g.errorbar=a(g.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||g.column.prototype.getColumnMetrics.call(this)}}),i.waterfall=x(i.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333"}),g.waterfall=a(g.column,{type:"waterfall",upColorProp:"fill",pointArrayMap:["low","y"],pointValKey:"y",init:function(t,i){i.stacking=!0,g.column.prototype.init.call(this,t,i)},translate:function(){var t,i,a,e,o,n,r,s,l,h=this,p=h.options,c=h.yAxis,d=p.threshold,u=p.borderWidth%2/2;for(g.column.prototype.translate.apply(this),s=d,i=0,t=(a=h.points).length;i<t;i++)o=(e=a[i]).shapeArgs,l=(n=h.getStack(i)).points[h.index],isNaN(e.y)&&(e.y=h.yData[i]),r=v(s,s+e.y)+l[0],o.y=c.translate(r,0,1),e.isSum||e.isIntermediateSum?(o.y=c.translate(l[1],0,1),o.height=c.translate(l[0],0,1)-o.y):s+=n.total,o.height<0&&(o.y+=o.height,o.height*=-1),e.plotY=o.y=Y(o.y)-u,o.height=Y(o.height),e.yBottom=o.y+o.height},processData:function(t){var i,a,e,o,n,r,s,l=this,h=l.options,p=l.yData,c=l.points,d=p.length,u=h.threshold||0;for(e=a=o=n=u,s=0;s<d;s++)r=p[s],i=c&&c[s]?c[s]:{},"sum"===r||i.isSum?p[s]=e:"intermediateSum"===r||i.isIntermediateSum?(p[s]=a,a=u):(e+=r,a+=r),o=Math.min(e,o),n=Math.max(e,n);w.prototype.processData.call(this,t),l.dataMin=o,l.dataMax=n},toYData:function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},getAttribs:function(){g.column.prototype.getAttribs.apply(this,arguments);var t=this,i=t.options,a=i.states,e=i.upColor||t.color,o=s.Color(e).brighten(.1).get(),n=x(t.pointAttr),r=t.upColorProp;n[""][r]=e,n.hover[r]=a.hover.upColor||o,n.select[r]=a.select.upColor||e,R(t.points,function(t){0<t.y&&!t.color&&(t.pointAttr=n,t.color=e)})},getGraphPath:function(){var t,i,a,e,o=this.data,n=o.length,r=this.options.lineWidth+this.options.borderWidth,s=Y(r)%2/2,l=[];for(a=1;a<n;a++)i=o[a].shapeArgs,e=["M",(t=o[a-1].shapeArgs).x+t.width,t.y+s,"L",i.x,t.y+s],o[a-1].y<0&&(e[2]+=t.height,e[5]+=t.height),l=l.concat(e);return l},getExtremes:t,getStack:function(t){var i=this.yAxis.stacks,a=this.stackKey;return this.processedYData[t]<this.options.threshold&&(a="-"+a),i[a][t]},drawGraph:w.prototype.drawGraph}),i.bubble=x(i.scatter,{dataLabels:{inside:!0,style:{color:"white",textShadow:"0px 0px 3px black"},verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0}),g.bubble=a(g.scatter,{type:"bubble",pointArrayMap:["y","z"],trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(t){var i=this.options.marker,a=X(i.fillOpacity,.5);return t=t||i.fillColor||this.color,1!==a&&(t=s.Color(t).setOpacity(a).get("rgba")),t},convertAttribs:function(){var t=w.prototype.convertAttribs.apply(this,arguments);return t.fill=this.applyOpacity(t.fill),t},getRadii:function(t,i,a,e){var o,n,r,s=this.zData,l=[];for(n=0,o=s.length;n<o;n++)r=0<i-t?(s[n]-t)/(i-t):.5,l.push(P.ceil(a+r*(e-a))/2);this.radii=l},animate:function(t){var e=this.options.animation;t||(R(this.points,function(t){var i=t.graphic,a=t.shapeArgs;i&&a&&(i.attr("r",1),i.animate({r:a.r},e))}),this.animate=null)},translate:function(){var t,i,a,e=this.data,o=this.radii;for(g.scatter.prototype.translate.call(this),t=e.length;t--;)i=e[t],a=o?o[t]:0,i.negative=i.z<(this.options.zThreshold||0),a>=this.minPxSize/2?(i.shapeType="circle",i.shapeArgs={x:i.plotX,y:i.plotY,r:a},i.dlBox={x:i.plotX-a,y:i.plotY-a,width:2*a,height:2*a}):i.shapeArgs=i.plotY=i.dlBox=S},drawLegendSymbol:function(t,i){var a=b(t.itemStyle.fontSize)/2;i.legendSymbol=this.chart.renderer.circle(a,t.baseline-a,a).attr({zIndex:3}).add(i.legendGroup),i.legendSymbol.isMarker=!0},drawPoints:g.column.prototype.drawPoints,alignDataLabel:g.column.prototype.alignDataLabel}),o.prototype.beforePadding=function(){var a=this,t=this.len,i=this.chart,o=0,n=t,r=this.isXAxis,s=r?"xData":"yData",l=this.min,h={},p=P.min(i.plotWidth,i.plotHeight),c=Number.MAX_VALUE,d=-Number.MAX_VALUE,u=this.max-l,g=t/u,f=[];this.tickPositions&&(R(this.series,function(t){var i,e=t.options;"bubble"===t.type&&t.visible&&(a.allowZoomOutside=!0,f.push(t),r&&(R(["minSize","maxSize"],function(t){var i=e[t],a=/%$/.test(i);i=b(i),h[t]=a?p*i/100:i}),t.minPxSize=h.minSize,(i=t.zData).length&&(c=P.min(c,P.max(m(i),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE)),d=P.max(d,y(i)))))}),R(f,function(t){var i,a=t[s],e=a.length;if(r&&t.getRadii(c,d,h.minSize,h.maxSize),0<u)for(;e--;)i=t.radii[e],o=Math.min((a[e]-l)*g-i,o),n=Math.max((a[e]-l)*g+i,n)}),f.length&&0<u&&X(this.options.min,this.userMin)===S&&X(this.options.max,this.userMax)===S&&(g*=(t+o-(n-=t))/t,this.min+=o/g,this.max+=n/g))};var c=w.prototype,u=s.Pointer.prototype;function C(t,i,a){t.call(this,i,a),this.chart.polar&&(this.closeSegment=function(t){var i=this.xAxis.center;t.push("L",i[0],i[1])},this.closedStacks=!0)}function W(t,i){var a,e=this.chart,o=this.options.animation,n=this.group,r=this.markerGroup,s=this.xAxis.center,l=e.plotLeft,h=e.plotTop;e.polar?e.renderer.isSVG&&(!0===o&&(o={}),i?(a={translateX:s[0]+l,translateY:s[1]+h,scaleX:.001,scaleY:.001},n.attr(a),r&&(r.attrSetters=n.attrSetters,r.attr(a))):(a={translateX:l,translateY:h,scaleX:1,scaleY:1},n.animate(a,o),r&&r.animate(a,o),this.animate=null)):t.call(this,i)}c.toXY=function(t){var i,a=this.chart,e=t.plotX,o=t.plotY;t.rectPlotX=e,t.rectPlotY=o,t.clientX=(e/Math.PI*180+this.xAxis.pane.options.startAngle)%360,i=this.xAxis.postTranslate(t.plotX,this.yAxis.len-o),t.plotX=t.polarPlotX=i.x-a.plotLeft,t.plotY=t.polarPlotY=i.y-a.plotTop},c.orderTooltipPoints=function(t){this.chart.polar&&(t.sort(function(t,i){return t.clientX-i.clientX}),t[0]&&(t[0].wrappedClientX=t[0].clientX+360,t.push(t[0])))},e(g.area.prototype,"init",C),e(g.areaspline.prototype,"init",C),e(g.spline.prototype,"getPointSpline",function(t,i,a,e){var o,n,r,s,l,h,p,c,d,u,g,f,m,y;return this.chart.polar?(n=a.plotX,r=a.plotY,s=i[e-1],l=i[e+1],this.connectEnds&&(s=s||i[i.length-2],l=l||i[1]),s&&l&&(h=(1.5*n+s.plotX)/2.5,p=(1.5*r+s.plotY)/2.5,c=(1.5*n+l.plotX)/2.5,d=(1.5*r+l.plotY)/2.5,u=Math.sqrt(Math.pow(h-n,2)+Math.pow(p-r,2)),g=Math.sqrt(Math.pow(c-n,2)+Math.pow(d-r,2)),f=Math.atan2(p-r,h-n),m=Math.atan2(d-r,c-n),y=Math.PI/2+(f+m)/2,Math.abs(f-y)>Math.PI/2&&(y-=Math.PI),h=n+Math.cos(y)*u,p=r+Math.sin(y)*u,c=n+Math.cos(Math.PI+y)*g,d=r+Math.sin(Math.PI+y)*g,a.rightContX=c,a.rightContY=d),e?(o=["C",s.rightContX||s.plotX,s.rightContY||s.plotY,h||n,p||r,n,r],s.rightContX=s.rightContY=null):o=["M",n,r]):o=t.call(this,i,a,e),o}),e(c,"translate",function(t){if(t.call(this),this.chart.polar&&!this.preventPostTranslate)for(var i=this.points,a=i.length;a--;)this.toXY(i[a])}),e(c,"getSegmentPath",function(t,i){var a=this.points;return this.chart.polar&&!1!==this.options.connectEnds&&i[i.length-1]===a[a.length-1]&&null!==a[0].y&&(this.connectEnds=!0,i=[].concat(i,[a[0]])),t.call(this,i)}),e(c,"animate",W),e(h,"animate",W),e(c,"setTooltipPoints",function(t,i){return this.chart.polar&&f(this.xAxis,{tooltipLen:360}),t.call(this,i)}),e(h,"translate",function(t){var i,a,e,o,n=this.xAxis,r=this.yAxis.len,s=n.center,l=n.startAngleRad,h=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),n.isRadial)for(o=(a=this.points).length;o--;)i=(e=a[o]).barX+l,e.shapeType="path",e.shapeArgs={d:h.symbols.arc(s[0],s[1],r-e.plotY,null,{start:i,end:i+e.pointWidth,innerR:r-X(e.yBottom,r)})},this.toXY(e)}),e(h,"alignDataLabel",function(t,i,a,e,o,n){if(this.chart.polar){var r,s,l=i.rectPlotX/Math.PI*180;null===e.align&&(r=20<l&&l<160?"left":200<l&&l<340?"right":"center",e.align=r),null===e.verticalAlign&&(s=l<45||315<l?"bottom":135<l&&l<225?"top":"middle",e.verticalAlign=s),c.alignDataLabel.call(this,i,a,e,o,n)}else t.call(this,i,a,e,o,n)}),e(u,"getIndex",function(t,i){var a,e,o,n=this.chart;return n.polar?(a=n.xAxis[0].center,e=i.chartX-a[0]-n.plotLeft,o=i.chartY-a[1]-n.plotTop,180-Math.round(Math.atan2(e,o)/Math.PI*180)):t.call(this,i)}),e(u,"getCoordinates",function(t,n){var r=this.chart,s={xAxis:[],yAxis:[]};return r.polar?R(r.axes,function(t){var i=t.isXAxis,a=t.center,e=n.chartX-a[0]-r.plotLeft,o=n.chartY-a[1]-r.plotTop;s[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(e,o):Math.sqrt(Math.pow(e,2)+Math.pow(o,2)),!0)})}):s=t.call(this,n),s})}(Highcharts);
|