!function(i){function t(i,e,s,h,r){var a=i,l=i-1,n="x"===r?0:1;return a>0?s*h.series[l]._plotData[e][n]<0?t(l,e,s,h,r):h.series[l].gridData[e][n]:0===n?h.series[a]._xaxis.series_u2p(0):h.series[a]._yaxis.series_u2p(0)}function e(t,e,s){for(var h=0;h0&&(this.data[l][a]+=this.data[l-1][a]);this.data[this.data.length]=1==a?[this.data.length+1,r]:[r,this.data.length+1],this._data[this._data.length]=1==a?[this._data.length+1,r]:[r,this._data.length+1]}if(this.rendererOptions.groups>1){this.breakOnNull=!0;var n=this.data.length,o=parseInt(n/this.rendererOptions.groups,10),d=0;for(l=o;l0&&v=0?this._yaxis.series_u2p(0):this._yaxis.min>0?e.canvas.height:0:this.waterfall&&v==this.gridData.length-1?this._yaxis.min<=0&&this._yaxis.max>=0?this._yaxis.series_u2p(0):this._yaxis.min>0?e.canvas.height:0:e.canvas.height,this.fillToZero&&this._plotData[v][1]<0||this.waterfall&&this._data[v][1]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?a.fillStyle=p.next():a.fillStyle=u.next():a.fillStyle=_:this.varyBarColor&&!this._stack?a.fillStyle=u.next():a.fillStyle=b,!this.fillToZero||this._plotData[v][1]>=0?(g.push([c-this.barWidth/2,x]),g.push([c-this.barWidth/2,s[v][1]]),g.push([c+this.barWidth/2,s[v][1]]),g.push([c+this.barWidth/2,x])):(g.push([c-this.barWidth/2,s[v][1]]),g.push([c-this.barWidth/2,x]),g.push([c+this.barWidth/2,x]),g.push([c+this.barWidth/2,s[v][1]])),this._barPoints.push(g),l&&!this._stack)delete(y=i.extend(!0,{},a)).fillStyle,this.renderer.shadowRenderer.draw(e,g,y);var w=a.fillStyle||this.color;this._dataColors.push(w),this.renderer.shapeRenderer.draw(e,g,a)}}else if("horizontal"==this.barDirection)for(v=0;v0&&v=0?this._xaxis.series_u2p(0):(this._xaxis.min,0):this.waterfall&&v==this.gridData.length-1?this._xaxis.min<=0&&this._xaxis.max>=0?this._xaxis.series_u2p(0):this._xaxis.min>0?0:e.canvas.width:0,this.fillToZero&&this._plotData[v][0]<0||this.waterfall&&this._data[v][0]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?a.fillStyle=p.next():a.fillStyle=u.next():a.fillStyle=_:this.varyBarColor&&!this._stack?a.fillStyle=u.next():a.fillStyle=b,!this.fillToZero||this._plotData[v][0]>=0?(g.push([f,c+this.barWidth/2]),g.push([f,c-this.barWidth/2]),g.push([s[v][0],c-this.barWidth/2]),g.push([s[v][0],c+this.barWidth/2])):(g.push([s[v][0],c+this.barWidth/2]),g.push([s[v][0],c-this.barWidth/2]),g.push([f,c-this.barWidth/2]),g.push([f,c+this.barWidth/2])),this._barPoints.push(g),l&&!this._stack)delete(y=i.extend(!0,{},a)).fillStyle,this.renderer.shadowRenderer.draw(e,g,y);w=a.fillStyle||this.color;this._dataColors.push(w),this.renderer.shapeRenderer.draw(e,g,a)}}if(0==this.highlightColors.length)this.highlightColors=i.jqplot.computeHighlightColors(this._dataColors);else if("string"==typeof this.highlightColors){var D=this.highlightColors;this.highlightColors=[];for(v=0;v