YUI.add("series-histogram-base",function(e,t){var C=e.Lang;function r(){}r.prototype={drawSeries:function(){if(!(this.get("xcoords").length<1)){var e,t,r,i,s,l,a,h=this._copyObject(this.get("styles").marker),o=this.get("graphic"),c=this.get("xcoords"),g=this.get("ycoords"),d=0,n=c.length,u=(g[0],this.get("seriesTypeCollection")),p=u?u.length:0,f=0,_=0,b=0,m=this.get("order"),k=this.get("graphOrder"),x=null,y=null,S=[],z=[],M={width:[],height:[]},N=[],v=[],w=this.get("groupMarkers");if(C.isArray(h.fill.color)&&(x=h.fill.color.concat()),C.isArray(h.border.color)&&(y=h.border.color.concat()),i="vertical"===this.get("direction")?(r="height","width"):(r="width","height"),e=h[r],t=h[i],this._createMarkerCache(),this._maxSize=o.get(r),u&&1<p){for(;d<p;++d)f+=u[d].get("styles").marker[r],d<m&&(b=f);(_=n*f)>this._maxSize&&(f*=o=o.get(r)/_,b*=o,e*=o,e=Math.max(e,1),this._maxSize=e)}else(_=n*(f=h[r]))>this._maxSize&&(f=this._maxSize/n,this._maxSize=f);for(b-=f/2,d=0;d<n;++d)s=c[d]-f/2,a=(l=g[d]-f/2)+f,S.push({start:s,end:s+f}),z.push({start:l,end:a}),w||!isNaN(c[d])&&!isNaN(g[d])?(s=this._getMarkerDimensions(c[d],g[d],t,b),!isNaN(s.calculatedSize)&&0<s.calculatedSize?(l=s.top,a=s.left,w?(M[r][d]=e,M[i][d]=s.calculatedSize,N.push(a),v.push(l)):(h[r]=e,h[i]=s.calculatedSize,h.x=a,h.y=l,x&&(h.fill.color=x[d%x.length]),y&&(h.border.color=y[d%y.length]),this.getMarker(h,k,d))):w||this._markers.push(null)):this._markers.push(null);this.set("xMarkerPlane",S),this.set("yMarkerPlane",z),w?this._createGroupMarker({fill:h.fill,border:h.border,dimensions:M,xvalues:N,yvalues:v,shape:h.shape}):this._clearMarkerCache()}},_defaultFillColors:["#66007f","#a86f41","#295454","#996ab2","#e8cdb7","#90bdbd","#000000","#c3b8ca","#968373","#678585"],_getPlotDefaults:function(){var e={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:12,height:12,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};return e.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill"),e.border.color=this._getDefaultColor(this.get("graphOrder"),"border"),e}},e.Histogram=r},"patched-v3.18.3",{requires:["series-cartesian","series-plot-util"]});