@canvasjs/charts 3.10.0-beta.1 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/canvasjs.min.js +41 -41
- package/package.json +1 -1
package/LICENSE
CHANGED
package/canvasjs.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
CanvasJS Chart - v3.10.
|
|
2
|
+
CanvasJS Chart - v3.10.1 GA - https://canvasjs.com/
|
|
3
3
|
Copyright 2024 fenopix
|
|
4
4
|
|
|
5
5
|
--------------------- License Information --------------------
|
|
@@ -23,7 +23,7 @@ n,T+v-ra);this.quadraticCurveTo(d+n,T+v,d+n-ra,T+v);this.lineTo(d+ra,T+v);this.q
|
|
|
23
23
|
Math.floor(v);for(0>v&&(v+=n);v<n;v++)if(v in this&&this[v]===d)return v;return-1}function n(d){return null===d||"undefined"===typeof d}function Da(d){d.indexOf||(d.indexOf=fb);return d}function gb(d){if(va.fSDec)d[ia("`eeDwdouMhrudods")](ia("e`u`@ohl`uhnoHuds`uhnoDoe"),function(){va._fTWm&&va._fTWm(d)})}function Za(d,m,n){n=n||"normal";var v=d+"_"+m+"_"+n,$=$a[v];if(isNaN($)){try{if(!xa){var ra=document.body;xa=document.createElement("span");xa.innerHTML="";var A=document.createTextNode("Mpgyi");
|
|
24
24
|
xa.appendChild(A);ra.appendChild(xa)}xa.style.display="";Q(xa,{position:"absolute",left:"0px",top:"-20000px",padding:"0px",margin:"0px",border:"none",whiteSpace:"pre",lineHeight:"normal",fontFamily:d,fontSize:m+"px",fontWeight:n});$=Math.round(xa.offsetHeight);xa.style.display="none"}catch(t){$=Math.ceil(1.1*m)}$=Math.max($,m);$a[v]=$}return $}function G(d,m){var n=[];if(n={solid:[],shortDash:[3,1],shortDot:[1,1],shortDashDot:[3,1,1,1],shortDashDotDot:[3,1,1,1,1,1],dot:[1,2],dash:[4,2],dashDot:[4,
|
|
25
25
|
2,1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2]}[d||"solid"])for(var v=0;v<n.length;v++)n[v]*=m;else n=[];return n}function H(d,m,T,v,$){v=v||[];$=n($)?hb?{passive:!1,capture:!1}:!1:$;v.push([d,m,T,$]);return d.addEventListener?(d.addEventListener(m,T,$),T):d.attachEvent?(v=function(m){m=m||window.event;m.preventDefault=m.preventDefault||function(){m.returnValue=!1};m.stopPropagation=m.stopPropagation||function(){m.cancelBubble=!0};T.call(d,m)},d.attachEvent("on"+m,v),v):
|
|
26
|
-
!1}function ib(d){if(d._menuButton)d.exportEnabled?(Q(d._menuButton,{backgroundColor:d.toolbar.itemBackgroundColor,color:d.toolbar.fontColor}),La(d._menuButton),
|
|
26
|
+
!1}function ib(d){if(d._menuButton)d.exportEnabled?(Q(d._menuButton,{backgroundColor:d.toolbar.itemBackgroundColor,color:d.toolbar.fontColor}),La(d._menuButton),ta(d,d._menuButton,"menu"),0>=navigator.userAgent.search("MSIE")&&d._menuButton.childNodes[0]&&Q(d._menuButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"})):wa(d._menuButton);else if(d.exportEnabled&&v){var m=!1;d._menuButton=document.createElement("button");ta(d,d._menuButton,"menu");d._toolBar.appendChild(d._menuButton);
|
|
27
27
|
H(d._menuButton,"touchstart",function(d){m=!0},d.allDOMEventHandlers);H(d._menuButton,"click",function(){"none"!==d._dropdownMenu.style.display||d._dropDownCloseTime&&500>=(new Date).getTime()-d._dropDownCloseTime.getTime()||(d._dropdownMenu.style.display="block",d._menuButton.blur(),d._dropdownMenu.focus())},d.allDOMEventHandlers,!0);H(d._menuButton,"mousemove",function(){m||(Q(d._menuButton,{backgroundColor:d.toolbar.itemBackgroundColorOnHover,color:d.toolbar.fontColorOnHover}),0>=navigator.userAgent.search("MSIE")&&
|
|
28
28
|
Q(d._menuButton.childNodes[0],{WebkitFilter:"invert(100%)",filter:"invert(100%)"}))},d.allDOMEventHandlers,!0);H(d._menuButton,"mouseout",function(){m||(Q(d._menuButton,{backgroundColor:d.toolbar.itemBackgroundColor,color:d.toolbar.fontColor}),0>=navigator.userAgent.search("MSIE")&&Q(d._menuButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"}))},d.allDOMEventHandlers,!0)}if(d.exportEnabled&&d._dropdownMenu){var n=d.theme&&-1!==d.theme.indexOf("dark")?"black":"#888888";Q(d._dropdownMenu,
|
|
29
29
|
{backgroundColor:d.toolbar.itemBackgroundColor,color:d.toolbar.fontColor,boxShadow:"2px 2px 10px "+n});for(var n=d._dropdownMenu.childNodes,P=[d._cultureInfo.printText,d._cultureInfo.saveJPGText,d._cultureInfo.savePNGText],$=0;$<P.length;$++)Q(n[$],{backgroundColor:d.toolbar.itemBackgroundColor,color:d.toolbar.fontColor}),n[$].innerHTML=P[$]}else!d._dropdownMenu&&(d.exportEnabled&&v)&&(m=!1,d._dropdownMenu=document.createElement("div"),d._dropdownMenu.setAttribute("tabindex",-1),n=d.theme&&-1!==d.theme.indexOf("dark")?
|
|
@@ -36,7 +36,7 @@ this.style.color=d.toolbar.fontColor)},d.allDOMEventHandlers,!0),H(n,"click",fun
|
|
|
36
36
|
Na=P.webkitBackingStorePixelRatio||P.mozBackingStorePixelRatio||P.msBackingStorePixelRatio||P.oBackingStorePixelRatio||P.backingStorePixelRatio||1,la=Ta/Na,d.width=m*la,d.height=T*la,Ta!==Na&&(d.style.width=m+"px",d.style.height=T+"px",P.scale(la,la))):(d.width=m,d.height=T)}function jb(d){if(!kb){var m=!1,n=!1;"undefined"===typeof qa.Chart.creditHref?(d.creditHref=ia("iuuqr;..b`ow`rkr/bnl."),d.creditText=ia("B`ow`rKR/bnl")):(m=d.updateOption("creditText"),n=d.updateOption("creditHref"));if(d.creditHref&&
|
|
37
37
|
d.creditText){d._creditLink||(d._creditLink=document.createElement("a"),d._creditLink.setAttribute("class","canvasjs-chart-credit"),d._creditLink.setAttribute("title","JavaScript Charts"),Q(d._creditLink,{outline:"none",margin:"0px",position:"absolute",right:"2px",top:d.height-14+"px",color:"dimgrey",textDecoration:"none",fontSize:"11px",fontFamily:"Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif"}),d._creditLink.setAttribute("tabIndex",-1),d._creditLink.setAttribute("target","_blank"));
|
|
38
38
|
if(0===d.renderCount||m||n)d._creditLink.setAttribute("href",d.creditHref),d._creditLink.innerHTML=d.creditText;d._creditLink&&d.creditHref&&d.creditText?(d._creditLink.parentElement||d._canvasJSContainer.appendChild(d._creditLink),d._creditLink.style.top=d.height-14+"px"):d._creditLink.parentElement&&d._canvasJSContainer.removeChild(d._creditLink)}}}function ua(d,m,n){Ha&&(this.canvasCount|=0,window.console.log(++this.canvasCount));var P=document.createElement("canvas");P.setAttribute("class","canvasjs-chart-canvas");
|
|
39
|
-
Ma(P,d,m,n);v||"undefined"===typeof G_vmlCanvasManager||G_vmlCanvasManager.initElement(P);return P}function Q(d,m){for(var n in m)d.style[n]=m[n]}function
|
|
39
|
+
Ma(P,d,m,n);v||"undefined"===typeof G_vmlCanvasManager||G_vmlCanvasManager.initElement(P);return P}function Q(d,m){for(var n in m)d.style[n]=m[n]}function ta(d,m,n){m.getAttribute("state")||(m.style.backgroundColor=d.toolbar.itemBackgroundColor,m.style.color=d.toolbar.fontColor,m.style.border="none",Q(m,{WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"}));m.getAttribute("state")!==n&&(m.setAttribute("state",n),m.setAttribute("type","button"),Q(m,{padding:"5px 12px",
|
|
40
40
|
cursor:"pointer","float":"left",width:"40px",height:"25px",outline:"0px",verticalAlign:"baseline",lineHeight:"0"}),m.innerHTML="<img src='"+lb[n].image+"' alt='"+d._cultureInfo[n+"Text"]+"' />",Q(m.childNodes[0],{height:"95%",pointerEvents:"none"}));m.setAttribute("title",d._cultureInfo[n+"Text"])}function La(){for(var d=null,m=0;m<arguments.length;m++)d=arguments[m],d.style&&(d.style.display="inline")}function wa(){for(var d=null,m=0;m<arguments.length;m++)(d=arguments[m])&&d.style&&(d.style.display=
|
|
41
41
|
"none")}function Ua(d,m,n,v,$){if(null===d||"undefined"===typeof d)return"undefined"===typeof n?m:n;d=parseFloat(d.toString())*(0<=d.toString().indexOf("%")?m/100:1);"undefined"!==typeof v&&(d=Math.min(v,d),"undefined"!==typeof $&&(d=Math.max($,d)));return!isNaN(d)&&d<=m&&0<=d?d:"undefined"===typeof n?m:n}function Y(d,m,v,P,$){this._defaultsKey=d;this._themeOptionsKey=m;this._index=P;this.parent=$;this._eventListeners=[];d={};this.theme&&n(this.parent)&&n(m)&&n(P)?d=n(this.predefinedThemes[this.theme])?
|
|
42
42
|
this.predefinedThemes.light1:this.predefinedThemes[this.theme]:this.parent&&(this.parent.themeOptions&&this.parent.themeOptions[m])&&(null===P?d=this.parent.themeOptions[m]:0<this.parent.themeOptions[m].length&&(P=Math.min(this.parent.themeOptions[m].length-1,P),d=this.parent.themeOptions[m][P]));this.themeOptions=d;this.options=v?v:{_isPlaceholder:!0};this.setOptions(this.options,d)}function Ea(d,m,n,v,$){"undefined"===typeof $&&($=0);this._padding=$;this._x1=d;this._y1=m;this._x2=n;this._y2=v;this._rightOccupied=
|
|
@@ -168,19 +168,19 @@ this.container=this._canvasJSContainer=null;this.toolTip.container=null;this.can
|
|
|
168
168
|
this.updateOption("dataPointWidth");this.updateOption("dataPointMinWidth");this.updateOption("dataPointMaxWidth");this.updateOption("interactivityEnabled");this.updateOption("theme");this.stockChart&&(this.stockChart.options&&"undefined"!==typeof this.stockChart.options.theme&&n(this.options.theme))&&(this.theme=this.stockChart.theme);this.updateOption("colorSet")&&(this.selectedColorSet="undefined"!==typeof Ba[this.colorSet]?Ba[this.colorSet]:Ba.colorSet1);this.updateOption("backgroundColor");this.stockChart&&
|
|
169
169
|
(this.stockChart.options&&"undefined"!==typeof this.stockChart.options.backgroundColor&&n(this.options.backgroundColor))&&(this.backgroundColor=this.stockChart.backgroundColor);this.backgroundColor||(this.backgroundColor="rgba(0,0,0,0)");this.updateOption("culture");this.stockChart&&n(this.options.culture)&&(this.culture=this.stockChart.culture);this._cultureInfo=new Ja(this.culture);this.updateOption("animationEnabled");this.animationEnabled=this.animationEnabled&&v;this.updateOption("animationDuration");
|
|
170
170
|
this.updateOption("rangeChanging");this.updateOption("rangeChanged");this.updateOption("exportEnabled");this.updateOption("exportFileName");this.updateOption("zoomType");this.toolbar=new Va(this,this.options.toolbar);if(this.stockChart&&this.stockChart.options&&this.stockChart.options.toolbar&&!this.options.toolbar)for(var g in this.stockChart.options.toolbar)this.toolbar[g]=this.stockChart.options.toolbar[g];if(this.options.zoomEnabled||this.panEnabled){if(this._zoomButton)Q(this._zoomButton,{borderRight:this.toolbar.buttonBorderThickness+
|
|
171
|
-
"px solid "+this.toolbar.buttonBorderColor,backgroundColor:a.toolbar.itemBackgroundColor,color:a.toolbar.fontColor}),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
"px solid "+this.toolbar.buttonBorderColor,backgroundColor:a.toolbar.itemBackgroundColor,color:a.toolbar.fontColor}),0>=navigator.userAgent.search("MSIE")&&this._zoomButton.childNodes[0]&&Q(this._zoomButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"});else{var c=!1;wa(this._zoomButton=document.createElement("button"));ta(this,this._zoomButton,"pan");this._toolBar.appendChild(this._zoomButton);this._zoomButton.style.borderRight=this.toolbar.buttonBorderThickness+"px solid "+this.toolbar.buttonBorderColor;
|
|
172
|
+
H(this._zoomButton,"touchstart",function(a){c=!0},this.allDOMEventHandlers);H(this._zoomButton,"click",function(){a.zoomEnabled?(a.zoomEnabled=!1,a.panEnabled=!0,ta(a,a._zoomButton,"zoom")):(a.zoomEnabled=!0,a.panEnabled=!1,ta(a,a._zoomButton,"pan"));a.render()},this.allDOMEventHandlers);H(this._zoomButton,"mousemove",function(){c?c=!1:(Q(a._zoomButton,{backgroundColor:a.toolbar.itemBackgroundColorOnHover,color:a.toolbar.fontColorOnHover,transition:"0.4s",WebkitTransition:"0.4s"}),0>=navigator.userAgent.search("MSIE")&&
|
|
173
|
+
Q(a._zoomButton.childNodes[0],{WebkitFilter:"invert(100%)",filter:"invert(100%)"}))},this.allDOMEventHandlers);H(this._zoomButton,"mouseout",function(){c||(Q(a._zoomButton,{backgroundColor:a.toolbar.itemBackgroundColor,color:a.toolbar.fontColor,transition:"0.4s",WebkitTransition:"0.4s"}),0>=navigator.userAgent.search("MSIE")&&Q(a._zoomButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"}))},this.allDOMEventHandlers)}this._resetButton?(Q(this._resetButton,{borderRight:this.toolbar.buttonBorderThickness+
|
|
174
|
+
"px solid "+this.toolbar.buttonBorderColor,backgroundColor:a.toolbar.itemBackgroundColor,color:a.toolbar.fontColor}),0>=navigator.userAgent.search("MSIE")&&this._resetButton.childNodes[0]&&Q(this._resetButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"}),this._resetButton.title=this._cultureInfo.resetText):(c=!1,wa(this._resetButton=document.createElement("button")),ta(this,this._resetButton,"reset"),this._resetButton.style.borderRight=(this.exportEnabled?this.toolbar.buttonBorderThickness:
|
|
175
|
+
0)+"px solid "+this.toolbar.buttonBorderColor,this._toolBar.appendChild(this._resetButton),H(this._resetButton,"touchstart",function(a){c=!0},this.allDOMEventHandlers),H(this._resetButton,"click",function(){a.toolTip.hide();a.toolTip&&a.toolTip.enabled&&a.toolTip.dispatchEvent("hidden",{chart:a,toolTip:a.toolTip},a.toolTip);a.zoomEnabled||a.panEnabled?(a.zoomEnabled=!0,a.panEnabled=!1,ta(a,a._zoomButton,"pan"),a._defaultCursor="default",a.overlaidCanvas.style.cursor=a._defaultCursor):(a.zoomEnabled=
|
|
176
|
+
!1,a.panEnabled=!1);if(a.sessionVariables.axisX)for(var b=0;b<a.sessionVariables.axisX.length;b++)a.sessionVariables.axisX[b].newViewportMinimum=null,a.sessionVariables.axisX[b].newViewportMaximum=null;if(a.sessionVariables.axisX2)for(b=0;b<a.sessionVariables.axisX2.length;b++)a.sessionVariables.axisX2[b].newViewportMinimum=null,a.sessionVariables.axisX2[b].newViewportMaximum=null;if(a.sessionVariables.axisY)for(b=0;b<a.sessionVariables.axisY.length;b++)a.sessionVariables.axisY[b].newViewportMinimum=
|
|
177
177
|
null,a.sessionVariables.axisY[b].newViewportMaximum=null;if(a.sessionVariables.axisY2)for(b=0;b<a.sessionVariables.axisY2.length;b++)a.sessionVariables.axisY2[b].newViewportMinimum=null,a.sessionVariables.axisY2[b].newViewportMaximum=null;a.resetOverlayedCanvas();0>=navigator.userAgent.search("MSIE")&&Q(a._resetButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"});wa(a._zoomButton,a._resetButton);a.stockChart&&(a.stockChart._rangeEventParameter={stockChart:a.stockChart,source:"chart",
|
|
178
178
|
index:a.stockChart.charts.indexOf(a),minimum:null,maximum:null});a._dispatchRangeEvent("rangeChanging","reset");a.stockChart&&(a.stockChart._rangeEventParameter.type="rangeChanging",a.stockChart.dispatchEvent("rangeChanging",a.stockChart._rangeEventParameter,a.stockChart));a.render();a.syncCharts&&a.stockChart&&(a.stockChart.rangeUpdatedBy=!a.stockChart.navigator.slider||n(a.stockChart.navigator.slider.options.minimum)&&n(a.stockChart.navigator.slider.options.maximum)?!a.stockChart.rangeSelector.enabled||
|
|
179
179
|
!a.stockChart.rangeSelector.inputFields.enabled||n(a.stockChart.rangeSelector.inputFields.options.startValue)&&n(a.stockChart.rangeSelector.inputFields.options.endValue)?null:"inputFields":"navigator",n(a.stockChart._selectedRangeButtonIndex)||(a.stockChart.rangeUpdatedBy="rangeButton"),a.syncCharts(null,null),"rangeButton"===a.stockChart.rangeUpdatedBy&&a.stockChart.rangeSelector.selectedRangeButtonIndex<a.stockChart.rangeSelector.buttons.length&&(b=a.stockChart.rangeSelector.buttons[a.stockChart.rangeSelector.selectedRangeButtonIndex],
|
|
180
180
|
b.enabled&&(b.state="on",b.textBlock.fontWeight="bold",b.textBlock.fontColor=a.stockChart.rangeSelector.buttonStyle.labelFontColorOnHover,b.textBlock.backgroundColor=a.stockChart.rangeSelector.buttonStyle.backgroundColorOnSelect,b.render())));a._dispatchRangeEvent("rangeChanged","reset");a.stockChart&&(a.stockChart._rangeEventParameter.type="rangeChanged",a.stockChart.dispatchEvent("rangeChanged",a.stockChart._rangeEventParameter,a.stockChart))},this.allDOMEventHandlers),H(this._resetButton,"mousemove",
|
|
181
181
|
function(){c||(Q(a._resetButton,{backgroundColor:a.toolbar.itemBackgroundColorOnHover,color:a.toolbar.fontColorOnHover,transition:"0.4s",WebkitTransition:"0.4s"}),0>=navigator.userAgent.search("MSIE")&&Q(a._resetButton.childNodes[0],{WebkitFilter:"invert(100%)",filter:"invert(100%)"}))},this.allDOMEventHandlers),H(this._resetButton,"mouseout",function(){c||(Q(a._resetButton,{backgroundColor:a.toolbar.itemBackgroundColor,color:a.toolbar.fontColor,transition:"0.4s",WebkitTransition:"0.4s"}),0>=navigator.userAgent.search("MSIE")&&
|
|
182
182
|
Q(a._resetButton.childNodes[0],{WebkitFilter:"invert(0%)",filter:"invert(0%)"}))},this.allDOMEventHandlers),this.overlaidCanvas.style.cursor=a._defaultCursor);this.zoomEnabled||this.panEnabled||(this._zoomButton?(a._zoomButton.getAttribute("state")===a._cultureInfo.zoomText?(this.panEnabled=!0,this.zoomEnabled=!1):(this.zoomEnabled=!0,this.panEnabled=!1),La(a._zoomButton,a._resetButton)):(this.zoomEnabled=!0,this.panEnabled=!1))}else this.panEnabled=this.zoomEnabled=!1;ib(this);"none"!==this._toolBar.style.display&&
|
|
183
|
-
this._zoomButton&&(this.panEnabled?
|
|
183
|
+
this._zoomButton&&(this.panEnabled?ta(a,a._zoomButton,"zoom"):ta(a,a._zoomButton,"pan"),a._resetButton.getAttribute("state")!==a._cultureInfo.resetText&&ta(a,a._resetButton,"reset"));this.options.toolTip&&this.toolTip.options!==this.options.toolTip&&(this.toolTip.options=this.options.toolTip);for(g in this.toolTip.options)this.toolTip.options.hasOwnProperty(g)&&this.toolTip.updateOption(g)};m.prototype._updateSize=function(){var a;a=[this.canvas,this.overlaidCanvas,this._eventManager.ghostCanvas];
|
|
184
184
|
var g=0,c=0;this.options.width?g=this.width:this.width=g=0<this.container.clientWidth?this.container.clientWidth:this.width;n(this.stockChart)||n(this.index)?this.options.height?c=this.height:this.height=c=0<this.container.clientHeight?this.container.clientHeight:this.height:c=this.height=this.stockChart._chartsHeight[this.index];if(this.canvas.width!==g*la||this.canvas.height!==c*la){for(var b=0;b<a.length;b++)Ma(a[b],g,c);this.bounds={x1:0,y1:0,x2:this.width,y2:this.height,width:this.width,height:this.height};
|
|
185
185
|
a=!0}else a=!1;return a};m.prototype._initialize=function(){this.isNavigator=n(this.parent)||n(this.parent._defaultsKey)||"Navigator"!==this.parent._defaultsKey?!1:!0;this._animator?this._animator.cancelAllAnimations():this._animator=new W(this);this.removeAllEventListeners();this.disableToolTip=!1;this._axes=[];this.funnelPyramidClickHandler=this.pieDoughnutClickHandler=null;this._updateOptions();this.animatedRender=v&&this.animationEnabled&&0===this.renderCount;this._updateSize();this.clearCanvas();
|
|
186
186
|
this.ctx.beginPath();this.axisX=[];this.axisX2=[];this.axisY=[];this.axisY2=[];this._indexLabels=[];this._dataInRenderedOrder=[];this._events=[];this._eventManager&&this._eventManager.reset();this.plotInfo={axisPlacement:null,plotTypes:[]};this.layoutManager=new Ea(0,0,this.width,this.height,this.isNavigator?0:2);this.plotArea.layoutManager&&this.plotArea.layoutManager.reset();this.data=[];this.title=null;this.subtitles=[];var a=0,g=null;if(this.options.data){for(var c=0;c<this.options.data.length;c++)if(a++,
|
|
@@ -279,7 +279,7 @@ h=0;e<this._axes.length;e++)c=this._axes[e],c.logarithmic?c.viewportMinimum<c.mi
|
|
|
279
279
|
c.viewportMinimum+h,c.sessionVariables.newViewportMaximum=c.viewportMaximum+h,q=!0):c.viewportMaximum>c.maximum&&(h=c.viewportMaximum-c.maximum,c.sessionVariables.newViewportMinimum=c.viewportMinimum-h,c.sessionVariables.newViewportMaximum=c.viewportMaximum-h,q=!0);else if((!e||2<Math.abs(b))&&(!h||2<Math.abs(c))&&this.zoomEnabled){if(!this.dragStartPoint)return;c=e?this.dragStartPoint.x:this.plotArea.x1;b=h?this.dragStartPoint.y:this.plotArea.y1;e=e?a:this.plotArea.x2;h=h?g:this.plotArea.y2;2<Math.abs(c-
|
|
280
280
|
e)&&2<Math.abs(b-h)&&this._zoomPanToSelectedRegion(c,b,e,h)&&(q=!0)}q&&(this._ignoreNextEvent=!0,this._dispatchRangeEvent("rangeChanging","zoom"),this.stockChart&&(this.stockChart.navigator&&this.stockChart.navigator.enabled)&&(this.stockChart._rangeEventParameter||(this.stockChart._rangeEventParameter={stockChart:this.stockChart,source:"chart",index:this.stockChart.charts.indexOf(this),minimum:this.stockChart.sessionVariables._axisXMin,maximum:this.stockChart.sessionVariables._axisXMax}),this.stockChart._rangeEventParameter.type=
|
|
281
281
|
"rangeChanging",this.stockChart.dispatchEvent("rangeChanging",this.stockChart._rangeEventParameter,this.stockChart)),this.render(),this._dispatchRangeEvent("rangeChanged","zoom"),this.stockChart&&(this.stockChart.rangeUpdatedBy="chart",this.stockChart.navigator&&this.stockChart.navigator.enabled&&(this.stockChart._rangeEventParameter.type="rangeChanged",this.stockChart.dispatchEvent("rangeChanged",this.stockChart._rangeEventParameter,this.stockChart))),q&&(this.zoomEnabled&&"none"===this._zoomButton.style.display)&&
|
|
282
|
-
(La(this._zoomButton,this._resetButton),
|
|
282
|
+
(La(this._zoomButton,this._resetButton),ta(this,this._zoomButton,"pan"),ta(this,this._resetButton,"reset")))}}this.isDrag=!1;if("none"!==this.plotInfo.axisPlacement){this.resetOverlayedCanvas();if(this.axisX&&0<this.axisX.length)for(q=0;q<this.axisX.length;q++)this.axisX[q].crosshair&&this.axisX[q].crosshair.enabled&&this.axisX[q].renderCrosshair(a,g);if(this.axisX2&&0<this.axisX2.length)for(q=0;q<this.axisX2.length;q++)this.axisX2[q].crosshair&&this.axisX2[q].crosshair.enabled&&this.axisX2[q].renderCrosshair(a,
|
|
283
283
|
g);if(this.axisY&&0<this.axisY.length)for(q=0;q<this.axisY.length;q++)this.axisY[q].crosshair&&this.axisY[q].crosshair.enabled&&this.axisY[q].renderCrosshair(a,g);if(this.axisY2&&0<this.axisY2.length)for(q=0;q<this.axisY2.length;q++)this.axisY2[q].crosshair&&this.axisY2[q].crosshair.enabled&&this.axisY2[q].renderCrosshair(a,g);if(this.axisX&&0<this.axisX.length)for(q=0;q<this.axisX.length;q++)this.axisX[q].crosshair&&this.axisX[q].crosshair.enabled&&this.axisX[q].crosshair.renderLabel();if(this.axisX2&&
|
|
284
284
|
0<this.axisX2.length)for(q=0;q<this.axisX2.length;q++)this.axisX2[q].crosshair&&this.axisX2[q].crosshair.enabled&&this.axisX2[q].crosshair.renderLabel();if(this.axisY&&0<this.axisY.length)for(q=0;q<this.axisY.length;q++)this.axisY[q].crosshair&&this.axisY[q].crosshair.enabled&&this.axisY[q].crosshair.renderLabel();if(this.axisY2&&0<this.axisY2.length)for(q=0;q<this.axisY2.length;q++)this.axisY2[q].crosshair&&this.axisY2[q].crosshair.enabled&&this.axisY2[q].crosshair.renderLabel()}};m.prototype._plotAreaMouseMove=
|
|
285
285
|
function(a,g){if(this.isDrag&&"none"!==this.plotInfo.axisPlacement){var c=0,b=0,e=c=null,e=0<=this.zoomType.indexOf("x"),h=0<=this.zoomType.indexOf("y"),q=this;"xySwapped"===this.plotInfo.axisPlacement&&(c=h,h=e,e=c);c=this.dragStartPoint.x-a;b=this.dragStartPoint.y-g;if(2<Math.abs(c)&&8>Math.abs(c)&&(this.panEnabled||this.zoomEnabled)){this.toolTip.hide();this.toolTip&&this.toolTip.enabled&&this.toolTip.dispatchEvent("hidden",{chart:this,toolTip:this.toolTip},this.toolTip);for(var y=0;y<this.axisX.length;y++)this.axisX[y].crosshair&&
|
|
@@ -435,8 +435,8 @@ h.height);c.clip();v&&(b.beginPath(),b.rect(h.x1,h.y1,h.width,h.height),b.clip()
|
|
|
435
435
|
"number"===typeof u[q].y[3]&&"number"===typeof u[q].y[4]&&5===u[q].y.length){d=a.axisX.convertValueToPixel(f);m=a.axisY.convertValueToPixel(u[q].y[0]);k=a.axisY.convertValueToPixel(u[q].y[1]);l=a.axisY.convertValueToPixel(u[q].y[2]);p=a.axisY.convertValueToPixel(u[q].y[3]);r=a.axisY.convertValueToPixel(u[q].y[4]);var C=d-t/2<<0,D=d+t/2<<0,e=u[q].color?u[q].color:z._colorSet[0],A=Math.round(Math.max(1,0.15*t)),H=0===A%2?0:0.5,J=u[q].whiskerColor?u[q].whiskerColor:u[q].color?z.whiskerColor?z.whiskerColor:
|
|
436
436
|
u[q].color:z.whiskerColor?z.whiskerColor:e,K="number"===typeof u[q].whiskerThickness?u[q].whiskerThickness:"number"===typeof z.options.whiskerThickness?z.whiskerThickness:A,aa=u[q].whiskerDashType?u[q].whiskerDashType:z.whiskerDashType,Z=n(u[q].whiskerLength)?n(z.options.whiskerLength)?t:z.whiskerLength:u[q].whiskerLength,Z="number"===typeof Z?0>=Z?0:Z>=t?t:Z:"string"===typeof Z?parseInt(Z)*t/100>t?t:parseInt(Z)*t/100:t,ga=1===Math.round(K)%2?0.5:0,oa=u[q].stemColor?u[q].stemColor:u[q].color?z.stemColor?
|
|
437
437
|
z.stemColor:u[q].color:z.stemColor?z.stemColor:e,ka="number"===typeof u[q].stemThickness?u[q].stemThickness:"number"===typeof z.options.stemThickness?z.stemThickness:A,E=1===Math.round(ka)%2?0.5:0,M=u[q].stemDashType?u[q].stemDashType:z.stemDashType,Q=u[q].lineColor?u[q].lineColor:u[q].color?z.lineColor?z.lineColor:u[q].color:z.lineColor?z.lineColor:e,N="number"===typeof u[q].lineThickness?u[q].lineThickness:"number"===typeof z.options.lineThickness?z.lineThickness:A,S=u[q].lineDashType?u[q].lineDashType:
|
|
438
|
-
z.lineDashType,O=1===Math.round(N)%2?0.5:0,P=z.upperBoxColor,pb=z.lowerBoxColor,
|
|
439
|
-
ka)),c.moveTo(d-E,k),c.lineTo(d-E,m),c.stroke(),c.moveTo(d-E,p),c.lineTo(d-E,l),c.stroke());c.restore();b.lineWidth=Math.max(A,4);c.beginPath();ba(c,C,Math.min(r,k),D,Math.max(k,r),pb,0,e,w?B:!1,w?!1:B,!1,!1,
|
|
438
|
+
z.lineDashType,O=1===Math.round(N)%2?0.5:0,P=z.upperBoxColor,pb=z.lowerBoxColor,sa=n(z.options.fillOpacity)?1:z.fillOpacity,R=z.dataPointIds[q];this._eventManager.objectMap[R]={id:R,objectType:"dataPoint",dataSeriesIndex:s,dataPointIndex:q,x1:C,y1:m,x2:D,y2:k,x3:d,y3:l,x4:d,y4:p,y5:r,borderThickness:A,color:e,stemThickness:ka,stemColor:oa,whiskerThickness:K,whiskerLength:Z,whiskerColor:J,lineThickness:N,lineColor:Q};c.save();0<ka&&(c.beginPath(),c.strokeStyle=oa,c.lineWidth=ka,c.setLineDash&&c.setLineDash(G(M,
|
|
439
|
+
ka)),c.moveTo(d-E,k),c.lineTo(d-E,m),c.stroke(),c.moveTo(d-E,p),c.lineTo(d-E,l),c.stroke());c.restore();b.lineWidth=Math.max(A,4);c.beginPath();ba(c,C,Math.min(r,k),D,Math.max(k,r),pb,0,e,w?B:!1,w?!1:B,!1,!1,sa);c.beginPath();ba(c,C,Math.min(l,r),D,Math.max(r,l),P,0,e,w?!1:B,w?B:!1,!1,!1,sa);c.beginPath();c.lineWidth=A;c.strokeStyle=e;c.rect(C-H,Math.min(k,l)-H,D-C+2*H,Math.max(k,l)-Math.min(k,l)+2*H);c.stroke();c.save();0<N&&(c.beginPath(),c.globalAlpha=1,c.setLineDash&&c.setLineDash(G(S,N)),c.strokeStyle=
|
|
440
440
|
Q,c.lineWidth=N,c.moveTo(C,r-O),c.lineTo(D,r-O),c.stroke());c.restore();c.save();0<K&&(c.beginPath(),c.setLineDash&&c.setLineDash(G(aa,K)),c.strokeStyle=J,c.lineWidth=K,c.moveTo(d-Z/2<<0,p-ga),c.lineTo(d+Z/2<<0,p-ga),c.stroke(),c.moveTo(d-Z/2<<0,m+ga),c.lineTo(d+Z/2<<0,m+ga),c.stroke());c.restore();v&&(e=U(R),b.strokeStyle=e,b.lineWidth=ka,0<ka&&(b.moveTo(d-H-E,k),b.lineTo(d-H-E,Math.max(m,p)),b.stroke(),b.moveTo(d-H-E,Math.min(m,p)),b.lineTo(d-H-E,l),b.stroke()),ba(b,C,Math.max(k,l),D,Math.min(k,
|
|
441
441
|
l),e,0,null,!1,!1,!1,!1),0<K&&(b.beginPath(),b.lineWidth=K,b.moveTo(d+Z/2,p-ga),b.lineTo(d-Z/2,p-ga),b.stroke(),b.moveTo(d+Z/2,m+ga),b.lineTo(d-Z/2,m+ga),b.stroke()));(u[q].indexLabel||z.indexLabel||u[q].indexLabelFormatter||z.indexLabelFormatter)&&this._indexLabels.push({chartType:z.type,dataPoint:u[q],dataSeries:z,point:{x:C+(D-C)/2,y:a.axisY.reversed?m:p},direction:1,bounds:{x1:C,y1:Math.min(m,p),x2:D,y2:Math.max(m,p)},color:e})}}v&&(g.drawImage(this._preRenderCanvas,0,0,this.width,this.height),
|
|
442
442
|
c.globalCompositeOperation="source-atop",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(h.x1,h.y1,h.width,h.height),b.restore());c.restore();return{source:g,dest:this.plotArea.ctx,animationCallback:L.fadeInAnimation,easingFunction:L.easing.easeInQuad,animationBase:0}}};m.prototype.renderRangeColumn=
|
|
@@ -532,13 +532,13 @@ R[D].x3-R[D].x4:R[D].x3-R[D].x6,20>I[D]&&(I[D]=D!==da?s.reversed?R[D].x3-R[D].x4
|
|
|
532
532
|
b.indexLabel?x.replaceKeywordsWithValue(b.indexLabel,b,s,D):s.indexLabelFormatter?s.indexLabelFormatter(C):s.indexLabel?x.replaceKeywordsWithValue(s.indexLabel,b,s,D):b.label?b.label:"";0>=r&&(r=0);1E3>u&&1E3-u<t&&(u+=1E3-u);n(s.options.indexLabelMaxWidth)&&(s.indexLabelMaxWidth=n(s.indexLabelMaxWidth)?u:Math.max(u,s.indexLabelMaxWidth));S.roundRect||za(S);c=new ja(S,{fontSize:d,fontFamily:l,fontColor:q,fontStyle:k,fontWeight:p,horizontalAlign:c,textAlign:w,backgroundColor:g,borderColor:e,borderThickness:h,
|
|
533
533
|
maxWidth:u,maxHeight:!1===A[D]?y?4.28571429*d:1.5*d:A[D],text:b,padding:ea,textBaseline:"middle"});c.measureText();c.height=c.height===2*c.padding?0:c.height;c.width=c.width===2*c.padding?0:c.width;F.push({textBlock:c,id:s.reversed?E:D,isDirty:!1,lineColor:a,lineThickness:r,lineDashType:m,height:c.height<c.maxHeight?c.height:c.maxHeight,width:c.width<c.maxWidth?c.width:c.maxWidth})}}}function e(){var a,b,c,g,e,f=[];e=!1;c=0;for(var h,q=N-Y-U/2,q=s.options.indexLabelMaxWidth?s.indexLabelMaxWidth>q?
|
|
534
534
|
q:s.indexLabelMaxWidth:q,d=F.length-1;0<=d;d--){h=z[F[d].id];c=F[d];g=c.textBlock;b=(a=r(d)<R.length?F[r(d)]:null)?a.textBlock:null;c=c.height;a&&g.y+c+ea>b.y&&(e=!0);c=h.indexLabelMaxWidth||q;if(c>q||0>c)c=q;f.push(c)}if(e)for(d=F.length-1;0<=d;d--)a=R[d],F[d].textBlock.maxWidth=f[f.length-(d+1)],F[d].textBlock.measureText(),F[d].textBlock.height=F[d].textBlock.height===2*F[d].textBlock.padding?0:F[d].textBlock.height,F[d].textBlock.width=F[d].textBlock.width===2*F[d].textBlock.padding?0:F[d].textBlock.width,
|
|
535
|
-
F[d].textBlock.x=N-q,c=F[d].textBlock.height<F[d].textBlock.maxHeight?F[d].textBlock.height:F[d].textBlock.maxHeight,e=F[d].textBlock.width<F[d].textBlock.maxWidth?F[d].textBlock.width:F[d].textBlock.maxWidth,F[d].height=c,F[d].width=e,c="undefined"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,F[d].textBlock.y=c-F[d].height/2,s.reversed?(F[d].textBlock.y+F[d].height>T+A&&(F[d].textBlock.y=T+A-F[d].height),F[d].textBlock.y<
|
|
536
|
-
F[d].height>
|
|
537
|
-
T+A&&(F[e].textBlock.y=T+A-F[e].height),F[e].textBlock.y<
|
|
535
|
+
F[d].textBlock.x=N-q,c=F[d].textBlock.height<F[d].textBlock.maxHeight?F[d].textBlock.height:F[d].textBlock.maxHeight,e=F[d].textBlock.width<F[d].textBlock.maxWidth?F[d].textBlock.width:F[d].textBlock.maxWidth,F[d].height=c,F[d].width=e,c="undefined"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,F[d].textBlock.y=c-F[d].height/2,s.reversed?(F[d].textBlock.y+F[d].height>T+A&&(F[d].textBlock.y=T+A-F[d].height),F[d].textBlock.y<sa-A&&(F[d].textBlock.y=sa-A)):(F[d].textBlock.y<T-A&&(F[d].textBlock.y=T-A),F[d].textBlock.y+
|
|
536
|
+
F[d].height>sa+A&&(F[d].textBlock.y=sa+A-F[d].height))}function h(){var a,b,c,g;if("inside"!==s.indexLabelPlacement)for(var e=0;e<R.length;e++)0==F[e].textBlock.text.length?F[e].isDirty=!0:(a=R[e],c="undefined"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,b=s.reversed?"undefined"!==typeof a.x5?c>X?f(c).x2+1:(a.x2+a.x3)/2+1:(a.x2+a.x3)/2+1:"undefined"!==typeof a.x5?c<X?f(c).x2+1:(a.x4+a.x3)/2+1:(a.x2+a.x3)/2+1,F[e].textBlock.x=b+U,F[e].textBlock.y=c-F[e].height/2,s.reversed?(F[e].textBlock.y+F[e].height>
|
|
537
|
+
T+A&&(F[e].textBlock.y=T+A-F[e].height),F[e].textBlock.y<sa-A&&(F[e].textBlock.y=sa-A)):(F[e].textBlock.y<T-A&&(F[e].textBlock.y=T-A),F[e].textBlock.y+F[e].height>sa+A&&(F[e].textBlock.y=sa+A-F[e].height)));else for(e=0;e<R.length;e++)0==F[e].textBlock.text.length?F[e].isDirty=!0:(a=R[e],b=a.height,c=F[e].height,g=F[e].width,b>=c?(b=e!=da?(a.x4+a.x3)/2-g/2:(a.x5+a.x4)/2-g/2,c=e!=da?(a.y1+a.y3)/2-c/2:(a.y1+a.y4)/2-c/2,F[e].textBlock.x=b,F[e].textBlock.y=c):F[e].isDirty=!0)}function q(){function a(b,
|
|
538
538
|
c){var e;if(0>b||b>=F.length)return 0;var g,f=F[b].textBlock;if(0>c){c*=-1;g=p(b);e=d(g,b);if(e>=c)return f.y-=c,c;if(0==b)return 0<e&&(f.y-=e),e;e+=a(g,-(c-e));0<e&&(f.y-=e);return e}g=r(b);e=d(b,g);if(e>=c)return f.y+=c,c;if(b==R.length-1)return 0<e&&(f.y+=e),e;e+=a(g,c-e);0<e&&(f.y+=e);return e}function b(){var a,e,g,f,h=0,d;f=(Q-Z+2*A)/l;d=l;for(var q,k=1;k<d;k++){g=k*f;for(var n=F.length-1;0<=n;n--)!F[n].isDirty&&(F[n].textBlock.y<g&&F[n].textBlock.y+F[n].height>g)&&(q=r(n),!(q>=F.length-1)&&
|
|
539
539
|
F[n].textBlock.y+F[n].height+ea>F[q].textBlock.y&&(F[n].textBlock.y=F[n].textBlock.y+F[n].height-g>g-F[n].textBlock.y?g+1:g-F[n].height-1))}for(q=R.length-1;0<q;q--)if(!F[q].isDirty){g=p(q);if(0>g&&(g=0,F[g].isDirty))break;if(F[q].textBlock.y<F[g].textBlock.y+F[g].height){e=e||q;f=q;for(d=0;F[f].textBlock.y<F[g].textBlock.y+F[g].height+ea;){a=a||F[f].textBlock.y+F[f].height;d+=F[f].height;d+=ea;f=g;if(0>=f){f=0;d+=F[f].height;break}g=p(f);if(0>g){f=0;d+=F[f].height;break}}if(f!=q){h=F[f].textBlock.y;
|
|
540
540
|
a-=h;a=d-a;h=c(a,e,f);break}}}return h}function c(a,b,e){var g=[],f=0,h=0;for(a=Math.abs(a);e<=b;e++)g.push(R[e]);g.sort(function(a,b){return a.height-b.height});for(e=0;e<g.length;e++)if(b=g[e],f<a)h++,f+=F[b.id].height+ea,F[b.id].textBlock.text="",F[b.id].indexLabelText="",F[b.id].isDirty=!0,F[b.id].textBlock.measureText();else break;return h}for(var e,g,f,h,q,k,l=1,n=0;n<2*l;n++){for(var m=F.length-1;0<=m&&!(0<=p(m)&&p(m),f=F[m],h=f.textBlock,k=(q=r(m)<R.length?F[r(m)]:null)?q.textBlock:null,e=
|
|
541
|
-
+f.height.toFixed(6),g=+h.y.toFixed(6),!f.isDirty&&(q&&g+e+ea>+k.y.toFixed(6))&&(e=h.y+e+ea-k.y,g=a(m,-e),g<e&&(0<g&&(e-=g),g=a(r(m),e),g!=e)));m--);b()}}function d(a,b){return(b<R.length?F[b].textBlock.y:s.reversed?T+A:
|
|
541
|
+
+f.height.toFixed(6),g=+h.y.toFixed(6),!f.isDirty&&(q&&g+e+ea>+k.y.toFixed(6))&&(e=h.y+e+ea-k.y,g=a(m,-e),g<e&&(0<g&&(e-=g),g=a(r(m),e),g!=e)));m--);b()}}function d(a,b){return(b<R.length?F[b].textBlock.y:s.reversed?T+A:sa+A)-(0>a?s.reversed?sa-A:T-A:F[a].textBlock.y+F[a].height+ea)}function m(a,b,c){var e,g,f,d=[],q=A,p=[];-1!==b&&(0<=W.indexOf(b)?(g=W.indexOf(b),W.splice(g,1)):(W.push(b),W=W.sort(function(a,b){return a-b})));if(0===W.length)d=ia;else{g=A*(1!=W.length||0!=W[0]&&W[0]!=R.length-1?
|
|
542
542
|
2:1)/k();for(var r=0;r<R.length;r++){if(1==W.length&&0==W[0]){if(0===r){d.push(ia[r]);e=q;continue}}else 0===r&&(e=-1*q);d.push(ia[r]+e);if(0<=W.indexOf(r)||r<R.length&&0<=W.indexOf(r+1))e+=g}}f=function(){for(var a=[],b=0;b<R.length;b++)a.push(d[b]-R[b].y1);return a}();var n={startTime:(new Date).getTime(),duration:c||500,easingFunction:function(a,b,c,e){return L.easing.easeOutQuart(a,b,c,e)},changeSection:function(a){for(var b,c,e=0;e<R.length;e++)b=f[e],c=R[e],b*=a,"undefined"===typeof p[e]&&(p[e]=
|
|
543
543
|
0),0>p&&(p*=-1),c.y1+=b-p[e],c.y2+=b-p[e],c.y3+=b-p[e],c.y4+=b-p[e],c.y5&&(c.y5+=b-p[e],c.y6+=b-p[e]),p[e]=b}};a._animator.animate(0,c,function(c){var e=a.plotArea.ctx||a.ctx;ha=!0;e.clearRect(u.x1,u.y1,u.x2-u.x1,u.y2-u.y1);e.fillStyle=a.backgroundColor;e.fillRect(u.x1,u.y1,u.width,u.height);n.changeSection(c,b);var g={};g.dataSeries=s;g.dataPoint=s.reversed?s.dataPoints[z.length-1-b]:s.dataPoints[b];g.index=s.reversed?z.length-1-b:b;a.toolTip.highlightObjects([g]);for(g=0;g<R.length;g++)qa(e,R[g],
|
|
544
544
|
s.fillOpacity);w(e);J&&("inside"!==s.indexLabelPlacement?l(e):h(),t(e));1<=c&&(ha=!1)},null,L.easing.easeOutQuart)}function k(){for(var a=0,b=0;b<R.length-1;b++)(0<=W.indexOf(b)||0<=W.indexOf(b+1))&&a++;return a}function l(a){for(var b,c,e,g,h=0;h<R.length;h++)g=1===F[h].lineThickness%2?0.5:0,c=((R[h].y2+R[h].y4)/2<<0)+g,b=f(c).x2-1,e=F[h].textBlock.x,g=(F[h].textBlock.y+F[h].height/2<<0)+g,F[h].isDirty||0==F[h].lineThickness||(a.strokeStyle=F[h].lineColor,a.lineWidth=F[h].lineThickness,a.setLineDash&&
|
|
@@ -547,7 +547,7 @@ a.setLineDash(G(F[h].lineDashType,F[h].lineThickness)),a.beginPath(),a.moveTo(b,
|
|
|
547
547
|
"center"===c.verticalAlign)x.subtitles.ctx=a,c.render()}x.legend&&(x.legend.dockInsidePlotArea||"center"===x.legend.horizontalAlign&&"center"===x.legend.verticalAlign)&&(x.legend.ctx=a,x.legend.setLayout(),x.legend.render());va.fNg&&va.fNg(x)}var x=this;if(!(0>=a.dataSeriesIndexes.length)){for(var s=this.data[a.dataSeriesIndexes[0]],z=s.dataPoints,u=this.plotArea,A=0.025*u.width,C=0.01*u.width,B=0,H=u.height-2*A,M=Math.min(u.width-2*C,2.8*u.height),J=!1,K=0;K<z.length;K++)if(!J&&("undefined"!==typeof z[K].indexLabel&&
|
|
548
548
|
null!==z[K].indexLabel&&0<z[K].indexLabel.toString().length)&&(J=!0),!J&&("undefined"!==typeof z[K].label&&null!==z[K].label&&0<z[K].label.toString().length)&&(J=!0),!J&&"function"===typeof s.indexLabelFormatter||"function"===typeof z[K].indexLabelFormatter)J=!0;J=J||"undefined"!==typeof s.indexLabel&&null!==s.indexLabel&&0<s.indexLabel.toString().length;"inside"!==s.indexLabelPlacement&&J||(C=(u.width-0.75*M)/2);var K=u.x1+C,N=u.x2-C,Z=u.y1+A,Q=u.y2-A,S=a.targetCanvasCtx||this.plotArea.ctx||this.ctx;
|
|
549
549
|
if(0!=s.length&&(s.dataPoints&&s.visible)&&0!==z.length){var P,E;a=75*M/100;var U=30*(N-a)/100;"funnel"===s.type?(P=n(s.options.neckHeight)?0.35*H:s.neckHeight,E=n(s.options.neckWidth)?0.25*a:s.neckWidth,"string"===typeof P&&P.match(/%$/)?(P=parseInt(P),P=P*H/100):P=parseInt(P),"string"===typeof E&&E.match(/%$/)?(E=parseInt(E),E=E*a/100):E=parseInt(E),P>H?P=H:0>=P&&(P=0),E>a?E=a-0.5:0>=E&&(E=0)):"pyramid"===s.type&&(E=P=0,s.reversed=s.reversed?!1:!0);var C=K+a/2,V=K,Y=K+a,T=s.reversed?Q:Z,O=C-E/2,
|
|
550
|
-
$=C+E/2,X=s.reversed?Z+P:Q-P,
|
|
550
|
+
$=C+E/2,X=s.reversed?Z+P:Q-P,sa=s.reversed?Z:Q;E=s.valueRepresents=s.valueRepresents?s.valueRepresents:"height";K=[];a=[];var R=[],C=[],ba=Z,da,ca=(X-T)/(O-V),fa=-ca,M="area"===E?c():g();if(-1!==M){if(s.reversed)for(C.push(ba),E=M.length-1;0<E;E--)ba+=M[E],C.push(ba);else for(E=0;E<M.length;E++)ba+=M[E],C.push(ba);if(s.reversed)for(E=0;E<M.length;E++)C[E]<X?(K.push(O),a.push($),da=E):(K.push((C[E]-T+ca*V)/ca),a.push((C[E]-T+fa*Y)/fa));else for(E=0;E<M.length;E++)C[E]<X?(K.push((C[E]-T+ca*V)/ca),a.push((C[E]-
|
|
551
551
|
T+fa*Y)/fa),da=E):(K.push(O),a.push($));for(E=0;E<M.length-1;E++)ba=s.reversed?z[z.length-1-E].color?z[z.length-1-E].color:s._colorSet[(z.length-1-E)%s._colorSet.length]:z[E].color?z[E].color:s._colorSet[E%s._colorSet.length],E===da?R.push({x1:K[E],y1:C[E],x2:a[E],y2:C[E],x3:$,y3:X,x4:a[E+1],y4:C[E+1],x5:K[E+1],y5:C[E+1],x6:O,y6:X,id:E,height:C[E+1]-C[E],color:ba}):R.push({x1:K[E],y1:C[E],x2:a[E],y2:C[E],x3:a[E+1],y3:C[E+1],x4:K[E+1],y4:C[E+1],id:E,height:C[E+1]-C[E],color:ba});var ea=2,F=[],ha=!1,
|
|
552
552
|
W=[],ia=[],K=!1;a=a=0;Da(W);for(E=0;E<z.length;E++)z[E].exploded&&(K=!0,s.reversed?W.push(z.length-1-E):W.push(E));S.clearRect(u.x1,u.y1,u.width,u.height);S.fillStyle=x.backgroundColor;S.fillRect(u.x1,u.y1,u.width,u.height);if(J&&s.visible&&(b(),h(),"inside"!==s.indexLabelPlacement)){e();q();for(E=0;E<z.length;E++)F[E].isDirty||(a=F[E].textBlock.x+F[E].width,a=(N-a)/2,0==E&&(B=a),B>a&&(B=a));for(E=0;E<R.length;E++)R[E].x1+=B,R[E].x2+=B,R[E].x3+=B,R[E].x4+=B,R[E].x5&&(R[E].x5+=B,R[E].x6+=B),F[E].textBlock.x+=
|
|
553
553
|
B}for(E=0;E<R.length;E++)B=R[E],qa(S,B,s.fillOpacity),ia.push(B.y1);w(S);J&&s.visible&&("inside"===s.indexLabelPlacement||x.animationEnabled||l(S),x.animationEnabled||t());if(!J)for(E=0;E<z.length;E++)B=s.dataPointIds[E],a={id:B,objectType:"dataPoint",dataPointIndex:E,dataSeriesIndex:0,funnelSection:R[s.reversed?z.length-1-E:E]},x._eventManager.objectMap[B]=a;!x.animationEnabled&&K?m(x,-1,0):x.animationEnabled&&!x.animatedRender&&m(x,-1,0);this.funnelPyramidClickHandler=function(a){var b=-1;if(!ha&&
|
|
@@ -688,7 +688,7 @@ a[f].lineThickness/2);a[f].bounds={x1:t-(H[f]+N),y1:m,x2:t-N,y2:k,height:k-m};a[
|
|
|
688
688
|
0<f&&(g[f].lineCoordinates.x1+=g[f].tickLength,g[f].lineCoordinates.x2=g[f].lineCoordinates.x1+g[f].lineThickness/2);g[f].bounds={x1:g[f].lineCoordinates.x1,y1:m,x2:t+x[f]+Q,y2:k,width:t-d,height:k-m};g[f].bounds.width=g[f].bounds.x2-g[f].bounds.x1;g[f].title&&(g[f]._titleTextBlock.maxWidth=0<g[f].titleMaxWidth&&g[f].titleMaxWidth<g[f].lineCoordinates.height?g[f].titleMaxWidth:g[f].lineCoordinates.height);g[f].calculateValueToPixelConversionParameters();g[f].calculateBreaksSizeInValues();Q+=x[f]+
|
|
689
689
|
g[f].margin}for(f=0;f<r.length;f++)"axisY"===r[f].type&&(r[f].calculateValueToPixelConversionParameters(),r[f].calculateBreaksSizeInValues());if(0<w){if(a&&0<a.length)for(f=0;f<a.length;f++)v=M[w-1][f]===M[w][f]?!0:!1;else v=!0;if(g&&0<g.length)for(f=0;f<g.length;f++)J=P[w-1][f]===P[w][f]?!0:!1;else J=!0;if(c&&0<c.length)for(f=0;f<c.length;f++)K=G[w-1][f]===G[w][f]?!0:!1;else K=!0;if(b&&0<b.length)for(f=0;f<b.length;f++)L=s[w-1][f]===s[w][f]?!0:!1;else L=!0}if(v&&J&&K&&L)break;w++}if(c&&0<c.length)for(f=
|
|
690
690
|
0;f<c.length;f++)c[f].calculateStripLinesThicknessInValues(),c[f].calculateBreaksInPixels();if(b&&0<b.length)for(f=0;f<b.length;f++)b[f].calculateStripLinesThicknessInValues(),b[f].calculateBreaksInPixels();if(a&&0<a.length)for(f=0;f<a.length;f++)a[f].calculateStripLinesThicknessInValues(),a[f].calculateBreaksInPixels();if(g&&0<g.length)for(f=0;f<g.length;f++)g[f].calculateStripLinesThicknessInValues(),g[f].calculateBreaksInPixels()}};A.render=function(a,g,c,b,e){var h=a[0]?a[0].chart:g[0].chart;
|
|
691
|
-
e=h.ctx;h.alignVerticalAxes&&h.alignVerticalAxes();e.save();e.beginPath();a&&a.length&&e.rect(
|
|
691
|
+
e=h.ctx;h.alignVerticalAxes&&h.alignVerticalAxes();e.save();e.beginPath();a&&a.length&&e.rect(2,a[0].bounds.y1,a[0].chart.width-4,a[a.length-1].bounds.y2);g&&g.length&&e.rect(2,g[g.length-1].bounds.y1,g[0].chart.width-4,g[0].bounds.y2);e.clip();if(a&&0<a.length)for(var d=0;d<a.length;d++)a[d].renderLabelsTicksAndTitle();if(g&&0<g.length)for(d=0;d<g.length;d++)g[d].renderLabelsTicksAndTitle();e.restore();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderLabelsTicksAndTitle();if(b&&0<b.length)for(d=
|
|
692
692
|
0;d<b.length;d++)b[d].renderLabelsTicksAndTitle();h.preparePlotArea();h=h.plotArea;e.save();e.beginPath();e.rect(h.x1,h.y1,Math.abs(h.x2-h.x1),Math.abs(h.y2-h.y1));e.clip();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderStripLinesOfThicknessType("value");if(g&&0<g.length)for(d=0;d<g.length;d++)g[d].renderStripLinesOfThicknessType("value");if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderStripLinesOfThicknessType("value");if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderStripLinesOfThicknessType("value");
|
|
693
693
|
if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderInterlacedColors();if(g&&0<g.length)for(d=0;d<g.length;d++)g[d].renderInterlacedColors();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderInterlacedColors();if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderInterlacedColors();e.restore();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderGrid(),v&&(a[d].createMask(),a[d].renderBreaksBackground());if(g&&0<g.length)for(d=0;d<g.length;d++)g[d].renderGrid(),v&&(g[d].createMask(),g[d].renderBreaksBackground());
|
|
694
694
|
if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderGrid(),v&&(c[d].createMask(),c[d].renderBreaksBackground());if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderGrid(),v&&(b[d].createMask(),b[d].renderBreaksBackground());if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderAxisLine();if(g&&0<g.length)for(d=0;d<g.length;d++)g[d].renderAxisLine();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderAxisLine();if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderAxisLine();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderStripLinesOfThicknessType("pixel");
|
|
@@ -705,31 +705,31 @@ this.tickThickness,this.ctx.strokeStyle=this.tickColor,b=1===this.ctx.lineWidth%
|
|
|
705
705
|
5):0>this.labelAngle?(r.x-="inside"===this.labelPlacement?0:p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle),r.y="inside"===this.labelPlacement?r.y-("inside"===this.tickPlacement?this.tickLength:0)-(p.textBlock.height-p.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle):r.y+("inside"===this.tickPlacement?0:this.tickLength)+5+Math.abs(p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-p.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle))):(r.x-="inside"===this.labelPlacement?
|
|
706
706
|
p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,r.y="inside"===this.labelPlacement?r.y-("inside"===this.tickPlacement?this.tickLength:0)-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-(p.textBlock.height-p.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle):r.y+("inside"===this.tickPlacement?0:this.tickLength)+5+Math.abs(p.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle))),p.textBlock.x=r.x,p.textBlock.y=r.y));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",
|
|
707
707
|
function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.x<<0)+0.5:r.x<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(b,r.y<<0);a.ctx.lineTo(b,r.y-a.tickLength<<0);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+
|
|
708
|
-
this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y2-this._titleTextBlock.height+this._titleTextBlock.
|
|
708
|
+
this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y2-this._titleTextBlock.height+this._titleTextBlock._lineHeight/2-1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("top"===this._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||p.position>this.viewportMaximum||(r=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&"inside"!=this.tickPlacement&&(this.ctx.lineWidth=
|
|
709
709
|
this.tickThickness,this.ctx.strokeStyle=this.tickColor,b=1===this.ctx.lineWidth%2?(r.x<<0)+0.5:r.x<<0,this.ctx.beginPath(),this.ctx.moveTo(b,r.y<<0),this.ctx.lineTo(b,r.y-this.tickLength<<0),this.ctx.stroke()),g&&0!==h++%2&&this.labelAutoFit||(0===p.textBlock.angle?(r.x-=p.textBlock.width/2,r.y="inside"===this.labelPlacement?r.y+this.labelFontSize/2+("inside"===this.tickPlacement?this.tickLength:0)+5:r.y-(("inside"===this.tickPlacement?0:this.tickLength)+p.textBlock.height-p.textBlock.fontSize/2)):
|
|
710
710
|
0>this.labelAngle?(r.x-="inside"===this.labelPlacement?p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,r.y="inside"===this.labelPlacement?r.y+("inside"===this.tickPlacement?this.tickLength:0)+5-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)+p.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle):r.y-("inside"===this.tickPlacement?0:this.tickLength)-2-(p.textBlock.height-p.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)):(r.x-="inside"===this.labelPlacement?0:p.textBlock.width*
|
|
711
711
|
Math.cos(Math.PI/180*this.labelAngle),r.y="inside"===this.labelPlacement?r.y+("inside"===this.tickPlacement?this.tickLength:0)+5+p.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle):r.y-("inside"===this.tickPlacement?0:this.tickLength)-2-((p.textBlock.height-p.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)+p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle))),p.textBlock.x=r.x,p.textBlock.y=r.y));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",
|
|
712
712
|
function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.x<<0)+0.5:r.x<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(b,r.y<<0);a.ctx.lineTo(b,r.y+a.tickLength<<0);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+
|
|
713
|
-
this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y1+this._titleTextBlock.
|
|
714
|
-
this.tickColor,b=1===this.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0,this.ctx.beginPath(),this.ctx.moveTo(r.x<<0,b),this.ctx.lineTo(r.x-this.tickLength<<0,b),this.ctx.stroke()),g&&0!==h++%2&&this.labelAutoFit||(0===this.labelAngle?(p.textBlock.y=r.y,p.textBlock.x="inside"===this.labelPlacement?r.x+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5):0>this.labelAngle?(p.textBlock.y=
|
|
715
|
-
this.labelPlacement?r.y:r.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5):(p.textBlock.y="inside"===this.labelPlacement?r.y:
|
|
716
|
-
Math.sin(Math.PI/180*this.labelAngle),p.textBlock.x="inside"===this.labelPlacement?r.x+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5)));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",
|
|
717
|
-
0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(r.x<<0,b);a.ctx.lineTo(r.x+a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x1+
|
|
718
|
-
2
|
|
719
|
-
b=1===this.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0,this.ctx.beginPath(),this.ctx.moveTo(r.x<<0,b),this.ctx.lineTo(r.x+this.tickLength<<0,b),this.ctx.stroke()),g&&0!==h++%2&&this.labelAutoFit||(0===this.labelAngle?(p.textBlock.y=r.y,p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.width-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x+("inside"===this.tickPlacement?0:this.tickLength)+5):0>this.labelAngle?(p.textBlock.y="inside"===this.labelPlacement?
|
|
720
|
-
180*this.labelAngle):r.y,p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?0:this.tickLength)+5):(p.textBlock.y="inside"===this.labelPlacement?r.y-p.textBlock.width*Math.sin(Math.PI/
|
|
721
|
-
"inside"===this.labelPlacement?r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?0:this.tickLength)+5)));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",function(){for(k=0;k<a._labels.length;k++)if(p=
|
|
722
|
-
a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(r.x<<0,b);a.ctx.lineTo(r.x-a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x2-this._titleTextBlock.
|
|
723
|
-
2-this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}h=0;if("inside"===this.labelPlacement)this.chart.addEventListener("dataAnimationIterationEnd",function(){for(k=0;k<a._labels.length;k++)p=a._labels[k],p.position<a.viewportMinimum||(p.position>a.viewportMaximum||g&&0!==h++%2&&a.labelAutoFit)||(a.ctx.save(),a.ctx.beginPath(),p.textBlock.render(!0),a.ctx.restore())},this);else for(k=0;k<
|
|
724
|
-
p.position<this.viewportMinimum||(p.position>this.viewportMaximum||g&&0!==h++%2&&this.labelAutoFit)||p.textBlock.render(!0)};A.prototype.renderInterlacedColors=function(){var a=this.chart.plotArea.ctx,g,c,b=this.chart.plotArea,e=0;g=!0;if(("bottom"===this._position||"top"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,e=0;e<this._labels.length;e++)g?(g=this.getPixelCoordinatesOnAxis(this._labels[e].position),c=e+1>this._labels.length-
|
|
725
|
-
this.getPixelCoordinatesOnAxis(this._labels[e+1].position),a.fillRect(Math.min(c.x,g.x),b.y1,Math.abs(c.x-g.x),Math.abs(b.y1-b.y2)),g=!1):g=!0;else if(("left"===this._position||"right"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,e=0;e<this._labels.length;e++)g?(c=this.getPixelCoordinatesOnAxis(this._labels[e].position),g=e+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[e+
|
|
726
|
-
Math.min(c.y,g.y),Math.abs(b.x1-b.x2),Math.abs(g.y-c.y)),g=!1):g=!0;a.beginPath()};A.prototype.renderStripLinesOfThicknessType=function(a){if(this.stripLines&&0<this.stripLines.length&&a){var g=this,c,b,e=0,h=0,d=!1;b=!1;for(var m=[],t=[],k=!1,e=0;e<this.stripLines.length;e++){var l=this.stripLines[e];l._thicknessType===a&&("pixel"===a&&(l.value<this.viewportMinimum||l.value>this.viewportMaximum||n(l.value)||isNaN(this.range))||"value"===a&&(l.startValue<=this.viewportMinimum&&
|
|
727
|
-
l.startValue>=this.viewportMaximum&&l.endValue>=this.viewportMaximum||n(l.startValue)||n(l.endValue)||isNaN(this.range))||m.push(l))}for(e=0;e<this._stripLineLabels.length;e++)if(l=this.stripLines[e],c=this._stripLineLabels[e],!(c.position<this.viewportMinimum||c.position>this.viewportMaximum||isNaN(this.range)))if(b=this.getPixelCoordinatesOnAxis(c.position),"outside"===c.stripLine.labelPlacement){l&&(this.ctx.strokeStyle=l.color,this.ctx.lineWidth="pixel"===l._thicknessType?
|
|
728
|
-
if("bottom"===this._position){var p=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0;this.ctx.beginPath();this.ctx.moveTo(p,b.y<<0);this.ctx.lineTo(p,b.y+this.tickLength<<0);this.ctx.stroke();0===this.labelAngle?(b.x-=c.textBlock.width/2,b.y+=this.tickLength+c.textBlock.fontSize/2+5):(b.x-=0>this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,b.y+=this.tickLength+5+(0>this.labelAngle?Math.abs(c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-
|
|
729
|
-
180*this.labelAngle)):Math.abs(c.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle))))}else"top"===this._position?(p=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0,this.ctx.beginPath(),this.ctx.moveTo(p,b.y<<0),this.ctx.lineTo(p,b.y-this.tickLength<<0),this.ctx.stroke(),0===this.labelAngle?(b.x-=c.textBlock.width/2,b.y-=this.tickLength+c.textBlock.height-c.textBlock.fontSize/2):(b.x-=0<this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):
|
|
730
|
-
(c.textBlock.height-c.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)+c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):(c.textBlock.height-c.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)))):"left"===this._position?(p=1===this.ctx.lineWidth%2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<0,p),this.ctx.lineTo(b.x-this.tickLength<<0,p),this.ctx.stroke(),0===this.labelAngle?b.x=b.x-c.textBlock.width*Math.cos(Math.PI/
|
|
731
|
-
5:(b.y-=c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),b.x-=this.tickLength+5+(0<this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+c.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle):c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-(c.textBlock.height-c.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)))):"right"===this._position&&(p=1===this.ctx.lineWidth%2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<
|
|
732
|
-
this.tickLength<<0,p),this.ctx.stroke(),b.x=0===this.labelAngle?b.x+this.tickLength+5:this.tickLength+5+(0<this.labelAngle?b.x+(c.textBlock.height-c.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle):b.x-c.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)));c.textBlock.x=b.x;c.textBlock.y=b.y;t.push(c)}else l._thicknessType===a&&(c.textBlock.angle=-90,"bottom"===this._position?(c.textBlock.maxWidth=this.options.stripLines[e].labelMaxWidth?this.options.stripLines[e].labelMaxWidth:
|
|
713
|
+
this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y1+this._titleTextBlock._lineHeight/2+1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("left"===this._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||p.position>this.viewportMaximum||(r=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&"inside"!=this.tickPlacement&&(this.ctx.lineWidth=this.tickThickness,
|
|
714
|
+
this.ctx.strokeStyle=this.tickColor,b=1===this.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0,this.ctx.beginPath(),this.ctx.moveTo(r.x<<0,b),this.ctx.lineTo(r.x-this.tickLength<<0,b),this.ctx.stroke()),g&&0!==h++%2&&this.labelAutoFit||(0===this.labelAngle?(p.textBlock.y=r.y,p.textBlock.x="inside"===this.labelPlacement?r.x+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5):0>this.labelAngle?(p.textBlock.y=
|
|
715
|
+
"inside"===this.labelPlacement?r.y:r.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5):(p.textBlock.y="inside"===this.labelPlacement?r.y:
|
|
716
|
+
r.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),p.textBlock.x="inside"===this.labelPlacement?r.x+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?this.tickLength:0)+5:r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?0:this.tickLength)-5)));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",
|
|
717
|
+
function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(r.x<<0,b);a.ctx.lineTo(r.x+a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x1+
|
|
718
|
+
this._titleTextBlock._lineHeight/2,this._titleTextBlock.y=this.lineCoordinates.height/2+this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("right"===this._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||p.position>this.viewportMaximum||(r=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&"inside"!=this.tickPlacement&&(this.ctx.lineWidth=this.tickThickness,
|
|
719
|
+
this.ctx.strokeStyle=this.tickColor,b=1===this.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0,this.ctx.beginPath(),this.ctx.moveTo(r.x<<0,b),this.ctx.lineTo(r.x+this.tickLength<<0,b),this.ctx.stroke()),g&&0!==h++%2&&this.labelAutoFit||(0===this.labelAngle?(p.textBlock.y=r.y,p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.width-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x+("inside"===this.tickPlacement?0:this.tickLength)+5):0>this.labelAngle?(p.textBlock.y="inside"===this.labelPlacement?
|
|
720
|
+
r.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):r.y,p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?0:this.tickLength)+5):(p.textBlock.y="inside"===this.labelPlacement?r.y-p.textBlock.width*Math.sin(Math.PI/
|
|
721
|
+
180*this.labelAngle):r.y,p.textBlock.x="inside"===this.labelPlacement?r.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-p.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)-("inside"===this.tickPlacement?this.tickLength:0)-5:r.x+(p.textBlock.height-p.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)+("inside"===this.tickPlacement?0:this.tickLength)+5)));"inside"===this.tickPlacement&&this.chart.addEventListener("dataAnimationIterationEnd",function(){for(k=0;k<a._labels.length;k++)if(p=
|
|
722
|
+
a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum)&&(r=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(r.y<<0)+0.5:r.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(r.x<<0,b);a.ctx.lineTo(r.x-a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x2-this._titleTextBlock._lineHeight/2,this._titleTextBlock.y=
|
|
723
|
+
this.lineCoordinates.height/2-this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}h=0;if("inside"===this.labelPlacement)this.chart.addEventListener("dataAnimationIterationEnd",function(){for(k=0;k<a._labels.length;k++)p=a._labels[k],p.position<a.viewportMinimum||(p.position>a.viewportMaximum||g&&0!==h++%2&&a.labelAutoFit)||(a.ctx.save(),a.ctx.beginPath(),p.textBlock.render(!0),a.ctx.restore())},this);else for(k=0;k<
|
|
724
|
+
this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||g&&0!==h++%2&&this.labelAutoFit)||p.textBlock.render(!0)};A.prototype.renderInterlacedColors=function(){var a=this.chart.plotArea.ctx,g,c,b=this.chart.plotArea,e=0;g=!0;if(("bottom"===this._position||"top"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,e=0;e<this._labels.length;e++)g?(g=this.getPixelCoordinatesOnAxis(this._labels[e].position),c=e+1>this._labels.length-
|
|
725
|
+
1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[e+1].position),a.fillRect(Math.min(c.x,g.x),b.y1,Math.abs(c.x-g.x),Math.abs(b.y1-b.y2)),g=!1):g=!0;else if(("left"===this._position||"right"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,e=0;e<this._labels.length;e++)g?(c=this.getPixelCoordinatesOnAxis(this._labels[e].position),g=e+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[e+
|
|
726
|
+
1].position),a.fillRect(b.x1,Math.min(c.y,g.y),Math.abs(b.x1-b.x2),Math.abs(g.y-c.y)),g=!1):g=!0;a.beginPath()};A.prototype.renderStripLinesOfThicknessType=function(a){if(this.stripLines&&0<this.stripLines.length&&a){var g=this,c,b,e=0,h=0,d=!1;b=!1;for(var m=[],t=[],k=!1,e=0;e<this.stripLines.length;e++){var l=this.stripLines[e];l._thicknessType===a&&("pixel"===a&&(l.value<this.viewportMinimum||l.value>this.viewportMaximum||n(l.value)||isNaN(this.range))||"value"===a&&(l.startValue<=this.viewportMinimum&&
|
|
727
|
+
l.endValue<=this.viewportMinimum||l.startValue>=this.viewportMaximum&&l.endValue>=this.viewportMaximum||n(l.startValue)||n(l.endValue)||isNaN(this.range))||m.push(l))}for(e=0;e<this._stripLineLabels.length;e++)if(l=this.stripLines[e],c=this._stripLineLabels[e],!(c.position<this.viewportMinimum||c.position>this.viewportMaximum||isNaN(this.range)))if(b=this.getPixelCoordinatesOnAxis(c.position),"outside"===c.stripLine.labelPlacement){l&&(this.ctx.strokeStyle=l.color,this.ctx.lineWidth="pixel"===l._thicknessType?
|
|
728
|
+
l.thickness:this.tickThickness);if("bottom"===this._position){var p=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0;this.ctx.beginPath();this.ctx.moveTo(p,b.y<<0);this.ctx.lineTo(p,b.y+this.tickLength<<0);this.ctx.stroke();0===this.labelAngle?(b.x-=c.textBlock.width/2,b.y+=this.tickLength+c.textBlock.fontSize/2+5):(b.x-=0>this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,b.y+=this.tickLength+5+(0>this.labelAngle?Math.abs(c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-
|
|
729
|
+
c.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle)):Math.abs(c.textBlock.fontSize/2*Math.cos(Math.PI/180*this.labelAngle))))}else"top"===this._position?(p=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0,this.ctx.beginPath(),this.ctx.moveTo(p,b.y<<0),this.ctx.lineTo(p,b.y-this.tickLength<<0),this.ctx.stroke(),0===this.labelAngle?(b.x-=c.textBlock.width/2,b.y-=this.tickLength+c.textBlock.height-c.textBlock.fontSize/2):(b.x-=0<this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):
|
|
730
|
+
0,b.y-=this.tickLength+2+(0<this.labelAngle?(c.textBlock.height-c.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)+c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):(c.textBlock.height-c.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)))):"left"===this._position?(p=1===this.ctx.lineWidth%2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<0,p),this.ctx.lineTo(b.x-this.tickLength<<0,p),this.ctx.stroke(),0===this.labelAngle?b.x=b.x-c.textBlock.width*Math.cos(Math.PI/
|
|
731
|
+
180*this.labelAngle)-this.tickLength-5:(b.y-=c.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),b.x-=this.tickLength+5+(0<this.labelAngle?c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+c.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle):c.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-(c.textBlock.height-c.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle)))):"right"===this._position&&(p=1===this.ctx.lineWidth%2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<
|
|
732
|
+
0,p),this.ctx.lineTo(b.x+this.tickLength<<0,p),this.ctx.stroke(),b.x=0===this.labelAngle?b.x+this.tickLength+5:this.tickLength+5+(0<this.labelAngle?b.x+(c.textBlock.height-c.textBlock.fontSize/2)*Math.sin(Math.PI/180*this.labelAngle):b.x-c.textBlock.fontSize/2*Math.sin(Math.PI/180*this.labelAngle)));c.textBlock.x=b.x;c.textBlock.y=b.y;t.push(c)}else l._thicknessType===a&&(c.textBlock.angle=-90,"bottom"===this._position?(c.textBlock.maxWidth=this.options.stripLines[e].labelMaxWidth?this.options.stripLines[e].labelMaxWidth:
|
|
733
733
|
this.chart.plotArea.height-3,c.textBlock.measureText(),b.x-c.textBlock.height-l.thickness/2>this.chart.plotArea.x1?n(l.startValue)?b.x-=c.textBlock.height-c.textBlock.fontSize/2+l.thickness/2:b.x-=c.textBlock.height/2-c.textBlock.fontSize/2:(c.textBlock.angle=90,n(l.startValue)?b.x+=c.textBlock.height-c.textBlock.fontSize/2+l.thickness/2:b.x+=c.textBlock.height/2-c.textBlock.fontSize/2),b.y=-90===c.textBlock.angle?"near"===c.stripLine.labelAlign?this.chart.plotArea.y2-3:"center"===c.stripLine.labelAlign?
|
|
734
734
|
(this.chart.plotArea.y2+this.chart.plotArea.y1+c.textBlock.width)/2:this.chart.plotArea.y1+c.textBlock.width+3:"near"===c.stripLine.labelAlign?this.chart.plotArea.y2-c.textBlock.width-3:"center"===c.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1-c.textBlock.width)/2:this.chart.plotArea.y1+3):"top"===this._position?(c.textBlock.maxWidth=this.options.stripLines[e].labelMaxWidth?this.options.stripLines[e].labelMaxWidth:this.chart.plotArea.height-3,c.textBlock.measureText(),b.x-c.textBlock.height-
|
|
735
735
|
l.thickness/2>this.chart.plotArea.x1?n(l.startValue)?b.x-=c.textBlock.height-c.textBlock.fontSize/2+l.thickness/2:b.x-=c.textBlock.height/2-c.textBlock.fontSize/2:(c.textBlock.angle=90,n(l.startValue)?b.x+=c.textBlock.height-c.textBlock.fontSize/2+l.thickness/2:b.x+=c.textBlock.height/2-c.textBlock.fontSize/2),b.y=-90===c.textBlock.angle?"near"===c.stripLine.labelAlign?this.chart.plotArea.y1+c.textBlock.width+3:"center"===c.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1+c.textBlock.width)/
|
|
@@ -945,7 +945,7 @@ function(){this.animations=[];this.animationRequestId&&this.chart.cancelRequestA
|
|
|
945
945
|
la,c.canvas.height/la)}},xClipAnimation:function(a,d){if(0!==a){var c=d.dest,b=d.source.canvas;c.save();0<a&&c.drawImage(b,0,0,b.width*a,b.height,0,0,b.width*a/la,b.height/la);c.restore()}},fadeInAnimation:function(a,d){if(0!==a){var c=d.dest,b=d.source.canvas;c.save();c.globalAlpha=a;c.drawImage(b,0,0,b.width,b.height,0,0,c.canvas.width/la,c.canvas.height/la);c.restore()}},easing:{linear:function(a,d,c,b){return c*a/b+d},easeOutQuad:function(a,d,c,b){return-c*(a/=b)*(a-2)+d},easeOutQuart:function(a,
|
|
946
946
|
d,c,b){return-c*((a=a/b-1)*a*a*a-1)+d},easeInQuad:function(a,d,c,b){return c*(a/=b)*a+d},easeInQuart:function(a,d,c,b){return c*(a/=b)*a*a*a+d}}},X={drawMarker:function(a,d,c,b,e,h,m,n){if(c){var t=1;c.fillStyle=h?h:"#000000";c.strokeStyle=m?m:"#000000";c.lineWidth=n?n:0;c.setLineDash&&c.setLineDash(G("solid",n));"circle"===b?(c.moveTo(a,d),c.beginPath(),c.arc(a,d,e/2,0,2*Math.PI,!1),h&&c.fill(),n&&(m?c.stroke():(t=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=t))):
|
|
947
947
|
"square"===b?(c.beginPath(),c.rect(a-e/2,d-e/2,e,e),h&&c.fill(),n&&(m?c.stroke():(t=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=t))):"triangle"===b?(c.beginPath(),c.moveTo(a-e/2,d+e/2),c.lineTo(a+e/2,d+e/2),c.lineTo(a,d-e/2),c.closePath(),h&&c.fill(),n&&(m?c.stroke():(t=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=t)),c.beginPath()):"cross"===b&&(c.strokeStyle=h,c.lineWidth=e/4,c.beginPath(),c.moveTo(a-e/2,d-e/2),c.lineTo(a+e/
|
|
948
|
-
2,d+e/2),c.stroke(),c.moveTo(a+e/2,d-e/2),c.lineTo(a-e/2,d+e/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];X.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return m}();t.version="v3.10.
|
|
948
|
+
2,d+e/2),c.stroke(),c.moveTo(a+e/2,d-e/2),c.lineTo(a-e/2,d+e/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];X.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return m}();t.version="v3.10.1 GA";window.CanvasJS&&(t&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=t)})();
|
|
949
949
|
|
|
950
950
|
/*
|
|
951
951
|
excanvas is used to support IE678 which do not implement HTML5 Canvas Element. You can safely remove the following excanvas code if you don't need to support older browsers.
|