AmCharts.GaugeAxis=AmCharts.Class({construct:function(a){this.cname="GaugeAxis";this.radius="95%";this.startAngle=-120;this.endAngle=120;this.startValue=0;this.endValue=200;this.gridCount=5;this.tickLength=10;this.minorTickLength=5;this.tickColor="#555555";this.labelFrequency=this.tickThickness=this.tickAlpha=1;this.inside=!0;this.labelOffset=10;this.showLastLabel=this.showFirstLabel=!0;this.axisThickness=1;this.axisColor="#000000";this.axisAlpha=1;this.gridInside=!0;this.topTextYOffset=0;this.topTextBold= !0;this.bottomTextYOffset=0;this.bottomTextBold=!0;this.centerY=this.centerX="0%";this.bandOutlineAlpha=this.bandOutlineThickness=0;this.bandOutlineColor="#000000";this.bandAlpha=1;AmCharts.applyTheme(this,a,"GaugeAxis")},value2angle:function(a){return this.startAngle+this.singleValueAngle*a},setTopText:function(a){if(void 0!==a){this.topText=a;var b=this.chart;if(this.axisCreated){this.topTF&&this.topTF.remove();var d=this.topTextFontSize;d||(d=b.fontSize);var c=this.topTextColor;c||(c=b.color); a=AmCharts.text(b.container,a,c,b.fontFamily,d,void 0,this.topTextBold);a.translate(this.centerXReal,this.centerYReal-this.radiusReal/2+this.topTextYOffset);this.chart.graphsSet.push(a);this.topTF=a}}},setBottomText:function(a){if(void 0!==a){this.bottomText=a;var b=this.chart;if(this.axisCreated){this.bottomTF&&this.bottomTF.remove();var d=this.bottomTextFontSize;d||(d=b.fontSize);var c=this.bottomTextColor;c||(c=b.color);a=AmCharts.text(b.container,a,c,b.fontFamily,d,void 0,this.bottomTextBold); a.translate(this.centerXReal,this.centerYReal+this.radiusReal/2+this.bottomTextYOffset);this.bottomTF=a;this.chart.graphsSet.push(a)}}},draw:function(){var a=this.chart,b=a.graphsSet,d=this.startValue,c=this.endValue,e=this.valueInterval;isNaN(e)&&(e=(c-d)/this.gridCount);var m=this.minorTickInterval;isNaN(m)&&(m=e/5);var p=this.startAngle,h=this.endAngle,f=this.tickLength,k=(c-d)/e+1,g=(h-p)/(k-1);this.singleValueAngle=c=g/e;var l=a.container,r=this.tickColor,v=this.tickAlpha,C=this.tickThickness, D=e/m,F=g/D,m=this.minorTickLength,G=this.labelFrequency,t=this.radiusReal;this.inside||(t-=15);var y=a.centerX+AmCharts.toCoordinate(this.centerX,a.realWidth),z=a.centerY+AmCharts.toCoordinate(this.centerY,a.realHeight);this.centerXReal=y;this.centerYReal=z;var H={fill:this.axisColor,"fill-opacity":this.axisAlpha,"stroke-width":0,"stroke-opacity":0},n,A;this.gridInside?A=n=t:(n=t-f,A=n+m);var s=this.axisThickness/2,h=AmCharts.wedge(l,y,z,p,h-p,n+s,n+s,n-s,0,H);b.push(h);h=AmCharts.doNothing;AmCharts.isModern|| (h=Math.round);H=AmCharts.getDecimals(e);for(n=0;na&&(a=d.width),d.height>f&&(f=d.height);(b=this.legend)&&b.invalidateSize();if(this.adjustSize&&!this.chartCreated){g&& (g=g.getBBox(),g.width>a&&(a=g.width),g.height>f&&(f=g.height));g=0;if(k>f||c>a)g=Math.min(k-f,c-a);0=this.totalFrames?c=b.value:(b.frame++,b.clockWiseOnly&&b.value