@canvasjs/charts 3.7.41 → 3.7.42

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 CHANGED
@@ -1,4 +1,4 @@
1
- CanvasJS Chart - v3.7.41 GA - https://canvasjs.com/
1
+ CanvasJS Chart - v3.7.42 GA - https://canvasjs.com/
2
2
  Copyright 2024 fenopix
3
3
 
4
4
  --------------------- License Information --------------------
package/README.md CHANGED
@@ -19,7 +19,7 @@ CanvasJS is a [JavaScript Charting Library](https://canvasjs.com/javascript-char
19
19
 
20
20
  <br/>
21
21
 
22
- ## Links
22
+ ## Important Links
23
23
  - [Official Website](https://canvasjs.com/)
24
24
  - [JavaScript Charts Demo](https://canvasjs.com/javascript-charts/)
25
25
  - [Download CanvasJS](https://canvasjs.com/download-html5-charting-graphing-library/)
@@ -80,13 +80,6 @@ You can download the JavaScript charting library along with examples from our of
80
80
 
81
81
  <br/>
82
82
 
83
- ### Wrappers for Frameworks
84
- * [CanvasJS Angular Charts](https://www.npmjs.com/package/@canvasjs/angular-charts)
85
- * [CanvasJS React Charts](https://www.npmjs.com/package/@canvasjs/react-charts)
86
- * [CanvasJS Vue Charts](https://www.npmjs.com/package/@canvasjs/vue-charts)
87
-
88
- <br/>
89
-
90
83
  #### Interactive JavaScript Charts
91
84
  <a href="https://canvasjs.com/javascript-charts/column-line-area-chart/"><img src="https://canvasjs.com/wp-content/uploads/images/npm/chart-interactivity.gif" alt="JavaScript Interactive Charts"></a>
92
85
 
@@ -102,5 +95,13 @@ You can download the JavaScript charting library along with examples from our of
102
95
 
103
96
  <br/><br/>
104
97
 
98
+ ### Related Chart Packages
99
+ * [React Charts](https://www.npmjs.com/package/@canvasjs/react-charts)
100
+ * [Angular Charts](https://www.npmjs.com/package/@canvasjs/angular-charts)
101
+ * [Vue Charts](https://www.npmjs.com/package/@canvasjs/vue-charts)
102
+ * [jQuery Charts](https://www.npmjs.com/package/@canvasjs/jquery-charts)
103
+
104
+ <br/>
105
+
105
106
  ## License
106
107
  Commercial use of CanvasJS Chart requires a commercial license. Without a commercial license you can use it for evaluation (or demonstrations/testing) purposes. Students, Educational Institutions, Personal Websites using CanvasJS for non-commercial purposes are qualified for the free license. Check out [License Page](https://canvasjs.com/license/) to know more about licenses.
package/canvasjs.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- CanvasJS Chart - v3.7.41 GA - https://canvasjs.com/
2
+ CanvasJS Chart - v3.7.42 GA - https://canvasjs.com/
3
3
  Copyright 2024 fenopix
4
4
 
5
5
  --------------------- License Information --------------------
@@ -505,7 +505,7 @@ f.length,k=f[k],a=f[(a+1+f.length)%f.length],"right"===n.hemisphere&&"left"===k.
505
505
  u;if(0>A){for(var z=r=0,B=0;B<m.length;B++)B!==a&&f[B].hemisphere===h.hemisphere&&(f[B].indexLabelTextBlock.y<h.indexLabelTextBlock.y?r++:z++);r=A/(r+z||1)*z;var z=-1*(A-r),K=B=0;"right"===h.hemisphere?(B=g(a,r),z=-1*(A-B),K=g(t,z),+K.toFixed(w)<+z.toFixed(w)&&+B.toFixed(w)<=+r.toFixed(w)&&g(a,-(z-K))):(B=g(t,r),z=-1*(A-B),K=g(a,z),+K.toFixed(w)<+z.toFixed(w)&&+B.toFixed(w)<=+r.toFixed(w)&&g(t,-(z-K)))}}}}else for(a=0;a<m.length;a++)h=f[a],y="pie"===k.type?0.7*C:0.85*C,t=v.x+y*Math.cos(h.midAngle),
506
506
  r=v.y+y*Math.sin(h.midAngle),h.indexLabelTextBlock.x=t,h.indexLabelTextBlock.y=r;for(a=0;a<m.length;a++)if(h=f[a],t=h.indexLabelTextBlock.measureText(),0!==t.height&&0!==t.width)t=t=0,"right"===h.hemisphere?(t=q.x2-(h.indexLabelTextBlock.x+h.indexLabelTextBlock.width+n),t*=-1):t=q.x1-(h.indexLabelTextBlock.x-h.indexLabelTextBlock.width-n),0<t&&(!p&&h.indexLabelText&&(r="right"===h.hemisphere?q.x2-h.indexLabelTextBlock.x:h.indexLabelTextBlock.x-q.x1,0.3*h.indexLabelTextBlock.maxWidth>r?h.indexLabelText=
507
507
  "":h.indexLabelTextBlock.maxWidth=0.85*r,0.3*h.indexLabelTextBlock.maxWidth<r&&(h.indexLabelTextBlock.x-="right"===h.hemisphere?2:-2)),Math.abs(h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2-v.y)<C||Math.abs(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2-v.y)<C)&&(t/=Math.abs(Math.cos(h.indexLabelAngle)),9<t&&(t*=0.3),t>e&&(e=t)),t=t=0,0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?(t=q.y2-(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2+5),t*=-1):t=q.y1-(h.indexLabelTextBlock.y-
508
- h.indexLabelTextBlock.height/2-5),0<t&&(!p&&h.indexLabelText&&(r=0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?-1:1,0===g(a,t*r)&&g(a,2*r)),Math.abs(h.indexLabelTextBlock.x-v.x)<C&&(t/=Math.abs(Math.sin(h.indexLabelAngle)),9<t&&(t*=0.3),t>e&&(e=t)));var O=function(a,b,c){for(var d=[],e=0;d.push(f[b]),b!==c;b=(b+1+m.length)%m.length);d.sort(function(a,b){return a.y-b.y});for(b=0;b<d.length;b++)if(c=d[b],e<0.7*a)e+=c.indexLabelTextBlock.height,c.indexLabelTextBlock.text="",c.indexLabelText="",c.indexLabelTextBlock.measureText();
508
+ h.indexLabelTextBlock.height/2-5),0<t&&(!p&&h.indexLabelText&&(r=0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?-1:1,0===g(a,t*r)&&g(a,2*r)),Math.abs(h.indexLabelTextBlock.x-v.x)<C&&(t/=Math.abs(Math.sin(h.indexLabelAngle)),9<t&&(t*=0.3),t>e&&(e=t)));var O=function(a,b,c){for(var e=[],d=0;e.push(f[b]),b!==c;b=(b+1+m.length)%m.length);e.sort(function(a,b){return a.y-b.y});for(b=0;b<e.length;b++)if(c=e[b],d<0.7*a)d+=c.indexLabelTextBlock.height,c.indexLabelTextBlock.text="",c.indexLabelText="",c.indexLabelTextBlock.measureText();
509
509
  else break};(function(){for(var a=-1,c=-1,e=0,g=!1,p=0;p<m.length;p++)if(g=!1,s=f[p],s.indexLabelText){var k=d(p);if(null!==k){var h=f[k];A=0;A=b(s,h);var l;if(l=0>A){l=s.indexLabelTextBlock.x;var q=s.indexLabelTextBlock.y-s.indexLabelTextBlock.height/2,r=s.indexLabelTextBlock.y+s.indexLabelTextBlock.height/2,t=h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2,v=h.indexLabelTextBlock.x+h.indexLabelTextBlock.width,D=h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2;l=s.indexLabelTextBlock.x+
510
510
  s.indexLabelTextBlock.width<h.indexLabelTextBlock.x-n||l>v+n||q>D+n||r<t-n?!1:!0}l?(0>a&&(a=p),k!==a&&(c=k,e+=-A),0===p%Math.max(m.length/10,3)&&(g=!0)):g=!0;g&&(0<e&&0<=a&&0<=c)&&(O(e,a,c),c=a=-1,e=0)}}0<e&&O(e,a,c)})()}}function h(){l.plotArea.layoutManager.reset();l.title&&(l.title.dockInsidePlotArea||"center"===l.title.horizontalAlign&&"center"===l.title.verticalAlign)&&l.title.render();if(l.subtitles)for(var a=0;a<l.subtitles.length;a++){var b=l.subtitles[a];(b.dockInsidePlotArea||"center"===
511
511
  b.horizontalAlign&&"center"===b.verticalAlign)&&b.render()}l.legend&&(l.legend.dockInsidePlotArea||"center"===l.legend.horizontalAlign&&"center"===l.legend.verticalAlign)&&(l.legend.setLayout(),l.legend.render())}var l=this;if(!(0>=a.dataSeriesIndexes.length)){var k=this.data[a.dataSeriesIndexes[0]],m=k.dataPoints,n=10,q=this.plotArea,f=k.dataPointEOs,u=2,y,x=1.3,t=20/180*Math.PI,w=6,v={x:(q.x2+q.x1)/2,y:(q.y2+q.y1)/2},A=0;a=!1;for(var z=0;z<m.length;z++)A+=Math.abs(m[z].y),!a&&("undefined"!==typeof m[z].indexLabel&&
@@ -514,8 +514,8 @@ C;"doughnut"===k.type&&(k.innerRadius=E);var G=Math.min(E/C,(C-1)/C);this.pieDou
514
514
  0,function(a){var b=l.plotArea.ctx;b.clearRect(q.x1,q.y1,q.width,q.height);b.fillStyle=l.backgroundColor;b.fillRect(q.x1,q.y1,q.width,q.height);for(var b=f[0].startAngle+2*Math.PI*a,c=0;c<m.length;c++){var e=0===c?f[c].startAngle:d,d=e+(f[c].endAngle-f[c].startAngle),g=!1;d>b&&(d=b,g=!0);var p=m[c].color?m[c].color:k._colorSet[c%k._colorSet.length];d>e&&pa(l.plotArea.ctx,f[c].center,f[c].radius,p,k.type,e,d,k.fillOpacity,f[c].percentInnerRadius);if(g)break}h();l.dispatchEvent("dataAnimationIterationEnd",
515
515
  {chart:l});1<=a&&l.dispatchEvent("dataAnimationEnd",{chart:l})},function(){l.disableToolTip=!1;l._animator.animate(0,l.animatedRender?500:0,function(a){c(a,!1);h();l.dispatchEvent("dataAnimationIterationEnd",{chart:l})});l.dispatchEvent("dataAnimationEnd",{chart:l})})}}};var ra=function(a,e,c,b){"undefined"===typeof c&&(c=1);0>=Math.round(e.y4-e.y1)||(a.save(),a.globalAlpha=c,a.beginPath(),a.moveTo(Math.round(e.x1),Math.round(e.y1)),a.lineTo(Math.round(e.x2),Math.round(e.y2)),a.lineTo(Math.round(e.x3),
516
516
  Math.round(e.y3)),a.lineTo(Math.round(e.x4),Math.round(e.y4)),"undefined"!==e.x5&&(a.lineTo(Math.round(e.x5),Math.round(e.y5)),a.lineTo(Math.round(e.x6),Math.round(e.y6))),a.closePath(),a.fillStyle=b?b:e.color,a.fill(),a.globalAplha=1,a.restore())};l.prototype.renderFunnel=function(a){function e(){for(var a=0,b=[],c=0;c<w.length;c++){if("undefined"===typeof w[c].y)return-1;w[c].y="number"===typeof w[c].y?w[c].y:0;a+=Math.abs(w[c].y)}if(0===a)return-1;for(c=b[0]=0;c<w.length;c++)b.push(Math.abs(w[c].y)*
517
- E/a);return b}function c(){var a=V,b=X,c=O,d=Z,e,f;e=L;f=R-Q;d=Math.abs((f-e)*(b-a+(d-c))/2);c=Z-O;e=f-e;f=c*(f-R);f=Math.abs(f);f=d+f;for(var d=[],g=0,p=0;p<w.length;p++){if("undefined"===typeof w[p].y)return-1;w[p].y="number"===typeof w[p].y?w[p].y:0;g+=Math.abs(w[p].y)}if(0===g)return-1;for(var k=d[0]=0,h=0,m,n,b=b-a,k=!1,p=0;p<w.length;p++)a=Math.abs(w[p].y)*f/g,k?m=0==Number(c.toFixed(3))?0:a/c:(n=ba*ba*b*b-4*Math.abs(ba)*a,0>n?(n=c,k=(b+n)*(e-h)/2,a-=k,m=e-h,h+=e-h,m+=0==n?0:a/n,h+=a/n,k=!0):
518
- (m=(Math.abs(ba)*b-Math.sqrt(n))/2,n=b-2*m/Math.abs(ba),h+=m,h>e&&(h-=m,n=c,k=(b+n)*(e-h)/2,a-=k,m=e-h,h+=e-h,m+=a/n,h+=a/n,k=!0),b=n)),d.push(m);return d}function b(){if(t&&w){for(var a,b,c,e,d,g,p,k,h,m,n,l,q,s,v,D=[],y=[],A={percent:null,total:null},z=null,F=0;F<w.length;F++)v=T[F],v="undefined"!==typeof v.x5?(v.y2+v.y4)/2:(v.y2+v.y3)/2,v=f(v).x2+1,D[F]=M-v-Y;v=0.5*Y;for(var F=0,B=w.length-1;F<w.length||0<=B;F++,B--){b=t.reversed?w[B]:w[F];a=b.color?b.color:t.reversed?t._colorSet[(w.length-1-F)%
517
+ E/a);return b}function c(){var a=V,b=X,c=O,e=Z,d,f;d=L;f=R-Q;e=Math.abs((f-d)*(b-a+(e-c))/2);c=Z-O;d=f-d;f=c*(f-R);f=Math.abs(f);f=e+f;for(var e=[],g=0,p=0;p<w.length;p++){if("undefined"===typeof w[p].y)return-1;w[p].y="number"===typeof w[p].y?w[p].y:0;g+=Math.abs(w[p].y)}if(0===g)return-1;for(var k=e[0]=0,h=0,m,n,b=b-a,k=!1,p=0;p<w.length;p++)a=Math.abs(w[p].y)*f/g,k?m=0==Number(c.toFixed(3))?0:a/c:(n=ba*ba*b*b-4*Math.abs(ba)*a,0>n?(n=c,k=(b+n)*(d-h)/2,a-=k,m=d-h,h+=d-h,m+=0==n?0:a/n,h+=a/n,k=!0):
518
+ (m=(Math.abs(ba)*b-Math.sqrt(n))/2,n=b-2*m/Math.abs(ba),h+=m,h>d&&(h-=m,n=c,k=(b+n)*(d-h)/2,a-=k,m=d-h,h+=d-h,m+=a/n,h+=a/n,k=!0),b=n)),e.push(m);return e}function b(){if(t&&w){for(var a,b,c,e,d,g,p,k,h,m,n,l,q,s,v,D=[],y=[],A={percent:null,total:null},z=null,F=0;F<w.length;F++)v=T[F],v="undefined"!==typeof v.x5?(v.y2+v.y4)/2:(v.y2+v.y3)/2,v=f(v).x2+1,D[F]=M-v-Y;v=0.5*Y;for(var F=0,B=w.length-1;F<w.length||0<=B;F++,B--){b=t.reversed?w[B]:w[F];a=b.color?b.color:t.reversed?t._colorSet[(w.length-1-F)%
519
519
  t._colorSet.length]:t._colorSet[F%t._colorSet.length];c=b.indexLabelPlacement||t.indexLabelPlacement||"outside";s=b.indexLabelTextAlign||t.indexLabelTextAlign||"left";e=b.indexLabelBackgroundColor||t.indexLabelBackgroundColor||(u?"transparent":null);d=b.indexLabelFontColor||t.indexLabelFontColor||"#979797";g=r(b.indexLabelFontSize)?t.indexLabelFontSize:b.indexLabelFontSize;p=b.indexLabelFontStyle||t.indexLabelFontStyle||"normal";k=b.indexLabelFontFamily||t.indexLabelFontFamily||"arial";h=b.indexLabelFontWeight||
520
520
  t.indexLabelFontWeight||"normal";a=b.indexLabelLineColor||t.options.indexLabelLineColor||a;m="number"===typeof b.indexLabelLineThickness?b.indexLabelLineThickness:"number"===typeof t.indexLabelLineThickness?t.indexLabelLineThickness:2;n=b.indexLabelLineDashType||t.indexLabelLineDashType||"solid";l="undefined"!==typeof b.indexLabelWrap?b.indexLabelWrap:"undefined"!==typeof t.indexLabelWrap?t.indexLabelWrap:!0;q=t.dataPointIds[F];x._eventManager.objectMap[q]={id:q,objectType:"dataPoint",dataPointIndex:F,
521
521
  dataSeriesIndex:0,funnelSection:T[t.reversed?w.length-1-F:F]};"inside"===t.indexLabelPlacement&&(D[F]=F!==ea?t.reversed?T[F].x2-T[F].x1:T[F].x3-T[F].x4:T[F].x3-T[F].x6,20>D[F]&&(D[F]=F!==ea?t.reversed?T[F].x3-T[F].x4:T[F].x2-T[F].x1:T[F].x2-T[F].x1,D[F]/=2));q=b.indexLabelMaxWidth?b.indexLabelMaxWidth:t.options.indexLabelMaxWidth?t.indexLabelMaxWidth:D[F];if(q>D[F]||0>q)q=D[F];y[F]="inside"===t.indexLabelPlacement?l?Math.max(T[F].height,g):1.5*g:!1;A=x.getPercentAndTotal(t,b);if(t.indexLabelFormatter||
@@ -891,46 +891,45 @@ g.size=Math.max(1.5*g.size<<0,10),g.borderColor=g.borderColor||"#FFFFFF",g.borde
891
891
  "white",g.borderColor="white",e.globalAlpha=0.3,Z.drawMarkers([g]),e.globalAlpha=1):"column"===b.type||"stackedColumn"===b.type||"stackedColumn100"===b.type||"bar"===b.type||"rangeBar"===b.type||"stackedBar"===b.type||"stackedBar100"===b.type||"rangeColumn"===b.type||"waterfall"===b.type?$(e,d.x1,d.y1,d.x2,d.y2,"white",0,null,!1,!1,!1,!1,0.3):"pie"===b.type||"doughnut"===b.type?pa(e,d.center,d.radius,"white",b.type,d.startAngle,d.endAngle,0.3,d.percentInnerRadius):"funnel"===b.type||"pyramid"===b.type?
892
892
  ra(e,d.funnelSection,0.3,"white"):"candlestick"===b.type?(e.globalAlpha=1,e.strokeStyle=d.color,e.lineWidth=2*d.borderThickness,b=0===e.lineWidth%2?0:0.5,e.beginPath(),e.moveTo(d.x3-b,Math.min(d.y2,d.y3)),e.lineTo(d.x3-b,Math.min(d.y1,d.y4)),e.stroke(),e.beginPath(),e.moveTo(d.x3-b,Math.max(d.y1,d.y4)),e.lineTo(d.x3-b,Math.max(d.y2,d.y3)),e.stroke(),$(e,d.x1,Math.min(d.y1,d.y4),d.x2,Math.max(d.y1,d.y4),"transparent",2*d.borderThickness,d.color,!1,!1,!1,!1),e.globalAlpha=1):"ohlc"===b.type?(e.globalAlpha=
893
893
  1,e.strokeStyle=d.color,e.lineWidth=2*d.borderThickness,b=0===e.lineWidth%2?0:0.5,e.beginPath(),e.moveTo(d.x3-b,d.y2),e.lineTo(d.x3-b,d.y3),e.stroke(),e.beginPath(),e.moveTo(d.x3,d.y1),e.lineTo(d.x1,d.y1),e.stroke(),e.beginPath(),e.moveTo(d.x3,d.y4),e.lineTo(d.x2,d.y4),e.stroke(),e.globalAlpha=1):"boxAndWhisker"===b.type?(e.save(),e.globalAlpha=1,e.strokeStyle=d.stemColor,e.lineWidth=2*d.stemThickness,0<d.stemThickness&&(e.beginPath(),e.moveTo(d.x3,d.y2+d.borderThickness/2),e.lineTo(d.x3,d.y1+d.whiskerThickness/
894
- 2),e.stroke(),e.beginPath(),e.moveTo(d.x3,d.y4-d.whiskerThickness/2),e.lineTo(d.x3,d.y3-d.borderThickness/2),e.stroke()),e.beginPath(),$(e,d.x1-d.borderThickness/2,Math.max(d.y2+d.borderThickness/2,d.y3+d.borderThickness/2),d.x2+d.borderThickness/2,Math.min(d.y2-d.borderThickness/2,d.y3-d.borderThickness/2),"transparent",d.borderThickness,d.color,!1,!1,!1,!1),e.globalAlpha=1,e.strokeStyle=d.whiskerColor,e.lineWidth=2*d.whiskerThickness,0<d.whiskerThickness&&(e.beginPath(),e.moveTo(Math.floor(d.x3-
895
- d.whiskerLength/2),d.y4),e.lineTo(Math.ceil(d.x3+d.whiskerLength/2),d.y4),e.stroke(),e.beginPath(),e.moveTo(Math.floor(d.x3-d.whiskerLength/2),d.y1),e.lineTo(Math.ceil(d.x3+d.whiskerLength/2),d.y1),e.stroke()),e.globalAlpha=1,e.strokeStyle=d.lineColor,e.lineWidth=2*d.lineThickness,0<d.lineThickness&&(e.beginPath(),e.moveTo(d.x1,d.y5),e.lineTo(d.x2,d.y5),e.stroke()),e.restore(),e.globalAlpha=1):"error"===b.type&&E(e,d.x1,d.y1,d.x2,d.y2,"white",d.whiskerProperties,d.stemProperties,d.isXYSwapped,0.3))}}e.restore();
896
- e.globalAlpha=1;e.beginPath()};W.prototype.getToolTipInnerHTML=function(a){a=a.entries;var e=null,c=null,b=null,d=0,g="";this.isToolTipDefinedInData=!0;for(var h=0;h<a.length;h++)if(a[h].dataSeries.toolTipContent||a[h].dataPoint.toolTipContent){this.isToolTipDefinedInData=!1;break}if(this.isToolTipDefinedInData&&(this.content&&"function"===typeof this.content||this.contentFormatter))a={chart:this.chart,toolTip:this.options,entries:a},e=this.contentFormatter?this.contentFormatter(a):this.content(a);
897
- else if(this.shared&&"none"!==this.chart.plotInfo.axisPlacement){for(var l=null,r="",h=0;h<a.length;h++){c=a[h].dataSeries;b=a[h].dataPoint;d=a[h].index;g="";if(0===h&&this.isToolTipDefinedInData&&!this.content){this.chart.axisX&&0<this.chart.axisX.length?r+="undefined"!==typeof this.chart.axisX[0].labels[b.x]?this.chart.axisX[0].labels[b.x]:"{x}":this.chart.axisX2&&0<this.chart.axisX2.length&&(r+="undefined"!==typeof this.chart.axisX2[0].labels[b.x]?this.chart.axisX2[0].labels[b.x]:"{x}");r+="</br>";
898
- if(!c.visible)continue;r=this.chart.replaceKeywordsWithValue(r,b,c,d)}null===b.toolTipContent||"undefined"===typeof b.toolTipContent&&null===c.options.toolTipContent||("line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"stackedBar"===c.type||"stackedBar100"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type||"waterfall"===
899
- c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y}",l=c.axisXIndex):"bubble"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":
900
- "X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}"):"rangeColumn"===c.type||"rangeBar"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type||"error"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":
901
- ""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y[0]},&nbsp;{y[1]}"):"candlestick"===c.type||"ohlc"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&
902
- "function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low:&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}"):"boxAndWhisker"===c.type&&(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==
903
- typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span><br/>Minimum: &nbsp;{y[0]}<br/>Q1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}"),null===e&&(e=""),c.visible&&(!0===this.reversed?(e=this.chart.replaceKeywordsWithValue(g,
904
- b,c,d)+e,h<a.length-1&&(e="</br>"+e)):(e+=this.chart.replaceKeywordsWithValue(g,b,c,d),h<a.length-1&&(e+="</br>"))))}null!==e&&(e=r+e)}else{c=a[0].dataSeries;b=a[0].dataPoint;d=a[0].index;if(null===b.toolTipContent||"undefined"===typeof b.toolTipContent&&null===c.options.toolTipContent)return null;"line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===
905
- c.type||"stackedBar"===c.type||"stackedBar100"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type||"waterfall"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+":</span>&nbsp;&nbsp;{y}":"bubble"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?
906
- this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+":</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}":"pie"===c.type||"doughnut"===c.type||"funnel"===c.type||"pyramid"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.name?"{name}:</span>&nbsp;&nbsp;":b.label?"{label}:</span>&nbsp;&nbsp;":
907
- "</span>")+"{y}":"rangeColumn"===c.type||"rangeBar"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type||"error"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+" :</span>&nbsp;&nbsp;{y[0]}, &nbsp;{y[1]}":"candlestick"===c.type||"ohlc"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:
908
- this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+"</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low: &nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}":"boxAndWhisker"===c.type&&(g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?
909
- "":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+"</span><br/>Minimum: &nbsp;{y[0]}<br/>Q1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}");null===e&&(e="");e+=this.chart.replaceKeywordsWithValue(g,b,c,d)}return e};W.prototype.enableAnimation=function(){if(!this.container.style.WebkitTransition){var a=
910
- this.getContainerTransition(this.containerTransitionDuration);this.container.style.WebkitTransition=a;this.container.style.MsTransition=a;this.container.style.transition=a;this.container.style.MozTransition=this.mozContainerTransition}};W.prototype.disableAnimation=function(){this.container.style.WebkitTransition&&(this.container.style.WebkitTransition="",this.container.style.MozTransition="",this.container.style.MsTransition="",this.container.style.transition="")};W.prototype.hide=function(a){this.container&&
911
- (this.container.style.display="none",this.currentSeriesIndex=-1,this._prevY=this._prevX=NaN,("undefined"===typeof a||a)&&this.chart.resetOverlayedCanvas())};W.prototype.show=function(a,e,c){this._updateToolTip(a,e,"undefined"===typeof c?!1:c)};W.prototype.showAtIndex=function(a,e){};W.prototype.showAtX=function(a,e){if(!this.enabled)return!1;this.chart.clearedOverlayedCanvas=null;var c,b,d,g=[];d=!1;e=!r(e)&&0<=e&&e<this.chart.data.length?e:0;if(this.shared)for(var h=0;h<this.chart.data.length;h++)c=
912
- this.chart.data[h],(b=c.getDataPointAtX(a,!1))&&(b.dataPoint&&!r(b.dataPoint.y)&&c.visible)&&(b.dataSeries=c,g.push(b));else c=this.chart.data[e],(b=c.getDataPointAtX(a,!1))&&(b.dataPoint&&!r(b.dataPoint.y)&&c.visible)&&(b.dataSeries=c,g.push(b));if(0<g.length){for(h=0;h<g.length;h++)if(b=g[h],(this.shared||0<=b.dataSeries.type.indexOf("100"))&&b.dataPoint.x>=b.dataSeries.axisX.viewportMinimum&&b.dataPoint.x<=b.dataSeries.axisX.viewportMaximum){d=!1;break}else if(b.dataPoint.x<b.dataSeries.axisX.viewportMinimum||
913
- b.dataPoint.x>b.dataSeries.axisX.viewportMaximum||b.dataPoint.y<b.dataSeries.axisY.viewportMinimum||b.dataPoint.y>b.dataSeries.axisY.viewportMaximum)d=!0;else{d=!1;break}if(d)return this.hide(),!1;this.highlightObjects(g);this._entries=g;h="";h=this.getToolTipInnerHTML({entries:g});if(null!==h){this.contentDiv.innerHTML=h;if(this.isToolTipDefinedInData&&r(this.options.content)&&r(this.options.contentFormatter))for(b=this.contentDiv.getElementsByTagName("span"),h=0;h<b.length;h++)b[h]&&(b[h].style.color=
914
- b[h].getAttribute("data-color"));h=!1;"none"===this.container.style.display&&(h=!0,this.container.style.display="block");try{this.contentDiv.style.background=this.backgroundColor?this.backgroundColor:u?"rgba(255,255,255,.9)":"rgb(255,255,255)",this.borderColor="waterfall"===g[0].dataSeries.type?this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:0<
915
- g[0].dataPoint.y?g[0].dataSeries.risingColor:g[0].dataSeries.fallingColor:"error"===g[0].dataSeries.type?this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[c.index%g[0].dataSeries._colorSet.length]:this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?
916
- this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[g[0].index%g[0].dataSeries._colorSet.length],this.contentDiv.style.borderWidth=this.borderThickness||0===this.borderThickness?this.borderThickness+"px":"2px",this.contentDiv.style.borderRadius=this.cornerRadius||0===this.cornerRadius?this.cornerRadius+"px":"5px",this.container.style.borderRadius=this.contentDiv.style.borderRadius,this.contentDiv.style.fontSize=this.fontSize||
917
- 0===this.fontSize?this.fontSize+"px":"14px",this.contentDiv.style.color=this.fontColor?this.fontColor:"#000000",this.contentDiv.style.fontFamily=this.fontFamily?this.fontFamily:"Calibri, Arial, Georgia, serif;",this.contentDiv.style.fontWeight=this.fontWeight?this.fontWeight:"normal",this.contentDiv.style.fontStyle=this.fontStyle?this.fontStyle:u?"italic":"normal"}catch(l){}"pie"===g[0].dataSeries.type||"doughnut"===g[0].dataSeries.type||"funnel"===g[0].dataSeries.type||"pyramid"===g[0].dataSeries.type?
918
- c=mouseX-10-this.container.clientWidth:(c="bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||"stackedBar"===g[0].dataSeries.type||"stackedBar100"===g[0].dataSeries.type?g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y)-this.container.clientWidth<<0:g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x)-this.container.clientWidth<<0,c-=10);0>c&&(c+=this.container.clientWidth+20);c+this.container.clientWidth>Math.max(this.chart.container.clientWidth,this.chart.width)&&(c=
919
- Math.max(0,Math.max(this.chart.container.clientWidth,this.chart.width)-this.container.clientWidth));g=1!==g.length||this.shared||"line"!==g[0].dataSeries.type&&"stepLine"!==g[0].dataSeries.type&&"spline"!==g[0].dataSeries.type&&"area"!==g[0].dataSeries.type&&"stepArea"!==g[0].dataSeries.type&&"splineArea"!==g[0].dataSeries.type?"bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||"stackedBar"===g[0].dataSeries.type||"stackedBar100"===g[0].dataSeries.type?g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x):
920
- g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y):g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y);g=-g+10;0<g+this.container.clientHeight+5&&(g-=g+this.container.clientHeight+5-0);this.fixMozTransitionDelay(c,g);!this.animationEnabled||h?this.disableAnimation():(this.enableAnimation(),this.container.style.MozTransition=this.mozContainerTransition);this.container.style.left=c+"px";this.container.style.bottom=g+"px"}else return this.hide(!1),!1}else return this.hide(),!1;return!0};
921
- W.prototype.fixMozTransitionDelay=function(a,e){if(20<this.chart._eventManager.lastObjectId)this.mozContainerTransition=this.getContainerTransition(0);else{var c=parseFloat(this.container.style.left),c=isNaN(c)?0:c,b=parseFloat(this.container.style.bottom),b=isNaN(b)?0:b;10<Math.sqrt(Math.pow(c-a,2)+Math.pow(b-e,2))?this.mozContainerTransition=this.getContainerTransition(0.1):this.mozContainerTransition=this.getContainerTransition(0)}};W.prototype.getContainerTransition=function(a){return"left "+
922
- a+"s ease-out 0s, bottom "+a+"s ease-out 0s"};aa.prototype.reset=function(){this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=[];this.previousDataPointEventObject=null;this.eventObjects=[];u&&(this.ghostCtx.clearRect(0,0,this.chart.width,this.chart.height),this.ghostCtx.beginPath())};aa.prototype.getNewObjectTrackingId=function(){return++this.lastObjectId};aa.prototype.mouseEventHandler=function(a){if("mousemove"===a.type||"click"===a.type){var e=[],c=Pa(a),b=null;if((b=
923
- this.chart.getObjectAtXY(c.x,c.y,!1))&&"undefined"!==typeof this.objectMap[b])if(b=this.objectMap[b],"dataPoint"===b.objectType){var d=this.chart.data[b.dataSeriesIndex],g=d.dataPoints[b.dataPointIndex],h=b.dataPointIndex;b.eventParameter={x:c.x,y:c.y,dataPoint:g,dataSeries:d.options,dataPointIndex:h,dataSeriesIndex:d.index,chart:this.chart};b.eventContext={context:g,userContext:g,mouseover:"mouseover",mousemove:"mousemove",mouseout:"mouseout",click:"click"};e.push(b);b=this.objectMap[d.id];b.eventParameter=
924
- {x:c.x,y:c.y,dataPoint:g,dataSeries:d.options,dataPointIndex:h,dataSeriesIndex:d.index,chart:this.chart};b.eventContext={context:d,userContext:d.options,mouseover:"mouseover",mousemove:"mousemove",mouseout:"mouseout",click:"click"};e.push(this.objectMap[d.id])}else"legendItem"===b.objectType&&(d=this.chart.data[b.dataSeriesIndex],g=null!==b.dataPointIndex?d.dataPoints[b.dataPointIndex]:null,b.eventParameter={x:c.x,y:c.y,dataSeries:d.options,dataPoint:g,dataPointIndex:b.dataPointIndex,dataSeriesIndex:b.dataSeriesIndex,
925
- chart:this.chart},b.eventContext={context:this.chart.legend,userContext:this.chart.legend.options,mouseover:"itemmouseover",mousemove:"itemmousemove",mouseout:"itemmouseout",click:"itemclick"},e.push(b));d=[];for(c=0;c<this.mouseoveredObjectMaps.length;c++){g=!0;for(b=0;b<e.length;b++)if(e[b].id===this.mouseoveredObjectMaps[c].id){g=!1;break}g?this.fireEvent(this.mouseoveredObjectMaps[c],"mouseout",a):d.push(this.mouseoveredObjectMaps[c])}this.mouseoveredObjectMaps=d;for(c=0;c<e.length;c++){d=!1;
926
- for(b=0;b<this.mouseoveredObjectMaps.length;b++)if(e[c].id===this.mouseoveredObjectMaps[b].id){d=!0;break}d||(this.fireEvent(e[c],"mouseover",a),this.mouseoveredObjectMaps.push(e[c]));"click"===a.type?this.fireEvent(e[c],"click",a):"mousemove"===a.type&&this.fireEvent(e[c],"mousemove",a)}}};aa.prototype.fireEvent=function(a,e,c){if(a&&e){var b=a.eventParameter,d=a.eventContext,g=a.eventContext.userContext;g&&(d&&g[d[e]])&&g[d[e]].call(g,b);"mouseout"!==e?g.cursor&&g.cursor!==c.target.style.cursor&&
927
- (c.target.style.cursor=g.cursor):(c.target.style.cursor=this.chart.panEnabled?"itemmouseout"!==d.mouseout||g.dockInsidePlotArea?"move":this.chart._defaultCursor:this.chart._defaultCursor,delete a.eventParameter,delete a.eventContext);"click"===e&&("dataPoint"===a.objectType&&this.chart.pieDoughnutClickHandler)&&this.chart.pieDoughnutClickHandler.call(this.chart.data[a.dataSeriesIndex],b);"click"===e&&("dataPoint"===a.objectType&&this.chart.funnelPyramidClickHandler)&&this.chart.funnelPyramidClickHandler.call(this.chart.data[a.dataSeriesIndex],
894
+ 2),e.stroke(),e.beginPath(),e.moveTo(d.x3,d.y4-d.whiskerThickness/2),e.lineTo(d.x3,d.y3-d.borderThickness/2),e.stroke()),e.beginPath(),$(e,d.x1,Math.max(d.y2,d.y3),d.x2,Math.min(d.y2,d.y3),"transparent",2*d.borderThickness,d.color,!1,!1,!1,!1),e.globalAlpha=1,e.strokeStyle=d.whiskerColor,e.lineWidth=2*d.whiskerThickness,0<d.whiskerThickness&&(e.beginPath(),e.moveTo(Math.floor(d.x3-d.whiskerLength/2),d.y4),e.lineTo(Math.ceil(d.x3+d.whiskerLength/2),d.y4),e.stroke(),e.beginPath(),e.moveTo(Math.floor(d.x3-
895
+ d.whiskerLength/2),d.y1),e.lineTo(Math.ceil(d.x3+d.whiskerLength/2),d.y1),e.stroke()),e.globalAlpha=1,e.strokeStyle=d.lineColor,e.lineWidth=2*d.lineThickness,0<d.lineThickness&&(e.beginPath(),e.moveTo(d.x1,d.y5),e.lineTo(d.x2,d.y5),e.stroke()),e.restore(),e.globalAlpha=1):"error"===b.type&&E(e,d.x1,d.y1,d.x2,d.y2,"white",d.whiskerProperties,d.stemProperties,d.isXYSwapped,0.3))}}e.restore();e.globalAlpha=1;e.beginPath()};W.prototype.getToolTipInnerHTML=function(a){a=a.entries;var e=null,c=null,b=null,
896
+ d=0,g="";this.isToolTipDefinedInData=!0;for(var h=0;h<a.length;h++)if(a[h].dataSeries.toolTipContent||a[h].dataPoint.toolTipContent){this.isToolTipDefinedInData=!1;break}if(this.isToolTipDefinedInData&&(this.content&&"function"===typeof this.content||this.contentFormatter))a={chart:this.chart,toolTip:this.options,entries:a},e=this.contentFormatter?this.contentFormatter(a):this.content(a);else if(this.shared&&"none"!==this.chart.plotInfo.axisPlacement){for(var l=null,r="",h=0;h<a.length;h++){c=a[h].dataSeries;
897
+ b=a[h].dataPoint;d=a[h].index;g="";if(0===h&&this.isToolTipDefinedInData&&!this.content){this.chart.axisX&&0<this.chart.axisX.length?r+="undefined"!==typeof this.chart.axisX[0].labels[b.x]?this.chart.axisX[0].labels[b.x]:"{x}":this.chart.axisX2&&0<this.chart.axisX2.length&&(r+="undefined"!==typeof this.chart.axisX2[0].labels[b.x]?this.chart.axisX2[0].labels[b.x]:"{x}");r+="</br>";if(!c.visible)continue;r=this.chart.replaceKeywordsWithValue(r,b,c,d)}null===b.toolTipContent||"undefined"===typeof b.toolTipContent&&
898
+ null===c.options.toolTipContent||("line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"stackedBar"===c.type||"stackedBar100"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type||"waterfall"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":
899
+ ""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y}",l=c.axisXIndex):"bubble"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?
900
+ this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}"):"rangeColumn"===c.type||"rangeBar"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type||"error"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:
901
+ "<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span>&nbsp;&nbsp;{y[0]},&nbsp;{y[1]}"):"candlestick"===c.type||"ohlc"===c.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low:&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}"):
902
+ "boxAndWhisker"===c.type&&(this.chart.axisX&&1<this.chart.axisX.length&&(g+=l!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),g+=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>{name}:</span><br/>Minimum: &nbsp;{y[0]}<br/>Q1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}"),
903
+ null===e&&(e=""),c.visible&&(!0===this.reversed?(e=this.chart.replaceKeywordsWithValue(g,b,c,d)+e,h<a.length-1&&(e="</br>"+e)):(e+=this.chart.replaceKeywordsWithValue(g,b,c,d),h<a.length-1&&(e+="</br>"))))}null!==e&&(e=r+e)}else{c=a[0].dataSeries;b=a[0].dataPoint;d=a[0].index;if(null===b.toolTipContent||"undefined"===typeof b.toolTipContent&&null===c.options.toolTipContent)return null;"line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||
904
+ "column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"stackedBar"===c.type||"stackedBar100"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type||"waterfall"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+":</span>&nbsp;&nbsp;{y}":"bubble"===c.type?
905
+ g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+":</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}":"pie"===c.type||"doughnut"===c.type||"funnel"===c.type||"pyramid"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?
906
+ "":"'{color}'")+"\"'>"+(b.name?"{name}:</span>&nbsp;&nbsp;":b.label?"{label}:</span>&nbsp;&nbsp;":"</span>")+"{y}":"rangeColumn"===c.type||"rangeBar"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type||"error"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+" :</span>&nbsp;&nbsp;{y[0]}, &nbsp;{y[1]}":"candlestick"===
907
+ c.type||"ohlc"===c.type?g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+"</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low: &nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}":"boxAndWhisker"===c.type&&(g=b.toolTipContent?b.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&
908
+ "function"!==typeof this.content?this.content:"<span data-color='\""+(this.options.fontColor?"":"'{color}'")+"\"'>"+(b.label?"{label}":"{x}")+"</span><br/>Minimum: &nbsp;{y[0]}<br/>Q1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}");null===e&&(e="");e+=this.chart.replaceKeywordsWithValue(g,
909
+ b,c,d)}return e};W.prototype.enableAnimation=function(){if(!this.container.style.WebkitTransition){var a=this.getContainerTransition(this.containerTransitionDuration);this.container.style.WebkitTransition=a;this.container.style.MsTransition=a;this.container.style.transition=a;this.container.style.MozTransition=this.mozContainerTransition}};W.prototype.disableAnimation=function(){this.container.style.WebkitTransition&&(this.container.style.WebkitTransition="",this.container.style.MozTransition="",
910
+ this.container.style.MsTransition="",this.container.style.transition="")};W.prototype.hide=function(a){this.container&&(this.container.style.display="none",this.currentSeriesIndex=-1,this._prevY=this._prevX=NaN,("undefined"===typeof a||a)&&this.chart.resetOverlayedCanvas())};W.prototype.show=function(a,e,c){this._updateToolTip(a,e,"undefined"===typeof c?!1:c)};W.prototype.showAtIndex=function(a,e){};W.prototype.showAtX=function(a,e){if(!this.enabled)return!1;this.chart.clearedOverlayedCanvas=null;
911
+ var c,b,d,g=[];d=!1;e=!r(e)&&0<=e&&e<this.chart.data.length?e:0;if(this.shared)for(var h=0;h<this.chart.data.length;h++)c=this.chart.data[h],(b=c.getDataPointAtX(a,!1))&&(b.dataPoint&&!r(b.dataPoint.y)&&c.visible)&&(b.dataSeries=c,g.push(b));else c=this.chart.data[e],(b=c.getDataPointAtX(a,!1))&&(b.dataPoint&&!r(b.dataPoint.y)&&c.visible)&&(b.dataSeries=c,g.push(b));if(0<g.length){for(h=0;h<g.length;h++)if(b=g[h],(this.shared||0<=b.dataSeries.type.indexOf("100"))&&b.dataPoint.x>=b.dataSeries.axisX.viewportMinimum&&
912
+ b.dataPoint.x<=b.dataSeries.axisX.viewportMaximum){d=!1;break}else if(b.dataPoint.x<b.dataSeries.axisX.viewportMinimum||b.dataPoint.x>b.dataSeries.axisX.viewportMaximum||b.dataPoint.y<b.dataSeries.axisY.viewportMinimum||b.dataPoint.y>b.dataSeries.axisY.viewportMaximum)d=!0;else{d=!1;break}if(d)return this.hide(),!1;this.highlightObjects(g);this._entries=g;h="";h=this.getToolTipInnerHTML({entries:g});if(null!==h){this.contentDiv.innerHTML=h;if(this.isToolTipDefinedInData&&r(this.options.content)&&
913
+ r(this.options.contentFormatter))for(b=this.contentDiv.getElementsByTagName("span"),h=0;h<b.length;h++)b[h]&&(b[h].style.color=b[h].getAttribute("data-color"));h=!1;"none"===this.container.style.display&&(h=!0,this.container.style.display="block");try{this.contentDiv.style.background=this.backgroundColor?this.backgroundColor:u?"rgba(255,255,255,.9)":"rgb(255,255,255)",this.borderColor="waterfall"===g[0].dataSeries.type?this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=
914
+ this.options.borderColor?this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:0<g[0].dataPoint.y?g[0].dataSeries.risingColor:g[0].dataSeries.fallingColor:"error"===g[0].dataSeries.type?this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[c.index%g[0].dataSeries._colorSet.length]:this.contentDiv.style.borderRightColor=
915
+ this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[g[0].index%g[0].dataSeries._colorSet.length],this.contentDiv.style.borderWidth=this.borderThickness||0===this.borderThickness?this.borderThickness+"px":"2px",this.contentDiv.style.borderRadius=this.cornerRadius||0===this.cornerRadius?this.cornerRadius+"px":"5px",this.container.style.borderRadius=
916
+ this.contentDiv.style.borderRadius,this.contentDiv.style.fontSize=this.fontSize||0===this.fontSize?this.fontSize+"px":"14px",this.contentDiv.style.color=this.fontColor?this.fontColor:"#000000",this.contentDiv.style.fontFamily=this.fontFamily?this.fontFamily:"Calibri, Arial, Georgia, serif;",this.contentDiv.style.fontWeight=this.fontWeight?this.fontWeight:"normal",this.contentDiv.style.fontStyle=this.fontStyle?this.fontStyle:u?"italic":"normal"}catch(l){}"pie"===g[0].dataSeries.type||"doughnut"===
917
+ g[0].dataSeries.type||"funnel"===g[0].dataSeries.type||"pyramid"===g[0].dataSeries.type?c=mouseX-10-this.container.clientWidth:(c="bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||"stackedBar"===g[0].dataSeries.type||"stackedBar100"===g[0].dataSeries.type?g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y)-this.container.clientWidth<<0:g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x)-this.container.clientWidth<<0,c-=10);0>c&&(c+=this.container.clientWidth+20);c+this.container.clientWidth>
918
+ Math.max(this.chart.container.clientWidth,this.chart.width)&&(c=Math.max(0,Math.max(this.chart.container.clientWidth,this.chart.width)-this.container.clientWidth));g=1!==g.length||this.shared||"line"!==g[0].dataSeries.type&&"stepLine"!==g[0].dataSeries.type&&"spline"!==g[0].dataSeries.type&&"area"!==g[0].dataSeries.type&&"stepArea"!==g[0].dataSeries.type&&"splineArea"!==g[0].dataSeries.type?"bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||"stackedBar"===g[0].dataSeries.type||"stackedBar100"===
919
+ g[0].dataSeries.type?g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x):g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y):g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y);g=-g+10;0<g+this.container.clientHeight+5&&(g-=g+this.container.clientHeight+5-0);this.fixMozTransitionDelay(c,g);!this.animationEnabled||h?this.disableAnimation():(this.enableAnimation(),this.container.style.MozTransition=this.mozContainerTransition);this.container.style.left=c+"px";this.container.style.bottom=
920
+ g+"px"}else return this.hide(!1),!1}else return this.hide(),!1;return!0};W.prototype.fixMozTransitionDelay=function(a,e){if(20<this.chart._eventManager.lastObjectId)this.mozContainerTransition=this.getContainerTransition(0);else{var c=parseFloat(this.container.style.left),c=isNaN(c)?0:c,b=parseFloat(this.container.style.bottom),b=isNaN(b)?0:b;10<Math.sqrt(Math.pow(c-a,2)+Math.pow(b-e,2))?this.mozContainerTransition=this.getContainerTransition(0.1):this.mozContainerTransition=this.getContainerTransition(0)}};
921
+ W.prototype.getContainerTransition=function(a){return"left "+a+"s ease-out 0s, bottom "+a+"s ease-out 0s"};aa.prototype.reset=function(){this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=[];this.previousDataPointEventObject=null;this.eventObjects=[];u&&(this.ghostCtx.clearRect(0,0,this.chart.width,this.chart.height),this.ghostCtx.beginPath())};aa.prototype.getNewObjectTrackingId=function(){return++this.lastObjectId};aa.prototype.mouseEventHandler=function(a){if("mousemove"===
922
+ a.type||"click"===a.type){var e=[],c=Pa(a),b=null;if((b=this.chart.getObjectAtXY(c.x,c.y,!1))&&"undefined"!==typeof this.objectMap[b])if(b=this.objectMap[b],"dataPoint"===b.objectType){var d=this.chart.data[b.dataSeriesIndex],g=d.dataPoints[b.dataPointIndex],h=b.dataPointIndex;b.eventParameter={x:c.x,y:c.y,dataPoint:g,dataSeries:d.options,dataPointIndex:h,dataSeriesIndex:d.index,chart:this.chart};b.eventContext={context:g,userContext:g,mouseover:"mouseover",mousemove:"mousemove",mouseout:"mouseout",
923
+ click:"click"};e.push(b);b=this.objectMap[d.id];b.eventParameter={x:c.x,y:c.y,dataPoint:g,dataSeries:d.options,dataPointIndex:h,dataSeriesIndex:d.index,chart:this.chart};b.eventContext={context:d,userContext:d.options,mouseover:"mouseover",mousemove:"mousemove",mouseout:"mouseout",click:"click"};e.push(this.objectMap[d.id])}else"legendItem"===b.objectType&&(d=this.chart.data[b.dataSeriesIndex],g=null!==b.dataPointIndex?d.dataPoints[b.dataPointIndex]:null,b.eventParameter={x:c.x,y:c.y,dataSeries:d.options,
924
+ dataPoint:g,dataPointIndex:b.dataPointIndex,dataSeriesIndex:b.dataSeriesIndex,chart:this.chart},b.eventContext={context:this.chart.legend,userContext:this.chart.legend.options,mouseover:"itemmouseover",mousemove:"itemmousemove",mouseout:"itemmouseout",click:"itemclick"},e.push(b));d=[];for(c=0;c<this.mouseoveredObjectMaps.length;c++){g=!0;for(b=0;b<e.length;b++)if(e[b].id===this.mouseoveredObjectMaps[c].id){g=!1;break}g?this.fireEvent(this.mouseoveredObjectMaps[c],"mouseout",a):d.push(this.mouseoveredObjectMaps[c])}this.mouseoveredObjectMaps=
925
+ d;for(c=0;c<e.length;c++){d=!1;for(b=0;b<this.mouseoveredObjectMaps.length;b++)if(e[c].id===this.mouseoveredObjectMaps[b].id){d=!0;break}d||(this.fireEvent(e[c],"mouseover",a),this.mouseoveredObjectMaps.push(e[c]));"click"===a.type?this.fireEvent(e[c],"click",a):"mousemove"===a.type&&this.fireEvent(e[c],"mousemove",a)}}};aa.prototype.fireEvent=function(a,e,c){if(a&&e){var b=a.eventParameter,d=a.eventContext,g=a.eventContext.userContext;g&&(d&&g[d[e]])&&g[d[e]].call(g,b);"mouseout"!==e?g.cursor&&g.cursor!==
926
+ c.target.style.cursor&&(c.target.style.cursor=g.cursor):(c.target.style.cursor=this.chart.panEnabled?"itemmouseout"!==d.mouseout||g.dockInsidePlotArea?"move":this.chart._defaultCursor:this.chart._defaultCursor,delete a.eventParameter,delete a.eventContext);"click"===e&&("dataPoint"===a.objectType&&this.chart.pieDoughnutClickHandler)&&this.chart.pieDoughnutClickHandler.call(this.chart.data[a.dataSeriesIndex],b);"click"===e&&("dataPoint"===a.objectType&&this.chart.funnelPyramidClickHandler)&&this.chart.funnelPyramidClickHandler.call(this.chart.data[a.dataSeriesIndex],
928
927
  b)}};ja.prototype.animate=function(a,e,c,b,d){var g=this;this.chart.isAnimating=!0;d=d||P.easing.linear;c&&this.animations.push({startTime:(new Date).getTime()+(a?a:0),duration:e,animationCallback:c,onComplete:b});for(a=[];0<this.animations.length;)if(e=this.animations.shift(),c=(new Date).getTime(),b=0,e.startTime<=c&&(b=d(Math.min(c-e.startTime,e.duration),0,1,e.duration),b=Math.min(b,1),isNaN(b)||!isFinite(b))&&(b=1),1>b&&a.push(e),e.animationCallback(b),1<=b&&e.onComplete)e.onComplete();this.animations=
929
928
  a;0<this.animations.length?this.animationRequestId=this.chart.requestAnimFrame.call(window,function(){g.animate.call(g)}):this.chart.isAnimating=!1};ja.prototype.cancelAllAnimations=function(){this.animations=[];this.animationRequestId&&this.chart.cancelRequestAnimFrame.call(window,this.animationRequestId);this.animationRequestId=null;this.chart.isAnimating=!1};var P={yScaleAnimation:function(a,e){if(0!==a){var c=e.dest,b=e.source.canvas,d=e.animationBase;c.drawImage(b,0,0,b.width,b.height,0,d-d*
930
929
  a,c.canvas.width/la,a*c.canvas.height/la)}},xScaleAnimation:function(a,e){if(0!==a){var c=e.dest,b=e.source.canvas,d=e.animationBase;c.drawImage(b,0,0,b.width,b.height,d-d*a,0,a*c.canvas.width/la,c.canvas.height/la)}},xClipAnimation:function(a,e){if(0!==a){var c=e.dest,b=e.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,e){if(0!==a){var c=e.dest,b=e.source.canvas;c.save();c.globalAlpha=a;c.drawImage(b,0,0,b.width,
931
930
  b.height,0,0,c.canvas.width/la,c.canvas.height/la);c.restore()}},easing:{linear:function(a,e,c,b){return c*a/b+e},easeOutQuad:function(a,e,c,b){return-c*(a/=b)*(a-2)+e},easeOutQuart:function(a,e,c,b){return-c*((a=a/b-1)*a*a*a-1)+e},easeInQuad:function(a,e,c,b){return c*(a/=b)*a+e},easeInQuart:function(a,e,c,b){return c*(a/=b)*a*a*a+e}}},Z={drawMarker:function(a,e,c,b,d,g,h,l){if(c){var r=1;c.fillStyle=g?g:"#000000";c.strokeStyle=h?h:"#000000";c.lineWidth=l?l:0;c.setLineDash&&c.setLineDash(K("solid",
932
931
  l));"circle"===b?(c.moveTo(a,e),c.beginPath(),c.arc(a,e,d/2,0,2*Math.PI,!1),g&&c.fill(),l&&(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-d/2,e-d/2,d,d),g&&c.fill(),l&&(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-d/2,e+d/2),c.lineTo(a+d/2,e+d/2),c.lineTo(a,e-d/2),c.closePath(),g&&c.fill(),l&&(h?c.stroke():(r=c.globalAlpha,
933
- c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r)),c.beginPath()):"cross"===b&&(c.strokeStyle=g,c.lineWidth=d/4,c.beginPath(),c.moveTo(a-d/2,e-d/2),c.lineTo(a+d/2,e+d/2),c.stroke(),c.moveTo(a+d/2,e-d/2),c.lineTo(a-d/2,e+d/2),c.stroke())}},drawMarkers:function(a){for(var e=0;e<a.length;e++){var c=a[e];Z.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();E.version="v3.7.41 GA";window.CanvasJS&&(E&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=
932
+ c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r)),c.beginPath()):"cross"===b&&(c.strokeStyle=g,c.lineWidth=d/4,c.beginPath(),c.moveTo(a-d/2,e-d/2),c.lineTo(a+d/2,e+d/2),c.stroke(),c.moveTo(a+d/2,e-d/2),c.lineTo(a-d/2,e+d/2),c.stroke())}},drawMarkers:function(a){for(var e=0;e<a.length;e++){var c=a[e];Z.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();E.version="v3.7.42 GA";window.CanvasJS&&(E&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=
934
933
  E)})();
935
934
 
936
935
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvasjs/charts",
3
- "version": "3.7.41",
3
+ "version": "3.7.42",
4
4
  "description": "CanvasJS JavaScript Charts - Official",
5
5
  "main": "canvasjs.min.js",
6
6
  "keywords": [
@@ -9,8 +9,9 @@
9
9
  "javascript graphs",
10
10
  "javascript charting library",
11
11
  "javascript chart library",
12
- "html5 charts",
13
12
  "javascript charts",
13
+ "html5 charts",
14
+ "charts",
14
15
  "graphs",
15
16
  "dataviz",
16
17
  "js charts",