AmCharts.AmFunnelChart=AmCharts.Class({inherits:AmCharts.AmSlicedChart,construct:function(){AmCharts.AmFunnelChart.base.construct.call(this);this.startX=this.startY=0;this.baseWidth="100%";this.neckHeight=this.neckWidth=0;this.rotate=!1;this.valueRepresents="height";this.pullDistance=30;this.labelPosition="center";this.labelText="[[title]]: [[value]]";this.balloonText="[[title]]: [[value]]\n[[description]]"},drawChart:function(){AmCharts.AmFunnelChart.base.drawChart.call(this);var y=this.chartData; if(AmCharts.ifArray(y))if(0b&&(b=0);b=(Math.sqrt(b)-z)/(2*d);if(!k&&a>=s||k&&a<=s)b=2*-m/p;else if(!k&&a+b>s||k&&a-bs||k&&a-b=this.hideLabelsPercent&&(h=this.formatString(this.labelText,c),q=c.labelColor,q||(q=this.color),l=this.labelPosition,e="left","center"==l&&(e="middle"),"left"==l&&(e="right"),h=AmCharts.text(r,h,q,this.fontFamily,this.fontSize,e),d.push(h),q=g,k?(e=a-b/2,c.ty0=e):(e=a+b/ 2,c.ty0=e,ef-n&&(e=f-n)),"right"==l&&(q=t+10+B,c.tx0=g+(x-b/2/D),z&&(c.tx0=g+m)),"left"==l&&(c.tx0=g-(x-b/2/D),z&&(c.tx0=g-m),q=B),c.label=h,c.labelX=q,c.labelY=e,c.labelHeight=h.getBBox().height,h.translate(q,e),(0===c.alpha||0t&&(p=r+A+5):t+v+5>r&&(p=r-5-v);r=p;A=v;B.translate(a,p);f.labelY=p;f.tx=a;f.ty=p;f.tx2=a}"center"!=this.labelPosition&&this.drawTicks()}});