@canvasjs/charts 3.15.2 → 3.15.3
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 +21 -21
- package/package.json +1 -1
package/LICENSE
CHANGED
package/canvasjs.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
CanvasJS Chart - v3.15.
|
|
2
|
+
CanvasJS Chart - v3.15.3 GA - https://canvasjs.com/
|
|
3
3
|
Copyright 2025 fenopix
|
|
4
4
|
|
|
5
5
|
--------------------- License Information --------------------
|
|
@@ -47,10 +47,10 @@ this.bounds={x1:null,y1:null,x2:null,y2:null}}function Za(){this.pool=[]}functio
|
|
|
47
47
|
interactivityEnabled:!0,exportEnabled:!1,exportFileName:"Chart",rangeChanging:null,rangeChanged:null,publicProperties:{title:"readWrite",subtitles:"readWrite",toolbar:"readWrite",toolTip:"readWrite",legend:"readWrite",axisX:"readWrite",axisY:"readWrite",axisX2:"readWrite",axisY2:"readWrite",data:"readWrite",options:"readWrite",bounds:"readOnly",container:"readOnly",selectedColorSet:"readOnly"}},Title:{padding:0,text:null,verticalAlign:"top",horizontalAlign:"center",fontSize:20,fontFamily:"Calibri",
|
|
48
48
|
fontWeight:"normal",fontColor:"black",fontStyle:"normal",borderThickness:0,borderColor:"black",cornerRadius:0,backgroundColor:t?"transparent":null,margin:5,wrap:!0,maxWidth:null,textAlign:"center",dockInsidePlotArea:!1,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},Subtitle:{padding:0,text:null,verticalAlign:"top",horizontalAlign:"center",fontSize:14,fontFamily:"Calibri",fontWeight:"normal",fontColor:"black",fontStyle:"normal",borderThickness:0,borderColor:"black",cornerRadius:0,
|
|
49
49
|
backgroundColor:null,margin:2,wrap:!0,maxWidth:null,textAlign:"center",dockInsidePlotArea:!1,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},Toolbar:{itemBackgroundColor:"white",itemBackgroundColorOnHover:"#2196f3",buttonBorderColor:"#2196f3",buttonBorderThickness:1,fontColor:"black",fontColorOnHover:"white",publicProperties:{options:"readWrite",chart:"readOnly"}},Legend:{name:null,verticalAlign:"center",horizontalAlign:"right",fontSize:14,fontFamily:"calibri",fontWeight:"normal",
|
|
50
|
-
fontColor:"black",fontStyle:"normal",cursor:
|
|
51
|
-
content:null,contentFormatter:null,reversed:!1,backgroundColor:t?"rgba(255,255,255,.9)":"rgb(255,255,255)",borderColor:null,borderThickness:2,cornerRadius:5,fontSize:14,fontColor:"black",fontFamily:"Calibri, Arial, Georgia, serif;",fontWeight:"normal",fontStyle:"italic",updated:null,hidden:null,publicProperties:{options:"readWrite",chart:"readOnly"}},Axis:{minimum:null,maximum:null,viewportMinimum:null,viewportMaximum:null,interval:null,intervalType:null,reversed:!1,logarithmic:!1,
|
|
52
|
-
title:null,titleFontColor:"black",titleFontSize:20,titleFontFamily:"arial",titleFontWeight:"normal",titleFontStyle:"normal",titleWrap:!0,titleMaxWidth:null,titleBackgroundColor:t?"transparent":null,titleBorderColor:t?"transparent":null,titleBorderThickness:0,titleCornerRadius:0,titleTextAlign:"left",titlePadding:0,labelAngle:0,labelFontFamily:"arial",labelFontColor:"black",labelFontSize:12,labelFontWeight:"normal",labelFontStyle:"normal",labelAutoFit:!0,labelWrap:!0,labelMaxWidth:null,
|
|
53
|
-
labelBackgroundColor:t?"transparent":null,labelBorderColor:t?"transparent":null,labelBorderThickness:0,labelPadding:0,labelCornerRadius:0,labelPlacement:"outside",labelTextAlign:"left",prefix:"",suffix:"",includeZero:!1,tickLength:5,tickColor:"black",tickThickness:1,tickPlacement:"outside",lineColor:"black",lineThickness:1,lineDashType:"solid",gridColor:"#A0A0A0",gridThickness:0,gridDashType:"solid",interlacedColor:t?"transparent":null,valueFormatString:null,margin:2,publicProperties:{options:"readWrite",
|
|
50
|
+
fontColor:"black",fontStyle:"normal",cursor:"default",itemmouseover:null,itemmouseout:null,itemmousemove:null,itemclick:null,dockInsidePlotArea:!1,reversed:!1,backgroundColor:t?"transparent":null,borderColor:t?"transparent":null,borderThickness:0,cornerRadius:0,maxWidth:null,maxHeight:null,markerMargin:null,itemMaxWidth:null,itemWidth:null,itemWrap:!0,itemTextAlign:"left",itemTextFormatter:null,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},ToolTip:{enabled:!0,shared:!1,
|
|
51
|
+
animationEnabled:!0,content:null,contentFormatter:null,reversed:!1,backgroundColor:t?"rgba(255,255,255,.9)":"rgb(255,255,255)",borderColor:null,borderThickness:2,cornerRadius:5,fontSize:14,fontColor:"black",fontFamily:"Calibri, Arial, Georgia, serif;",fontWeight:"normal",fontStyle:"italic",updated:null,hidden:null,publicProperties:{options:"readWrite",chart:"readOnly"}},Axis:{minimum:null,maximum:null,viewportMinimum:null,viewportMaximum:null,interval:null,intervalType:null,reversed:!1,logarithmic:!1,
|
|
52
|
+
logarithmBase:10,title:null,titleFontColor:"black",titleFontSize:20,titleFontFamily:"arial",titleFontWeight:"normal",titleFontStyle:"normal",titleWrap:!0,titleMaxWidth:null,titleBackgroundColor:t?"transparent":null,titleBorderColor:t?"transparent":null,titleBorderThickness:0,titleCornerRadius:0,titleTextAlign:"left",titlePadding:0,labelAngle:0,labelFontFamily:"arial",labelFontColor:"black",labelFontSize:12,labelFontWeight:"normal",labelFontStyle:"normal",labelAutoFit:!0,labelWrap:!0,labelMaxWidth:null,
|
|
53
|
+
labelFormatter:null,labelBackgroundColor:t?"transparent":null,labelBorderColor:t?"transparent":null,labelBorderThickness:0,labelPadding:0,labelCornerRadius:0,labelPlacement:"outside",labelTextAlign:"left",prefix:"",suffix:"",includeZero:!1,tickLength:5,tickColor:"black",tickThickness:1,tickPlacement:"outside",lineColor:"black",lineThickness:1,lineDashType:"solid",gridColor:"#A0A0A0",gridThickness:0,gridDashType:"solid",interlacedColor:t?"transparent":null,valueFormatString:null,margin:2,publicProperties:{options:"readWrite",
|
|
54
54
|
stripLines:"readWrite",scaleBreaks:"readWrite",crosshair:"readWrite",bounds:"readOnly",chart:"readOnly"}},StripLine:{value:null,startValue:null,endValue:null,color:"orange",opacity:null,thickness:2,lineDashType:"solid",label:"",labelPlacement:"inside",labelAlign:"far",labelWrap:!0,labelMaxWidth:null,labelBackgroundColor:null,labelBorderColor:t?"transparent":null,labelBorderThickness:0,labelCornerRadius:0,labelFontFamily:"arial",labelFontColor:"orange",labelFontSize:12,labelFontWeight:"normal",labelFontStyle:"normal",
|
|
55
55
|
labelFormatter:null,labelTextAlign:"left",labelPadding:0,tickColor:null,tickThickness:null,tickLength:null,showOnTop:!1,publicProperties:{options:"readWrite",axis:"readOnly",bounds:"readOnly",chart:"readOnly"}},ScaleBreaks:{autoCalculate:!1,collapsibleThreshold:"25%",maxNumberOfAutoBreaks:2,spacing:8,type:"straight",color:"#FFFFFF",fillOpacity:0.9,lineThickness:2,lineColor:"#E16E6E",lineDashType:"solid",publicProperties:{options:"readWrite",customBreaks:"readWrite",axis:"readOnly",autoBreaks:"readOnly",
|
|
56
56
|
bounds:"readOnly",chart:"readOnly"}},Break:{startValue:null,endValue:null,spacing:8,type:"straight",color:"#FFFFFF",fillOpacity:0.9,lineThickness:2,lineColor:"#E16E6E",lineDashType:"solid",publicProperties:{options:"readWrite",scaleBreaks:"readOnly",bounds:"readOnly",chart:"readOnly"}},Crosshair:{enabled:!1,snapToDataPoint:!1,color:"grey",opacity:1,thickness:2,lineDashType:"solid",label:"",labelWrap:!0,labelMaxWidth:null,labelTextAlign:"left",labelBackgroundColor:t?"grey":null,labelBorderColor:t?
|
|
@@ -514,7 +514,7 @@ c.moveTo(v,z-x),c.lineTo(I,O-x),0<s&&c.stroke(),t&&(b.beginPath(),b.moveTo(v,z-x
|
|
|
514
514
|
dataPoint:B[k],dataSeries:y,point:{x:h+(D-h)/2,y:0<=B[k].y?l:n},direction:0>B[k].y===a.axisY.reversed?1:-1,bounds:{x1:h,y1:Math.min(l,n),x2:D,y2:Math.max(l,n)},color:e})}}t&&(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,
|
|
515
515
|
0,0,this.width,this.height),c.clearRect(g.x1,g.y1,g.width,g.height),this._eventManager.ghostCtx.restore());c.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:K.fadeInAnimation,easingFunction:K.easing.easeInQuad,animationBase:0}}};var na=function(a,d,c,b,e,g,k,l,m){if(!(0>c)){"undefined"===typeof l&&(l=1);if(!t){var n=Number((k%(2*Math.PI)).toFixed(8));Number((g%(2*Math.PI)).toFixed(8))===n&&(k-=1E-4)}a.save();a.globalAlpha=l;"pie"===e?(a.beginPath(),a.moveTo(d.x,d.y),a.arc(d.x,d.y,
|
|
516
516
|
c,g,k,!1),a.fillStyle=b,a.strokeStyle="white",a.lineWidth=2,a.closePath(),a.fill()):"doughnut"===e&&(a.beginPath(),a.arc(d.x,d.y,c,g,k,!1),0<=m&&a.arc(d.x,d.y,m*c,k,g,!0),a.closePath(),a.fillStyle=b,a.strokeStyle="white",a.lineWidth=2,a.fill());a.globalAlpha=1;a.restore()}};v.prototype.renderPie=function(a){function d(){if(n&&p){var a=0,b=0,c=0,e=0;l(n.options.indexLabelMaxWidth)&&(n.indexLabelMaxWidth=0.33*q.width);for(var d=0;d<p.length;d++){var g=p[d],k=n.dataPointIds[d];f[d].id=k;f[d].objectType=
|
|
517
|
-
"dataPoint";f[d].dataPointIndex=d;f[d].dataSeriesIndex=0;var h=f[d],r={percent:null,total:null},t=null,r=m.getPercentAndTotal(n,g);if(n.indexLabelFormatter||g.indexLabelFormatter)t={chart:m
|
|
517
|
+
"dataPoint";f[d].dataPointIndex=d;f[d].dataSeriesIndex=0;var h=f[d],r={percent:null,total:null},t=null,r=m.getPercentAndTotal(n,g);if(n.indexLabelFormatter||g.indexLabelFormatter)t={chart:m,dataSeries:n,dataPoint:g,total:r.total,percent:r.percent};r=g.indexLabelFormatter?g.indexLabelFormatter(t):g.indexLabel?m.replaceKeywordsWithValue(g.indexLabel,g,n,d):n.indexLabelFormatter?n.indexLabelFormatter(t):n.indexLabel?m.replaceKeywordsWithValue(n.indexLabel,g,n,d):g.label?g.label:"";m._eventManager.objectMap[k]=
|
|
518
518
|
h;h.center={x:w.x,y:w.y};h.y=g.y;h.radius=z;h.percentInnerRadius=D;h.indexLabelText=r;h.indexLabelPlacement=n.indexLabelPlacement;h.indexLabelLineColor=g.indexLabelLineColor?g.indexLabelLineColor:n.options.indexLabelLineColor?n.options.indexLabelLineColor:g.color?g.color:n._colorSet[d%n._colorSet.length];h.indexLabelLineThickness=l(g.indexLabelLineThickness)?n.indexLabelLineThickness:g.indexLabelLineThickness;h.indexLabelLineDashType=g.indexLabelLineDashType?g.indexLabelLineDashType:n.indexLabelLineDashType;
|
|
519
519
|
h.indexLabelFontColor=g.indexLabelFontColor?g.indexLabelFontColor:n.indexLabelFontColor;h.indexLabelFontStyle=g.indexLabelFontStyle?g.indexLabelFontStyle:n.indexLabelFontStyle;h.indexLabelFontWeight=g.indexLabelFontWeight?g.indexLabelFontWeight:n.indexLabelFontWeight;h.indexLabelFontSize=l(g.indexLabelFontSize)?n.indexLabelFontSize:g.indexLabelFontSize;h.indexLabelFontFamily=g.indexLabelFontFamily?g.indexLabelFontFamily:n.indexLabelFontFamily;h.indexLabelBackgroundColor=g.indexLabelBackgroundColor?
|
|
520
520
|
g.indexLabelBackgroundColor:n.options.indexLabelBackgroundColor?n.options.indexLabelBackgroundColor:n.indexLabelBackgroundColor;h.indexLabelBorderColor=g.indexLabelBorderColor?g.indexLabelBorderColor:n.options.indexLabelBorderColor?n.options.indexLabelBorderColor:n.indexLabelBorderColor;h.indexLabelBorderThickness=g.indexLabelBorderThickness?g.indexLabelBorderThickness:n.options.indexLabelBorderThickness?n.options.indexLabelBorderThickness:n.indexLabelBorderThickness;h.indexLabelPadding=g.indexLabelPadding?
|
|
@@ -550,20 +550,20 @@ Z*Z*b*b-4*Math.abs(Z)*a,0>p?(p=c,n=(b+p)*(f-h)/2,a-=n,l=f-h,h+=f-h,l+=0==p?0:a/p
|
|
|
550
550
|
1;E<x.length||0<=F;E++,F--){b=s.reversed?x[F]:x[E];a=b.color?b.color:s.reversed?s._colorSet[(x.length-1-E)%s._colorSet.length]:s._colorSet[E%s._colorSet.length];c=b.indexLabelPlacement||s.indexLabelPlacement||"outside";L=b.indexLabelTextAlign||s.indexLabelTextAlign||"left";d=b.indexLabelBackgroundColor||s.indexLabelBackgroundColor||(t?"transparent":null);e=b.indexLabelBorderColor||s.indexLabelBorderColor||(t?"transparent":null);g=l(b.indexLabelBorderThickness)?s.indexLabelBorderThickness:b.indexLabelBorderThickness;
|
|
551
551
|
k=l(b.indexLabelPadding)?s.options.indexLabelPadding?s.options.indexLabelPadding:s.indexLabelPadding:b.indexLabelPadding;h=b.indexLabelFontColor||s.indexLabelFontColor||"#979797";n=l(b.indexLabelFontSize)?s.indexLabelFontSize:b.indexLabelFontSize;p=b.indexLabelFontStyle||s.indexLabelFontStyle||"normal";r=b.indexLabelFontFamily||s.indexLabelFontFamily||"arial";q=b.indexLabelFontWeight||s.indexLabelFontWeight||"normal";a=b.indexLabelLineColor||s.options.indexLabelLineColor||a;m="number"===typeof b.indexLabelLineThickness?
|
|
552
552
|
b.indexLabelLineThickness:"number"===typeof s.indexLabelLineThickness?s.indexLabelLineThickness:2;w=b.indexLabelLineDashType||s.indexLabelLineDashType||"solid";y="undefined"!==typeof b.indexLabelWrap?b.indexLabelWrap:"undefined"!==typeof s.indexLabelWrap?s.indexLabelWrap:!0;v=s.dataPointIds[E];u._eventManager.objectMap[v]={id:v,objectType:"dataPoint",dataPointIndex:E,dataSeriesIndex:0,funnelSection:N[s.reversed?x.length-1-E:E]};"inside"===s.indexLabelPlacement&&(A[E]=E!==ea?s.reversed?N[E].x2-N[E].x1:
|
|
553
|
-
N[E].x3-N[E].x4:N[E].x3-N[E].x6,20>A[E]&&(A[E]=E!==ea?s.reversed?N[E].x3-N[E].x4:N[E].x2-N[E].x1:N[E].x2-N[E].x1,A[E]/=2));v=b.indexLabelMaxWidth?b.indexLabelMaxWidth:s.options.indexLabelMaxWidth?s.indexLabelMaxWidth:A[E];if(v>A[E]||0>v)v=A[E];C[E]="inside"===s.indexLabelPlacement?y?Math.max(N[E].height,n):1.5*n+("object"===typeof k?(k.top||0)+(k.bottom||0):2*k):!1;D=u.getPercentAndTotal(s,b);if(s.indexLabelFormatter||b.indexLabelFormatter)R={chart:u
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
W
|
|
565
|
-
|
|
566
|
-
|
|
553
|
+
N[E].x3-N[E].x4:N[E].x3-N[E].x6,20>A[E]&&(A[E]=E!==ea?s.reversed?N[E].x3-N[E].x4:N[E].x2-N[E].x1:N[E].x2-N[E].x1,A[E]/=2));v=b.indexLabelMaxWidth?b.indexLabelMaxWidth:s.options.indexLabelMaxWidth?s.indexLabelMaxWidth:A[E];if(v>A[E]||0>v)v=A[E];C[E]="inside"===s.indexLabelPlacement?y?Math.max(N[E].height,n):1.5*n+("object"===typeof k?(k.top||0)+(k.bottom||0):2*k):!1;D=u.getPercentAndTotal(s,b);if(s.indexLabelFormatter||b.indexLabelFormatter)R={chart:u,dataSeries:s,dataPoint:b,total:D.total,percent:D.percent};
|
|
554
|
+
b=b.indexLabelFormatter?b.indexLabelFormatter(R):b.indexLabel?u.replaceKeywordsWithValue(b.indexLabel,b,s,E):s.indexLabelFormatter?s.indexLabelFormatter(R):s.indexLabel?u.replaceKeywordsWithValue(s.indexLabel,b,s,E):b.label?b.label:"";0>=m&&(m=0);1E3>v&&1E3-v<z&&(v+=1E3-v);l(s.options.indexLabelMaxWidth)&&(s.indexLabelMaxWidth=l(s.indexLabelMaxWidth)?v:Math.max(v,s.indexLabelMaxWidth));S.roundRect||Ca(S);c=new ka(S,{fontSize:n,fontFamily:r,fontColor:h,fontStyle:p,fontWeight:q,horizontalAlign:c,textAlign:L,
|
|
555
|
+
backgroundColor:d,borderColor:e,borderThickness:g,maxWidth:v,maxHeight:!1===C[E]?(y?4.28571429*n:1.5*n)+("object"===typeof k?(k.top||0)+(k.bottom||0):2*k):C[E],text:b,padding:k,textBaseline:"middle"});c.measureText();c.height=c.height===2*c.padding?0:c.height;c.width=c.width===2*c.padding?0:c.width;G.push({textBlock:c,id:s.reversed?F:E,isDirty:!1,lineColor:a,lineThickness:m,lineDashType:w,height:c.height<c.maxHeight?c.height:c.maxHeight,width:c.width<c.maxWidth?c.width:c.maxWidth})}}}function e(){var a,
|
|
556
|
+
b,c,d,f,e=[];f=!1;c=0;for(var g,k=J-ca-X/2,k=s.options.indexLabelMaxWidth?s.indexLabelMaxWidth>k?k:s.indexLabelMaxWidth:k,h=G.length-1;0<=h;h--){g=x[G[h].id];c=G[h];d=c.textBlock;b=(a=q(h)<N.length?G[q(h)]:null)?a.textBlock:null;c=c.height;a&&d.y+c+fa>b.y&&(f=!0);c=g.indexLabelMaxWidth||k;if(c>k||0>c)c=k;e.push(c)}if(f)for(h=G.length-1;0<=h;h--)a=N[h],G[h].textBlock.maxWidth=e[e.length-(h+1)],G[h].textBlock.measureText(),G[h].textBlock.height=G[h].textBlock.height===2*G[h].textBlock.padding?0:G[h].textBlock.height,
|
|
557
|
+
G[h].textBlock.width=G[h].textBlock.width===2*G[h].textBlock.padding?0:G[h].textBlock.width,G[h].textBlock.x=J-k,c=G[h].textBlock.height<G[h].textBlock.maxHeight?G[h].textBlock.height:G[h].textBlock.maxHeight,f=G[h].textBlock.width<G[h].textBlock.maxWidth?G[h].textBlock.width:G[h].textBlock.maxWidth,G[h].height=c,G[h].width=f,c="undefined"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,G[h].textBlock.y=c-G[h].height/2,s.reversed?(G[h].textBlock.y+G[h].height>ra+z&&(G[h].textBlock.y=ra+z-G[h].height),G[h].textBlock.y<
|
|
558
|
+
ua-z&&(G[h].textBlock.y=ua-z)):(G[h].textBlock.y<ra-z&&(G[h].textBlock.y=ra-z),G[h].textBlock.y+G[h].height>ua+z&&(G[h].textBlock.y=ua+z-G[h].height))}function g(){var a,b,c,d;if("inside"!==s.indexLabelPlacement)for(var e=0;e<N.length;e++)0==G[e].textBlock.text.length?G[e].isDirty=!0:(a=N[e],c="undefined"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,b=s.reversed?"undefined"!==typeof a.x5?c>za?f(c).x2+1:(a.x2+a.x3)/2+1:(a.x2+a.x3)/2+1:"undefined"!==typeof a.x5?c<za?f(c).x2+1:(a.x4+a.x3)/2+1:(a.x2+a.x3)/
|
|
559
|
+
2+1,G[e].textBlock.x=b+X,G[e].textBlock.y=c-G[e].height/2,s.reversed?(G[e].textBlock.y+G[e].height>ra+z&&(G[e].textBlock.y=ra+z-G[e].height),G[e].textBlock.y<ua-z&&(G[e].textBlock.y=ua-z)):(G[e].textBlock.y<ra-z&&(G[e].textBlock.y=ra-z),G[e].textBlock.y+G[e].height>ua+z&&(G[e].textBlock.y=ua+z-G[e].height)));else for(e=0;e<N.length;e++)0==G[e].textBlock.text.length?G[e].isDirty=!0:(a=N[e],b=a.height,c=G[e].height,d=G[e].width,b>=c?(b=e!=ea?(a.x4+a.x3)/2-d/2:(a.x5+a.x4)/2-d/2,c=e!=ea?(a.y1+a.y3)/2-
|
|
560
|
+
c/2:(a.y1+a.y4)/2-c/2,G[e].textBlock.x=b,G[e].textBlock.y=c):G[e].isDirty=!0)}function k(){function a(b,c){var d;if(0>b||b>=G.length)return 0;var e,f=G[b].textBlock;if(0>c){c*=-1;e=r(b);d=h(e,b);if(d>=c)return f.y-=c,c;if(0==b)return 0<d&&(f.y-=d),d;d+=a(e,-(c-d));0<d&&(f.y-=d);return d}e=q(b);d=h(b,e);if(d>=c)return f.y+=c,c;if(b==N.length-1)return 0<d&&(f.y+=d),d;d+=a(e,c-d);0<d&&(f.y+=d);return d}function b(){var a,d,e,f,g=0,h;f=(Q-$+2*z)/l;h=l;for(var k,n=1;n<h;n++){e=n*f;for(var p=G.length-1;0<=
|
|
561
|
+
p;p--)!G[p].isDirty&&(G[p].textBlock.y<e&&G[p].textBlock.y+G[p].height>e)&&(k=q(p),!(k>=G.length-1)&&G[p].textBlock.y+G[p].height+fa>G[k].textBlock.y&&(G[p].textBlock.y=G[p].textBlock.y+G[p].height-e>e-G[p].textBlock.y?e+1:e-G[p].height-1))}for(k=N.length-1;0<k;k--)if(!G[k].isDirty){e=r(k);if(0>e&&(e=0,G[e].isDirty))break;if(G[k].textBlock.y<G[e].textBlock.y+G[e].height){d=d||k;f=k;for(h=0;G[f].textBlock.y<G[e].textBlock.y+G[e].height+fa;){a=a||G[f].textBlock.y+G[f].height;h+=G[f].height;h+=fa;f=
|
|
562
|
+
e;if(0>=f){f=0;h+=G[f].height;break}e=r(f);if(0>e){f=0;h+=G[f].height;break}}if(f!=k){g=G[f].textBlock.y;a-=g;a=h-a;g=c(a,d,f);break}}}return g}function c(a,b,d){var e=[],f=0,g=0;for(a=Math.abs(a);d<=b;d++)e.push(N[d]);e.sort(function(a,b){return a.height-b.height});for(d=0;d<e.length;d++)if(b=e[d],f<a)g++,f+=G[b.id].height+fa,G[b.id].textBlock.text="",G[b.id].indexLabelText="",G[b.id].isDirty=!0,G[b.id].textBlock.measureText();else break;return g}for(var d,e,f,g,k,n,l=1,p=0;p<2*l;p++){for(var m=
|
|
563
|
+
G.length-1;0<=m&&!(0<=r(m)&&r(m),f=G[m],g=f.textBlock,n=(k=q(m)<N.length?G[q(m)]:null)?k.textBlock:null,d=+f.height.toFixed(6),e=+g.y.toFixed(6),!f.isDirty&&(k&&e+d+fa>+n.y.toFixed(6))&&(d=g.y+d+fa-n.y,e=a(m,-d),e<d&&(0<e&&(d-=e),e=a(q(m),d),e!=d)));m--);b()}}function h(a,b){return(b<N.length?G[b].textBlock.y:s.reversed?ra+z:ua+z)-(0>a?s.reversed?ua-z:ra-z:G[a].textBlock.y+G[a].height+fa)}function m(a,b,c){var d,e,f,h=[],k=z,l=[];-1!==b&&(0<=W.indexOf(b)?(e=W.indexOf(b),W.splice(e,1)):(W.push(b),
|
|
564
|
+
W=W.sort(function(a,b){return a-b})));if(0===W.length)h=ia;else{e=z*(1!=W.length||0!=W[0]&&W[0]!=N.length-1?2:1)/n();for(var r=0;r<N.length;r++){if(1==W.length&&0==W[0]){if(0===r){h.push(ia[r]);d=k;continue}}else 0===r&&(d=-1*k);h.push(ia[r]+d);if(0<=W.indexOf(r)||r<N.length&&0<=W.indexOf(r+1))d+=e}}f=function(){for(var a=[],b=0;b<N.length;b++)a.push(h[b]-N[b].y1);return a}();var q={startTime:(new Date).getTime(),duration:c||500,easingFunction:function(a,b,c,d){return K.easing.easeOutQuart(a,b,c,
|
|
565
|
+
d)},changeSection:function(a){for(var b,c,d=0;d<N.length;d++)b=f[d],c=N[d],b*=a,"undefined"===typeof l[d]&&(l[d]=0),0>l&&(l*=-1),c.y1+=b-l[d],c.y2+=b-l[d],c.y3+=b-l[d],c.y4+=b-l[d],c.y5&&(c.y5+=b-l[d],c.y6+=b-l[d]),l[d]=b}};a._animator.animate(0,c,function(c){var d=a.plotArea.ctx||a.ctx;ha=!0;d.clearRect(w.x1,w.y1,w.x2-w.x1,w.y2-w.y1);d.fillStyle=a.backgroundColor;d.fillRect(w.x1,w.y1,w.width,w.height);q.changeSection(c,b);var e={};e.dataSeries=s;e.dataPoint=s.reversed?s.dataPoints[x.length-1-b]:
|
|
566
|
+
s.dataPoints[b];e.index=s.reversed?x.length-1-b:b;a.toolTip.highlightObjects([e]);for(e=0;e<N.length;e++)ta(d,N[e],s.fillOpacity);y(d);I&&("inside"!==s.indexLabelPlacement?p(d):g(),v(d));1<=c&&(ha=!1)},null,K.easing.easeOutQuart)}function n(){for(var a=0,b=0;b<N.length-1;b++)(0<=W.indexOf(b)||0<=W.indexOf(b+1))&&a++;return a}function p(a){for(var b,c,d,e,g=0;g<N.length;g++)e=1===G[g].lineThickness%2?0.5:0,c=((N[g].y2+N[g].y4)/2<<0)+e,b=f(c).x2-1,isNaN(b)&&(Math.round(N[g].x1)===Math.round(N[g].x4)&&
|
|
567
567
|
Math.round(N[g].x2)===Math.round(N[g].x3))&&(b=N[g].x2),d=G[g].textBlock.x,e=(G[g].textBlock.y+G[g].height/2<<0)+e,G[g].isDirty||0==G[g].lineThickness||(a.strokeStyle=G[g].lineColor,a.lineWidth=G[g].lineThickness,a.setLineDash&&a.setLineDash(H(G[g].lineDashType,G[g].lineThickness)),a.beginPath(),a.moveTo(b,c),a.lineTo(d,e),a.stroke())}function r(a){for(a-=1;-1<=a&&-1!=a&&G[a].isDirty;a--);return a}function q(a){for(a+=1;a<=N.length&&a!=N.length&&G[a].isDirty;a++);return a}function f(a){for(var b,
|
|
568
568
|
c=0;c<x.length;c++)if(N[c].y1<a&&N[c].y4>a){b=N[c];break}return b?(a=b.y6?a>b.y6?b.x3+(b.x4-b.x3)/(b.y4-b.y3)*(a-b.y3):b.x2+(b.x3-b.x2)/(b.y3-b.y2)*(a-b.y2):b.x2+(b.x3-b.x2)/(b.y3-b.y2)*(a-b.y2),{x1:a,x2:a}):-1}function v(a){for(var b=0;b<N.length;b++)G[b].isDirty||(a&&(G[b].textBlock.ctx=a),G[b].textBlock.y+=G[b].textBlock._lineHeight/2,G[b].textBlock.render(!0),G[b].textBlock.y-=G[b].textBlock._lineHeight/2)}function y(a){u.plotArea.layoutManager.reset();a.roundRect||Ca(a);u.title&&(u.title.dockInsidePlotArea||
|
|
569
569
|
"center"===u.title.horizontalAlign&&"center"===u.title.verticalAlign)&&(u.title.ctx=a,u.title.render());if(u.subtitles)for(var b=0;b<u.subtitles.length;b++){var c=u.subtitles[b];if(c.dockInsidePlotArea||"center"===c.horizontalAlign&&"center"===c.verticalAlign)u.subtitles.ctx=a,c.render()}u.legend&&(u.legend.dockInsidePlotArea||"center"===u.legend.horizontalAlign&&"center"===u.legend.verticalAlign)&&(u.legend.ctx=a,u.legend.setLayout(),u.legend.render());U.fNg&&U.fNg(u)}var u=this;if(!(0>=a.dataSeriesIndexes.length)){for(var s=
|
|
@@ -992,7 +992,7 @@ b=Math.min(b,1),isNaN(b)||!isFinite(b))&&(b=1),1>b&&a.push(d),d.animationCallbac
|
|
|
992
992
|
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/ma,c.canvas.height/ma);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,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}}},Y={drawMarker:function(a,d,c,b,e,g,k,h){if(c){var l=
|
|
993
993
|
1;c.fillStyle=g?g:"#000000";c.strokeStyle=k?k:"#000000";c.lineWidth=h?h:0;c.setLineDash&&c.setLineDash(H("solid",h));"circle"===b?(c.moveTo(a,d),c.beginPath(),c.arc(a,d,e/2,0,2*Math.PI,!1),g&&c.fill(),h&&(k?c.stroke():(l=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=l))):"square"===b?(c.beginPath(),c.rect(a-e/2,d-e/2,e,e),g&&c.fill(),h&&(k?c.stroke():(l=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=l))):"triangle"===b?(c.beginPath(),
|
|
994
994
|
c.moveTo(a-e/2,d+e/2),c.lineTo(a+e/2,d+e/2),c.lineTo(a,d-e/2),c.closePath(),g&&c.fill(),h&&(k?c.stroke():(l=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=l)),c.beginPath()):"cross"===b&&(c.strokeStyle=g,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];Y.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,
|
|
995
|
-
c.borderThickness)}}};return v}();u.version="v3.15.
|
|
995
|
+
c.borderThickness)}}};return v}();u.version="v3.15.3 GA";window.CanvasJS&&(u&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=u)})();
|
|
996
996
|
|
|
997
997
|
/*
|
|
998
998
|
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.
|