diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-03-07 11:20:07 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-03-07 11:20:07 +0400 |
commit | 251d1ec86b16b6895802ca9d0b5dcb8def114ff7 (patch) | |
tree | 85f82c696d1ff768c8e8036d910f383f8c5bf871 /libs | |
parent | e6527d10c3f475eece16781abf95312147b2ac29 (diff) |
Jqplot minor
Diffstat (limited to 'libs')
-rw-r--r-- | libs/jqplot/jqplot-custom.min.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/jqplot/jqplot-custom.min.js b/libs/jqplot/jqplot-custom.min.js index 06511be9d5..385e3b9a20 100644 --- a/libs/jqplot/jqplot-custom.min.js +++ b/libs/jqplot/jqplot-custom.min.js @@ -1,3 +1,25 @@ +/* +Following files are included below: +"jqplot.core.js"; +"jqplot.linearAxisRenderer.js"; +"jqplot.axisTickRenderer.js"; +"jqplot.axisLabelRenderer.js"; +"jqplot.tableLegendRenderer.js"; +"jqplot.lineRenderer.js"; +"jqplot.markerRenderer.js"; +"jqplot.divTitleRenderer.js"; +"jqplot.canvasGridRenderer.js"; +"jqplot.shadowRenderer.js"; +"jqplot.shapeRenderer.js"; +"jqplot.sprintf.js"; +"jqplot.themeEngine.js"; +"plugins/jqplot.pieRenderer.js"; +"plugins/jqplot.barRenderer.js"; +"plugins/jqplot.categoryAxisRenderer.js"; +"plugins/jqplot.canvasTextRenderer.js"; +"plugins/jqplot.canvasAxisTickRenderer.js"; + */ + (function(g){var h;g.fn.emptyForce=function(){for(var j=0,k;(k=g(this)[j])!=null;j++){if(k.nodeType===1){jQuery.cleanData(k.getElementsByTagName("*"))}if(g.jqplot_use_excanvas){k.outerHTML=""}else{while(k.firstChild){k.removeChild(k.firstChild)}}k=null}return g(this)};g.fn.removeChildForce=function(i){while(i.firstChild){this.removeChildForce(i.firstChild);i.removeChild(i.firstChild)}};g.jqplot=function(o,l,j){var k,i;if(j==null){if(jQuery.isArray(l)){k=l;i=null}else{if(typeof(l)==="object"){k=null;i=l}}}else{k=l;i=j}var n=new f();g("#"+o).removeClass("jqplot-error");if(g.jqplot.config.catchErrors){try{n.init(o,k,i);n.draw();n.themeEngine.init.call(n);return n}catch(m){var p=g.jqplot.config.errorMessage||m.message;g("#"+o).append('<div class="jqplot-error-message">'+p+"</div>");g("#"+o).addClass("jqplot-error");document.getElementById(o).style.background=g.jqplot.config.errorBackground;document.getElementById(o).style.border=g.jqplot.config.errorBorder;document.getElementById(o).style.fontFamily=g.jqplot.config.errorFontFamily;document.getElementById(o).style.fontSize=g.jqplot.config.errorFontSize;document.getElementById(o).style.fontStyle=g.jqplot.config.errorFontStyle;document.getElementById(o).style.fontWeight=g.jqplot.config.errorFontWeight}}else{n.init(o,k,i);n.draw();n.themeEngine.init.call(n);return n}};g.jqplot.CanvasManager=function(){if(typeof g.jqplot.CanvasManager.canvases=="undefined"){g.jqplot.CanvasManager.canvases=[];g.jqplot.CanvasManager.free=[]}var i=[];this.getCanvas=function(){var m;var k=true;if(!g.jqplot.use_excanvas){for(var n=0,j=g.jqplot.CanvasManager.canvases.length;n<j;n++){if(g.jqplot.CanvasManager.free[n]===true){k=false;m=g.jqplot.CanvasManager.canvases[n];g.jqplot.CanvasManager.free[n]=false;i.push(n);break}}}if(k){m=document.createElement("canvas");i.push(g.jqplot.CanvasManager.canvases.length);g.jqplot.CanvasManager.canvases.push(m);g.jqplot.CanvasManager.free.push(false)}return m};this.initCanvas=function(j){if(g.jqplot.use_excanvas){return window.G_vmlCanvasManager.initElement(j)}return j};this.freeAllCanvases=function(){for(var k=0,j=i.length;k<j;k++){this.freeCanvas(i[k])}i=[]};this.freeCanvas=function(j){if(g.jqplot.use_excanvas){window.G_vmlCanvasManager.uninitElement(g.jqplot.CanvasManager.canvases[j]);g.jqplot.CanvasManager.canvases[j]=null}else{var k=g.jqplot.CanvasManager.canvases[j];k.getContext("2d").clearRect(0,0,k.width,k.height);g(k).unbind().removeAttr("class").removeAttr("style");g(k).css({left:"",top:"",position:""});k.width=0;k.height=0;g.jqplot.CanvasManager.free[j]=true}}};g.jqplot.log=function(){if(window.console){console.log.apply(console,arguments)}};g.jqplot.config={enablePlugins:false,defaultHeight:300,defaultWidth:400,UTCAdjust:false,timezoneOffset:new Date(new Date().getTimezoneOffset()*60000),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:false,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"]};g.jqplot.arrayMax=function(i){return Math.max.apply(Math,i)};g.jqplot.arrayMin=function(i){return Math.min.apply(Math,i)};g.jqplot.enablePlugins=g.jqplot.config.enablePlugins;g.jqplot.support_canvas=function(){if(typeof g.jqplot.support_canvas.result=="undefined"){g.jqplot.support_canvas.result=!!document.createElement("canvas").getContext}return g.jqplot.support_canvas.result};g.jqplot.support_canvas_text=function(){if(typeof g.jqplot.support_canvas_text.result=="undefined"){g.jqplot.support_canvas_text.result=!!(document.createElement("canvas").getContext&&typeof document.createElement("canvas").getContext("2d").fillText=="function")}return g.jqplot.support_canvas_text.result};g.jqplot.use_excanvas=(g.browser.msie&&!g.jqplot.support_canvas())?true:false;g.jqplot.preInitHooks=[];g.jqplot.postInitHooks=[];g.jqplot.preParseOptionsHooks=[];g.jqplot.postParseOptionsHooks=[];g.jqplot.preDrawHooks=[];g.jqplot.postDrawHooks=[];g.jqplot.preDrawSeriesHooks=[];g.jqplot.postDrawSeriesHooks=[];g.jqplot.preDrawLegendHooks=[];g.jqplot.addLegendRowHooks=[];g.jqplot.preSeriesInitHooks=[];g.jqplot.postSeriesInitHooks=[];g.jqplot.preParseSeriesOptionsHooks=[];g.jqplot.postParseSeriesOptionsHooks=[];g.jqplot.eventListenerHooks=[];g.jqplot.preDrawSeriesShadowHooks=[];g.jqplot.postDrawSeriesShadowHooks=[];g.jqplot.ElemContainer=function(){this._elem;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null}};g.jqplot.ElemContainer.prototype.createElement=function(l,n,j,k,o){this._offsets=n;var i=j||"jqplot";var m=document.createElement(l);this._elem=g(m);this._elem.addClass(i);this._elem.css(k);this._elem.attr(o);m=null;return this._elem};g.jqplot.ElemContainer.prototype.getWidth=function(){if(this._elem){return this._elem.outerWidth(true)}else{return null}};g.jqplot.ElemContainer.prototype.getHeight=function(){if(this._elem){return this._elem.outerHeight(true)}else{return null}};g.jqplot.ElemContainer.prototype.getPosition=function(){if(this._elem){return this._elem.position()}else{return{top:null,left:null,bottom:null,right:null}}};g.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};g.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};g.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};g.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};function b(i){g.jqplot.ElemContainer.call(this);this.name=i;this._series=[];this.show=false;this.tickRenderer=g.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=g.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.min=null;this.max=null;this.autoscale=false;this.pad=1.2;this.padMax=null;this.padMin=null;this.ticks=[];this.numberTicks;this.tickInterval;this.renderer=g.jqplot.LinearAxisRenderer;this.rendererOptions={};this.showTicks=true;this.showTickMarks=true;this.showMinorTicks=true;this.useSeriesColor=false;this.borderWidth=null;this.borderColor=null;this._dataBounds={min:null,max:null};this._intervalStats=[];this._offsets={min:null,max:null};this._ticks=[];this._label=null;this.syncTicks=null;this.tickSpacing=75;this._min=null;this._max=null;this._tickInterval=null;this._numberTicks=null;this.__ticks=null;this._options={}}b.prototype=new g.jqplot.ElemContainer();b.prototype.constructor=b;b.prototype.init=function(){this.renderer=new this.renderer();this.tickOptions.axis=this.name;if(this.tickOptions.showMark==null){this.tickOptions.showMark=this.showTicks}if(this.tickOptions.showMark==null){this.tickOptions.showMark=this.showTickMarks}if(this.tickOptions.showLabel==null){this.tickOptions.showLabel=this.showTicks}if(this.label==null||this.label==""){this.showLabel=false}else{this.labelOptions.label=this.label}if(this.showLabel==false){this.labelOptions.show=false}if(this.pad==0){this.pad=1}if(this.padMax==0){this.padMax=1}if(this.padMin==0){this.padMin=1}if(this.padMax==null){this.padMax=(this.pad-1)/2+1}if(this.padMin==null){this.padMin=(this.pad-1)/2+1}this.pad=this.padMax+this.padMin-1;if(this.min!=null||this.max!=null){this.autoscale=false}if(this.syncTicks==null&&this.name.indexOf("y")>-1){this.syncTicks=true}else{if(this.syncTicks==null){this.syncTicks=false}}this.renderer.init.call(this,this.rendererOptions)};b.prototype.draw=function(i,j){if(this.__ticks){this.__ticks=null}return this.renderer.draw.call(this,i,j)};b.prototype.set=function(){this.renderer.set.call(this)};b.prototype.pack=function(j,i){if(this.show){this.renderer.pack.call(this,j,i)}if(this._min==null){this._min=this.min;this._max=this.max;this._tickInterval=this.tickInterval;this._numberTicks=this.numberTicks;this.__ticks=this._ticks}};b.prototype.reset=function(){this.renderer.reset.call(this)};b.prototype.resetScale=function(i){g.extend(true,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},i);this.resetDataBounds()};b.prototype.resetDataBounds=function(){var k=this._dataBounds;k.min=null;k.max=null;var n=(this.show)?true:false;for(var m=0;m<this._series.length;m++){var o=this._series[m];var r=o._plotData;var p=1,q=1;if(o._type!=null&&o._type=="ohlc"){p=3;q=2}for(var l=0;l<r.length;l++){if(this.name=="xaxis"||this.name=="x2axis"){if((r[l][0]!=null&&r[l][0]<k.min)||k.min==null){k.min=r[l][0]}if((r[l][0]!=null&&r[l][0]>k.max)||k.max==null){k.max=r[l][0]}}else{if((r[l][p]!=null&&r[l][p]<k.min)||k.min==null){k.min=r[l][p]}if((r[l][q]!=null&&r[l][q]>k.max)||k.max==null){k.max=r[l][q]}}}if(n&&o.renderer.constructor!==g.jqplot.BarRenderer){n=false}else{if(n&&this._options.hasOwnProperty("forceTickAt0")&&this._options.forceTickAt0==false){n=false}else{if(n&&o.renderer.constructor===g.jqplot.BarRenderer){if(o.barDirection=="vertical"&&this.name!="xaxis"&&this.name!="x2axis"){if(this._options.pad!=null||this._options.padMin!=null){n=false}}else{if(o.barDirection=="horizontal"&&(this.name=="xaxis"||this.name=="x2axis")){if(this._options.pad!=null||this._options.padMin!=null){n=false}}}}}}}if(n&&this.renderer.constructor===g.jqplot.LinearAxisRenderer&&k.min>=0){this.padMin=1;this.forceTickAt0=true}};function e(i){g.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";this.labels=[];this.showLabels=true;this.showSwatches=true;this.placement="insideGrid";this.xoffset=0;this.yoffset=0;this.border;this.background;this.textColor;this.fontFamily;this.fontSize;this.rowSpacing="0.5em";this.renderer=g.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=false;this.marginTop=null;this.marginRight=null;this.marginBottom=null;this.marginLeft=null;this.escapeHtml=false;this._series=[];g.extend(true,this,i)}e.prototype=new g.jqplot.ElemContainer();e.prototype.constructor=e;e.prototype.setOptions=function(i){g.extend(true,this,i);if(this.placement=="inside"){this.placement="insideGrid"}if(this.xoffset>0){if(this.placement=="insideGrid"){switch(this.location){case"nw":case"w":case"sw":if(this.marginLeft==null){this.marginLeft=this.xoffset+"px"}this.marginRight="0px";break;case"ne":case"e":case"se":default:if(this.marginRight==null){this.marginRight=this.xoffset+"px"}this.marginLeft="0px";break}}else{if(this.placement=="outside"){switch(this.location){case"nw":case"w":case"sw":if(this.marginRight==null){this.marginRight=this.xoffset+"px"}this.marginLeft="0px";break;case"ne":case"e":case"se":default:if(this.marginLeft==null){this.marginLeft=this.xoffset+"px"}this.marginRight="0px";break}}}this.xoffset=0}if(this.yoffset>0){if(this.placement=="outside"){switch(this.location){case"sw":case"s":case"se":if(this.marginTop==null){this.marginTop=this.yoffset+"px"}this.marginBottom="0px";break;case"ne":case"n":case"nw":default:if(this.marginBottom==null){this.marginBottom=this.yoffset+"px"}this.marginTop="0px";break}}else{if(this.placement=="insideGrid"){switch(this.location){case"sw":case"s":case"se":if(this.marginBottom==null){this.marginBottom=this.yoffset+"px"}this.marginTop="0px";break;case"ne":case"n":case"nw":default:if(this.marginTop==null){this.marginTop=this.yoffset+"px"}this.marginBottom="0px";break}}}this.yoffset=0}};e.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};e.prototype.draw=function(k){for(var j=0;j<g.jqplot.preDrawLegendHooks.length;j++){g.jqplot.preDrawLegendHooks[j].call(this,k)}return this.renderer.draw.call(this,k)};e.prototype.pack=function(i){this.renderer.pack.call(this,i)};function d(i){g.jqplot.ElemContainer.call(this);this.text=i;this.show=true;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=g.jqplot.DivTitleRenderer;this.rendererOptions={}}d.prototype=new g.jqplot.ElemContainer();d.prototype.constructor=d;d.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};d.prototype.draw=function(i){return this.renderer.draw.call(this,i)};d.prototype.pack=function(){this.renderer.pack.call(this)};function c(){g.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=g.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.color;this.lineWidth=2.5;this.lineJoin="round";this.lineCap="round";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.25;this.shadowDepth=3;this.shadowAlpha="0.1";this.breakOnNull=false;this.markerRenderer=g.jqplot.MarkerRenderer;this.markerOptions={};this.showLine=true;this.showMarker=true;this.index;this.fill=false;this.fillColor;this.fillAlpha;this.fillAndStroke=false;this.disableStack=false;this._stack=false;this.neighborThreshold=4;this.fillToZero=false;this.fillToValue=0;this.fillAxis="y";this.useNegativeColors=true;this._stackData=[];this._plotData=[];this._plotValues={x:[],y:[]};this._intervals={x:{},y:{}};this._prevPlotData=[];this._prevGridData=[];this._stackAxis="y";this._primaryAxis="_xaxis";this.canvas=new g.jqplot.GenericCanvas();this.shadowCanvas=new g.jqplot.GenericCanvas();this.plugins={};this._sumy=0;this._sumx=0;this._type=""}c.prototype=new g.jqplot.ElemContainer();c.prototype.constructor=c;c.prototype.init=function(l,p,n){this.index=l;this.gridBorderWidth=p;var o=this.data;var k=[],m;for(m=0;m<o.length;m++){if(!this.breakOnNull){if(o[m]==null||o[m][0]==null||o[m][1]==null){continue}else{k.push(o[m])}}else{k.push(o[m])}}this.data=k;if(!this.fillColor){this.fillColor=this.color}if(this.fillAlpha){var j=g.jqplot.normalize2rgb(this.fillColor);var j=g.jqplot.getColorComponents(j);this.fillColor="rgba("+j[0]+","+j[1]+","+j[2]+","+this.fillAlpha+")"}this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions,n);this.markerRenderer=new this.markerRenderer();if(!this.markerOptions.color){this.markerOptions.color=this.color}if(this.markerOptions.show==null){this.markerOptions.show=this.showMarker}this.showMarker=this.markerOptions.show;this.markerRenderer.init(this.markerOptions)};c.prototype.draw=function(p,m,o){var k=(m==h)?{}:m;p=(p==h)?this.canvas._ctx:p;var i,n,l;for(i=0;i<g.jqplot.preDrawSeriesHooks.length;i++){g.jqplot.preDrawSeriesHooks[i].call(this,p,k)}if(this.show){this.renderer.setGridData.call(this,o);if(!k.preventJqPlotSeriesDrawTrigger){g(p.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData])}n=[];if(k.data){n=k.data}else{if(!this._stack){n=this.data}else{n=this._plotData}}l=k.gridData||this.renderer.makeGridData.call(this,n,o);this.renderer.draw.call(this,p,l,k,o)}for(i=0;i<g.jqplot.postDrawSeriesHooks.length;i++){g.jqplot.postDrawSeriesHooks[i].call(this,p,k)}p=m=o=i=n=l=null};c.prototype.drawShadow=function(p,m,o){var k=(m==h)?{}:m;p=(p==h)?this.shadowCanvas._ctx:p;var i,n,l;for(i=0;i<g.jqplot.preDrawSeriesShadowHooks.length;i++){g.jqplot.preDrawSeriesShadowHooks[i].call(this,p,k)}if(this.shadow){this.renderer.setGridData.call(this,o);n=[];if(k.data){n=k.data}else{if(!this._stack){n=this.data}else{n=this._plotData}}l=k.gridData||this.renderer.makeGridData.call(this,n,o);this.renderer.drawShadow.call(this,p,l,k)}for(i=0;i<g.jqplot.postDrawSeriesShadowHooks.length;i++){g.jqplot.postDrawSeriesShadowHooks[i].call(this,p,k)}p=m=o=i=n=l=null};c.prototype.toggleDisplay=function(j){var i,k;if(j.data.series){i=j.data.series}else{i=this}if(j.data.speed){k=j.data.speed}if(k){if(i.canvas._elem.is(":hidden")){if(i.shadowCanvas._elem){i.shadowCanvas._elem.fadeIn(k)}i.canvas._elem.fadeIn(k);i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeIn(k)}else{if(i.shadowCanvas._elem){i.shadowCanvas._elem.fadeOut(k)}i.canvas._elem.fadeOut(k);i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeOut(k)}}else{if(i.canvas._elem.is(":hidden")){if(i.shadowCanvas._elem){i.shadowCanvas._elem.show()}i.canvas._elem.show();i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).show()}else{if(i.shadowCanvas._elem){i.shadowCanvas._elem.hide()}i.canvas._elem.hide();i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).hide()}}};function a(){g.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.drawBorder=true;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowWidth=3;this.shadowDepth=3;this.shadowColor=null;this.shadowAlpha="0.07";this._left;this._top;this._right;this._bottom;this._width;this._height;this._axes=[];this.renderer=g.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,bottom:null,left:null,right:null}}a.prototype=new g.jqplot.ElemContainer();a.prototype.constructor=a;a.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};a.prototype.createElement=function(i,j){this._offsets=i;return this.renderer.createElement.call(this,j)};a.prototype.draw=function(){this.renderer.draw.call(this)};g.jqplot.GenericCanvas=function(){g.jqplot.ElemContainer.call(this);this._ctx};g.jqplot.GenericCanvas.prototype=new g.jqplot.ElemContainer();g.jqplot.GenericCanvas.prototype.constructor=g.jqplot.GenericCanvas;g.jqplot.GenericCanvas.prototype.createElement=function(m,k,j,n){this._offsets=m;var i="jqplot";if(k!=h){i=k}var l;l=n.canvasManager.getCanvas();if(j!=null){this._plotDimensions=j}l.width=this._plotDimensions.width-this._offsets.left-this._offsets.right;l.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom;this._elem=g(l);this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top});this._elem.addClass(i);l=n.canvasManager.initCanvas(l);l=null;return this._elem};g.jqplot.GenericCanvas.prototype.setContext=function(){this._ctx=this._elem.get(0).getContext("2d");return this._ctx};g.jqplot.GenericCanvas.prototype.resetCanvas=function(){if(this._elem){if(g.jqplot.use_excanvas){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce()}this._ctx=null};g.jqplot.HooksManager=function(){this.hooks=[]};g.jqplot.HooksManager.prototype.addOnce=function(k){var l=false,j;for(j=0;j<this.hooks.length;j++){if(this.hooks[j][0]==k){l=true}}if(!l){this.hooks.push(k)}};g.jqplot.HooksManager.prototype.add=function(i){this.hooks.push(i)};g.jqplot.EventListenerManager=function(){this.hooks=[]};g.jqplot.EventListenerManager.prototype.addOnce=function(m,l){var n=false,k,j;for(j=0;j<this.hooks.length;j++){k=this.hooks[j];if(k[0]==m&&k[1]==l){n=true}}if(!n){this.hooks.push([m,l])}};g.jqplot.EventListenerManager.prototype.add=function(j,i){this.hooks.push([j,i])};function f(){this.data=[];this.dataRenderer;this.dataRendererOptions;this.noDataIndicator={show:false,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:true},yaxis:{min:0,max:12,tickInterval:3,show:true}}};this.targetId=null;this.target=null;this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{}},seriesDefaults:{},series:[]};this.series=[];this.axes={xaxis:new b("xaxis"),yaxis:new b("yaxis"),x2axis:new b("x2axis"),y2axis:new b("y2axis"),y3axis:new b("y3axis"),y4axis:new b("y4axis"),y5axis:new b("y5axis"),y6axis:new b("y6axis"),y7axis:new b("y7axis"),y8axis:new b("y8axis"),y9axis:new b("y9axis")};this.grid=new a();this.legend=new e();this.baseCanvas=new g.jqplot.GenericCanvas();this.seriesStack=[];this.previousSeriesStack=[];this.eventCanvas=new g.jqplot.GenericCanvas();this._width=null;this._height=null;this._plotDimensions={height:null,width:null};this._gridPadding={top:null,right:null,bottom:null,left:null};this._defaultGridPadding={top:10,right:10,bottom:23,left:10};this.syncXTicks=true;this.syncYTicks=true;this.seriesColors=g.jqplot.config.defaultColors;this.negativeSeriesColors=g.jqplot.config.defaultNegativeColors;this.sortData=true;var k=0;this.textColor;this.fontFamily;this.fontSize;this.title=new d();this.options={};this.stackSeries=false;this.defaultAxisStart=1;this._stackData=[];this._plotData=[];this.plugins={};this._drawCount=0;this.drawIfHidden=false;this.captureRightClick=false;this.themeEngine=new g.jqplot.ThemeEngine();this._sumy=0;this._sumx=0;this.preInitHooks=new g.jqplot.HooksManager();this.postInitHooks=new g.jqplot.HooksManager();this.preParseOptionsHooks=new g.jqplot.HooksManager();this.postParseOptionsHooks=new g.jqplot.HooksManager();this.preDrawHooks=new g.jqplot.HooksManager();this.postDrawHooks=new g.jqplot.HooksManager();this.preDrawSeriesHooks=new g.jqplot.HooksManager();this.postDrawSeriesHooks=new g.jqplot.HooksManager();this.preDrawLegendHooks=new g.jqplot.HooksManager();this.addLegendRowHooks=new g.jqplot.HooksManager();this.preSeriesInitHooks=new g.jqplot.HooksManager();this.postSeriesInitHooks=new g.jqplot.HooksManager();this.preParseSeriesOptionsHooks=new g.jqplot.HooksManager();this.postParseSeriesOptionsHooks=new g.jqplot.HooksManager();this.eventListenerHooks=new g.jqplot.EventListenerManager();this.preDrawSeriesShadowHooks=new g.jqplot.HooksManager();this.postDrawSeriesShadowHooks=new g.jqplot.HooksManager();this.colorGenerator=g.jqplot.ColorGenerator;this.canvasManager=new g.jqplot.CanvasManager();this.init=function(t,q,v){v=v||{};for(var r=0;r<g.jqplot.preInitHooks.length;r++){g.jqplot.preInitHooks[r].call(this,t,q,v)}for(var r=0;r<this.preInitHooks.hooks.length;r++){this.preInitHooks.hooks[r].call(this,t,q,v)}this.targetId="#"+t;this.target=g("#"+t);this.target.removeClass("jqplot-error");if(!this.target.get(0)){throw"No plot target specified"}if(this.target.css("position")=="static"){this.target.css("position","relative")}if(!this.target.hasClass("jqplot-target")){this.target.addClass("jqplot-target")}if(!this.target.height()){var s;if(v&&v.height){s=parseInt(v.height,10)}else{if(this.target.attr("data-height")){s=parseInt(this.target.attr("data-height"),10)}else{s=parseInt(g.jqplot.config.defaultHeight,10)}}this._height=s;this.target.css("height",s+"px")}else{this._height=s=this.target.height()}if(!this.target.width()){var u;if(v&&v.width){u=parseInt(v.width,10)}else{if(this.target.attr("data-width")){u=parseInt(this.target.attr("data-width"),10)}else{u=parseInt(g.jqplot.config.defaultWidth,10)}}this._width=u;this.target.css("width",u+"px")}else{this._width=u=this.target.width()}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Canvas dimension not set"}if(v.dataRenderer&&jQuery.isFunction(v.dataRenderer)){if(v.dataRendererOptions){this.dataRendererOptions=v.dataRendererOptions}this.dataRenderer=v.dataRenderer;q=this.dataRenderer(q,this,this.dataRendererOptions)}if(v.noDataIndicator&&jQuery.isPlainObject(v.noDataIndicator)){g.extend(true,this.noDataIndicator,v.noDataIndicator)}if(q==null||jQuery.isArray(q)==false||q.length==0||jQuery.isArray(q[0])==false||q[0].length==0){if(this.noDataIndicator.show==false){throw {name:"DataError",message:"No data to plot."}}else{for(var m in this.noDataIndicator.axes){for(var o in this.noDataIndicator.axes[m]){this.axes[m][o]=this.noDataIndicator.axes[m][o]}}this.postDrawHooks.add(function(){var B=this.eventCanvas.getHeight();var y=this.eventCanvas.getWidth();var x=g('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(x);x.height(B);x.width(y);x.css("top",this.eventCanvas._offsets.top);x.css("left",this.eventCanvas._offsets.left);var A=g('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');x.append(A);A.html(this.noDataIndicator.indicator);var z=A.height();var w=A.width();A.height(z);A.width(w);A.css("top",(B-z)/2+"px")})}}this.data=q;this.parseOptions(v);if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this.title.init();this.legend.init();this._sumy=0;this._sumx=0;for(var r=0;r<this.series.length;r++){this.seriesStack.push(r);this.previousSeriesStack.push(r);this.series[r].shadowCanvas._plotDimensions=this._plotDimensions;this.series[r].canvas._plotDimensions=this._plotDimensions;for(var p=0;p<g.jqplot.preSeriesInitHooks.length;p++){g.jqplot.preSeriesInitHooks[p].call(this.series[r],t,q,this.options.seriesDefaults,this.options.series[r],this)}for(var p=0;p<this.preSeriesInitHooks.hooks.length;p++){this.preSeriesInitHooks.hooks[p].call(this.series[r],t,q,this.options.seriesDefaults,this.options.series[r],this)}this.populatePlotData(this.series[r],r);this.series[r]._plotDimensions=this._plotDimensions;this.series[r].init(r,this.grid.borderWidth,this);for(var p=0;p<g.jqplot.postSeriesInitHooks.length;p++){g.jqplot.postSeriesInitHooks[p].call(this.series[r],t,q,this.options.seriesDefaults,this.options.series[r],this)}for(var p=0;p<this.postSeriesInitHooks.hooks.length;p++){this.postSeriesInitHooks.hooks[p].call(this.series[r],t,q,this.options.seriesDefaults,this.options.series[r],this)}this._sumy+=this.series[r]._sumy;this._sumx+=this.series[r]._sumx}for(var n in this.axes){this.axes[n]._plotDimensions=this._plotDimensions;this.axes[n].init()}if(this.sortData){i(this.series)}this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;for(var r=0;r<g.jqplot.postInitHooks.length;r++){g.jqplot.postInitHooks[r].call(this,t,q,v)}for(var r=0;r<this.postInitHooks.hooks.length;r++){this.postInitHooks.hooks[r].call(this,t,q,v)}};this.resetAxesScale=function(r,n){var p=n||{};var q=r||this.axes;if(q===true){q=this.axes}if(jQuery.isArray(q)){for(var o=0;o<q.length;o++){this.axes[q[o]].resetScale(p[q[o]])}}else{if(typeof(q)==="object"){for(var m in q){this.axes[m].resetScale(p[m])}}}};this.reInitialize=function(){this._height=this.target.height();this._width=this.target.width();if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Target dimension not set"}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;for(var r in this.axes){this.axes[r]._plotWidth=this._width;this.axes[r]._plotHeight=this._height}this.title._plotWidth=this._width;if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this._sumy=0;this._sumx=0;for(var p=0;p<this.series.length;p++){this.populatePlotData(this.series[p],p);this.series[p]._plotDimensions=this._plotDimensions;this.series[p].canvas._plotDimensions=this._plotDimensions;this._sumy+=this.series[p]._sumy;this._sumx+=this.series[p]._sumx}for(var m in this.axes){var o=this.axes[m]._ticks;for(var p=0;p<o.length;p++){var q=o[p]._elem;if(q){if(g.jqplot.use_excanvas){window.G_vmlCanvasManager.uninitElement(q.get(0))}q.emptyForce();q=null;o._elem=null}}o=null;this.axes[m]._plotDimensions=this._plotDimensions;this.axes[m]._ticks=[];this.axes[m].renderer.init.call(this.axes[m],{})}if(this.sortData){i(this.series)}this.grid._axes=this.axes;this.legend._series=this.series};function i(r){var v,w,x,m,u;for(var s=0;s<r.length;s++){var o;var t=[r[s].data,r[s]._stackData,r[s]._plotData,r[s]._prevPlotData];for(var p=0;p<4;p++){o=true;v=t[p];if(r[s]._stackAxis=="x"){for(var q=0;q<v.length;q++){if(typeof(v[q][1])!="number"){o=false;break}}if(o){v.sort(function(y,n){return y[1]-n[1]})}}else{for(var q=0;q<v.length;q++){if(typeof(v[q][0])!="number"){o=false;break}}if(o){v.sort(function(y,n){return y[0]-n[0]})}}}}}this.populatePlotData=function(q,r){this._plotData=[];this._stackData=[];q._stackData=[];q._plotData=[];var u={x:[],y:[]};if(this.stackSeries&&!q.disableStack){q._stack=true;var s=q._stackAxis=="x"?0:1;var t=s?0:1;var v=g.extend(true,[],q.data);var w=g.extend(true,[],q.data);for(var o=0;o<r;o++){var m=this.series[o].data;for(var n=0;n<m.length;n++){v[n][0]+=m[n][0];v[n][1]+=m[n][1];w[n][s]+=m[n][s]}}for(var p=0;p<w.length;p++){u.x.push(w[p][0]);u.y.push(w[p][1])}this._plotData.push(w);this._stackData.push(v);q._stackData=v;q._plotData=w;q._plotValues=u}else{for(var p=0;p<q.data.length;p++){u.x.push(q.data[p][0]);u.y.push(q.data[p][1])}this._stackData.push(q.data);this.series[r]._stackData=q.data;this._plotData.push(q.data);q._plotData=q.data;q._plotValues=u}if(r>0){q._prevPlotData=this.series[r-1]._plotData}q._sumy=0;q._sumx=0;for(p=q.data.length-1;p>-1;p--){q._sumy+=q.data[p][1];q._sumx+=q.data[p][0]}};this.getNextSeriesColor=(function(n){var m=0;var o=n.seriesColors;return function(){if(m<o.length){return o[m++]}else{m=0;return o[m++]}}})(this);this.parseOptions=function(v){for(var s=0;s<this.preParseOptionsHooks.hooks.length;s++){this.preParseOptionsHooks.hooks[s].call(this,v)}for(var s=0;s<g.jqplot.preParseOptionsHooks.length;s++){g.jqplot.preParseOptionsHooks[s].call(this,v)}this.options=g.extend(true,{},this.defaults,v);this.stackSeries=this.options.stackSeries;if(this.options.seriesColors){this.seriesColors=this.options.seriesColors}if(this.options.negativeSeriesColors){this.negativeSeriesColors=this.options.negativeSeriesColors}if(this.options.captureRightClick){this.captureRightClick=this.options.captureRightClick}this.defaultAxisStart=(v&&v.defaultAxisStart!=null)?v.defaultAxisStart:this.defaultAxisStart;var m=new this.colorGenerator(this.seriesColors);g.extend(true,this._gridPadding,this.options.gridPadding);this.sortData=(this.options.sortData!=null)?this.options.sortData:this.sortData;for(var o in this.axes){var q=this.axes[o];q._options=g.extend(true,{},this.options.axesDefaults,this.options.axes[o]);g.extend(true,q,this.options.axesDefaults,this.options.axes[o]);q._plotWidth=this._width;q._plotHeight=this._height}var t=function(y,w,z){var n=[];var x;w=w||"vertical";if(!jQuery.isArray(y[0])){for(x=0;x<y.length;x++){if(w=="vertical"){n.push([z+x,y[x]])}else{n.push([y[x],z+x])}}}else{g.extend(true,n,y)}return n};for(var s=0;s<this.data.length;s++){var u=new c();for(var r=0;r<g.jqplot.preParseSeriesOptionsHooks.length;r++){g.jqplot.preParseSeriesOptionsHooks[r].call(u,this.options.seriesDefaults,this.options.series[s])}for(var r=0;r<this.preParseSeriesOptionsHooks.hooks.length;r++){this.preParseSeriesOptionsHooks.hooks[r].call(u,this.options.seriesDefaults,this.options.series[s])}g.extend(true,u,{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[s]);var p="vertical";if(u.renderer===g.jqplot.BarRenderer&&u.rendererOptions&&u.rendererOptions.barDirection=="horizontal"){p="horizontal"}u.data=t(this.data[s],p,this.defaultAxisStart);switch(u.xaxis){case"xaxis":u._xaxis=this.axes.xaxis;break;case"x2axis":u._xaxis=this.axes.x2axis;break;default:break}u._yaxis=this.axes[u.yaxis];u._xaxis._series.push(u);u._yaxis._series.push(u);if(u.show){u._xaxis.show=true;u._yaxis.show=true}if(!u.color&&u.show!=false){u.color=m.next()}if(!u.label){u.label="Series "+(s+1).toString()}this.series.push(u);for(var r=0;r<g.jqplot.postParseSeriesOptionsHooks.length;r++){g.jqplot.postParseSeriesOptionsHooks[r].call(this.series[s],this.options.seriesDefaults,this.options.series[s])}for(var r=0;r<this.postParseSeriesOptionsHooks.hooks.length;r++){this.postParseSeriesOptionsHooks.hooks[r].call(this.series[s],this.options.seriesDefaults,this.options.series[s]) }}g.extend(true,this.grid,this.options.grid);for(var o in this.axes){var q=this.axes[o];if(q.borderWidth==null){q.borderWidth=this.grid.borderWidth}if(q.borderColor==null){if(o!="xaxis"&&o!="x2axis"&&q.useSeriesColor===true&&q.show){q.borderColor=q._series[0].color}else{q.borderColor=this.grid.borderColor}}}if(typeof this.options.title=="string"){this.title.text=this.options.title}else{if(typeof this.options.title=="object"){g.extend(true,this.title,this.options.title)}}this.title._plotWidth=this._width;this.legend.setOptions(this.options.legend);for(var s=0;s<g.jqplot.postParseOptionsHooks.length;s++){g.jqplot.postParseOptionsHooks[s].call(this,v)}for(var s=0;s<this.postParseOptionsHooks.hooks.length;s++){this.postParseOptionsHooks.hooks[s].call(this,v)}};this.destroy=function(){this.canvasManager.freeAllCanvases();this.target[0].innerHTML=""};this.replot=function(n){var o=n||{};var m=o.clear||true;var p=o.resetAxes||false;this.target.trigger("jqplotPreReplot");if(m){this.canvasManager.freeAllCanvases();this.eventCanvas._elem.unbind();this.target.unbind();this.target.empty()}this.reInitialize();if(p){this.resetAxesScale(p,o.axes)}this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(m){m=(m!=null)?m:true;this.target.trigger("jqplotPreRedraw");if(m){this.target.empty()}for(var o in this.axes){this.axes[o]._ticks=[]}for(var n=0;n<this.series.length;n++){this.populatePlotData(this.series[n],n)}this._sumy=0;this._sumx=0;for(n=0;n<this.series.length;n++){this._sumy+=this.series[n]._sumy;this._sumx+=this.series[n]._sumx}this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){this.target.trigger("jqplotPreDraw");var t,s;for(t=0;t<g.jqplot.preDrawHooks.length;t++){g.jqplot.preDrawHooks[t].call(this)}for(t=0;t<this.preDrawHooks.hooks.length;t++){this.preDrawHooks.hooks[t].call(this)}this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this));this.baseCanvas.setContext();this.target.append(this.title.draw());this.title.pack({top:0,left:0});var y=this.legend.draw();var x={top:0,left:0,bottom:0,right:0};if(this.legend.placement=="outsideGrid"){this.target.append(y);switch(this.legend.location){case"n":x.top+=this.legend.getHeight();break;case"s":x.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":x.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":x.left+=this.legend.getWidth();break;default:x.right+=this.legend.getWidth();break}y=y.detach()}var m=this.axes;for(var p in m){this.target.append(m[p].draw(this.baseCanvas._ctx,this));m[p].set()}if(m.yaxis.show){x.left+=m.yaxis.getWidth()}var q=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var o=[0,0,0,0,0,0,0,0];var v=0;var r;for(r=0;r<8;r++){if(m[q[r]].show){v+=m[q[r]].getWidth();o[r]=v}}x.right+=v;if(m.x2axis.show){x.top+=m.x2axis.getHeight()}if(this.title.show){x.top+=this.title.getHeight()}if(m.xaxis.show){x.bottom+=m.xaxis.getHeight()}var u=["top","bottom","left","right"];for(var r in u){if(this._gridPadding[u[r]]==null&&x[u[r]]>0){this._gridPadding[u[r]]=x[u[r]]}else{if(this._gridPadding[u[r]]==null){this._gridPadding[u[r]]=this._defaultGridPadding[u[r]]}}}var w=(this.legend.placement=="outsideGrid")?{top:this.title.getHeight(),left:0,right:0,bottom:0}:this._gridPadding;m.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-m.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});m.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-m.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});m.x2axis.pack({position:"absolute",top:this._gridPadding.top-m.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});for(t=8;t>0;t--){m[q[t-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-o[t-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top})}this.target.append(this.grid.createElement(this._gridPadding,this));this.grid.draw();for(t=0;t<this.series.length;t++){s=this.seriesStack[t];this.target.append(this.series[s].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this));this.series[s].shadowCanvas.setContext();this.series[s].shadowCanvas._elem.data("seriesIndex",s)}for(t=0;t<this.series.length;t++){s=this.seriesStack[t];this.target.append(this.series[s].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this));this.series[s].canvas.setContext();this.series[s].canvas._elem.data("seriesIndex",s)}this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this));this.eventCanvas.setContext();this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)";this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height);this.bindCustomEvents();if(this.legend.preDraw){this.eventCanvas._elem.before(y);this.legend.pack(w);if(this.legend._elem){this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}})}else{this.drawSeries()}}else{this.drawSeries();if(this.series.length){g(this.series[this.series.length-1].canvas._elem).after(y)}this.legend.pack(w)}for(var t=0;t<g.jqplot.eventListenerHooks.length;t++){this.eventCanvas._elem.bind(g.jqplot.eventListenerHooks[t][0],{plot:this},g.jqplot.eventListenerHooks[t][1])}for(var t=0;t<this.eventListenerHooks.hooks.length;t++){this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[t][0],{plot:this},this.eventListenerHooks.hooks[t][1])}for(var t=0;t<g.jqplot.postDrawHooks.length;t++){g.jqplot.postDrawHooks[t].call(this)}for(var t=0;t<this.postDrawHooks.hooks.length;t++){this.postDrawHooks.hooks[t].call(this)}if(this.target.is(":visible")){this._drawCount+=1}this.target.trigger("jqplotPostDraw",[this])}};this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave);if(this.captureRightClick){this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick);this.eventCanvas._elem.get(0).oncontextmenu=function(){return false}}else{this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)}};function j(v){var u=v.data.plot;var q=u.eventCanvas._elem.offset();var t={x:v.pageX-q.left,y:v.pageY-q.top};var r={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null};var s=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var m=u.axes;var o,p;for(o=11;o>0;o--){p=s[o-1];if(m[p].show){r[p]=m[p].series_p2u(t[p.charAt(0)])}}return{offsets:q,gridPos:t,dataPos:r}}function l(m,n){var w=n.series;var ac,ab,aa,V,W,Q,P,D,B,G,H,R;var Z,ad,X,z,O,T;var o,U;for(aa=n.seriesStack.length-1;aa>=0;aa--){ac=n.seriesStack[aa];V=w[ac];switch(V.renderer.constructor){case g.jqplot.BarRenderer:Q=m.x;P=m.y;for(ab=0;ab<V._barPoints.length;ab++){O=V._barPoints[ab];X=V.gridData[ab];if(Q>O[0][0]&&Q<O[2][0]&&P>O[2][1]&&P<O[0][1]){return{seriesIndex:V.index,pointIndex:ab,gridData:X,data:V.data[ab],points:V._barPoints[ab]}}}break;case g.jqplot.DonutRenderer:G=V.startAngle/180*Math.PI;Q=m.x-V._center[0];P=m.y-V._center[1];W=Math.sqrt(Math.pow(Q,2)+Math.pow(P,2));if(Q>0&&-P>=0){D=2*Math.PI-Math.atan(-P/Q)}else{if(Q>0&&-P<0){D=-Math.atan(-P/Q)}else{if(Q<0){D=Math.PI-Math.atan(-P/Q)}else{if(Q==0&&-P>0){D=3*Math.PI/2}else{if(Q==0&&-P<0){D=Math.PI/2}else{if(Q==0&&P==0){D=0}}}}}}if(G){D-=G;if(D<0){D+=2*Math.PI}else{if(D>2*Math.PI){D-=2*Math.PI}}}B=V.sliceMargin/180*Math.PI;if(W<V._radius&&W>V._innerRadius){for(ab=0;ab<V.gridData.length;ab++){H=(ab>0)?V.gridData[ab-1][1]+B:B;R=V.gridData[ab][1];if(D>H&&D<R){return{seriesIndex:V.index,pointIndex:ab,gridData:V.gridData[ab],data:V.data[ab]}}}}break;case g.jqplot.PieRenderer:G=V.startAngle/180*Math.PI;Q=m.x-V._center[0];P=m.y-V._center[1];W=Math.sqrt(Math.pow(Q,2)+Math.pow(P,2));if(Q>0&&-P>=0){D=2*Math.PI-Math.atan(-P/Q)}else{if(Q>0&&-P<0){D=-Math.atan(-P/Q)}else{if(Q<0){D=Math.PI-Math.atan(-P/Q)}else{if(Q==0&&-P>0){D=3*Math.PI/2}else{if(Q==0&&-P<0){D=Math.PI/2}else{if(Q==0&&P==0){D=0}}}}}}if(G){D-=G;if(D<0){D+=2*Math.PI}else{if(D>2*Math.PI){D-=2*Math.PI}}}B=V.sliceMargin/180*Math.PI;if(W<V._radius){for(ab=0;ab<V.gridData.length;ab++){H=(ab>0)?V.gridData[ab-1][1]+B:B;R=V.gridData[ab][1];if(D>H&&D<R){return{seriesIndex:V.index,pointIndex:ab,gridData:V.gridData[ab],data:V.data[ab]}}}}break;case g.jqplot.BubbleRenderer:Q=m.x;P=m.y;var M=null;if(V.show){for(var ab=0;ab<V.gridData.length;ab++){X=V.gridData[ab];ad=Math.sqrt((Q-X[0])*(Q-X[0])+(P-X[1])*(P-X[1]));if(ad<=X[2]&&(ad<=Z||Z==null)){Z=ad;M={seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}if(M!=null){return M}}break;case g.jqplot.FunnelRenderer:Q=m.x;P=m.y;var S=V._vertices,u=S[0],q=S[S.length-1],A,L,F;function Y(s,v,t){var r=(v[1]-t[1])/(v[0]-t[0]);var p=v[1]-r*v[0];var x=s+v[1];return[(x-p)/r,x]}A=Y(P,u[0],q[3]);L=Y(P,u[1],q[2]);for(ab=0;ab<S.length;ab++){F=S[ab];if(P>=F[0][1]&&P<=F[3][1]&&Q>=A[0]&&Q<=L[0]){return{seriesIndex:V.index,pointIndex:ab,gridData:null,data:V.data[ab]}}}break;case g.jqplot.LineRenderer:Q=m.x;P=m.y;W=V.renderer;if(V.show){if(V.fill){var E=false;if(Q>V._boundingBox[0][0]&&Q<V._boundingBox[1][0]&&P>V._boundingBox[1][1]&&P<V._boundingBox[0][1]){var K=V._areaPoints.length;var N;var ab=K-1;for(var N=0;N<K;N++){var J=[V._areaPoints[N][0],V._areaPoints[N][1]];var I=[V._areaPoints[ab][0],V._areaPoints[ab][1]];if(J[1]<P&&I[1]>=P||I[1]<P&&J[1]>=P){if(J[0]+(P-J[1])/(I[1]-J[1])*(I[0]-J[0])<Q){E=!E}}ab=N}}if(E){return{seriesIndex:ac,pointIndex:null,gridData:V.gridData,data:V.data,points:V._areaPoints}}break}else{U=V.markerRenderer.size/2+V.neighborThreshold;o=(U>0)?U:0;for(var ab=0;ab<V.gridData.length;ab++){X=V.gridData[ab];if(W.constructor==g.jqplot.OHLCRenderer){if(W.candleStick){var C=V._yaxis.series_u2p;if(Q>=X[0]-W._bodyWidth/2&&Q<=X[0]+W._bodyWidth/2&&P>=C(V.data[ab][2])&&P<=C(V.data[ab][3])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}else{if(!W.hlc){var C=V._yaxis.series_u2p;if(Q>=X[0]-W._tickLength&&Q<=X[0]+W._tickLength&&P>=C(V.data[ab][2])&&P<=C(V.data[ab][3])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}else{var C=V._yaxis.series_u2p;if(Q>=X[0]-W._tickLength&&Q<=X[0]+W._tickLength&&P>=C(V.data[ab][1])&&P<=C(V.data[ab][2])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}}}else{if(X[0]!=null&&X[1]!=null){ad=Math.sqrt((Q-X[0])*(Q-X[0])+(P-X[1])*(P-X[1]));if(ad<=o&&(ad<=Z||Z==null)){Z=ad;return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}}}}}break;default:Q=m.x;P=m.y;W=V.renderer;if(V.show){U=V.markerRenderer.size/2+V.neighborThreshold;o=(U>0)?U:0;for(var ab=0;ab<V.gridData.length;ab++){X=V.gridData[ab];if(W.constructor==g.jqplot.OHLCRenderer){if(W.candleStick){var C=V._yaxis.series_u2p;if(Q>=X[0]-W._bodyWidth/2&&Q<=X[0]+W._bodyWidth/2&&P>=C(V.data[ab][2])&&P<=C(V.data[ab][3])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}else{if(!W.hlc){var C=V._yaxis.series_u2p;if(Q>=X[0]-W._tickLength&&Q<=X[0]+W._tickLength&&P>=C(V.data[ab][2])&&P<=C(V.data[ab][3])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}else{var C=V._yaxis.series_u2p;if(Q>=X[0]-W._tickLength&&Q<=X[0]+W._tickLength&&P>=C(V.data[ab][1])&&P<=C(V.data[ab][2])){return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}}}else{ad=Math.sqrt((Q-X[0])*(Q-X[0])+(P-X[1])*(P-X[1]));if(ad<=o&&(ad<=Z||Z==null)){Z=ad;return{seriesIndex:ac,pointIndex:ab,gridData:X,data:V.data[ab]}}}}}break}}return null}this.onClick=function(o){var n=j(o);var r=o.data.plot;var q=l(n.gridPos,r);var m=jQuery.Event("jqplotClick");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])};this.onDblClick=function(o){var n=j(o);var r=o.data.plot;var q=l(n.gridPos,r);var m=jQuery.Event("jqplotDblClick");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])};this.onMouseDown=function(o){var n=j(o);var r=o.data.plot;var q=l(n.gridPos,r);var m=jQuery.Event("jqplotMouseDown");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])};this.onMouseUp=function(o){var n=j(o);var m=jQuery.Event("jqplotMouseUp");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,null,o.data.plot])};this.onRightClick=function(o){var n=j(o);var r=o.data.plot;var q=l(n.gridPos,r);if(r.captureRightClick){if(o.which==3){var m=jQuery.Event("jqplotRightClick");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])}else{var m=jQuery.Event("jqplotMouseUp");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])}}};this.onMouseMove=function(o){var n=j(o);var r=o.data.plot;var q=l(n.gridPos,r);var m=jQuery.Event("jqplotMouseMove");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,q,r])};this.onMouseEnter=function(o){var n=j(o);var q=o.data.plot;var m=jQuery.Event("jqplotMouseEnter");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,null,q])};this.onMouseLeave=function(o){var n=j(o);var q=o.data.plot;var m=jQuery.Event("jqplotMouseLeave");m.pageX=o.pageX;m.pageY=o.pageY;g(this).trigger(m,[n.gridPos,n.dataPos,null,q])};this.drawSeries=function(o,m){var q,p,n;m=(typeof(o)==="number"&&m==null)?o:m;o=(typeof(o)==="object")?o:{};if(m!=h){p=this.series[m];n=p.shadowCanvas._ctx;n.clearRect(0,0,n.canvas.width,n.canvas.height);p.drawShadow(n,o,this);n=p.canvas._ctx;n.clearRect(0,0,n.canvas.width,n.canvas.height);p.draw(n,o,this);if(p.renderer.constructor==g.jqplot.BezierCurveRenderer){if(m<this.series.length-1){this.drawSeries(m+1)}}}else{for(q=0;q<this.series.length;q++){p=this.series[q];n=p.shadowCanvas._ctx;n.clearRect(0,0,n.canvas.width,n.canvas.height);p.drawShadow(n,o,this);n=p.canvas._ctx;n.clearRect(0,0,n.canvas.width,n.canvas.height);p.draw(n,o,this)}}o=m=q=p=n=null};this.moveSeriesToFront=function(n){n=parseInt(n,10);var q=g.inArray(n,this.seriesStack);if(q==-1){return}if(q==this.seriesStack.length-1){this.previousSeriesStack=this.seriesStack.slice(0);return}var m=this.seriesStack[this.seriesStack.length-1];var p=this.series[n].canvas._elem.detach();var o=this.series[n].shadowCanvas._elem.detach();this.series[m].shadowCanvas._elem.after(o);this.series[m].canvas._elem.after(p);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(q,1);this.seriesStack.push(n)};this.moveSeriesToBack=function(n){n=parseInt(n,10);var q=g.inArray(n,this.seriesStack);if(q==0||q==-1){return}var m=this.seriesStack[0];var p=this.series[n].canvas._elem.detach();var o=this.series[n].shadowCanvas._elem.detach();this.series[m].shadowCanvas._elem.before(o);this.series[m].canvas._elem.before(p);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(q,1);this.seriesStack.unshift(n)};this.restorePreviousSeriesOrder=function(){var s,r,q,p,o,m,n;if(this.seriesStack==this.previousSeriesStack){return}for(s=1;s<this.previousSeriesStack.length;s++){m=this.previousSeriesStack[s];n=this.previousSeriesStack[s-1];q=this.series[m].canvas._elem.detach();p=this.series[m].shadowCanvas._elem.detach();this.series[n].shadowCanvas._elem.after(p);this.series[n].canvas._elem.after(q)}o=this.seriesStack.slice(0);this.seriesStack=this.previousSeriesStack.slice(0);this.previousSeriesStack=o};this.restoreOriginalSeriesOrder=function(){var q,p,m=[],o,n;for(q=0;q<this.series.length;q++){m.push(q)}if(this.seriesStack==m){return}this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack=m;for(q=1;q<this.seriesStack.length;q++){o=this.series[q].canvas._elem.detach();n=this.series[q].shadowCanvas._elem.detach();this.series[q-1].shadowCanvas._elem.after(n);this.series[q-1].canvas._elem.after(o)}};this.activateTheme=function(m){this.themeEngine.activate(this,m)}}g.jqplot.computeHighlightColors=function(l){var n;if(jQuery.isArray(l)){n=[];for(var p=0;p<l.length;p++){var o=g.jqplot.getColorComponents(l[p]);var k=[o[0],o[1],o[2]];var q=k[0]+k[1]+k[2];for(var m=0;m<3;m++){k[m]=(q>570)?k[m]*0.8:k[m]+0.3*(255-k[m]);k[m]=parseInt(k[m],10)}n.push("rgb("+k[0]+","+k[1]+","+k[2]+")")}}else{var o=g.jqplot.getColorComponents(l);var k=[o[0],o[1],o[2]];var q=k[0]+k[1]+k[2];for(var m=0;m<3;m++){k[m]=(q>570)?k[m]*0.8:k[m]+0.3*(255-k[m]);k[m]=parseInt(k[m],10)}n="rgb("+k[0]+","+k[1]+","+k[2]+")"}return n};g.jqplot.ColorGenerator=function(j){j=j||g.jqplot.config.defaultColors;var i=0;this.next=function(){if(i<j.length){return j[i++]}else{i=0;return j[i++]}};this.previous=function(){if(i>0){return j[i--]}else{i=j.length-1;return j[i]}};this.get=function(l){var k=l-j.length*Math.floor(l/j.length);return j[k]};this.setColors=function(k){j=k};this.reset=function(){i=0}};g.jqplot.hex2rgb=function(k,i){k=k.replace("#","");if(k.length==3){k=k.charAt(0)+k.charAt(0)+k.charAt(1)+k.charAt(1)+k.charAt(2)+k.charAt(2)}var j;j="rgba("+parseInt(k.slice(0,2),16)+", "+parseInt(k.slice(2,4),16)+", "+parseInt(k.slice(4,6),16);if(i){j+=", "+i}j+=")";return j};g.jqplot.rgb2hex=function(p){var l=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/;var j=p.match(l);var o="#";for(var n=1;n<4;n++){var k;if(j[n].search(/%/)!=-1){k=parseInt(255*j[n]/100,10).toString(16);if(k.length==1){k="0"+k}}else{k=parseInt(j[n],10).toString(16);if(k.length==1){k="0"+k}}o+=k}return o};g.jqplot.normalize2rgb=function(j,i){if(j.search(/^ *rgba?\(/)!=-1){return j}else{if(j.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1){return g.jqplot.hex2rgb(j,i)}else{throw"invalid color spec"}}};g.jqplot.getColorComponents=function(p){p=g.jqplot.colorKeywordMap[p]||p;var n=g.jqplot.normalize2rgb(p);var l=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/;var j=n.match(l);var k=[];for(var o=1;o<4;o++){if(j[o].search(/%/)!=-1){k[o-1]=parseInt(255*j[o]/100,10)}else{k[o-1]=parseInt(j[o],10)}}k[3]=parseFloat(j[4])?parseFloat(j[4]):1;return k};g.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"}})(jQuery);(function(a){a.jqplot.LinearAxisRenderer=function(){};a.jqplot.LinearAxisRenderer.prototype.init=function(b){this.breakPoints=null;this.breakTickLabel="≈";this.forceTickAt0=false;this.forceTickAt100=false;this._autoFormatString="";this._overrideFormatString=false;a.extend(true,this,b);if(this.breakPoints){if(!a.isArray(this.breakPoints)){this.breakPoints=null}else{if(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0]){this.breakPoints=null}}}this.resetDataBounds()};a.jqplot.LinearAxisRenderer.prototype.draw=function(b,j){if(this.show){this.renderer.createTicks.call(this);var h=0;var c;if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=a(document.createElement("div"));this._elem.addClass("jqplot-axis jqplot-"+this.name);this._elem.css("posiiton","absolute");if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){var g=this._label.draw(b,j);g.appendTo(this._elem);g=null}var f=this._ticks;var e;for(var d=0;d<f.length;d++){e=f[d];if(e.show&&e.showLabel&&(!e.isMinorTick||this.showMinorTicks)){this._elem.append(e.draw(b,j))}}e=null;f=null}return this._elem};a.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._min;this.max=this._max;this.tickInterval=this._tickInterval;this.numberTicks=this._numberTicks;this._autoFormatString="";if(this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString){this.tickOptions.formatString=""}};a.jqplot.LinearAxisRenderer.prototype.set=function(){var k=0;var d;var c=0;var j=0;var b=(this._label==null)?false:this._label.show;if(this.show){var g=this._ticks;var f;for(var e=0;e<g.length;e++){f=g[e];if(!f._breakTick&&f.show&&f.showLabel&&(!f.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){d=f._elem.outerHeight(true)}else{d=f._elem.outerWidth(true)}if(d>k){k=d}}}f=null;g=null;if(b){c=this._label._elem.outerWidth(true);j=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){k=k+j;this._elem.css({height:k+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){k=k+j;this._elem.css({height:k+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){k=k+c;this._elem.css({width:k+"px",left:"0px",top:"0px"});if(b&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",c+"px")}}else{k=k+c;this._elem.css({width:k+"px",right:"0px",top:"0px"});if(b&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",c+"px")}}}}}};a.jqplot.LinearAxisRenderer.prototype.createTicks=function(){var P=this._ticks;var G=this.ticks;var x=this.name;var z=this._dataBounds;var b,g;var ab,E;var k,h;var Z,W;var D=this.min;var aa=this.max;var S=this.numberTicks;var ae=this.tickInterval;if(G.length){for(W=0;W<G.length;W++){var J=G[W];var Q=new this.tickRenderer(this.tickOptions);if(J.constructor==Array){Q.value=J[0];if(this.breakPoints){if(J[0]==this.breakPoints[0]){Q.label=this.breakTickLabel;Q._breakTick=true;Q.showGridline=false;Q.showMark=false}else{if(J[0]>this.breakPoints[0]&&J[0]<=this.breakPoints[1]){Q.show=false;Q.showGridline=false;Q.label=J[1]}else{Q.label=J[1]}}}else{Q.label=J[1]}Q.setTick(J[0],this.name);this._ticks.push(Q)}else{Q.value=J;if(this.breakPoints){if(J==this.breakPoints[0]){Q.label=this.breakTickLabel;Q._breakTick=true;Q.showGridline=false;Q.showMark=false}else{if(J>this.breakPoints[0]&&J<=this.breakPoints[1]){Q.show=false;Q.showGridline=false}}}Q.setTick(J,this.name);this._ticks.push(Q)}}this.numberTicks=G.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{if(x=="xaxis"||x=="x2axis"){b=this._plotDimensions.width}else{b=this._plotDimensions.height}ab=((this.min!=null)?this.min:z.min);E=((this.max!=null)?this.max:z.max);var r=E-ab;var O,w;var p;if(this.min==null&&this.max==null&&this.numberTicks==null&&this.tickInterval==null&&!this.autoscale){if(this.tickOptions==null||!this.tickOptions.formatString){this._overrideFormatString=true}if(this.forceTickAt0){if(ab>0){ab=0}if(E<0){E=0}}if(this.forceTickAt100){if(ab>100){ab=100}if(E<100){E=100}}var f=30;var L=Math.max(b,f+1);var u=(L-f)/300;var K=a.jqplot.LinearTickGenerator(ab,E,u);var v=ab+r*(this.padMin-1);var M=E-r*(this.padMax-1);if(ab<=v||E>=M){v=ab-r*(this.padMin-1);M=E+r*(this.padMax-1);K=a.jqplot.LinearTickGenerator(v,M,u)}this.min=K[0];this.max=K[1];this.numberTicks=K[2];this._autoFormatString=K[3];this.tickInterval=K[4]}else{if(ab==E){var c=0.05;if(ab>0){c=Math.max(Math.log(ab)/Math.LN10,0.05)}ab-=c;E+=c}if(this.autoscale&&this.min==null&&this.max==null){var d,e,o;var A=false;var I=false;var y={min:null,max:null,average:null,stddev:null};for(var W=0;W<this._series.length;W++){var R=this._series[W];var B=(R.fillAxis=="x")?R._xaxis.name:R._yaxis.name;if(this.name==B){var N=R._plotValues[R.fillAxis];var C=N[0];var X=N[0];for(var V=1;V<N.length;V++){if(N[V]<C){C=N[V]}else{if(N[V]>X){X=N[V]}}}var q=(X-C)/X;if(R.renderer.constructor==a.jqplot.BarRenderer){if(C>=0&&(R.fillToZero||q>0.1)){A=true}else{A=false;if(R.fill&&R.fillToZero&&C<0&&X>0){I=true}else{I=false}}}else{if(R.fill){if(C>=0&&(R.fillToZero||q>0.1)){A=true}else{if(C<0&&X>0&&R.fillToZero){A=false;I=true}else{A=false;I=false}}}else{if(C<0){A=false}}}}}if(A){this.numberTicks=2+Math.ceil((b-(this.tickSpacing-1))/this.tickSpacing);this.min=0;D=0;e=E/(this.numberTicks-1);p=Math.pow(10,Math.abs(Math.floor(Math.log(e)/Math.LN10)));if(e/p==parseInt(e/p,10)){e+=p}this.tickInterval=Math.ceil(e/p)*p;this.max=this.tickInterval*(this.numberTicks-1)}else{if(I){this.numberTicks=2+Math.ceil((b-(this.tickSpacing-1))/this.tickSpacing);var F=Math.ceil(Math.abs(ab)/r*(this.numberTicks-1));var ad=this.numberTicks-1-F;e=Math.max(Math.abs(ab/F),Math.abs(E/ad));p=Math.pow(10,Math.abs(Math.floor(Math.log(e)/Math.LN10)));this.tickInterval=Math.ceil(e/p)*p;this.max=this.tickInterval*ad;this.min=-this.tickInterval*F}else{if(this.numberTicks==null){if(this.tickInterval){this.numberTicks=3+Math.ceil(r/this.tickInterval)}else{this.numberTicks=2+Math.ceil((b-(this.tickSpacing-1))/this.tickSpacing)}}if(this.tickInterval==null){e=r/(this.numberTicks-1);if(e<1){p=Math.pow(10,Math.abs(Math.floor(Math.log(e)/Math.LN10)))}else{p=1}this.tickInterval=Math.ceil(e*p*this.pad)/p}else{p=1/this.tickInterval}d=this.tickInterval*(this.numberTicks-1);o=(d-r)/2;if(this.min==null){this.min=Math.floor(p*(ab-o))/p}if(this.max==null){this.max=this.min+d}}}}else{O=(this.min!=null)?this.min:ab-r*(this.padMin-1);w=(this.max!=null)?this.max:E+r*(this.padMax-1);this.min=O;this.max=w;r=this.max-this.min;if(this.numberTicks==null){if(this.tickInterval!=null){this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else{if(b>100){this.numberTicks=parseInt(3+(b-100)/75,10)}else{this.numberTicks=2}}}if(this.tickInterval==null){this.tickInterval=r/(this.numberTicks-1)}}if(this.renderer.constructor==a.jqplot.LinearAxisRenderer&&this._autoFormatString==""){r=this.max-this.min;var ac=new this.tickRenderer(this.tickOptions);var H=ac.formatString||a.jqplot.config.defaultTickFormatString;var H=H.match(a.jqplot.sprintf.regex)[0];var Y=0;if(H){if(H.search(/[fFeEgGpP]/)>-1){var U=H.match(/\%\.(\d{0,})?[eEfFgGpP]/);if(U){Y=parseInt(U[1],10)}else{Y=6}}else{if(H.search(/[di]/)>-1){Y=0}}var l=Math.pow(10,-Y);if(this.tickInterval<l){if(S==null&&ae==null){this.tickInterval=l;if(aa==null&&D==null){this.min=Math.floor(this._dataBounds.min/l)*l;if(this.min==this._dataBounds.min){this.min=this._dataBounds.min-this.tickInterval}this.max=Math.ceil(this._dataBounds.max/l)*l;if(this.max==this._dataBounds.max){this.max=this._dataBounds.max+this.tickInterval}var T=(this.max-this.min)/this.tickInterval;T=T.toFixed(11);T=Math.ceil(T);this.numberTicks=T+1}else{if(aa==null){var T=(this._dataBounds.max-this.min)/this.tickInterval;T=T.toFixed(11);this.numberTicks=Math.ceil(T)+2;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else{if(D==null){var T=(this.max-this._dataBounds.min)/this.tickInterval;T=T.toFixed(11);this.numberTicks=Math.ceil(T)+2;this.min=this.max-this.tickInterval*(this.numberTicks-1)}else{this.numberTicks=Math.ceil((aa-D)/this.tickInterval)+1;this.min=Math.floor(D*Math.pow(10,Y))/Math.pow(10,Y);this.max=Math.ceil(aa*Math.pow(10,Y))/Math.pow(10,Y);this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}}}}}}if(this._overrideFormatString&&this._autoFormatString!=""){this.tickOptions=this.tickOptions||{};this.tickOptions.formatString=this._autoFormatString}for(var W=0;W<this.numberTicks;W++){Z=this.min+W*this.tickInterval;var Q=new this.tickRenderer(this.tickOptions);Q.setTick(Z,this.name);this._ticks.push(Q);Q=null}}P=null};a.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(d){if(a.isArray(d)&&d.length==this._ticks.length){var c;for(var b=0;b<d.length;b++){c=this._ticks[b];c.value=d[b]; c.label=c.formatter(c.formatString,d[b]);c.label=c.prefix+c.label;c._elem.html(c.label)}c=null;this.min=a.jqplot.arrayMin(d);this.max=a.jqplot.arrayMax(d);this.pack()}};a.jqplot.LinearAxisRenderer.prototype.pack=function(d,c){d=d||{};c=c||this._offsets;var v=this._ticks;var q=this.max;var o=this.min;var k=c.max;var g=c.min;var m=(this._label==null)?false:this._label.show;for(var n in d){this._elem.css(n,d[n])}this._offsets=c;var e=k-g;var f=q-o;if(this.breakPoints){f=f-this.breakPoints[1]+this.breakPoints[0];this.p2u=function(h){return(h-g)*f/e+o};this.u2p=function(h){if(h>this.breakPoints[0]&&h<this.breakPoints[1]){h=this.breakPoints[0]}if(h<=this.breakPoints[0]){return(h-o)*e/f+g}else{return(h-this.breakPoints[1]+this.breakPoints[0]-o)*e/f+g}};if(this.name.charAt(0)=="x"){this.series_u2p=function(h){if(h>this.breakPoints[0]&&h<this.breakPoints[1]){h=this.breakPoints[0]}if(h<=this.breakPoints[0]){return(h-o)*e/f}else{return(h-this.breakPoints[1]+this.breakPoints[0]-o)*e/f}};this.series_p2u=function(h){return h*f/e+o}}else{this.series_u2p=function(h){if(h>this.breakPoints[0]&&h<this.breakPoints[1]){h=this.breakPoints[0]}if(h>=this.breakPoints[1]){return(h-q)*e/f}else{return(h+this.breakPoints[1]-this.breakPoints[0]-q)*e/f}};this.series_p2u=function(h){return h*f/e+q}}}else{this.p2u=function(h){return(h-g)*f/e+o};this.u2p=function(h){return(h-o)*e/f+g};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(h){return(h-o)*e/f};this.series_p2u=function(h){return h*f/e+o}}else{this.series_u2p=function(h){return(h-q)*e/f};this.series_p2u=function(h){return h*f/e+q}}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(var r=0;r<v.length;r++){var l=v[r];if(l.show&&l.showLabel){var b;if(l.constructor==a.jqplot.CanvasAxisTickRenderer&&l.angle){var u=(this.name=="xaxis")?1:-1;switch(l.labelPosition){case"auto":if(u*l.angle<0){b=-l.getWidth()+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2}else{b=-l._textRenderer.height*Math.sin(l._textRenderer.angle)/2}break;case"end":b=-l.getWidth()+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2;break;case"start":b=-l._textRenderer.height*Math.sin(l._textRenderer.angle)/2;break;case"middle":b=-l.getWidth()/2+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2;break;default:b=-l.getWidth()/2+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2;break}}else{b=-l.getWidth()/2}var x=this.u2p(l.value)+b+"px";l._elem.css("left",x);l.pack()}}if(m){var j=this._label._elem.outerWidth(true);this._label._elem.css("left",g+e/2-j/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px")}else{this._label._elem.css("top","0px")}this._label.pack()}}else{for(var r=0;r<v.length;r++){var l=v[r];if(l.show&&l.showLabel){var b;if(l.constructor==a.jqplot.CanvasAxisTickRenderer&&l.angle){var u=(this.name=="yaxis")?1:-1;switch(l.labelPosition){case"auto":case"end":if(u*l.angle<0){b=-l._textRenderer.height*Math.cos(-l._textRenderer.angle)/2}else{b=-l.getHeight()+l._textRenderer.height*Math.cos(l._textRenderer.angle)/2}break;case"start":if(l.angle>0){b=-l._textRenderer.height*Math.cos(-l._textRenderer.angle)/2}else{b=-l.getHeight()+l._textRenderer.height*Math.cos(l._textRenderer.angle)/2}break;case"middle":b=-l.getHeight()/2;break;default:b=-l.getHeight()/2;break}}else{b=-l.getHeight()/2}var x=this.u2p(l.value)+b+"px";l._elem.css("top",x);l.pack()}}if(m){var s=this._label._elem.outerHeight(true);this._label._elem.css("top",k-e/2-s/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}v=null}})(jQuery);(function(a){a.jqplot.AxisTickRenderer=function(b){a.jqplot.ElemContainer.call(this);this.mark="outside";this.axis;this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.size=4;this.markSize=6;this.show=true;this.showLabel=true;this.label="";this.value=null;this._styles={};this.formatter=a.jqplot.DefaultTickFormatter;this.prefix="";this.formatString="";this.fontFamily;this.fontSize;this.textColor;this._elem;this._breakTick=false;a.extend(true,this,b)};a.jqplot.AxisTickRenderer.prototype.init=function(b){a.extend(true,this,b)};a.jqplot.AxisTickRenderer.prototype=new a.jqplot.ElemContainer();a.jqplot.AxisTickRenderer.prototype.constructor=a.jqplot.AxisTickRenderer;a.jqplot.AxisTickRenderer.prototype.setTick=function(b,d,c){this.value=b;this.axis=d;if(c){this.isMinorTick=true}return this};a.jqplot.AxisTickRenderer.prototype.draw=function(){if(!this.label){this.label=this.prefix+this.formatter(this.formatString,this.value)}var c={position:"absolute"};if(Number(this.label)){c.whitSpace="nowrap"}if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=a(document.createElement("div"));this._elem.addClass("jqplot-"+this.axis+"-tick");this._elem.text(this.label);this._elem.css(c);for(var b in this._styles){this._elem.css(b,this._styles[b])}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}if(this._breakTick){this._elem.addClass("jqplot-breakTick")}return this._elem};a.jqplot.DefaultTickFormatter=function(b,c){if(typeof c=="number"){if(!b){b=a.jqplot.config.defaultTickFormatString}return a.jqplot.sprintf(b,c)}else{return String(c)}};a.jqplot.AxisTickRenderer.prototype.pack=function(){}})(jQuery);(function(a){a.jqplot.AxisLabelRenderer=function(b){a.jqplot.ElemContainer.call(this);this.axis;this.show=true;this.label="";this.fontFamily=null;this.fontSize=null;this.textColor=null;this._elem;this.escapeHTML=false;a.extend(true,this,b)};a.jqplot.AxisLabelRenderer.prototype=new a.jqplot.ElemContainer();a.jqplot.AxisLabelRenderer.prototype.constructor=a.jqplot.AxisLabelRenderer;a.jqplot.AxisLabelRenderer.prototype.init=function(b){a.extend(true,this,b)};a.jqplot.AxisLabelRenderer.prototype.draw=function(b,c){if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=a('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>');if(Number(this.label)){this._elem.css("white-space","nowrap")}if(!this.escapeHTML){this._elem.html(this.label)}else{this._elem.text(this.label)}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}return this._elem};a.jqplot.AxisLabelRenderer.prototype.pack=function(){}})(jQuery);(function(a){a.jqplot.TableLegendRenderer=function(){};a.jqplot.TableLegendRenderer.prototype.init=function(b){a.extend(true,this,b)};a.jqplot.TableLegendRenderer.prototype.addrow=function(k,e,b,i){var f=(b)?this.rowSpacing+"px":"0px";var j;var d;var c;var h;var g;c=document.createElement("tr");j=a(c);j.addClass("jqplot-table-legend");c=null;if(i){j.prependTo(this._elem)}else{j.appendTo(this._elem)}if(this.showSwatches){d=a(document.createElement("td"));d.addClass("jqplot-table-legend");d.css({textAlign:"center",paddingTop:f});h=a(document.createElement("div"));g=a(document.createElement("div"));g.addClass("jqplot-table-legend-swatch");g.css({backgroundColor:e,borderColor:e});j.append(d.append(h.append(g)))}if(this.showLabels){d=a(document.createElement("td"));d.addClass("jqplot-table-legend");d.css("paddingTop",f);j.append(d);if(this.escapeHtml){d.text(k)}else{d.html(k)}}d=null;h=null;g=null;j=null;c=null};a.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}if(this.show){var g=this._series;var c=document.createElement("table");this._elem=a(c);this._elem.addClass("jqplot-table-legend");var n={position:"absolute"};if(this.background){n.background=this.background}if(this.border){n.border=this.border}if(this.fontSize){n.fontSize=this.fontSize}if(this.fontFamily){n.fontFamily=this.fontFamily}if(this.textColor){n.textColor=this.textColor}if(this.marginTop!=null){n.marginTop=this.marginTop}if(this.marginBottom!=null){n.marginBottom=this.marginBottom}if(this.marginLeft!=null){n.marginLeft=this.marginLeft}if(this.marginRight!=null){n.marginRight=this.marginRight}var b=false,k=false,m;for(var h=0;h<g.length;h++){m=g[h];if(m._stack||m.renderer.constructor==a.jqplot.BezierCurveRenderer){k=true}if(m.show&&m.showLabel){var f=this.labels[h]||m.label.toString();if(f){var d=m.color;if(k&&h<g.length-1){b=true}else{if(k&&h==g.length-1){b=false}}this.renderer.addrow.call(this,f,d,b,k);b=true}for(var e=0;e<a.jqplot.addLegendRowHooks.length;e++){var l=a.jqplot.addLegendRowHooks[e].call(this,m);if(l){this.renderer.addrow.call(this,l.label,l.color,b);b=true}}f=null}}}return this._elem};a.jqplot.TableLegendRenderer.prototype.pack=function(e){if(this.show){if(this.placement=="insideGrid"){switch(this.location){case"nw":var d=e.left;var c=e.top;this._elem.css("left",d);this._elem.css("top",c);break;case"n":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;var c=e.top;this._elem.css("left",d);this._elem.css("top",c);break;case"ne":var d=e.right;var c=e.top;this._elem.css({right:d,top:c});break;case"e":var d=e.right;var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({right:d,top:c});break;case"se":var d=e.right;var c=e.bottom;this._elem.css({right:d,bottom:c});break;case"s":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;var c=e.bottom;this._elem.css({left:d,bottom:c});break;case"sw":var d=e.left;var c=e.bottom;this._elem.css({left:d,bottom:c});break;case"w":var d=e.left;var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({left:d,top:c});break;default:var d=e.right;var c=e.bottom;this._elem.css({right:d,bottom:c});break}}else{if(this.placement=="outside"){switch(this.location){case"nw":var d=this._plotDimensions.width-e.left;var c=e.top;this._elem.css("right",d);this._elem.css("top",c);break;case"n":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;var c=this._plotDimensions.height-e.top;this._elem.css("left",d);this._elem.css("bottom",c);break;case"ne":var d=this._plotDimensions.width-e.right;var c=e.top;this._elem.css({left:d,top:c});break;case"e":var d=this._plotDimensions.width-e.right;var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({left:d,top:c});break;case"se":var d=this._plotDimensions.width-e.right;var c=e.bottom;this._elem.css({left:d,bottom:c});break;case"s":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;var c=this._plotDimensions.height-e.bottom;this._elem.css({left:d,top:c});break;case"sw":var d=this._plotDimensions.width-e.left;var c=e.bottom;this._elem.css({right:d,bottom:c});break;case"w":var d=this._plotDimensions.width-e.left;var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({right:d,top:c});break;default:var d=e.right;var c=e.bottom;this._elem.css({right:d,bottom:c});break}}else{switch(this.location){case"nw":this._elem.css({left:0,top:e.top});break;case"n":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;this._elem.css({left:d,top:e.top});break;case"ne":this._elem.css({right:0,top:e.top});break;case"e":var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({right:e.right,top:c});break;case"se":this._elem.css({right:e.right,bottom:e.bottom});break;case"s":var d=(e.left+(this._plotDimensions.width-e.right))/2-this.getWidth()/2;this._elem.css({left:d,bottom:e.bottom});break;case"sw":this._elem.css({left:e.left,bottom:e.bottom});break;case"w":var c=(e.top+(this._plotDimensions.height-e.bottom))/2-this.getHeight()/2;this._elem.css({left:e.left,top:c});break;default:this._elem.css({right:e.right,bottom:e.bottom});break}}}}}})(jQuery);(function(d){d.jqplot.LineRenderer=function(){this.shapeRenderer=new d.jqplot.ShapeRenderer();this.shadowRenderer=new d.jqplot.ShadowRenderer()};d.jqplot.LineRenderer.prototype.init=function(l,p){l=l||{};this._type="line";var n={highlightMouseOver:l.highlightMouseOver,highlightMouseDown:l.highlightMouseDown,highlightColor:l.highlightColor};delete (l.highlightMouseOver);delete (l.highlightMouseDown);delete (l.highlightColor);d.extend(true,this.renderer,l);var o={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:false,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shapeRenderer.init(o);if(this.lineWidth>2.5){var m=this.shadowOffset*(1+(Math.atan((this.lineWidth/2.5))/0.785398163-1)*0.6)}else{var m=this.shadowOffset*Math.atan((this.lineWidth/2.5))/0.785398163}var k={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:false,angle:this.shadowAngle,offset:m,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shadowRenderer.init(k);this._areaPoints=[];this._boundingBox=[[],[]];if(!this.isTrendline&&this.fill){this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColor=null;if(n.highlightMouseDown&&n.highlightMouseOver==null){n.highlightMouseOver=false}d.extend(true,this,{highlightMouseOver:n.highlightMouseOver,highlightMouseDown:n.highlightMouseDown,highlightColor:n.highlightColor});if(!this.highlightColor){this.highlightColor=d.jqplot.computeHighlightColors(this.fillColor)}if(this.highlighter){this.highlighter.show=false}}if(!this.isTrendline&&p){p.plugins.lineRenderer={};p.postInitHooks.addOnce(f);p.postDrawHooks.addOnce(g);p.eventListenerHooks.addOnce("jqplotMouseMove",a);p.eventListenerHooks.addOnce("jqplotMouseDown",b);p.eventListenerHooks.addOnce("jqplotMouseUp",i);p.eventListenerHooks.addOnce("jqplotClick",e);p.eventListenerHooks.addOnce("jqplotRightClick",j)}};d.jqplot.LineRenderer.prototype.setGridData=function(p){var l=this._xaxis.series_u2p;var o=this._yaxis.series_u2p;var m=this._plotData;var n=this._prevPlotData;this.gridData=[];this._prevGridData=[];for(var k=0;k<this.data.length;k++){if(m[k][0]!=null&&m[k][1]!=null){this.gridData.push([l.call(this._xaxis,m[k][0]),o.call(this._yaxis,m[k][1])])}else{if(m[k][0]==null){this.gridData.push([null,o.call(this._yaxis,m[k][1])])}else{if(m[k][1]==null){this.gridData.push([l.call(this._xaxis,m[k][0]),null])}}}if(n[k]!=null&&n[k][0]!=null&&n[k][1]!=null){this._prevGridData.push([l.call(this._xaxis,n[k][0]),o.call(this._yaxis,n[k][1])])}else{if(n[k]!=null&&n[k][0]==null){this._prevGridData.push([null,o.call(this._yaxis,n[k][1])])}else{if(n[k]!=null&&n[k][0]!=null&&n[k][1]==null){this._prevGridData.push([l.call(this._xaxis,n[k][0]),null])}}}}};d.jqplot.LineRenderer.prototype.makeGridData=function(n,p){var m=this._xaxis.series_u2p;var o=this._yaxis.series_u2p;var l=[];var q=[];for(var k=0;k<n.length;k++){if(n[k][0]!=null&&n[k][1]!=null){l.push([m.call(this._xaxis,n[k][0]),o.call(this._yaxis,n[k][1])])}else{if(n[k][0]==null){l.push([null,o.call(this._yaxis,n[k][1])])}else{if(n[k][1]==null){l.push([m.call(this._xaxis,n[k][0]),null])}}}}return l};d.jqplot.LineRenderer.prototype.draw=function(A,K,l){var E;var u=(l!=undefined)?l:{};var n=(u.shadow!=undefined)?u.shadow:this.shadow;var L=(u.showLine!=undefined)?u.showLine:this.showLine;var D=(u.fill!=undefined)?u.fill:this.fill;var k=(u.fillAndStroke!=undefined)?u.fillAndStroke:this.fillAndStroke;var v,B,y,G;A.save();if(K.length){if(L){if(D){if(this.fillToZero){var o=new d.jqplot.ColorGenerator(this.negativeSeriesColors);var H=o.get(this.index);if(!this.useNegativeColors){H=u.fillStyle}var s=false;var t=u.fillStyle;if(k){var J=K.slice(0)}if(this.index==0||!this._stack){var z=[];this._areaPoints=[];var I=this._yaxis.series_u2p(this.fillToValue);var m=this._xaxis.series_u2p(this.fillToValue);if(this.fillAxis=="y"){z.push([K[0][0],I]);this._areaPoints.push([K[0][0],I]);for(var E=0;E<K.length-1;E++){z.push(K[E]);this._areaPoints.push(K[E]);if(this._plotData[E][1]*this._plotData[E+1][1]<0){if(this._plotData[E][1]<0){s=true;u.fillStyle=H}else{s=false;u.fillStyle=t}var r=K[E][0]+(K[E+1][0]-K[E][0])*(I-K[E][1])/(K[E+1][1]-K[E][1]);z.push([r,I]);this._areaPoints.push([r,I]);if(n){this.renderer.shadowRenderer.draw(A,z,u)}this.renderer.shapeRenderer.draw(A,z,u);z=[[r,I]]}}if(this._plotData[K.length-1][1]<0){s=true;u.fillStyle=H}else{s=false;u.fillStyle=t}z.push(K[K.length-1]);this._areaPoints.push(K[K.length-1]);z.push([K[K.length-1][0],I]);this._areaPoints.push([K[K.length-1][0],I])}if(n){this.renderer.shadowRenderer.draw(A,z,u)}this.renderer.shapeRenderer.draw(A,z,u)}else{var x=this._prevGridData;for(var E=x.length;E>0;E--){K.push(x[E-1])}if(n){this.renderer.shadowRenderer.draw(A,K,u)}this._areaPoints=K;this.renderer.shapeRenderer.draw(A,K,u)}}else{if(k){var J=K.slice(0)}if(this.index==0||!this._stack){var q=A.canvas.height;K.unshift([K[0][0],q]);var F=K.length;K.push([K[F-1][0],q])}else{var x=this._prevGridData;for(var E=x.length;E>0;E--){K.push(x[E-1])}}this._areaPoints=K;if(n){this.renderer.shadowRenderer.draw(A,K,u)}this.renderer.shapeRenderer.draw(A,K,u)}if(k){var C=d.extend(true,{},u,{fill:false,closePath:false});this.renderer.shapeRenderer.draw(A,J,C);if(this.markerRenderer.show){for(E=0;E<J.length;E++){this.markerRenderer.draw(J[E][0],J[E][1],A,u.markerOptions)}}}}else{if(n){this.renderer.shadowRenderer.draw(A,K,u)}this.renderer.shapeRenderer.draw(A,K,u)}}var v=y=B=G=null;for(E=0;E<this._areaPoints.length;E++){var w=this._areaPoints[E];if(v>w[0]||v==null){v=w[0]}if(G<w[1]||G==null){G=w[1]}if(y<w[0]||y==null){y=w[0]}if(B>w[1]||B==null){B=w[1]}}this._boundingBox=[[v,G],[y,B]];if(this.markerRenderer.show&&!D){for(E=0;E<K.length;E++){if(K[E][0]!=null&&K[E][1]!=null){this.markerRenderer.draw(K[E][0],K[E][1],A,u.markerOptions)}}}}A.restore()};d.jqplot.LineRenderer.prototype.drawShadow=function(k,m,l){};function f(n,m,k){for(var l=0;l<this.series.length;l++){if(this.series[l].renderer.constructor==d.jqplot.LineRenderer){if(this.series[l].highlightMouseOver){this.series[l].highlightMouseDown=false}}}this.target.bind("mouseout",{plot:this},function(o){h(o.data.plot)})}function g(){if(this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas){this.plugins.lineRenderer.highlightCanvas.resetCanvas();this.plugins.lineRenderer.highlightCanvas=null}this.plugins.lineRenderer.highlightedSeriesIndex=null;this.plugins.lineRenderer.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.lineRenderer.highlightCanvas.setContext()}function c(q,p,n,m){var l=q.series[p];var k=q.plugins.lineRenderer.highlightCanvas;k._ctx.clearRect(0,0,k._ctx.canvas.width,k._ctx.canvas.height);l._highlightedPoint=n;q.plugins.lineRenderer.highlightedSeriesIndex=p;var o={fillStyle:l.highlightColor};l.renderer.shapeRenderer.draw(k._ctx,m,o);k=null}function h(m){var k=m.plugins.lineRenderer.highlightCanvas;k._ctx.clearRect(0,0,k._ctx.canvas.width,k._ctx.canvas.height);for(var l=0;l<m.series.length;l++){m.series[l]._highlightedPoint=null}m.plugins.lineRenderer.highlightedSeriesIndex=null;m.target.trigger("jqplotDataUnhighlight");k=null}function a(o,n,r,q,p){if(q){var m=[q.seriesIndex,q.pointIndex,q.data];var l=jQuery.Event("jqplotDataMouseOver");l.pageX=o.pageX;l.pageY=o.pageY;p.target.trigger(l,m);if(p.series[m[0]].highlightMouseOver&&!(m[0]==p.plugins.lineRenderer.highlightedSeriesIndex)){var k=jQuery.Event("jqplotDataHighlight");k.pageX=o.pageX;k.pageY=o.pageY;p.target.trigger(k,m);c(p,q.seriesIndex,q.pointIndex,q.points)}}else{if(q==null){h(p)}}}function b(n,m,q,p,o){if(p){var l=[p.seriesIndex,p.pointIndex,p.data];if(o.series[l[0]].highlightMouseDown&&!(l[0]==o.plugins.lineRenderer.highlightedSeriesIndex)){var k=jQuery.Event("jqplotDataHighlight");k.pageX=n.pageX;k.pageY=n.pageY;o.target.trigger(k,l);c(o,p.seriesIndex,p.pointIndex,p.points)}}else{if(p==null){h(o)}}}function i(m,l,p,o,n){var k=n.plugins.lineRenderer.highlightedSeriesIndex;if(k!=null&&n.series[k].highlightMouseDown){h(n)}}function e(n,m,q,p,o){if(p){var l=[p.seriesIndex,p.pointIndex,p.data];var k=jQuery.Event("jqplotDataClick");k.pageX=n.pageX;k.pageY=n.pageY;o.target.trigger(k,l)}}function j(o,n,r,q,p){if(q){var m=[q.seriesIndex,q.pointIndex,q.data];var k=p.plugins.lineRenderer.highlightedSeriesIndex;if(k!=null&&p.series[k].highlightMouseDown){h(p)}var l=jQuery.Event("jqplotDataRightClick");l.pageX=o.pageX;l.pageY=o.pageY;p.target.trigger(l,m)}}})(jQuery);(function(a){a.jqplot.MarkerRenderer=function(b){this.show=true;this.style="filledCircle";this.lineWidth=2;this.size=9;this.color="#666666";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1;this.shadowDepth=3;this.shadowAlpha="0.07";this.shadowRenderer=new a.jqplot.ShadowRenderer();this.shapeRenderer=new a.jqplot.ShapeRenderer();a.extend(true,this,b)};a.jqplot.MarkerRenderer.prototype.init=function(b){a.extend(true,this,b);var d={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:true};if(this.style.indexOf("filled")!=-1){d.fill=true}if(this.style.indexOf("ircle")!=-1){d.isarc=true;d.closePath=false}this.shadowRenderer.init(d);var c={fill:false,isarc:false,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:true};if(this.style.indexOf("filled")!=-1){c.fill=true}if(this.style.indexOf("ircle")!=-1){c.isarc=true;c.closePath=false}this.shapeRenderer.init(c)};a.jqplot.MarkerRenderer.prototype.drawDiamond=function(d,c,g,f,i){var b=1.2;var j=this.size/2/b;var h=this.size/2*b;var e=[[d-j,c],[d,c+h],[d+j,c],[d,c-h]];if(this.shadow){this.shadowRenderer.draw(g,e)}this.shapeRenderer.draw(g,e,i)};a.jqplot.MarkerRenderer.prototype.drawPlus=function(e,d,h,g,k){var c=1;var l=this.size/2*c;var i=this.size/2*c;var j=[[e,d-i],[e,d+i]];var f=[[e+l,d],[e-l,d]];var b=a.extend(true,{},this.options,{closePath:false});if(this.shadow){this.shadowRenderer.draw(h,j,{closePath:false});this.shadowRenderer.draw(h,f,{closePath:false})}this.shapeRenderer.draw(h,j,b);this.shapeRenderer.draw(h,f,b)};a.jqplot.MarkerRenderer.prototype.drawX=function(e,d,h,g,k){var c=1;var l=this.size/2*c;var i=this.size/2*c;var b=a.extend(true,{},this.options,{closePath:false});var j=[[e-l,d-i],[e+l,d+i]];var f=[[e-l,d+i],[e+l,d-i]];if(this.shadow){this.shadowRenderer.draw(h,j,{closePath:false});this.shadowRenderer.draw(h,f,{closePath:false})}this.shapeRenderer.draw(h,j,b);this.shapeRenderer.draw(h,f,b)};a.jqplot.MarkerRenderer.prototype.drawDash=function(d,c,g,f,i){var b=1;var j=this.size/2*b;var h=this.size/2*b;var e=[[d-j,c],[d+j,c]];if(this.shadow){this.shadowRenderer.draw(g,e)}this.shapeRenderer.draw(g,e,i)};a.jqplot.MarkerRenderer.prototype.drawLine=function(g,f,b,e,c){var d=[g,f];if(this.shadow){this.shadowRenderer.draw(b,d)}this.shapeRenderer.draw(b,d,c)};a.jqplot.MarkerRenderer.prototype.drawSquare=function(d,c,g,f,i){var b=1;var j=this.size/2/b;var h=this.size/2*b;var e=[[d-j,c-h],[d-j,c+h],[d+j,c+h],[d+j,c-h]];if(this.shadow){this.shadowRenderer.draw(g,e)}this.shapeRenderer.draw(g,e,i)};a.jqplot.MarkerRenderer.prototype.drawCircle=function(c,i,e,h,f){var b=this.size/2;var d=2*Math.PI;var g=[c,i,b,0,d,true];if(this.shadow){this.shadowRenderer.draw(e,g)}this.shapeRenderer.draw(e,g,f)};a.jqplot.MarkerRenderer.prototype.draw=function(b,e,c,d){d=d||{};if(d.show==null||d.show!=false){if(d.color&&!d.fillStyle){d.fillStyle=d.color}if(d.color&&!d.strokeStyle){d.strokeStyle=d.color}switch(this.style){case"diamond":this.drawDiamond(b,e,c,false,d);break;case"filledDiamond":this.drawDiamond(b,e,c,true,d);break;case"circle":this.drawCircle(b,e,c,false,d);break;case"filledCircle":this.drawCircle(b,e,c,true,d);break;case"square":this.drawSquare(b,e,c,false,d);break;case"filledSquare":this.drawSquare(b,e,c,true,d);break;case"x":this.drawX(b,e,c,true,d);break;case"plus":this.drawPlus(b,e,c,true,d);break;case"dash":this.drawDash(b,e,c,true,d);break;case"line":this.drawLine(b,e,c,false,d);break;default:this.drawDiamond(b,e,c,false,d);break}}}})(jQuery);(function(a){a.jqplot.DivTitleRenderer=function(){};a.jqplot.DivTitleRenderer.prototype.init=function(b){a.extend(true,this,b)};a.jqplot.DivTitleRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}var e=this.renderer;var d=document.createElement("div");this._elem=a(d);this._elem.addClass("jqplot-title");if(!this.text){this.show=false;this._elem.height(0);this._elem.width(0)}else{if(this.text){var b;if(this.color){b=this.color}else{if(this.textColor){b=this.textColor}}var c={position:"absolute",top:"0px",left:"0px"};if(this._plotWidth){c.width=this._plotWidth+"px"}if(this.fontSize){c.fontSize=this.fontSize}if(this.textAlign){c.textAlign=this.textAlign}else{c.textAlign="center"}if(b){c.color=b}if(this.paddingBottom){c.paddingBottom=this.paddingBottom}if(this.fontFamily){c.fontFamily=this.fontFamily}this._elem.css(c);this._elem.text(this.text)}}d=null;return this._elem};a.jqplot.DivTitleRenderer.prototype.pack=function(){}})(jQuery);(function(a){a.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new a.jqplot.ShadowRenderer()};a.jqplot.CanvasGridRenderer.prototype.init=function(c){this._ctx;a.extend(true,this,c);var b={lineJoin:"miter",lineCap:"round",fill:false,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:false,strokeStyle:this.shadowColor};this.renderer.shadowRenderer.init(b)};a.jqplot.CanvasGridRenderer.prototype.createElement=function(e){var d;if(this._elem){if(a.jqplot.use_excanvas){d=this._elem.get(0);window.G_vmlCanvasManager.uninitElement(d);d=null}this._elem.emptyForce();this._elem=null}d=e.canvasManager.getCanvas();var b=this._plotDimensions.width;var c=this._plotDimensions.height;d.width=b;d.height=c;this._elem=a(d);this._elem.addClass("jqplot-grid-canvas");this._elem.css({position:"absolute",left:0,top:0});d=e.canvasManager.initCanvas(d);this._top=this._offsets.top;this._bottom=c-this._offsets.bottom;this._left=this._offsets.left;this._right=b-this._offsets.right;this._width=this._right-this._left;this._height=this._bottom-this._top;d=null;return this._elem};a.jqplot.CanvasGridRenderer.prototype.draw=function(){this._ctx=this._elem.get(0).getContext("2d");var q=this._ctx;var v=this._axes;q.save();q.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height);q.fillStyle=this.backgroundColor||this.background;q.fillRect(this._left,this._top,this._width,this._height);if(true){q.save();q.lineJoin="miter";q.lineCap="butt";q.lineWidth=this.gridLineWidth;q.strokeStyle=this.gridLineColor;var y,x,o,p;var k=["xaxis","yaxis","x2axis","y2axis"];for(var w=4;w>0;w--){var A=k[w-1];var c=v[A];var z=c._ticks;if(c.show){for(var r=z.length;r>0;r--){var l=z[r-1];if(l.show){var g=Math.round(c.u2p(l.value))+0.5;switch(A){case"xaxis":if(l.showGridline&&this.drawGridlines){n(g,this._top,g,this._bottom)}if(l.showMark&&l.mark){o=l.markSize;p=l.mark;var g=Math.round(c.u2p(l.value))+0.5;switch(p){case"outside":y=this._bottom;x=this._bottom+o;break;case"inside":y=this._bottom-o;x=this._bottom;break;case"cross":y=this._bottom-o;x=this._bottom+o;break;default:y=this._bottom;x=this._bottom+o;break}if(this.shadow){this.renderer.shadowRenderer.draw(q,[[g,y],[g,x]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}n(g,y,g,x)}break;case"yaxis":if(l.showGridline&&this.drawGridlines){n(this._right,g,this._left,g)}if(l.showMark&&l.mark){o=l.markSize;p=l.mark;var g=Math.round(c.u2p(l.value))+0.5;switch(p){case"outside":y=this._left-o;x=this._left;break;case"inside":y=this._left;x=this._left+o;break;case"cross":y=this._left-o;x=this._left+o;break;default:y=this._left-o;x=this._left;break}if(this.shadow){this.renderer.shadowRenderer.draw(q,[[y,g],[x,g]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}n(y,g,x,g,{strokeStyle:c.borderColor})}break;case"x2axis":if(l.showGridline&&this.drawGridlines){n(g,this._bottom,g,this._top)}if(l.showMark&&l.mark){o=l.markSize;p=l.mark;var g=Math.round(c.u2p(l.value))+0.5;switch(p){case"outside":y=this._top-o;x=this._top;break;case"inside":y=this._top;x=this._top+o;break;case"cross":y=this._top-o;x=this._top+o;break;default:y=this._top-o;x=this._top;break}if(this.shadow){this.renderer.shadowRenderer.draw(q,[[g,y],[g,x]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}n(g,y,g,x)}break;case"y2axis":if(l.showGridline&&this.drawGridlines){n(this._left,g,this._right,g)}if(l.showMark&&l.mark){o=l.markSize;p=l.mark;var g=Math.round(c.u2p(l.value))+0.5;switch(p){case"outside":y=this._right;x=this._right+o;break;case"inside":y=this._right-o;x=this._right;break;case"cross":y=this._right-o;x=this._right+o;break;default:y=this._right;x=this._right+o;break}if(this.shadow){this.renderer.shadowRenderer.draw(q,[[y,g],[x,g]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}n(y,g,x,g,{strokeStyle:c.borderColor})}break;default:break}}}l=null}c=null;z=null}k=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];for(var w=7;w>0;w--){var c=v[k[w-1]];var z=c._ticks;if(c.show){var d=z[c.numberTicks-1];var h=z[0];var f=c.getLeft();var u=[[f,d.getTop()+d.getHeight()/2],[f,h.getTop()+h.getHeight()/2+1]];if(this.shadow){this.renderer.shadowRenderer.draw(q,u,{lineCap:"butt",fill:false,closePath:false})}n(u[0][0],u[0][1],u[1][0],u[1][1],{lineCap:"butt",strokeStyle:c.borderColor,lineWidth:c.borderWidth});for(var r=z.length;r>0;r--){var l=z[r-1];o=l.markSize;p=l.mark;var g=Math.round(c.u2p(l.value))+0.5;if(l.showMark&&l.mark){switch(p){case"outside":y=f;x=f+o;break;case"inside":y=f-o;x=f;break;case"cross":y=f-o;x=f+o;break;default:y=f;x=f+o;break}u=[[y,g],[x,g]];if(this.shadow){this.renderer.shadowRenderer.draw(q,u,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}n(y,g,x,g,{strokeStyle:c.borderColor})}l=null}h=null}c=null;z=null}q.restore()}function n(m,j,e,b,i){q.save();i=i||{};if(i.lineWidth==null||i.lineWidth!=0){a.extend(true,q,i);q.beginPath();q.moveTo(m,j);q.lineTo(e,b);q.stroke();q.restore()}}if(this.shadow){var u=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(q,u)}if(this.borderWidth!=0&&this.drawBorder){n(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:v.x2axis.borderColor,lineWidth:v.x2axis.borderWidth});n(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:v.y2axis.borderColor,lineWidth:v.y2axis.borderWidth});n(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:v.xaxis.borderColor,lineWidth:v.xaxis.borderWidth});n(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:v.yaxis.borderColor,lineWidth:v.yaxis.borderWidth})}q.restore();q=null;v=null}})(jQuery);(function(a){a.jqplot.ShadowRenderer=function(b){this.angle=45;this.offset=1;this.alpha=0.07;this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.depth=3;this.strokeStyle="rgba(0,0,0,0.1)";this.isarc=false;a.extend(true,this,b)};a.jqplot.ShadowRenderer.prototype.init=function(b){a.extend(true,this,b)};a.jqplot.ShadowRenderer.prototype.draw=function(n,l,p){n.save();var b=(p!=null)?p:{};var m=(b.fill!=null)?b.fill:this.fill;var k=(b.closePath!=null)?b.closePath:this.closePath;var f=(b.offset!=null)?b.offset:this.offset;var d=(b.alpha!=null)?b.alpha:this.alpha;var h=(b.depth!=null)?b.depth:this.depth;var o=(b.isarc!=null)?b.isarc:this.isarc;n.lineWidth=(b.lineWidth!=null)?b.lineWidth:this.lineWidth;n.lineJoin=(b.lineJoin!=null)?b.lineJoin:this.lineJoin;n.lineCap=(b.lineCap!=null)?b.lineCap:this.lineCap;n.strokeStyle=b.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+d+")";n.fillStyle=b.fillStyle||this.fillStyle||"rgba(0,0,0,"+d+")";for(var e=0;e<h;e++){n.translate(Math.cos(this.angle*Math.PI/180)*f,Math.sin(this.angle*Math.PI/180)*f); |