YUI.add("series-bar",function(e,t){e.BarSeries=e.Base.create("barSeries",e.MarkerSeries,[e.Histogram],{_getMarkerDimensions:function(e,t,r,i){t={top:t+i};return e>=this._leftOrigin?(t.left=this._leftOrigin,t.calculatedSize=e-t.left):(t.left=e,t.calculatedSize=this._leftOrigin-e),t},updateMarkerState:function(e,t){if(this._markers&&this._markers[t]){var r,i,s=this._copyObject(this.get("styles").marker),e=this._getState(e),a=this.get("xcoords"),o=this.get("ycoords"),h=this._markers[t],l=this.get("seriesTypeCollection"),g=l?l.length:0,c=0,n=0,f=0,m=[],d=this.get("order"),e="off"!==e&&s[e]?s[e]:s;for(e.fill.color=this._getItemColor(e.fill.color,t),e.border.color=this._getItemColor(e.border.color,t),a=this._getMarkerDimensions(a[t],o[t],s.height,n),e.width=a.calculatedSize,e.height=Math.min(this._maxSize,e.height),h.set(e);f<g;++f)m[f]=o[t]+c,r=l[f].get("styles").marker,c+=Math.min(this._maxSize,r.height),f<d&&(n=c),n-=c/2;for(f=0;f<g;++f)(i=l[f].get("markers"))&&(i=i[t])&&i!==undefined&&i.set("y",m[f]-c/2)}}},{ATTRS:{type:{value:"bar"},direction:{value:"vertical"}}})},"patched-v3.18.7",{requires:["series-marker","series-histogram-base"]});