!function(t){t.jqplot.OHLCRenderer=function(){t.jqplot.LineRenderer.call(this),this.candleStick=!1,this.tickLength="auto",this.bodyWidth="auto",this.openColor=null,this.closeColor=null,this.wickColor=null,this.fillUpBody=!1,this.fillDownBody=!0,this.upBodyColor=null,this.downBodyColor=null,this.hlc=!1,this.lineWidth=1.5,this._tickLength,this._bodyWidth},t.jqplot.OHLCRenderer.prototype=new t.jqplot.LineRenderer,t.jqplot.OHLCRenderer.prototype.constructor=t.jqplot.OHLCRenderer,t.jqplot.OHLCRenderer.prototype.init=function(o){o=o||{},this.lineWidth=o.lineWidth||1.5,t.jqplot.LineRenderer.prototype.init.call(this,o),this._type="ohlc";var e=this._yaxis._dataBounds,l=this._plotData;if(l[0].length<5){this.renderer.hlc=!0;for(var r=0;re.max||null==e.max)&&(e.max=l[r][1])}else for(r=0;re.max||null==e.max)&&(e.max=l[r][2])},t.jqplot.OHLCRenderer.prototype.draw=function(o,e,l){var r,i,d,n,h,s,a,c,p=this.data,y=this._xaxis.min,u=this._xaxis.max,w=0,C=p.length,k=this._xaxis.series_u2p,f=this._yaxis.series_u2p,g=this.renderer,x=null!=l?l:{};null!=x.shadow?x.shadow:this.shadow,null!=x.fill?x.fill:this.fill,null!=x.fillAndStroke?x.fillAndStroke:this.fillAndStroke;if(g.bodyWidth=null!=x.bodyWidth?x.bodyWidth:g.bodyWidth,g.tickLength=null!=x.tickLength?x.tickLength:g.tickLength,o.save(),this.show){for(var R,_,L,m,B,b=0;b_?(g.wickColor?c.color=g.wickColor:g.downBodyColor&&(c.color=g.downBodyColor),i=t.extend(!0,{},x,c),g.shapeRenderer.draw(o,[[R,L],[R,_]],i),g.shapeRenderer.draw(o,[[R,B],[R,m]],i),c={},d=_,n=B-_,g.fillDownBody?c.fillRect=!0:(c.strokeRect=!0,s=R-(h-=this.lineWidth)/2),g.downBodyColor&&(c.color=g.downBodyColor,c.fillStyle=g.downBodyColor),a=[s,d,h,n]):(g.wickColor&&(c.color=g.wickColor),i=t.extend(!0,{},x,c),g.shapeRenderer.draw(o,[[R,L],[R,m]],i),(c={}).fillRect=!1,c.strokeRect=!1,s=[R-h/2,_],d=[R+h/2,B],h=null,n=null,a=[s,d]),i=t.extend(!0,{},x,c),g.shapeRenderer.draw(o,a,i)):(r=x.color,g.openColor&&(x.color=g.openColor),g.hlc||g.shapeRenderer.draw(o,[[R-g._tickLength,_],[R,_]],x),x.color=r,g.wickColor&&(x.color=g.wickColor),g.shapeRenderer.draw(o,[[R,L],[R,m]],x),x.color=r,g.closeColor&&(x.color=g.closeColor),g.shapeRenderer.draw(o,[[R,B],[R+g._tickLength,B]],x),x.color=r)}o.restore()},t.jqplot.OHLCRenderer.prototype.drawShadow=function(t,o,e){},t.jqplot.OHLCRenderer.checkOptions=function(t,o,e){e.highlighter||(e.highlighter={showMarker:!1,tooltipAxes:"y",yvalues:4,formatString:'
date:%s
open:%s
hi:%s
low:%s
close:%s
'})}}(jQuery);