baizonghao
2023-08-04 8fee5b265eaa379b7a1cc51cd060a368c046de46
1
!function(n,S){function p(t,i,a){this.init.call(this,t,i,a)}function t(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 i(t,i){var a=this.chart,e=this.options.animation,o=this.group,n=this.markerGroup,r=this.xAxis.center,s=a.plotLeft,l=a.plotTop;a.polar?a.renderer.isSVG&&(!0===e&&(e={}),i?(a={translateX:r[0]+s,translateY:r[1]+l,scaleX:.001,scaleY:.001},o.attr(a),n&&(n.attrSetters=o.attrSetters,n.attr(a))):(a={translateX:s,translateY:l,scaleX:1,scaleY:1},o.animate(a,e),n&&n.animate(a,e),this.animate=null)):t.call(this,i)}function a(){}var m=n.arrayMin,y=n.arrayMax,R=n.each,c=n.extend,d=n.merge,u=n.map,X=n.pick,x=n.pInt,e=n.getOptions().plotOptions,g=n.seriesTypes,o=n.extendClass,f=n.splat,r=n.wrap,s=n.Axis,l=n.Tick,b=n.Series,h=g.column.prototype,A=Math,Y=A.round,T=A.floor,w=A.max;c(p.prototype,{init:function(t,i,a){var e=this,o=e.defaultOptions;(e.chart=i).angular&&(o.background={}),e.options=t=d(o,t),(t=t.background)&&R([].concat(f(t)).reverse(),function(t){var i=t.backgroundColor;t=d(e.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 P=s.prototype,v=(l=l.prototype,{getOffset:a,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:a,setCategories:a,setTitle:a}),L={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=d(this.defaultOptions,this.defaultRadialOptions,t)},getOffset:function(){P.getOffset.call(this),this.chart.axisOffset[this.side]=0},getLinePath:function(t,i){var a=this.center;i=X(i,a[2]/2-this.offset);return 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(){P.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.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(){P.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;t=this.startAngleRad+t;return{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=this.center,n=this.startAngleRad,r=o[2]/2,s=[X(a.outerRadius,"100%"),a.innerRadius,X(a.thickness,10)],l=/%$/,h=this.isCircular;return o="polygon"===this.options.gridLineInterpolation?this.getPlotLinePath(t).concat(this.getPlotLinePath(i,!0)):(h||(s[0]=this.translate(t),s[1]=this.translate(i)),s=u(s,function(t){return l.test(t)&&(t=x(t,10)*r/100),t}),"circle"!==a.shape&&h?(t=n+this.translate(t),i=n+this.translate(i)):(t=-Math.PI/2,i=1.5*Math.PI,e=!0),this.chart.renderer.symbols.arc(this.left+o[0],this.top+o[1],s[0],s[0],{start:t,end:i,innerR:X(s[1],s[0]-s[2]),open:e}))},getPlotLinePath:function(a,t){var e,o,n,i=this.center,r=this.chart,s=this.getPosition(a);return this.isCircular?n=["M",i[0]+r.plotLeft,i[1]+r.plotTop,"L",s.x,s.y]:"circle"===this.options.gridLineInterpolation?(a=this.translate(a))&&(n=this.getLinePath(0,a)):(e=r.xAxis[0],n=[],a=this.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)}}};r(P,"init",function(t,i,a){var e,o,n=i.angular,r=i.polar,s=a.isX,l=n&&s;o=i.options;var h=a.pane||0;n?(c(this,l?v:L),(e=!s)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):r&&(c(this,L),this.defaultRadialOptions=(e=s)?this.defaultRadialXOptions:d(this.defaultYAxisOptions,this.defaultRadialYOptions)),t.call(this,i,a),l||!n&&!r||(t=this.options,i.panes||(i.panes=[]),this.pane=h=i.panes[h]=i.panes[h]||new p(f(o.pane)[h],i,this),h=h.options,i.inverted=!1,o.chart.zoomType=null,this.startAngleRad=i=(h.startAngle-90)*Math.PI/180,this.endAngleRad=o=(X(h.endAngle,h.startAngle+360)-90)*Math.PI/180,this.offset=t.offset||0,(this.isCircular=e)&&a.max===S&&o-i==2*Math.PI&&(this.autoConnect=!0))}),r(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)}),r(l,"getLabelPosition",function(t,i,a,e,o,n,r,s,l){var h=this.axis,p=n.y,c=n.align,d=(h.translate(this.pos)+h.startAngleRad+Math.PI/2)/Math.PI*180%360;return h.isRadial?(t=h.getPosition(this.pos,h.center[2]/2+X(n.distance,-25)),"auto"===n.rotation?e.attr({rotation:d}):null===p&&(p=.9*x(e.styles.lineHeight)-e.getBBox().height/2),null===c&&(c=h.isCircular?20<d&&d<160?"left":200<d&&d<340?"right":"center":"center",e.attr({align:c})),t.x+=n.x,t.y+=p):t=t.call(this,i,a,e,o,n,r,s,l),t}),r(l,"getMarkPath",function(t,i,a,e,o,n,r){var s=this.axis;return i=s.isRadial?["M",i,a,"L",(t=s.getPosition(this.pos,s.center[2]/2+e)).x,t.y]:t.call(this,i,a,e,o,n,r)}),e.arearange=d(e.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=n.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}),b.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=t.length,r=b.prototype.getSegmentPath,s=(e=this.options).step;for(i=HighchartsAdapter.grep(t,function(t){return null!==t.plotLow});n--;)null!==(a=t[n]).plotHigh&&o.push({plotX:a.plotX,plotY:a.plotHigh});return t=r.call(this,i),s&&(!0===s&&(s="left"),e.step={left:"right",center:"center",right:"left"}[s]),o=r.call(this,o),e.step=s,e=[].concat(t,o),o[0]="L",this.areaPath=this.areaPath.concat(t,o),e},drawDataLabels:function(){var t,i,a=this.data,e=a.length,o=[],n=b.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:a}),e.areasplinerange=d(e.arearange),g.areasplinerange=o(g.arearange,{type:"areasplinerange",getPointSpline:g.spline.prototype.getPointSpline}),e.columnrange=d(e.column,e.arearange,{lineWidth:1,pointRange:null}),g.columnrange=o(g.arearange,{type:"columnrange",translate:function(){var o,n=this,r=n.yAxis;h.translate.apply(n),R(n.points,function(t){var i,a=t.shapeArgs,e=n.options.minPointLength;t.plotHigh=o=r.translate(t.high,0,1,0,1),t.plotLow=t.plotY,i=o,(t=t.plotY-o)<e&&(t+=e-=t,i-=e/2),a.height=t,a.y=i})},trackerGroups:["group","dataLabels"],drawGraph:a,pointAttrToOptions:h.pointAttrToOptions,drawPoints:h.drawPoints,drawTracker:h.drawTracker,animate:h.animate,getColumnMetrics:h.getColumnMetrics}),e.gauge=d(e.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}),l={type:"gauge",pointClass:n.extendClass(n.Point,{setState:function(t){this.state=t}}),angular:!0,drawGraph:a,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=d(h.dial,t.dial),a=x(X(i.radius,80))*p[2]/200,e=x(X(i.baseLength,70))*a/100,o=x(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=d(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=n.extendClass(g.line,l),e.boxplot=d(e.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=o(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:a,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)))})}}),e.errorbar=d(e.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:e.arearange.tooltip.pointFormat},whiskerWidth:null}),g.errorbar=o(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)}}),e.waterfall=d(e.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333"}),g.waterfall=o(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.options,p=this.yAxis;for(t=h.threshold,h=h.borderWidth%2/2,g.column.prototype.translate.apply(this),s=t,i=0,t=(a=this.points).length;i<t;i++)o=(e=a[i]).shapeArgs,l=(n=this.getStack(i)).points[this.index],isNaN(e.y)&&(e.y=this.yData[i]),r=w(s,s+e.y)+l[0],o.y=p.translate(r,0,1),e.isSum||e.isIntermediateSum?(o.y=p.translate(l[1],0,1),o.height=p.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)-h,o.height=Y(o.height),e.yBottom=o.y+o.height},processData:function(t){var i,a,e,o,n,r,s,l=this.yData,h=this.points,p=l.length,c=this.options.threshold||0;for(e=a=o=n=c,s=0;s<p;s++)r=l[s],i=h&&h[s]?h[s]:{},"sum"===r||i.isSum?l[s]=e:"intermediateSum"===r||i.isIntermediateSum?(l[s]=a,a=c):(e+=r,a+=r),o=Math.min(e,o),n=Math.max(e,n);b.prototype.processData.call(this,t),this.dataMin=o,this.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=(a=this.options).states,i=a.upColor||this.color,a=n.Color(i).brighten(.1).get(),e=d(this.pointAttr),o=this.upColorProp;e[""][o]=i,e.hover[o]=t.hover.upColor||a,e.select[o]=t.select.upColor||i,R(this.points,function(t){0<t.y&&!t.color&&(t.pointAttr=e,t.color=i)})},getGraphPath:function(){var t,i,a,e=this.data,o=e.length,n=Y(this.options.lineWidth+this.options.borderWidth)%2/2,r=[];for(a=1;a<o;a++)i=e[a].shapeArgs,i=["M",(t=e[a-1].shapeArgs).x+t.width,t.y+n,"L",i.x,t.y+n],e[a-1].y<0&&(i[2]+=t.height,i[5]+=t.height),r=r.concat(i);return r},getExtremes:a,getStack:function(t){var i=this.yAxis.stacks,a=this.stackKey;return this.processedYData[t]<this.options.threshold&&(a="-"+a),i[a][t]},drawGraph:b.prototype.drawGraph}),e.bubble=d(e.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=o(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);t=t||i.fillColor||this.color;return 1!==a&&(t=n.Color(t).setOpacity(a).get("rgba")),t},convertAttribs:function(){var t=b.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<(r=i-t)?(s[n]-t)/(i-t):.5,l.push(A.ceil(a+r*(e-a))/2);this.radii=l},animate:function(t){var a=this.options.animation;t||(R(this.points,function(t){var i=t.graphic;t=t.shapeArgs;i&&t&&(i.attr("r",1),i.animate({r:t.r},a))}),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=x(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}),s.prototype.beforePadding=function(){var i=this,t=this.len,a=this.chart,o=0,n=t,r=this.isXAxis,s=r?"xData":"yData",l=this.min,h={},p=A.min(a.plotWidth,a.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 e=t.options;"bubble"===t.type&&t.visible&&(i.allowZoomOutside=!0,f.push(t),r)&&(R(["minSize","maxSize"],function(t){var i=e[t],a=/%$/.test(i);i=x(i);h[t]=a?p*i/100:i}),t.minPxSize=h.minSize,(t=t.zData).length&&(c=A.min(c,A.max(m(t),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE)),d=A.max(d,y(t))))}),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 M=b.prototype;e=n.Pointer.prototype;M.toXY=function(t){var i,a=this.chart;i=t.plotX;var e=t.plotY;t.rectPlotX=i,t.rectPlotY=e,t.clientX=(i/Math.PI*180+this.xAxis.pane.options.startAngle)%360,i=this.xAxis.postTranslate(t.plotX,this.yAxis.len-e),t.plotX=t.polarPlotX=i.x-a.plotLeft,t.plotY=t.polarPlotY=i.y-a.plotTop},M.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]))},r(g.area.prototype,"init",t),r(g.areaspline.prototype,"init",t),r(g.spline.prototype,"getPointSpline",function(t,i,a,e){var o,n,r,s,l,h,p;return this.chart.polar?(o=a.plotX,n=a.plotY,t=i[e-1],r=i[e+1],this.connectEnds&&(t=t||i[i.length-2],r=r||i[1]),t&&r&&(s=t.plotX,l=t.plotY,i=r.plotX,h=r.plotY,s=(1.5*o+s)/2.5,l=(1.5*n+l)/2.5,r=(1.5*o+i)/2.5,p=(1.5*n+h)/2.5,i=Math.sqrt(Math.pow(s-o,2)+Math.pow(l-n,2)),h=Math.sqrt(Math.pow(r-o,2)+Math.pow(p-n,2)),s=Math.atan2(l-n,s-o),l=Math.atan2(p-n,r-o),p=Math.PI/2+(s+l)/2,Math.abs(s-p)>Math.PI/2&&(p-=Math.PI),s=o+Math.cos(p)*i,l=n+Math.sin(p)*i,r=o+Math.cos(Math.PI+p)*h,p=n+Math.sin(Math.PI+p)*h,a.rightContX=r,a.rightContY=p),e?(a=["C",t.rightContX||t.plotX,t.rightContY||t.plotY,s||o,l||n,o,n],t.rightContX=t.rightContY=null):a=["M",o,n]):a=t.call(this,i,a,e),a}),r(M,"translate",function(t){if(t.call(this),this.chart.polar&&!this.preventPostTranslate)for(var i=(t=this.points).length;i--;)this.toXY(t[i])}),r(M,"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)}),r(M,"animate",i),r(h,"animate",i),r(M,"setTooltipPoints",function(t,i){return this.chart.polar&&c(this.xAxis,{tooltipLen:360}),t.call(this,i)}),r(h,"translate",function(t){var i,a,e=this.xAxis,o=this.yAxis.len,n=e.center,r=e.startAngleRad,s=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),e.isRadial)for(a=(e=this.points).length;a--;)t=(i=e[a]).barX+r,i.shapeType="path",i.shapeArgs={d:s.symbols.arc(n[0],n[1],o-i.plotY,null,{start:t,end:t+i.pointWidth,innerR:o-X(i.yBottom,o)})},this.toXY(i)}),r(h,"alignDataLabel",function(t,i,a,e,o,n){this.chart.polar?(t=i.rectPlotX/Math.PI*180,null===e.align&&(e.align=20<t&&t<160?"left":200<t&&t<340?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=t<45||315<t?"bottom":135<t&&t<225?"top":"middle"),M.alignDataLabel.call(this,i,a,e,o,n)):t.call(this,i,a,e,o,n)}),r(e,"getIndex",function(t,i){var a,e,o=this.chart;return a=o.polar?(e=o.xAxis[0].center,a=i.chartX-e[0]-o.plotLeft,o=i.chartY-e[1]-o.plotTop,180-Math.round(Math.atan2(a,o)/Math.PI*180)):t.call(this,i)}),r(e,"getCoordinates",function(t,o){var n=this.chart,r={xAxis:[],yAxis:[]};return n.polar?R(n.axes,function(t){var i=t.isXAxis,a=t.center,e=o.chartX-a[0]-n.plotLeft;a=o.chartY-a[1]-n.plotTop;r[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(e,a):Math.sqrt(Math.pow(e,2)+Math.pow(a,2)),!0)})}):r=t.call(this,o),r})}(Highcharts);