YUI.add("series-candlestick",function(E,e){function t(){t.superclass.constructor.apply(this,arguments)}t.NAME="candlestickSeries",t.ATTRS={type:{value:"candlestick"},graphic:{lazyAdd:!1,setter:function(e){return this.get("rendered")||this.set("rendered",!0),this.set("upcandle",e.addShape({type:"path"})),this.set("downcandle",e.addShape({type:"path"})),this.set("wick",e.addShape({type:"path"})),e}},upcandle:{},downcandle:{},wick:{}},E.extend(t,E.RangeSeries,{_drawMarkers:function(e,t,a,s,i,d,n,r,l){var c,o,h,p,g,u,w,k,f=this.get("upcandle"),y=this.get("downcandle"),S=this.get("wick"),R=l.wick,M=R.width,v=l.padding.left,b=E.Lang.isNumber;for(f.set(l.upcandle),y.set(l.downcandle),S.set({fill:R.fill,stroke:R.stroke,shapeRendering:R.shapeRendering}),f.clear(),y.clear(),S.clear(),k=0;k<d;k+=1)p=(c=Math.round(e[k]+v))-r,u=Math.round(t[k]),o=Math.round(a[k]),h=Math.round(s[k]),u=((w=(g=Math.round(i[k]))<u)?u:g)-(g=w?g:u),(w=w?f:y)&&b(p)&&b(g)&&b(n)&&b(u)&&w.drawRect(p,g,n,u),b(c)&&b(o)&&b(h)&&S.drawRect(c-M/2,o,M,h-o);f.end(),y.end(),S.end(),S.toBack()},_toggleVisible:function(e){this.get("upcandle").set("visible",e),this.get("downcandle").set("visible",e),this.get("wick").set("visible",e)},destructor:function(){var e=this.get("upcandle"),t=this.get("downcandle"),a=this.get("wick");e&&e.destroy(),t&&t.destroy(),a&&a.destroy()},_getDefaultStyles:function(){return this._mergeStyles({upcandle:{shapeRendering:"crispEdges",fill:{color:"#00aa00",alpha:1},stroke:{color:"#000000",alpha:1,weight:0}},downcandle:{shapeRendering:"crispEdges",fill:{color:"#aa0000",alpha:1},stroke:{color:"#000000",alpha:1,weight:0}},wick:{shapeRendering:"crispEdges",width:1,fill:{color:"#000000",alpha:1},stroke:{color:"#000000",alpha:1,weight:0}}},t.superclass._getDefaultStyles())}}),E.CandlestickSeries=t},"patched-v3.18.7",{requires:["series-range"]});