//>>built define("dojo/_base/lang dojo/_base/declare dojo/_base/connect dojo/_base/array dojo/dom-geometry dojo/_base/fx dojo/fx dojo/sniff ./Base ./_PlotEvents ./common ../axis2d/common dojox/gfx dojox/gfx/matrix dojox/gfx/fx dojox/lang/functional dojox/lang/utils dojo/fx/easing".split(" "),function(B,V,I,J,Q,K,W,L,X,Y,R,S,C,Z,ca,T,U,aa){return V("dojox.charting.plot2d.Spider",[X,Y],{defaultParams:{labels:!0,ticks:!1,fixed:!0,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:!0,startAngle:-90,divisions:3, axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:.2,spiderOrigin:.16,markerSize:3,spiderType:"polygon",animationType:aa.backOut,animate:null,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(a,b){this.opt=B.clone(this.defaultParams);U.updateWithObject(this.opt,b);U.updateWithPattern(this.opt,b,this.optionalParams);this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={}; this.animate=null===this.opt.animate?{}:this.opt.animate;this.animations={}},clear:function(){this.inherited(arguments);this.dyn=[];this.axes=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this},setAxis:function(a){a&&(void 0!=a.opt.min&&(this.datas[a.name].min=a.opt.min),void 0!=a.opt.max&&(this.datas[a.name].max=a.opt.max));return this},addSeries:function(a){this.series.push(a);for(var b in a.data){var e=a.data[b],h=this.datas[b];h?(h.vlist.push(e),h.min=Math.min(h.min, e),h.max=Math.max(h.max,e)):(h="__"+b,this.axes.push(h),this[h]=b,this.datas[b]={min:e,max:e,vlist:[e]})}if(0>=this.labelKey.length)for(b in a.data)this.labelKey.push(b);return this},getSeriesStats:function(){return R.collectSimpleStats(this.series,function(a){return null===a})},render:function(a,b){if(!this.dirty)return this;this.dirty=!1;this.cleanGroup();var e=this.group,h=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length)return this;var c=this.opt,f=h.axis,d=(a.width-b.l- b.r)/2,m=(a.height-b.t-b.b)/2,l=Math.min(d,m),q=c.font||f.majorTick&&f.majorTick.font||f.tick&&f.tick.font||"normal normal normal 7pt Tahoma",p=c.axisFont||f.tick&&f.tick.titleFont||"normal normal normal 11pt Tahoma",v=c.axisTickFontColor||f.majorTick&&f.majorTick.fontColor||f.tick&&f.tick.fontColor||"silver",N=c.axisFontColor||f.tick&&f.tick.titleFontColor||"black",x=c.axisColor||f.tick&&f.tick.axisColor||"silver",k=c.spiderColor||f.tick&&f.tick.spiderColor||"silver",ba=c.axisWidth||f.stroke&&f.stroke.width|| 2,y=c.spiderWidth||f.stroke&&f.stroke.width||2,f=c.seriesWidth||f.stroke&&f.stroke.width||2,g=C.normalizedLength(C.splitFontString(p).size),E=Z._degToRad(c.startAngle),B,t,M,u,r,z,w=c.spiderOrigin,D=3<=c.divisions?c.divisions:3,I=c.markerSize,K=c.spiderType,L=c.animationType,O=-10>c.labelOffset?c.labelOffset:-10,n;c.labels&&(l=J.map(this.series,function(b){return b.name},this),l=T.foldl1(T.map(l,function(b){return C._base._getTextBox(b,{font:h.series.font}).w},this),"Math.max(a, b)")/2,l=Math.min(d- 2*l,m-g)+O,B=l-O);"radius"in c&&(l=c.radius,B=l-O);l/=1.2;b={cx:b.l+d,cy:b.t+m,r:l};for(d=0;d=t.length))if(t=[],M=[],z=[],this._buildPoints(t,m,b,l,E,!0,a),this._buildPoints(M,m,b,l*w,E,!0,a),this._buildPoints(z,m,b,B,E,!1,a),2