@canvasjs/charts 3.7.33 → 3.7.34

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/canvasjs.min.js +31 -31
  3. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- CanvasJS Chart - v3.7.33 GA - https://canvasjs.com/
1
+ CanvasJS Chart - v3.7.34 GA - https://canvasjs.com/
2
2
  Copyright 2023 fenopix
3
3
 
4
4
  --------------------- License Information --------------------
package/canvasjs.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- CanvasJS Chart - v3.7.33 GA - https://canvasjs.com/
2
+ CanvasJS Chart - v3.7.34 GA - https://canvasjs.com/
3
3
  Copyright 2023 fenopix
4
4
 
5
5
  --------------------- License Information --------------------
@@ -289,35 +289,35 @@ d);if(this.axisX&&0<this.axisX.length)for(e=0;e<this.axisX.length;e++)this.axisX
289
289
  source:"chart",index:this.stockChart.charts.indexOf(this),minimum:e.val1,maximum:e.val2});return a.isValid};p.prototype.validateRegion=function(a,d,c,b,e){e=e||!1;for(var f=0<=this.zoomType.indexOf("x"),l=0<=this.zoomType.indexOf("y"),t=!1,C=[],k=[],m=[],n=0;n<this._axes.length;n++)("axisX"===this._axes[n].type&&f||"axisY"===this._axes[n].type&&l)&&k.push(this._axes[n]);for(l=0;l<k.length;l++){var n=k[l],f=!1,q=n.convertPixelToValue({x:a,y:d}),g=n.convertPixelToValue({x:c,y:b});if(q>g)var s=g,g=q,
290
290
  q=s;if(n.scaleBreaks)for(s=0;!f&&s<n.scaleBreaks._appliedBreaks.length;s++)f=n.scaleBreaks._appliedBreaks[s].startValue<=q&&n.scaleBreaks._appliedBreaks[s].endValue>=g;if(isFinite(n.dataInfo.minDiff))if(s=n.getApparentDifference(q,g,null,!0),!(f||!(this.panEnabled&&n.scaleBreaks&&n.scaleBreaks._appliedBreaks.length)&&(n.logarithmic&&s<Math.pow(n.dataInfo.minDiff,3)||!n.logarithmic&&s<3*Math.abs(n.dataInfo.minDiff))||q<n.minimum||g>n.maximum))C.push(n),m.push({val1:q,val2:g}),t=!0;else if(!e){t=!1;
291
291
  break}}return{isValid:t,axesWithValidRange:C,axesRanges:m}};p.prototype.preparePlotArea=function(){var a=this.plotArea;!w&&(0<a.x1||0<a.y1)&&a.ctx.translate(a.x1,a.y1);if((this.axisX[0]||this.axisX2[0])&&(this.axisY[0]||this.axisY2[0])){var d=this.axisX[0]?this.axisX[0].lineCoordinates:this.axisX2[0].lineCoordinates;if(this.axisY&&0<this.axisY.length&&this.axisY[0]){var c=this.axisY[0];a.x1=d.x1<d.x2?d.x1:c.lineCoordinates.x1;a.y1=d.y1<c.lineCoordinates.y1?d.y1:c.lineCoordinates.y1;a.x2=d.x2>c.lineCoordinates.x2?
292
- d.x2:c.lineCoordinates.x2;a.y2=d.y2>d.y1?d.y2:c.lineCoordinates.y2;a.width=a.x2-a.x1;a.height=a.y2-a.y1}this.axisY2&&0<this.axisY2.length&&this.axisY2[0]&&(c=this.axisY2[0],a.x1=d.x1<d.x2?d.x1:c.lineCoordinates.x1,a.y1=d.y1<c.lineCoordinates.y1?d.y1:c.lineCoordinates.y1,a.x2=d.x2>c.lineCoordinates.x2?d.x2:c.lineCoordinates.x2,a.y2=d.y2>d.y1?d.y2:c.lineCoordinates.y2,a.width=a.x2-a.x1,a.height=a.y2-a.y1)}else d=this.layoutManager.getFreeSpace(),a.x1=d.x1,a.x2=d.x2,a.y1=d.y1,a.y2=d.y2,a.width=d.width,
293
- a.height=d.height;w||(a.canvas.width=a.width,a.canvas.height=a.height,a.canvas.style.left=a.x1+"px",a.canvas.style.top=a.y1+"px",(0<a.x1||0<a.y1)&&a.ctx.translate(-a.x1,-a.y1));a.layoutManager=new Fa(a.x1,a.y1,a.x2,a.y2,2)};p.prototype.renderIndexLabels=function(a){var d=a||this.plotArea.ctx,c=this.plotArea,b=0,e=0,f=0,l=f=e=0,t=0,C=b=0,k=0;for(a=0;a<this._indexLabels.length;a++){var m=this._indexLabels[a],n=m.chartType.toLowerCase(),q,g,l=ma("indexLabelFontColor",m.dataPoint,m.dataSeries),s=ma("indexLabelFontSize",
294
- m.dataPoint,m.dataSeries),t=ma("indexLabelFontFamily",m.dataPoint,m.dataSeries),C=ma("indexLabelFontStyle",m.dataPoint,m.dataSeries),k=ma("indexLabelFontWeight",m.dataPoint,m.dataSeries),h=ma("indexLabelBackgroundColor",m.dataPoint,m.dataSeries);q=ma("indexLabelMaxWidth",m.dataPoint,m.dataSeries);g=ma("indexLabelWrap",m.dataPoint,m.dataSeries);var ba=ma("indexLabelLineDashType",m.dataPoint,m.dataSeries),u=ma("indexLabelLineColor",m.dataPoint,m.dataSeries),p=r(m.dataPoint.indexLabelLineThickness)?
295
- r(m.dataSeries.options.indexLabelLineThickness)?0:m.dataSeries.options.indexLabelLineThickness:m.dataPoint.indexLabelLineThickness,b=0<p?Math.min(10,("normal"===this.plotInfo.axisPlacement?this.plotArea.height:this.plotArea.width)<<0):0,x={percent:null,total:null},z=null;if(0<=m.dataSeries.type.indexOf("stacked")||"pie"===m.dataSeries.type||"doughnut"===m.dataSeries.type)x=this.getPercentAndTotal(m.dataSeries,m.dataPoint);if(m.dataSeries.indexLabelFormatter||m.dataPoint.indexLabelFormatter)z={chart:this,
296
- dataSeries:m.dataSeries,dataPoint:m.dataPoint,index:m.indexKeyword,total:x.total,percent:x.percent};var H=m.dataPoint.indexLabelFormatter?m.dataPoint.indexLabelFormatter(z):m.dataPoint.indexLabel?this.replaceKeywordsWithValue(m.dataPoint.indexLabel,m.dataPoint,m.dataSeries,null,m.indexKeyword):m.dataSeries.indexLabelFormatter?m.dataSeries.indexLabelFormatter(z):m.dataSeries.indexLabel?this.replaceKeywordsWithValue(m.dataSeries.indexLabel,m.dataPoint,m.dataSeries,null,m.indexKeyword):null;if(null!==
297
- H&&""!==H){var x=ma("indexLabelPlacement",m.dataPoint,m.dataSeries),z=ma("indexLabelOrientation",m.dataPoint,m.dataSeries),D=ma("indexLabelTextAlign",m.dataPoint,m.dataSeries),v=m.direction,e=m.dataSeries.axisX,f=m.dataSeries.axisY,A=!1,h=new ja(d,{x:0,y:0,maxWidth:q?q:0.5*this.width,maxHeight:g?5*s:1.5*s,angle:"horizontal"===z?0:-90,text:H,padding:0,backgroundColor:h,textAlign:D,fontSize:s,fontFamily:t,fontWeight:k,fontColor:l,fontStyle:C,textBaseline:"middle"});h.measureText();m.dataSeries.indexLabelMaxWidth=
298
- h.maxWidth;if("stackedarea100"===n){if(m.point.x<c.x1||m.point.x>c.x2||m.point.y<c.y1-1||m.point.y>c.y2+1)continue}else if("rangearea"===n||"rangesplinearea"===n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||Math.max.apply(null,m.dataPoint.y)<f.viewportMinimum||Math.min.apply(null,m.dataPoint.y)>f.viewportMaximum)continue}else if(0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("bubble")||0<=n.indexOf("scatter")){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||
299
- m.dataPoint.y<f.viewportMinimum||m.dataPoint.y>f.viewportMaximum)continue}else if(0<=n.indexOf("column")||"waterfall"===n||"error"===n&&!m.axisSwapped){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||m.bounds.y1>c.y2||m.bounds.y2<c.y1)continue}else if(0<=n.indexOf("bar")||"error"===n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||m.bounds.x1>c.x2||m.bounds.x2<c.x1)continue}else if("candlestick"===n||"ohlc"===n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>
300
- e.viewportMaximum||Math.max.apply(null,m.dataPoint.y)<f.viewportMinimum||Math.min.apply(null,m.dataPoint.y)>f.viewportMaximum)continue}else if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum)continue;l=t=2;"horizontal"===z?(C=h.width,k=h.height):(k=h.width,C=h.height);if("normal"===this.plotInfo.axisPlacement){if(0<=n.indexOf("line")||0<=n.indexOf("area"))x="auto",t=4;else if(0<=n.indexOf("stacked"))"auto"===x&&(x="inside");else if("bubble"===n||"scatter"===n)x="inside";q=m.point.x-
301
- ("horizontal"===z?C/2:C/2-s/2);"inside"!==x?(e=c.y1,f=c.y2,0<v?(g=m.point.y+("horizontal"===z?s/2:0)-k-t-b,g<e&&(g="auto"===x?Math.max(m.point.y,e)+s/2+t:e+s/2+t,A=g+k>m.point.y)):(g=m.point.y+s/2+t+b,g>f-k&&(g="auto"===x?Math.min(m.point.y,f)+s/2-k-t:f+s/2-k,A=g<m.point.y))):(e=Math.max(m.bounds.y1,c.y1),f=Math.min(m.bounds.y2,c.y2-k+s/2),b=0<=n.indexOf("range")||"error"===n?0<v?Math.max(m.bounds.y1,c.y1)+s/2+t:Math.min(m.bounds.y2,c.y2)+s/2-k+t:(Math.max(m.bounds.y1,c.y1)+Math.min(m.bounds.y2,c.y2))/
302
- 2-k/2+s/2+("horizontal"===z?t:0),0<v?(g=Math.max(m.point.y,b),g<e&&("bubble"===n||"scatter"===n)&&(g=Math.max(m.point.y-k-t,c.y1+t))):(g=Math.min(m.point.y,b),g>f-k-t&&("bubble"===n||"scatter"===n)&&(g=Math.min(m.point.y+t,c.y2-k-t))),g=Math.min(g,f))}else 0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("scatter")?(x="auto",l=4):0<=n.indexOf("stacked")?"auto"===x&&(x="inside"):"bubble"===n&&(x="inside"),g=m.point.y+s/2-k/2+t,"inside"!==x?(e=c.x1,f=c.x2,0>v?(q=m.point.x-("horizontal"===z?
303
- C:C-s/2)-l-b,q<e&&(q="auto"===x?Math.max(m.point.x,e)+l:e+l,A=q+C>m.point.x)):(q=m.point.x+("horizontal"===z?0:s/2)+l+b,q>f-C-l-b&&(q="auto"===x?Math.min(m.point.x,f)-("horizontal"===z?C:C/2)-l:f-C-l,A=q<m.point.x))):(e=Math.max(m.bounds.x1,c.x1),Math.min(m.bounds.x2,c.x2),b=0<=n.indexOf("range")||"error"===n?0>v?Math.max(m.bounds.x1,c.x1)+s/2+l:Math.min(m.bounds.x2,c.x2)-C/2-l+("horizontal"===z?0:s/2):(Math.max(m.bounds.x1,c.x1)+Math.min(m.bounds.x2,c.x2))/2+("horizontal"===z?0:s/2),q=0>v?Math.max(m.point.x,
304
- b)-("horizontal"===z?C/2:0):Math.min(m.point.x,b)-C/2,q=Math.max(q,e));"vertical"===z&&(g+=k-s/2);h.x=q;h.y=g;h.render(!0);p&&("inside"!==x&&(0>n.indexOf("bar")&&("error"!==n||!m.axisSwapped)&&m.point.x>c.x1&&m.point.x<c.x2||!A)&&(0>n.indexOf("column")&&("error"!==n||m.axisSwapped)&&m.point.y>c.y1&&m.point.y<c.y2||!A))&&(d.lineWidth=p,d.strokeStyle=u?u:"gray",d.setLineDash&&d.setLineDash(J(ba,p)),d.beginPath(),d.moveTo(m.point.x,m.point.y),0<=n.indexOf("bar")||"error"===n&&m.axisSwapped?d.lineTo(q+
305
- (0<m.direction?-l:C+l)+("vertical"===z?-s/2:0),g+("vertical"===z?-k/2:k/2-s/2)-t):0<=n.indexOf("column")||"error"===n&&!m.axisSwapped?d.lineTo(q+C/2-("horizontal"===z?0:s/2),g+("vertical"===z?(g-k<m.point.y?0:-k)+t:(g-s/2<m.point.y?k:0)-s/2)):0<=n.indexOf("waterfall")?d.lineTo(q+C/2-("horizontal"===z?0:s/2),"vertical"===z?0<v&&g<m.point.y?g:0>v&&g-k>m.point.y?g-k:m.point.y:0<v&&g+k-s/2<m.point.y?g+k-s/2:0>v&&g-s/2>m.point.y?g-s/2-2:m.point.y):d.lineTo(q+C/2-("horizontal"===z?0:s/2),g+("vertical"===
306
- z?g-k<m.point.y?0:-k:(g+k<m.point.y?k:0)-s/2)),d.stroke())}}d={source:d,dest:this.plotArea.ctx,animationCallback:M.fadeInAnimation,easingFunction:M.easing.easeInQuad,animationBase:0,startTimePercent:0.7};for(a=0;a<this._indexLabels.length;a++)m=this._indexLabels[a],h=ma("indexLabelBackgroundColor",m.dataPoint,m.dataSeries),m.dataSeries.indexLabelBackgroundColor=r(h)?w?"transparent":null:h;return d};p.prototype.renderLine=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx,c=w?this._preRenderCtx:
307
- d;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;c.save();var e=this.plotArea;c.beginPath();c.rect(e.x1,e.y1,e.width,e.height);c.clip();for(var f=[],l,t=0;t<a.dataSeriesIndexes.length;t++){var C=a.dataSeriesIndexes[t],k=this.data[C];c.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(c.setLineDash){var q=J(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,g=J(n,k.lineThickness);c.setLineDash(g)}var s=k.id;this._eventManager.objectMap[s]={objectType:"dataSeries",
308
- dataSeriesIndex:C};s=X(s);b.strokeStyle=s;b.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var s=k._colorSet,h=s=k.lineColor=k.options.lineColor?k.options.lineColor:s[0];c.strokeStyle=s;var r=!0,u=0,p,x;c.beginPath();if(0<m.length){for(var z=!1,u=0;u<m.length;u++)if(p=m[u].x.getTime?m[u].x.getTime():m[u].x,!(p<a.axisX.dataInfo.viewPortMin||p>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!z)))if("number"!==typeof m[u].y)0<u&&!(k.connectNullData||z||r)&&(c.stroke(),w&&b.stroke()),z=
309
- !0;else{p=a.axisX.convertValueToPixel(p);x=a.axisY.convertValueToPixel(m[u].y);var H=k.dataPointIds[u];this._eventManager.objectMap[H]={id:H,objectType:"dataPoint",dataSeriesIndex:C,dataPointIndex:u,x1:p,y1:x};r||z?(!r&&k.connectNullData?(c.setLineDash&&(k.options.nullDataLineDashType||n===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(c.stroke(),c.beginPath(),c.moveTo(l.x,l.y),n=k.nullDataLineDashType,c.setLineDash(q)),c.lineTo(p,x),w&&b.lineTo(p,x)):(c.beginPath(),c.moveTo(p,x),w&&(b.beginPath(),
310
- b.moveTo(p,x))),z=r=!1):(c.lineTo(p,x),w&&b.lineTo(p,x),0==u%500&&(c.stroke(),c.beginPath(),c.moveTo(p,x),w&&(b.stroke(),b.beginPath(),b.moveTo(p,x))));l={x:p,y:x};u<m.length-1&&(h!==(m[u].lineColor||s)||n!==(m[u].lineDashType||k.lineDashType))&&(c.stroke(),c.beginPath(),c.moveTo(p,x),h=m[u].lineColor||s,c.strokeStyle=h,c.setLineDash&&(m[u].lineDashType?(n=m[u].lineDashType,c.setLineDash(J(n,k.lineThickness))):(n=k.lineDashType,c.setLineDash(g))));if(0!==m[u].markerSize&&(0<m[u].markerSize||0<k.markerSize)){var D=
311
- k.getMarkerProperties(u,p,x,c);f.push(D);H=X(H);w&&f.push({x:p,y:x,ctx:b,type:D.type,size:D.size,color:H,borderColor:H,borderThickness:D.borderThickness})}(m[u].indexLabel||k.indexLabel||m[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"line",dataPoint:m[u],dataSeries:k,point:{x:p,y:x},direction:0>m[u].y===a.axisY.reversed?1:-1,color:s})}c.stroke();w&&b.stroke()}}W.drawMarkers(f);w&&(d.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=
312
- "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(e.x1,e.y1,e.width,e.height),b.beginPath());c.restore();c.beginPath();return{source:d,dest:this.plotArea.ctx,animationCallback:M.xClipAnimation,easingFunction:M.easing.linear,animationBase:0}}};p.prototype.renderStepLine=
313
- function(a){var d=a.targetCanvasCtx||this.plotArea.ctx,c=w?this._preRenderCtx:d;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;c.save();var e=this.plotArea;c.beginPath();c.rect(e.x1,e.y1,e.width,e.height);c.clip();for(var f=[],l,t=0;t<a.dataSeriesIndexes.length;t++){var C=a.dataSeriesIndexes[t],k=this.data[C];c.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(c.setLineDash){var q=J(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,g=J(n,k.lineThickness);c.setLineDash(g)}var s=
314
- k.id;this._eventManager.objectMap[s]={objectType:"dataSeries",dataSeriesIndex:C};s=X(s);b.strokeStyle=s;b.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var s=k._colorSet,h=s=k.lineColor=k.options.lineColor?k.options.lineColor:s[0];c.strokeStyle=s;var r=!0,u=0,p,x;c.beginPath();if(0<m.length){for(var z=!1,u=0;u<m.length;u++)if(p=m[u].getTime?m[u].x.getTime():m[u].x,!(p<a.axisX.dataInfo.viewPortMin||p>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!z)))if("number"!==typeof m[u].y)0<
315
- u&&!(k.connectNullData||z||r)&&(c.stroke(),w&&b.stroke()),z=!0;else{var H=x;p=a.axisX.convertValueToPixel(p);x=a.axisY.convertValueToPixel(m[u].y);var D=k.dataPointIds[u];this._eventManager.objectMap[D]={id:D,objectType:"dataPoint",dataSeriesIndex:C,dataPointIndex:u,x1:p,y1:x};r||z?(!r&&k.connectNullData?(c.setLineDash&&(k.options.nullDataLineDashType||n===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(c.stroke(),c.beginPath(),c.moveTo(l.x,l.y),n=k.nullDataLineDashType,c.setLineDash(q)),
316
- c.lineTo(p,H),c.lineTo(p,x),w&&(b.lineTo(p,H),b.lineTo(p,x))):(c.beginPath(),c.moveTo(p,x),w&&(b.beginPath(),b.moveTo(p,x))),z=r=!1):(c.lineTo(p,H),w&&b.lineTo(p,H),c.lineTo(p,x),w&&b.lineTo(p,x),0==u%500&&(c.stroke(),c.beginPath(),c.moveTo(p,x),w&&(b.stroke(),b.beginPath(),b.moveTo(p,x))));l={x:p,y:x};u<m.length-1&&(h!==(m[u].lineColor||s)||n!==(m[u].lineDashType||k.lineDashType))&&(c.stroke(),c.beginPath(),c.moveTo(p,x),h=m[u].lineColor||s,c.strokeStyle=h,c.setLineDash&&(m[u].lineDashType?(n=m[u].lineDashType,
317
- c.setLineDash(J(n,k.lineThickness))):(n=k.lineDashType,c.setLineDash(g))));0!==m[u].markerSize&&(0<m[u].markerSize||0<k.markerSize)&&(H=k.getMarkerProperties(u,p,x,c),f.push(H),D=X(D),w&&f.push({x:p,y:x,ctx:b,type:H.type,size:H.size,color:D,borderColor:D,borderThickness:H.borderThickness}));(m[u].indexLabel||k.indexLabel||m[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"stepLine",dataPoint:m[u],dataSeries:k,point:{x:p,y:x},direction:0>m[u].y===a.axisY.reversed?
318
- 1:-1,color:s})}c.stroke();w&&b.stroke()}}W.drawMarkers(f);w&&(d.drawImage(this._preRenderCanvas,0,0,this.width,this.height),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(e.x1,e.y1,e.width,e.height),b.beginPath());c.restore();c.beginPath();
319
- return{source:d,dest:this.plotArea.ctx,animationCallback:M.xClipAnimation,easingFunction:M.easing.linear,animationBase:0}}};p.prototype.renderSpline=function(a){function d(a){a=v(a,2);if(0<a.length){b.beginPath();w&&e.beginPath();b.moveTo(a[0].x,a[0].y);a[0].newStrokeStyle&&(b.strokeStyle=a[0].newStrokeStyle);a[0].newLineDashArray&&b.setLineDash(a[0].newLineDashArray);w&&e.moveTo(a[0].x,a[0].y);for(var c=0;c<a.length-3;c+=3)if(b.bezierCurveTo(a[c+1].x,a[c+1].y,a[c+2].x,a[c+2].y,a[c+3].x,a[c+3].y),
320
- w&&e.bezierCurveTo(a[c+1].x,a[c+1].y,a[c+2].x,a[c+2].y,a[c+3].x,a[c+3].y),0<c&&0===c%3E3||a[c+3].newStrokeStyle||a[c+3].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(a[c+3].x,a[c+3].y),a[c+3].newStrokeStyle&&(b.strokeStyle=a[c+3].newStrokeStyle),a[c+3].newLineDashArray&&b.setLineDash(a[c+3].newLineDashArray),w&&(e.stroke(),e.beginPath(),e.moveTo(a[c+3].x,a[c+3].y));b.stroke();w&&e.stroke()}}var c=a.targetCanvasCtx||this.plotArea.ctx,b=w?this._preRenderCtx:c;if(!(0>=a.dataSeriesIndexes.length)){var e=
292
+ d.x2:c.lineCoordinates.x2;a.y2=d.y1>c.lineCoordinates.y2?d.y1:c.lineCoordinates.y2;a.width=a.x2-a.x1;a.height=a.y2-a.y1}this.axisY2&&0<this.axisY2.length&&this.axisY2[0]&&(c=this.axisY2[0],a.x1=d.x1<d.x2?d.x1:c.lineCoordinates.x1,a.y1=d.y1<c.lineCoordinates.y1?d.y1:c.lineCoordinates.y1,a.x2=d.x2>c.lineCoordinates.x2?d.x2:c.lineCoordinates.x2,a.y2=d.y1>c.lineCoordinates.y2?d.y1:c.lineCoordinates.y2,a.width=a.x2-a.x1,a.height=a.y2-a.y1)}else d=this.layoutManager.getFreeSpace(),a.x1=d.x1,a.x2=d.x2,a.y1=
293
+ d.y1,a.y2=d.y2,a.width=d.width,a.height=d.height;w||(a.canvas.width=a.width,a.canvas.height=a.height,a.canvas.style.left=a.x1+"px",a.canvas.style.top=a.y1+"px",(0<a.x1||0<a.y1)&&a.ctx.translate(-a.x1,-a.y1));a.layoutManager=new Fa(a.x1,a.y1,a.x2,a.y2,2)};p.prototype.renderIndexLabels=function(a){var d=a||this.plotArea.ctx,c=this.plotArea,b=0,e=0,f=0,l=f=e=0,t=0,C=b=0,k=0;for(a=0;a<this._indexLabels.length;a++){var m=this._indexLabels[a],n=m.chartType.toLowerCase(),q,g,l=ma("indexLabelFontColor",m.dataPoint,
294
+ m.dataSeries),s=ma("indexLabelFontSize",m.dataPoint,m.dataSeries),t=ma("indexLabelFontFamily",m.dataPoint,m.dataSeries),C=ma("indexLabelFontStyle",m.dataPoint,m.dataSeries),k=ma("indexLabelFontWeight",m.dataPoint,m.dataSeries),h=ma("indexLabelBackgroundColor",m.dataPoint,m.dataSeries);q=ma("indexLabelMaxWidth",m.dataPoint,m.dataSeries);g=ma("indexLabelWrap",m.dataPoint,m.dataSeries);var ba=ma("indexLabelLineDashType",m.dataPoint,m.dataSeries),u=ma("indexLabelLineColor",m.dataPoint,m.dataSeries),p=
295
+ r(m.dataPoint.indexLabelLineThickness)?r(m.dataSeries.options.indexLabelLineThickness)?0:m.dataSeries.options.indexLabelLineThickness:m.dataPoint.indexLabelLineThickness,b=0<p?Math.min(10,("normal"===this.plotInfo.axisPlacement?this.plotArea.height:this.plotArea.width)<<0):0,x={percent:null,total:null},z=null;if(0<=m.dataSeries.type.indexOf("stacked")||"pie"===m.dataSeries.type||"doughnut"===m.dataSeries.type)x=this.getPercentAndTotal(m.dataSeries,m.dataPoint);if(m.dataSeries.indexLabelFormatter||
296
+ m.dataPoint.indexLabelFormatter)z={chart:this,dataSeries:m.dataSeries,dataPoint:m.dataPoint,index:m.indexKeyword,total:x.total,percent:x.percent};var H=m.dataPoint.indexLabelFormatter?m.dataPoint.indexLabelFormatter(z):m.dataPoint.indexLabel?this.replaceKeywordsWithValue(m.dataPoint.indexLabel,m.dataPoint,m.dataSeries,null,m.indexKeyword):m.dataSeries.indexLabelFormatter?m.dataSeries.indexLabelFormatter(z):m.dataSeries.indexLabel?this.replaceKeywordsWithValue(m.dataSeries.indexLabel,m.dataPoint,m.dataSeries,
297
+ null,m.indexKeyword):null;if(null!==H&&""!==H){var x=ma("indexLabelPlacement",m.dataPoint,m.dataSeries),z=ma("indexLabelOrientation",m.dataPoint,m.dataSeries),D=ma("indexLabelTextAlign",m.dataPoint,m.dataSeries),v=m.direction,e=m.dataSeries.axisX,f=m.dataSeries.axisY,A=!1,h=new ja(d,{x:0,y:0,maxWidth:q?q:0.5*this.width,maxHeight:g?5*s:1.5*s,angle:"horizontal"===z?0:-90,text:H,padding:0,backgroundColor:h,textAlign:D,fontSize:s,fontFamily:t,fontWeight:k,fontColor:l,fontStyle:C,textBaseline:"middle"});
298
+ h.measureText();m.dataSeries.indexLabelMaxWidth=h.maxWidth;if("stackedarea100"===n){if(m.point.x<c.x1||m.point.x>c.x2||m.point.y<c.y1-1||m.point.y>c.y2+1)continue}else if("rangearea"===n||"rangesplinearea"===n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||Math.max.apply(null,m.dataPoint.y)<f.viewportMinimum||Math.min.apply(null,m.dataPoint.y)>f.viewportMaximum)continue}else if(0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("bubble")||0<=n.indexOf("scatter")){if(m.dataPoint.x<
299
+ e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||m.dataPoint.y<f.viewportMinimum||m.dataPoint.y>f.viewportMaximum)continue}else if(0<=n.indexOf("column")||"waterfall"===n||"error"===n&&!m.axisSwapped){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||m.bounds.y1>c.y2||m.bounds.y2<c.y1)continue}else if(0<=n.indexOf("bar")||"error"===n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||m.bounds.x1>c.x2||m.bounds.x2<c.x1)continue}else if("candlestick"===n||"ohlc"===
300
+ n){if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum||Math.max.apply(null,m.dataPoint.y)<f.viewportMinimum||Math.min.apply(null,m.dataPoint.y)>f.viewportMaximum)continue}else if(m.dataPoint.x<e.viewportMinimum||m.dataPoint.x>e.viewportMaximum)continue;l=t=2;"horizontal"===z?(C=h.width,k=h.height):(k=h.width,C=h.height);if("normal"===this.plotInfo.axisPlacement){if(0<=n.indexOf("line")||0<=n.indexOf("area"))x="auto",t=4;else if(0<=n.indexOf("stacked"))"auto"===x&&(x="inside");else if("bubble"===
301
+ n||"scatter"===n)x="inside";q=m.point.x-("horizontal"===z?C/2:C/2-s/2);"inside"!==x?(e=c.y1,f=c.y2,0<v?(g=m.point.y+("horizontal"===z?s/2:0)-k-t-b,g<e&&(g="auto"===x?Math.max(m.point.y,e)+s/2+t:e+s/2+t,A=g+k>m.point.y)):(g=m.point.y+s/2+t+b,g>f-k&&(g="auto"===x?Math.min(m.point.y,f)+s/2-k-t:f+s/2-k,A=g<m.point.y))):(e=Math.max(m.bounds.y1,c.y1),f=Math.min(m.bounds.y2,c.y2-k+s/2),b=0<=n.indexOf("range")||"error"===n?0<v?Math.max(m.bounds.y1,c.y1)+s/2+t:Math.min(m.bounds.y2,c.y2)+s/2-k+t:(Math.max(m.bounds.y1,
302
+ c.y1)+Math.min(m.bounds.y2,c.y2))/2-k/2+s/2+("horizontal"===z?t:0),0<v?(g=Math.max(m.point.y,b),g<e&&("bubble"===n||"scatter"===n)&&(g=Math.max(m.point.y-k-t,c.y1+t))):(g=Math.min(m.point.y,b),g>f-k-t&&("bubble"===n||"scatter"===n)&&(g=Math.min(m.point.y+t,c.y2-k-t))),g=Math.min(g,f))}else 0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("scatter")?(x="auto",l=4):0<=n.indexOf("stacked")?"auto"===x&&(x="inside"):"bubble"===n&&(x="inside"),g=m.point.y+s/2-k/2+t,"inside"!==x?(e=c.x1,f=c.x2,0>
303
+ v?(q=m.point.x-("horizontal"===z?C:C-s/2)-l-b,q<e&&(q="auto"===x?Math.max(m.point.x,e)+l:e+l,A=q+C>m.point.x)):(q=m.point.x+("horizontal"===z?0:s/2)+l+b,q>f-C-l-b&&(q="auto"===x?Math.min(m.point.x,f)-("horizontal"===z?C:C/2)-l:f-C-l,A=q<m.point.x))):(e=Math.max(m.bounds.x1,c.x1),Math.min(m.bounds.x2,c.x2),b=0<=n.indexOf("range")||"error"===n?0>v?Math.max(m.bounds.x1,c.x1)+s/2+l:Math.min(m.bounds.x2,c.x2)-C/2-l+("horizontal"===z?0:s/2):(Math.max(m.bounds.x1,c.x1)+Math.min(m.bounds.x2,c.x2))/2+("horizontal"===
304
+ z?0:s/2),q=0>v?Math.max(m.point.x,b)-("horizontal"===z?C/2:0):Math.min(m.point.x,b)-C/2,q=Math.max(q,e));"vertical"===z&&(g+=k-s/2);h.x=q;h.y=g;h.render(!0);p&&("inside"!==x&&(0>n.indexOf("bar")&&("error"!==n||!m.axisSwapped)&&m.point.x>c.x1&&m.point.x<c.x2||!A)&&(0>n.indexOf("column")&&("error"!==n||m.axisSwapped)&&m.point.y>c.y1&&m.point.y<c.y2||!A))&&(d.lineWidth=p,d.strokeStyle=u?u:"gray",d.setLineDash&&d.setLineDash(J(ba,p)),d.beginPath(),d.moveTo(m.point.x,m.point.y),0<=n.indexOf("bar")||"error"===
305
+ n&&m.axisSwapped?d.lineTo(q+(0<m.direction?-l:C+l)+("vertical"===z?-s/2:0),g+("vertical"===z?-k/2:k/2-s/2)-t):0<=n.indexOf("column")||"error"===n&&!m.axisSwapped?d.lineTo(q+C/2-("horizontal"===z?0:s/2),g+("vertical"===z?(g-k<m.point.y?0:-k)+t:(g-s/2<m.point.y?k:0)-s/2)):0<=n.indexOf("waterfall")?d.lineTo(q+C/2-("horizontal"===z?0:s/2),"vertical"===z?0<v&&g<m.point.y?g:0>v&&g-k>m.point.y?g-k:m.point.y:0<v&&g+k-s/2<m.point.y?g+k-s/2:0>v&&g-s/2>m.point.y?g-s/2-2:m.point.y):d.lineTo(q+C/2-("horizontal"===
306
+ z?0:s/2),g+("vertical"===z?g-k<m.point.y?0:-k:(g+k<m.point.y?k:0)-s/2)),d.stroke())}}d={source:d,dest:this.plotArea.ctx,animationCallback:M.fadeInAnimation,easingFunction:M.easing.easeInQuad,animationBase:0,startTimePercent:0.7};for(a=0;a<this._indexLabels.length;a++)m=this._indexLabels[a],h=ma("indexLabelBackgroundColor",m.dataPoint,m.dataSeries),m.dataSeries.indexLabelBackgroundColor=r(h)?w?"transparent":null:h;return d};p.prototype.renderLine=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx,
307
+ c=w?this._preRenderCtx:d;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;c.save();var e=this.plotArea;c.beginPath();c.rect(e.x1,e.y1,e.width,e.height);c.clip();for(var f=[],l,t=0;t<a.dataSeriesIndexes.length;t++){var C=a.dataSeriesIndexes[t],k=this.data[C];c.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(c.setLineDash){var q=J(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,g=J(n,k.lineThickness);c.setLineDash(g)}var s=k.id;this._eventManager.objectMap[s]=
308
+ {objectType:"dataSeries",dataSeriesIndex:C};s=X(s);b.strokeStyle=s;b.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var s=k._colorSet,h=s=k.lineColor=k.options.lineColor?k.options.lineColor:s[0];c.strokeStyle=s;var r=!0,u=0,p,x;c.beginPath();if(0<m.length){for(var z=!1,u=0;u<m.length;u++)if(p=m[u].x.getTime?m[u].x.getTime():m[u].x,!(p<a.axisX.dataInfo.viewPortMin||p>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!z)))if("number"!==typeof m[u].y)0<u&&!(k.connectNullData||z||r)&&(c.stroke(),
309
+ w&&b.stroke()),z=!0;else{p=a.axisX.convertValueToPixel(p);x=a.axisY.convertValueToPixel(m[u].y);var H=k.dataPointIds[u];this._eventManager.objectMap[H]={id:H,objectType:"dataPoint",dataSeriesIndex:C,dataPointIndex:u,x1:p,y1:x};r||z?(!r&&k.connectNullData?(c.setLineDash&&(k.options.nullDataLineDashType||n===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(c.stroke(),c.beginPath(),c.moveTo(l.x,l.y),n=k.nullDataLineDashType,c.setLineDash(q)),c.lineTo(p,x),w&&b.lineTo(p,x)):(c.beginPath(),c.moveTo(p,
310
+ x),w&&(b.beginPath(),b.moveTo(p,x))),z=r=!1):(c.lineTo(p,x),w&&b.lineTo(p,x),0==u%500&&(c.stroke(),c.beginPath(),c.moveTo(p,x),w&&(b.stroke(),b.beginPath(),b.moveTo(p,x))));l={x:p,y:x};u<m.length-1&&(h!==(m[u].lineColor||s)||n!==(m[u].lineDashType||k.lineDashType))&&(c.stroke(),c.beginPath(),c.moveTo(p,x),h=m[u].lineColor||s,c.strokeStyle=h,c.setLineDash&&(m[u].lineDashType?(n=m[u].lineDashType,c.setLineDash(J(n,k.lineThickness))):(n=k.lineDashType,c.setLineDash(g))));if(0!==m[u].markerSize&&(0<m[u].markerSize||
311
+ 0<k.markerSize)){var D=k.getMarkerProperties(u,p,x,c);f.push(D);H=X(H);w&&f.push({x:p,y:x,ctx:b,type:D.type,size:D.size,color:H,borderColor:H,borderThickness:D.borderThickness})}(m[u].indexLabel||k.indexLabel||m[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"line",dataPoint:m[u],dataSeries:k,point:{x:p,y:x},direction:0>m[u].y===a.axisY.reversed?1:-1,color:s})}c.stroke();w&&b.stroke()}}W.drawMarkers(f);w&&(d.drawImage(this._preRenderCanvas,0,0,this.width,this.height),
312
+ 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(e.x1,e.y1,e.width,e.height),b.beginPath());c.restore();c.beginPath();return{source:d,dest:this.plotArea.ctx,animationCallback:M.xClipAnimation,easingFunction:M.easing.linear,animationBase:0}}};
313
+ p.prototype.renderStepLine=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx,c=w?this._preRenderCtx:d;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;c.save();var e=this.plotArea;c.beginPath();c.rect(e.x1,e.y1,e.width,e.height);c.clip();for(var f=[],l,t=0;t<a.dataSeriesIndexes.length;t++){var C=a.dataSeriesIndexes[t],k=this.data[C];c.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(c.setLineDash){var q=J(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,
314
+ g=J(n,k.lineThickness);c.setLineDash(g)}var s=k.id;this._eventManager.objectMap[s]={objectType:"dataSeries",dataSeriesIndex:C};s=X(s);b.strokeStyle=s;b.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var s=k._colorSet,h=s=k.lineColor=k.options.lineColor?k.options.lineColor:s[0];c.strokeStyle=s;var r=!0,u=0,p,x;c.beginPath();if(0<m.length){for(var z=!1,u=0;u<m.length;u++)if(p=m[u].getTime?m[u].x.getTime():m[u].x,!(p<a.axisX.dataInfo.viewPortMin||p>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||
315
+ !z)))if("number"!==typeof m[u].y)0<u&&!(k.connectNullData||z||r)&&(c.stroke(),w&&b.stroke()),z=!0;else{var H=x;p=a.axisX.convertValueToPixel(p);x=a.axisY.convertValueToPixel(m[u].y);var D=k.dataPointIds[u];this._eventManager.objectMap[D]={id:D,objectType:"dataPoint",dataSeriesIndex:C,dataPointIndex:u,x1:p,y1:x};r||z?(!r&&k.connectNullData?(c.setLineDash&&(k.options.nullDataLineDashType||n===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(c.stroke(),c.beginPath(),c.moveTo(l.x,l.y),n=k.nullDataLineDashType,
316
+ c.setLineDash(q)),c.lineTo(p,H),c.lineTo(p,x),w&&(b.lineTo(p,H),b.lineTo(p,x))):(c.beginPath(),c.moveTo(p,x),w&&(b.beginPath(),b.moveTo(p,x))),z=r=!1):(c.lineTo(p,H),w&&b.lineTo(p,H),c.lineTo(p,x),w&&b.lineTo(p,x),0==u%500&&(c.stroke(),c.beginPath(),c.moveTo(p,x),w&&(b.stroke(),b.beginPath(),b.moveTo(p,x))));l={x:p,y:x};u<m.length-1&&(h!==(m[u].lineColor||s)||n!==(m[u].lineDashType||k.lineDashType))&&(c.stroke(),c.beginPath(),c.moveTo(p,x),h=m[u].lineColor||s,c.strokeStyle=h,c.setLineDash&&(m[u].lineDashType?
317
+ (n=m[u].lineDashType,c.setLineDash(J(n,k.lineThickness))):(n=k.lineDashType,c.setLineDash(g))));0!==m[u].markerSize&&(0<m[u].markerSize||0<k.markerSize)&&(H=k.getMarkerProperties(u,p,x,c),f.push(H),D=X(D),w&&f.push({x:p,y:x,ctx:b,type:H.type,size:H.size,color:D,borderColor:D,borderThickness:H.borderThickness}));(m[u].indexLabel||k.indexLabel||m[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"stepLine",dataPoint:m[u],dataSeries:k,point:{x:p,y:x},direction:0>m[u].y===
318
+ a.axisY.reversed?1:-1,color:s})}c.stroke();w&&b.stroke()}}W.drawMarkers(f);w&&(d.drawImage(this._preRenderCanvas,0,0,this.width,this.height),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(e.x1,e.y1,e.width,e.height),b.beginPath());c.restore();
319
+ c.beginPath();return{source:d,dest:this.plotArea.ctx,animationCallback:M.xClipAnimation,easingFunction:M.easing.linear,animationBase:0}}};p.prototype.renderSpline=function(a){function d(a){a=v(a,2);if(0<a.length){b.beginPath();w&&e.beginPath();b.moveTo(a[0].x,a[0].y);a[0].newStrokeStyle&&(b.strokeStyle=a[0].newStrokeStyle);a[0].newLineDashArray&&b.setLineDash(a[0].newLineDashArray);w&&e.moveTo(a[0].x,a[0].y);for(var c=0;c<a.length-3;c+=3)if(b.bezierCurveTo(a[c+1].x,a[c+1].y,a[c+2].x,a[c+2].y,a[c+
320
+ 3].x,a[c+3].y),w&&e.bezierCurveTo(a[c+1].x,a[c+1].y,a[c+2].x,a[c+2].y,a[c+3].x,a[c+3].y),0<c&&0===c%3E3||a[c+3].newStrokeStyle||a[c+3].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(a[c+3].x,a[c+3].y),a[c+3].newStrokeStyle&&(b.strokeStyle=a[c+3].newStrokeStyle),a[c+3].newLineDashArray&&b.setLineDash(a[c+3].newLineDashArray),w&&(e.stroke(),e.beginPath(),e.moveTo(a[c+3].x,a[c+3].y));b.stroke();w&&e.stroke()}}var c=a.targetCanvasCtx||this.plotArea.ctx,b=w?this._preRenderCtx:c;if(!(0>=a.dataSeriesIndexes.length)){var e=
321
321
  this._eventManager.ghostCtx;b.save();var f=this.plotArea;b.beginPath();b.rect(f.x1,f.y1,f.width,f.height);b.clip();for(var l=[],t=0;t<a.dataSeriesIndexes.length;t++){var C=a.dataSeriesIndexes[t],k=this.data[C];b.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(b.setLineDash){var q=J(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,g=J(n,k.lineThickness);b.setLineDash(g)}var s=k.id;this._eventManager.objectMap[s]={objectType:"dataSeries",dataSeriesIndex:C};s=X(s);e.strokeStyle=s;e.lineWidth=
322
322
  0<k.lineThickness?Math.max(k.lineThickness,4):0;var s=k._colorSet,h=s=k.lineColor=k.options.lineColor?k.options.lineColor:s[0];b.strokeStyle=s;var r=0,u,p,x=[];b.beginPath();if(0<m.length)for(p=!1,r=0;r<m.length;r++)if(u=m[r].getTime?m[r].x.getTime():m[r].x,!(u<a.axisX.dataInfo.viewPortMin||u>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!p)))if("number"!==typeof m[r].y)0<r&&!p&&(k.connectNullData?b.setLineDash&&(0<x.length&&(k.options.nullDataLineDashType||!m[r-1].lineDashType))&&(x[x.length-
323
323
  1].newLineDashArray=q,n=k.nullDataLineDashType):(d(x),x=[])),p=!0;else{u=a.axisX.convertValueToPixel(u);p=a.axisY.convertValueToPixel(m[r].y);var z=k.dataPointIds[r];this._eventManager.objectMap[z]={id:z,objectType:"dataPoint",dataSeriesIndex:C,dataPointIndex:r,x1:u,y1:p};x[x.length]={x:u,y:p};r<m.length-1&&(h!==(m[r].lineColor||s)||n!==(m[r].lineDashType||k.lineDashType))&&(h=m[r].lineColor||s,x[x.length-1].newStrokeStyle=h,b.setLineDash&&(m[r].lineDashType?(n=m[r].lineDashType,x[x.length-1].newLineDashArray=
@@ -929,7 +929,7 @@ this.chart.requestAnimFrame.call(window,function(){f.animate.call(f)}):this.char
929
929
  d){if(0!==a){var c=d.dest,b=d.source.canvas,e=d.animationBase;c.drawImage(b,0,0,b.width,b.height,e-e*a,0,a*c.canvas.width/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,
930
930
  d,c,b){return c*a/b+d},easeOutQuad:function(a,d,c,b){return-c*(a/=b)*(a-2)+d},easeOutQuart:function(a,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}}},W={drawMarker:function(a,d,c,b,e,f,h,p){if(c){var r=1;c.fillStyle=f?f:"#000000";c.strokeStyle=h?h:"#000000";c.lineWidth=p?p:0;c.setLineDash&&c.setLineDash(J("solid",p));"circle"===b?(c.moveTo(a,d),c.beginPath(),c.arc(a,d,e/2,0,2*Math.PI,!1),f&&c.fill(),
931
931
  p&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r))):"square"===b?(c.beginPath(),c.rect(a-e/2,d-e/2,e,e),f&&c.fill(),p&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r))):"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(),f&&c.fill(),p&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r)),c.beginPath()):
932
- "cross"===b&&(c.strokeStyle=f,c.lineWidth=e/4,c.beginPath(),c.moveTo(a-e/2,d-e/2),c.lineTo(a+e/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];W.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return p}();B.version="v3.7.33 GA";window.CanvasJS&&(B&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=B)})();
932
+ "cross"===b&&(c.strokeStyle=f,c.lineWidth=e/4,c.beginPath(),c.moveTo(a-e/2,d-e/2),c.lineTo(a+e/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];W.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return p}();B.version="v3.7.34 GA";window.CanvasJS&&(B&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=B)})();
933
933
 
934
934
  /*
935
935
  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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvasjs/charts",
3
- "version": "3.7.33",
3
+ "version": "3.7.34",
4
4
  "description": "CanvasJS JavaScript Charts - Official",
5
5
  "main": "canvasjs.min.js",
6
6
  "keywords": [