YUI.add("series-ohlc",function(e,r){function t(){t.superclass.constructor.apply(this,arguments)}t.NAME="ohlcSeries",t.ATTRS={type:{value:"ohlc"},graphic:{lazyAdd:!1,setter:function(e){return this.get("rendered")||this.set("rendered",!0),this.set("upmarker",e.addShape({type:"path"})),this.set("downmarker",e.addShape({type:"path"})),e}},upmarker:{},downmarker:{}},e.extend(t,e.RangeSeries,{_drawMarkers:function(e,r,t,s,a,o,i,n,d){var l,h,u,p,c,g,m,k,f=this.get("upmarker"),w=this.get("downmarker"),y=d.padding.left;for(f.set(d.upmarker),w.set(d.downmarker),f.clear(),w.clear(),k=0;k<o;k+=1)c=(m=e[k]+y)+n,l=r[k],h=t[k],u=s[k],(g=(p=a[k])<l?f:w).moveTo(m-n,l),g.lineTo(m,l),g.moveTo(m,h),g.lineTo(m,u),g.moveTo(m,p),g.lineTo(c,p);f.end(),w.end()},_toggleVisible:function(e){this.get("upmarker").set("visible",e),this.get("downmarker").set("visible",e)},destructor:function(){var e=this.get("upmarker"),r=this.get("downmarker");e&&e.destroy(),r&&r.destroy()},_getDefaultStyles:function(){return this._mergeStyles({upmarker:{stroke:{color:"#00aa00",alpha:1,weight:1}},downmarker:{stroke:{color:"#aa0000",alpha:1,weight:1}}},t.superclass._getDefaultStyles())}}),e.OHLCSeries=t},"patched-v3.18.3",{requires:["series-range"]});