/* jqplot 1.0.9 | (c) 2009-2016 Chris Leonello | jplot.com jsDate | (c) 2010-2016 Chris Leonello */ !function(t){t.jqplot.DateAxisRenderer=function(){t.jqplot.LinearAxisRenderer.call(this),this.date=new t.jsDate};var i=36e5,e=24*i,s=7*e,n=30.4368499*e,a=365.242199*e,r=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"],h=[100,200,500,1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5,9e5,18e5,i,2*i,4*i,6*i,8*i,12*i,e,2*e,3*e,4*e,5*e,s,2*s];t.jqplot.DateAxisRenderer.prototype=new t.jqplot.LinearAxisRenderer,t.jqplot.DateAxisRenderer.prototype.constructor=t.jqplot.DateAxisRenderer,t.jqplot.DateTickFormatter=function(i,e){return i||(i="%Y/%m/%d"),t.jsDate.strftime(e,i)},t.jqplot.DateAxisRenderer.prototype.init=function(i){this.tickOptions.formatter=t.jqplot.DateTickFormatter,this.tickInset=0,this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.daTickInterval=null,this._daTickInterval=null,t.extend(!0,this,i);for(var e,s,n,a,r,h,l,o=this._dataBounds,m=0;mo.max||null==o.max)&&(o.max=a[c][0]),c>0&&(l=Math.abs(a[c][0]-a[c-1][0]),e.intervals.push(l),e.frequencies.hasOwnProperty(l)?e.frequencies[l]+=1:e.frequencies[l]=1),s+=l):(a[c][1]=new t.jsDate(a[c][1]).getTime(),r[c][1]=new t.jsDate(a[c][1]).getTime(),h[c][1]=new t.jsDate(a[c][1]).getTime(),(null!=a[c][1]&&a[c][1]o.max||null==o.max)&&(o.max=a[c][1]),c>0&&(l=Math.abs(a[c][1]-a[c-1][1]),e.intervals.push(l),e.frequencies.hasOwnProperty(l)?e.frequencies[l]+=1:e.frequencies[l]=1)),s+=l;if(n.renderer.bands){if(n.renderer.bands.hiData.length){c=0;for(var u=(k=n.renderer.bands.hiData).length;co.max||null==o.max)&&(o.max=k[c][0])):(k[c][1]=new t.jsDate(k[c][1]).getTime(),(null!=k[c][1]&&k[c][1]>o.max||null==o.max)&&(o.max=k[c][1]))}var k;if(n.renderer.bands.lowData.length)for(c=0,u=(k=n.renderer.bands.lowData).length;c6&&(R=6);var q=new t.jsDate(z).setDate(1).setHours(0,0,0,0),F=new t.jsDate(s),y=new t.jsDate(s).setDate(1).setHours(0,0,0,0);F.getTime()!==y.getTime()&&(y=y.add(1,"month"));var H=y.diff(q,"month");for(M=Math.ceil(H/R)+1,this.min=q.getTime(),this.max=q.clone().add((M-1)*R,"month").getTime(),this.numberTicks=M,p=0;p200?parseInt(3+(u-200)/100,10):2;for(k=g/(this.numberTicks-1)/1e3,null==this.daTickInterval&&(this.daTickInterval=[k,"seconds"]),p=0;p