@undp/data-viz 2.3.11 → 2.3.12

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 (146) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/BarGraph.cjs +1 -1
  4. package/dist/BarGraph.cjs.map +1 -1
  5. package/dist/BarGraph.js +4 -4
  6. package/dist/BarGraph.js.map +1 -1
  7. package/dist/BasicStatCard.cjs +1 -1
  8. package/dist/BasicStatCard.js +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.js +2 -2
  11. package/dist/BiVariateChoroplethMap.cjs +1 -1
  12. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  13. package/dist/BiVariateChoroplethMap.js +2 -2
  14. package/dist/BiVariateChoroplethMap.js.map +1 -1
  15. package/dist/BulletChart.cjs +1 -1
  16. package/dist/BulletChart.cjs.map +1 -1
  17. package/dist/BulletChart.js +2 -2
  18. package/dist/BulletChart.js.map +1 -1
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.cjs.map +1 -1
  21. package/dist/ButterflyChart.js +39 -39
  22. package/dist/ButterflyChart.js.map +1 -1
  23. package/dist/ChoroplethMap.cjs +1 -1
  24. package/dist/ChoroplethMap.cjs.map +1 -1
  25. package/dist/ChoroplethMap.js +2 -2
  26. package/dist/ChoroplethMap.js.map +1 -1
  27. package/dist/CirclePackingGraph.cjs +1 -1
  28. package/dist/CirclePackingGraph.js +2 -2
  29. package/dist/ColorLegend.cjs +1 -1
  30. package/dist/ColorLegend.js +1 -1
  31. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  32. package/dist/ColorLegendWithMouseOver.js +1 -1
  33. package/dist/DataCards.cjs +1 -1
  34. package/dist/DataCards.js +2 -2
  35. package/dist/DataTable.cjs +1 -1
  36. package/dist/DataTable.js +1 -1
  37. package/dist/DifferenceLineChart.cjs +1 -1
  38. package/dist/DifferenceLineChart.js +1 -1
  39. package/dist/DonutChart.cjs +1 -1
  40. package/dist/DonutChart.js +3 -3
  41. package/dist/DotDensityMap.cjs +1 -1
  42. package/dist/DotDensityMap.cjs.map +1 -1
  43. package/dist/DotDensityMap.js +19 -19
  44. package/dist/DotDensityMap.js.map +1 -1
  45. package/dist/DualAxisLineChart.cjs +1 -1
  46. package/dist/DualAxisLineChart.js +1 -1
  47. package/dist/DumbbellChart.cjs +1 -1
  48. package/dist/DumbbellChart.cjs.map +1 -1
  49. package/dist/DumbbellChart.js +2 -2
  50. package/dist/DumbbellChart.js.map +1 -1
  51. package/dist/{EmptyState-D807L58h.js → EmptyState-B3fPoH6L.js} +2 -2
  52. package/dist/{EmptyState-D807L58h.js.map → EmptyState-B3fPoH6L.js.map} +1 -1
  53. package/dist/{EmptyState-N1eHt3vq.cjs → EmptyState-B4c-CrXs.cjs} +2 -2
  54. package/dist/{EmptyState-N1eHt3vq.cjs.map → EmptyState-B4c-CrXs.cjs.map} +1 -1
  55. package/dist/FootNote.cjs +1 -1
  56. package/dist/FootNote.js +1 -1
  57. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  58. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  59. package/dist/GraphDescription.cjs +1 -1
  60. package/dist/GraphDescription.js +1 -1
  61. package/dist/{GraphEl-DvwOOhF1.cjs → GraphEl-Bgf8w82K.cjs} +2 -2
  62. package/dist/{GraphEl-DvwOOhF1.cjs.map → GraphEl-Bgf8w82K.cjs.map} +1 -1
  63. package/dist/{GraphEl-CT3xPv2P.js → GraphEl-CXK-LPsj.js} +3 -3
  64. package/dist/{GraphEl-CT3xPv2P.js.map → GraphEl-CXK-LPsj.js.map} +1 -1
  65. package/dist/GraphFooter.cjs +1 -1
  66. package/dist/GraphFooter.js +1 -1
  67. package/dist/GraphTitle.cjs +1 -1
  68. package/dist/GraphTitle.js +1 -1
  69. package/dist/GriddedGraphs.cjs +1 -1
  70. package/dist/GriddedGraphs.js +1 -1
  71. package/dist/HeatMap.cjs +1 -1
  72. package/dist/HeatMap.js +1 -1
  73. package/dist/Histogram.cjs +1 -1
  74. package/dist/Histogram.js +1 -1
  75. package/dist/HybridMap.cjs +1 -1
  76. package/dist/HybridMap.cjs.map +1 -1
  77. package/dist/HybridMap.js +29 -29
  78. package/dist/HybridMap.js.map +1 -1
  79. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  80. package/dist/LineChartWithConfidenceInterval.js +1 -1
  81. package/dist/LinearColorLegend.cjs +1 -1
  82. package/dist/LinearColorLegend.js +1 -1
  83. package/dist/MultiLineAltChart.cjs +1 -1
  84. package/dist/MultiLineAltChart.cjs.map +1 -1
  85. package/dist/MultiLineAltChart.d.ts +2 -0
  86. package/dist/MultiLineAltChart.js +393 -391
  87. package/dist/MultiLineAltChart.js.map +1 -1
  88. package/dist/MultiLineChart.cjs +1 -1
  89. package/dist/MultiLineChart.js +1 -1
  90. package/dist/ParetoChart.cjs +1 -1
  91. package/dist/ParetoChart.js +1 -1
  92. package/dist/RadarChart.cjs +1 -1
  93. package/dist/RadarChart.js +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.js +2 -2
  96. package/dist/ScatterPlot.cjs +1 -1
  97. package/dist/ScatterPlot.cjs.map +1 -1
  98. package/dist/ScatterPlot.d.ts +2 -0
  99. package/dist/ScatterPlot.js +439 -437
  100. package/dist/ScatterPlot.js.map +1 -1
  101. package/dist/SimpleLineChart.cjs +1 -1
  102. package/dist/SimpleLineChart.js +1 -1
  103. package/dist/SingleGraphDashboard.cjs +1 -1
  104. package/dist/SingleGraphDashboard.js +1 -1
  105. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  106. package/dist/SingleGraphDashboardGeoHubMaps.js +1 -1
  107. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  108. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  109. package/dist/SlopeChart.cjs +1 -1
  110. package/dist/SlopeChart.js +1 -1
  111. package/dist/{Source-24M277ZQ.cjs → Source-BOSAl3UX.cjs} +2 -2
  112. package/dist/{Source-24M277ZQ.cjs.map → Source-BOSAl3UX.cjs.map} +1 -1
  113. package/dist/{Source-eILIr4Ov.js → Source-Djkz-7jX.js} +2 -2
  114. package/dist/{Source-eILIr4Ov.js.map → Source-Djkz-7jX.js.map} +1 -1
  115. package/dist/Source.cjs +1 -1
  116. package/dist/Source.js +2 -2
  117. package/dist/StatCardFromData.cjs +1 -1
  118. package/dist/StatCardFromData.js +1 -1
  119. package/dist/StripChart.cjs +1 -1
  120. package/dist/StripChart.js +1 -1
  121. package/dist/ThreeDGlobe.cjs +1 -1
  122. package/dist/ThreeDGlobe.js +1 -1
  123. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  124. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  125. package/dist/TreeMapGraph.cjs +1 -1
  126. package/dist/TreeMapGraph.js +2 -2
  127. package/dist/Typography-CZZxlj1W.cjs +2 -0
  128. package/dist/Typography-CZZxlj1W.cjs.map +1 -0
  129. package/dist/{Typography-HicNIA61.js → Typography-DMVW6JnV.js} +67 -60
  130. package/dist/Typography-DMVW6JnV.js.map +1 -0
  131. package/dist/UnitChart.cjs +1 -1
  132. package/dist/UnitChart.js +1 -1
  133. package/dist/WaterfallChart.cjs +1 -1
  134. package/dist/WaterfallChart.js +1 -1
  135. package/dist/{index-B5ggV1vg.js → index-C6VwVS8W.js} +3 -3
  136. package/dist/{index-B5ggV1vg.js.map → index-C6VwVS8W.js.map} +1 -1
  137. package/dist/{index-BDR7MlMo.cjs → index-_TlgeI_i.cjs} +2 -2
  138. package/dist/{index-BDR7MlMo.cjs.map → index-_TlgeI_i.cjs.map} +1 -1
  139. package/dist/index.cjs +1 -1
  140. package/dist/index.d.ts +4 -0
  141. package/dist/index.js +2 -2
  142. package/dist/style.css +1 -1
  143. package/package.json +2 -2
  144. package/dist/Typography-Cc_iHQB-.cjs +0 -2
  145. package/dist/Typography-Cc_iHQB-.cjs.map +0 -1
  146. package/dist/Typography-HicNIA61.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),b=require("./parse-xYI9yrvL.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Ie=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-B1LWQBmM.cjs"),Xe=require("./AxisTitle-DV4n0RxE.cjs"),Fe=require("./Axis-Jt_tmhxS.cjs"),Pe=require("./XTicksAndGridLines-CekrPykD.cjs"),Be=require("./ReferenceLine-M9aP3dj-.cjs"),ze=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Je=require("./index-D69M6klB.cjs"),B=require("./Colors.cjs"),Ee=require("./uniqBy-O05lp2S5.cjs"),ke=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CkcKbhwe.cjs"),Qe=require("./linear-CgUCbw9F.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),$e=require("./line-DaEMhXmx.cjs"),Ae=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-C3o_ntMv.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-N1eHt3vq.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),Ve=require("./GraphContainer-B1EDxJ0S.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,i=>e[i])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[i]=t;if(i&&i.length!==2||t.length>1){const O=Uint32Array.from(e,(E,c)=>c);return t.length>1?(t=t.map(E=>e.map(E)),O.sort((E,c)=>{for(const r of t){const wt=Me(r[E],r[c]);if(wt)return wt}})):(i=e.map(i),O.sort((E,c)=>Me(i[E],i[c]))),an(e,O)}return e.sort(un(i))}function un(e=ke.ascending){if(e===ke.ascending)return Me;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,i)=>{const O=e(t,i);return O||O===0?O:(e(i,i)===0)-(e(t,t)===0)}}function Me(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=s.compilerRuntimeExports.c(128),{data:i,width:O,height:E,lineColors:c,dateFormat:r,noOfXTicks:wt,rightMargin:st,topMargin:Pt,bottomMargin:lt,suffix:U,prefix:g,leftMargin:C,tooltip:bt,onSeriesMouseOver:at,refValues:ct,highlightAreaSettings:Bt,minValue:z,maxValue:Ct,highlightedLines:H,animate:l,rtl:J,strokeWidth:T,showDots:se,annotations:Rt,customHighlightAreaSettings:zt,yAxisTitle:K,noOfYTicks:Jt,minDate:Kt,maxDate:Qt,curveType:ut,styles:j,colorDomain:L,selectedColor:At,classNames:R,showLabels:he,dimmedOpacity:q,precision:Q,naLabel:ge,customLayers:Z}=e,Et=A.useRef(null);let _;t[0]!==l.amount||t[1]!==l.once?(_={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=_):_=t[2];const m=en.useInView(Et,_),[S,le]=A.useState(!1);let kt,ft;t[3]!==l.duration||t[4]!==S||t[5]!==m?(kt=()=>{if(m&&!S){const n=setTimeout(()=>{le(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},ft=[m,S,l.duration],t[3]=l.duration,t[4]=S,t[5]=m,t[6]=kt,t[7]=ft):(kt=t[6],ft=t[7]),A.useEffect(kt,ft);const ae=ut==="linear"?$e.curveLinear:ut==="step"?Ae.curveStep:ut==="stepAfter"?Ae.stepAfter:ut==="stepBefore"?Ae.stepBefore:Ae.monotoneX;let Nt;t[8]!==r?(Nt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=Nt):Nt=t[9];const a=Te.orderBy(i.map(Nt),["date"],["asc"]).filter(Wn),d=Ee.uniqBy(a,"label",!0);let Dt;t[10]!==r?(Dt=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Dt):Dt=t[11];const Zt=cn(Ee.uniqBy(i,"date",!0).map(Dt),Gn),[x,mt]=A.useState(void 0),[xt,tt]=A.useState(void 0),[pt,et]=A.useState(void 0),Lt=K?C+30:C;let dt;t[12]!==lt||t[13]!==st||t[14]!==Lt||t[15]!==Pt?(dt={top:Pt,bottom:lt,left:Lt,right:st},t[12]=lt,t[13]=st,t[14]=Lt,t[15]=Pt,t[16]=dt):dt=t[16];const h=dt,ce=A.useRef(null),ue=d.map(n=>Te.orderBy(a.filter(o=>o.label==n),["date"],["asc"]));let ht;if(t[17]!==r||t[18]!==Bt){let n;t[20]!==r?(n=o=>({...o,coordinates:[o.coordinates[0]===null?null:b.parse(`${o.coordinates[0]}`,r,new Date),o.coordinates[1]===null?null:b.parse(`${o.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],ht=Bt.map(n),t[17]=r,t[18]=Bt,t[19]=ht}else ht=t[19];const qt=ht;let gt;if(t[22]!==zt||t[23]!==r){let n;t[25]!==r?(n=o=>({...o,coordinates:o.coordinates.map((y,Xt)=>Xt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],gt=zt.map(n),t[22]=zt,t[23]=r,t[24]=gt}else gt=t[24];const _t=gt,p=O-h.left-h.right,k=E-h.top-h.bottom,fe=Kt?b.parse(`${Kt}`,r,new Date):Zt[0],te=Qt?b.parse(`${Qt}`,r,new Date):Zt[Zt.length-1],w=v.checkIfNullOrUndefined(z)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:z,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,u=Ke.time().domain([fe,te]).range([0,p]);let nt;t[27]!==w||t[28]!==z?(nt=v.checkIfNullOrUndefined(z)?w:z,t[27]=w,t[28]=z,t[29]=nt):nt=t[29];let M;t[30]!==G||t[31]!==Ct?(M=v.checkIfNullOrUndefined(Ct)?G>0?G:0:Ct,t[30]=G,t[31]=Ct,t[32]=M):M=t[32];const f=Qe.linear().domain([nt,M]).range([k,0]).nice(),me=Ze.Delaunay.from(a.filter(Dn),n=>u(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),St=$e.line().x(n=>u(n.date)).y(n=>f(n.y)).curve(ae),Mt=f.ticks(Jt),ee=u.ticks(wt);A.useEffect(()=>{const n=y=>{const Xt=a[ke.bisectCenter(a.map(Nn),u.invert(tn.pointer(y)[0]),0)];mt(Xt||a[a.length-1]),et(y.clientY),tt(y.clientX),at?.(Xt||a[a.length-1])},o=()=>{mt(void 0),tt(void 0),et(void 0)};_e.select(ce.current).on("mousemove",n).on("mouseout",o),at?.(void 0)},[u,a,at]);let ot;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==qt||t[37]!==m||t[38]!==u?(ot=s.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:qt,width:p,height:k,scale:u,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=qt,t[37]=m,t[38]=u,t[39]=ot):ot=t[39];const Tt=j?.yAxis?.gridLines,N=j?.yAxis?.labels;let yt;t[40]!==Tt||t[41]!==N?(yt={gridLines:Tt,labels:N},t[40]=Tt,t[41]=N,t[42]=yt):yt=t[42];const It=R?.yAxis?.gridLines,$t=R?.yAxis?.labels;let vt;t[43]!==It||t[44]!==$t?(vt={gridLines:It,labels:$t},t[43]=It,t[44]=$t,t[45]=vt):vt=t[45];const Ot=f(w<0?0:w),Vt=f(w<0?0:w),Ut=0-C,it=p+h.right,xe=w<0?0:w;let I;t[46]!==Q||t[47]!==g||t[48]!==U||t[49]!==xe?(I=Ie.numberFormattingFunction(xe,"NA",Q,g,U),t[46]=Q,t[47]=g,t[48]=U,t[49]=xe,t[50]=I):I=t[50];const pe=0-C,Ht=f(w<0?0:w),de=G<0?"1em":-5;let W;t[51]!==pe||t[52]!==Ht||t[53]!==de?(W={x:pe,y:Ht,dx:0,dy:de},t[51]=pe,t[52]=Ht,t[53]=de,t[54]=W):W=t[54];const ne=R?.xAxis?.axis,jt=R?.yAxis?.labels;let $;t[55]!==ne||t[56]!==jt?($={axis:ne,label:jt},t[55]=ne,t[56]=jt,t[57]=$):$=t[57];const Gt=j?.xAxis?.axis,Wt=j?.yAxis?.labels;let D;t[58]!==Gt||t[59]!==Wt?(D={axis:Gt,label:Wt},t[58]=Gt,t[59]=Wt,t[60]=D):D=t[60];let V;t[61]!==Ot||t[62]!==Vt||t[63]!==Ut||t[64]!==it||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==D?(V=s.jsxRuntimeExports.jsx(Fe.Axis,{y1:Ot,y2:Vt,x1:Ut,x2:it,label:I,labelPos:W,classNames:$,styles:D}),t[61]=Ot,t[62]=Vt,t[63]=Ut,t[64]=it,t[65]=I,t[66]=W,t[67]=$,t[68]=D,t[69]=V):V=t[69];const Y=0-C-15,X=k/2,F=j?.yAxis?.title,P=R?.yAxis?.title;let rt;t[70]!==Y||t[71]!==X||t[72]!==F||t[73]!==P||t[74]!==K?(rt=s.jsxRuntimeExports.jsx(Xe.AxisTitle,{x:Y,y:X,style:F,className:P,text:K,rotate90:!0}),t[70]=Y,t[71]=X,t[72]=F,t[73]=P,t[74]=K,t[75]=rt):rt=t[75];let Yt;t[76]!==r?(Yt=n=>b.format(n,r),t[76]=r,t[77]=Yt):Yt=t[77];const ye=ee.map(Yt),Ue=ee.map(n=>u(n)),Ne=j?.xAxis?.gridLines,De=j?.xAxis?.labels;let ve;t[78]!==Ne||t[79]!==De?(ve={gridLines:Ne,labels:De},t[78]=Ne,t[79]=De,t[80]=ve):ve=t[80];const Le=R?.xAxis?.gridLines;let oe;t[81]!==Le?(oe=s.mo("opacity-0",Le),t[81]=Le,t[82]=oe):oe=t[82];const qe=R?.xAxis?.labels;let ie;t[83]!==qe?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",qe),t[83]=qe,t[84]=ie):ie=t[84];let Oe;t[85]!==oe||t[86]!==ie?(Oe={gridLines:oe,labels:ie},t[85]=oe,t[86]=ie,t[87]=Oe):Oe=t[87];let je;t[88]!==Z?(je=Z.filter(An).map(Rn),t[88]=Z,t[89]=je):je=t[89];const He=a.filter(pn).map((n,o)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:me.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{mt(n),et(y.clientY),tt(y.clientX),at?.(n)},onMouseMove:y=>{mt(n),et(y.clientY),tt(y.clientX)},onMouseLeave:()=>{mt(void 0),tt(void 0),et(void 0),at?.(void 0)}})},o));let we;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==h.right||t[95]!==ct||t[96]!==f?(we=ct?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:ct.map((n,o)=>s.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+h.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},o))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=h.right,t[95]=ct,t[96]=f,t[97]=we):we=t[97];let re;if(t[98]!==l||t[99]!==Rt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==h.right||t[104]!==J||t[105]!==u||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==h.right||t[113]!==J||t[114]!==u||t[115]!==f?(n=(o,y)=>{const Xt=Se.getLineEndPoint({x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8},{x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,y:o.yCoordinate?f(o.yCoordinate):0},v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius),Ge=o.showConnector?{y1:Xt.y,x1:Xt.x,y2:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0):0+(o.yOffset||0),x2:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),cy:o.yCoordinate?f(o.yCoordinate):0,cx:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius,strokeWidth:o.showConnector===!0?2:Math.min(o.showConnector||0,1)}:void 0,We={y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8,x:J?0:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),width:J?o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0):p+h.right-(o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0)),maxWidth:o.maxWidth,fontWeight:o.fontWeight,align:o.align};return s.jsxRuntimeExports.jsx(Se.Annotation,{color:o.color,connectorsSettings:Ge,labelSettings:We,text:o.text,classNames:o.classNames,styles:o.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=h.right,t[113]=J,t[114]=u,t[115]=f,t[116]=n):n=t[116],re=Rt.map(n),t[98]=l,t[99]=Rt,t[100]=r,t[101]=p,t[102]=m,t[103]=h.right,t[104]=J,t[105]=u,t[106]=f,t[107]=re}else re=t[107];let be;t[117]!==re?(be=s.jsxRuntimeExports.jsx("g",{children:re}),t[117]=re,t[118]=be):be=t[118];let Ce;t[119]!==Z?(Ce=Z.filter(xn).map(mn),t[119]=Z,t[120]=Ce):Ce=t[120];let Re;return t[121]!==R?.tooltip||t[122]!==xt||t[123]!==pt||t[124]!==x||t[125]!==j?.tooltip||t[126]!==bt?(Re=x&&bt&&xt&&pt?s.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:bt,xPos:xt,yPos:pt,backgroundStyle:j?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=xt,t[123]=pt,t[124]=x,t[125]=j?.tooltip,t[126]=bt,t[127]=Re):Re=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Ft.motion.svg,{width:`${O}px`,height:`${E}px`,viewBox:`0 0 ${O} ${E}`,direction:"ltr",ref:Et,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[ot,s.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:_t,scaleX:u,scaleY:f,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Mt.filter(kn),y:Mt.filter(En).map(n=>f(n)),x1:0-C,x2:p+h.right,styles:yt,classNames:vt,suffix:U,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Q}),V,rt]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:ye,x:Ue,y1:0,y2:k,styles:ve,classNames:Oe,suffix:U,prefix:g,labelType:"primary",showGridLines:!0,precision:Q})}),je,s.jsxRuntimeExports.jsxs(Ft.motion.g,{children:[ue.map(n=>s.jsxRuntimeExports.jsxs(Ft.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1},whileInView:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(Ft.motion.path,{d:St(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?T+Math.max(2,.5*T):T:H.length!==0&&H.indexOf(n[0].label)!==-1?T+Math.max(2,.5*T):T},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:St(n.filter(bn))||"",opacity:1,stroke:i.filter(wn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray},whileInView:{pathLength:1,d:St(n.filter(jn))||"",opacity:1,stroke:i.filter(On).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((o,y)=>s.jsxRuntimeExports.jsx(Ft.motion.g,{children:v.checkIfNullOrUndefined(o.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:se?s.jsxRuntimeExports.jsx(Ft.motion.circle,{r:p/n.length<5?0:p/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(vn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,cx:u(o.date),cy:f(o.y)},whileInView:{opacity:1,fill:i.filter(yn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:S?l.duration:.5,delay:S?0:l.duration},cx:u(o.date),cy:f(o.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&he?s.jsxRuntimeExports.jsx(Ft.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(gn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:i.filter(hn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:S?l.duration:.5,delay:S?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?s.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:u(x.date),className:s.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:i.filter(dn).length===0?c[0]:x.color?c[L.indexOf(x.color)]:B.Colors.gray,textAnchor:"middle",...j?.graphObjectValues||{}},children:Ie.numberFormattingFunction(x.y,ge,Q,g,U)}):null]}),He,we,be,Ce]})}),Re]})}function mn(e){return e.layer}function xn(e){return e.position==="after"}function pn(e){return!v.checkIfNullOrUndefined(e.y)}function dn(e){return e.color}function hn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function On(e){return e.color}function jn(e){return!v.checkIfNullOrUndefined(e.y)}function wn(e){return e.color}function bn(e){return!v.checkIfNullOrUndefined(e.y)}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return e.layer}function An(e){return e.position==="before"}function En(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function Ln(e){return!v.checkIfNullOrUndefined(e)}function qn(e){return e.y}function Sn(e){return!v.checkIfNullOrUndefined(e)}function Mn(e){return e.y}function Tn(e){return!v.checkIfNullOrUndefined(e)}function In(e){return e.y}function $n(e){return!v.checkIfNullOrUndefined(e)}function Vn(e){return e.y}function Un(e){return!v.checkIfNullOrUndefined(e)}function Hn(e){return e.y}function Gn(e,t){return ke.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=s.compilerRuntimeExports.c(106),{data:i,graphTitle:O,showNAColor:E,colors:c,colorDomain:r,suffix:wt,sources:st,prefix:Pt,graphDescription:lt,height:U,width:g,footNote:C,noOfXTicks:bt,dateFormat:at,padding:ct,backgroundColor:Bt,leftMargin:z,rightMargin:Ct,topMargin:H,bottomMargin:l,showColorScale:J,tooltip:T,relativeHeight:se,onSeriesMouseOver:Rt,showLabels:zt,refValues:K,highlightAreaSettings:Jt,graphID:Kt,minValue:Qt,maxValue:ut,highlightedLines:j,graphDownload:L,dataDownload:At,animate:R,language:he,colorLegendTitle:q,minHeight:Q,strokeWidth:ge,showDots:Z,annotations:Et,customHighlightAreaSettings:_,theme:m,ariaLabel:S,yAxisTitle:le,noOfYTicks:kt,minDate:ft,maxDate:ae,curveType:Nt,styles:a,classNames:d,dimmedOpacity:Dt,precision:Zt,customLayers:x,naLabel:mt}=e,xt=E===void 0?!0:E,tt=wt===void 0?"":wt,pt=Pt===void 0?"":Pt,et=bt===void 0?10:bt,Lt=at===void 0?"yyyy":at,dt=Bt===void 0?!1:Bt,h=z===void 0?30:z,ce=Ct===void 0?50:Ct,ue=H===void 0?20:H,ht=l===void 0?25:l,qt=J===void 0?!0:J,gt=zt===void 0?!0:zt;let _t;t[0]!==K?(_t=K===void 0?[]:K,t[0]=K,t[1]=_t):_t=t[1];const p=_t;let k;t[2]!==Jt?(k=Jt===void 0?[]:Jt,t[2]=Jt,t[3]=k):k=t[3];const fe=k;let te;t[4]!==j?(te=j===void 0?[]:j,t[4]=j,t[5]=te):te=t[5];const w=te,G=L===void 0?!1:L,u=At===void 0?!1:At,nt=R===void 0?!1:R,M=he===void 0?"en":he,f=Q===void 0?0:Q,me=ge===void 0?2:ge,St=Z===void 0?!0:Z;let Mt;t[6]!==Et?(Mt=Et===void 0?[]:Et,t[6]=Et,t[7]=Mt):Mt=t[7];const ee=Mt;let ot;t[8]!==_?(ot=_===void 0?[]:_,t[8]=_,t[9]=ot):ot=t[9];const Tt=ot,N=m===void 0?"light":m,yt=kt===void 0?5:kt,It=Nt===void 0?"curve":Nt,$t=Dt===void 0?.3:Dt,vt=Zt===void 0?2:Zt;let Ot;t[10]!==x?(Ot=x===void 0?[]:x,t[10]=x,t[11]=Ot):Ot=t[11];const Vt=Ot,Ut=mt===void 0?"NA":mt,[it,xe]=A.useState(0),[I,pe]=A.useState(0),[Ht,de]=A.useState(void 0),W=A.useRef(null),ne=A.useRef(null);let jt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>{const Yt=new ResizeObserver(ye=>{xe(ye[0].target.clientWidth||620),pe(ye[0].target.clientHeight||480)});return W.current&&Yt.observe(W.current),()=>Yt.disconnect()},$=[],t[12]=jt,t[13]=$):(jt=t[12],$=t[13]),A.useEffect(jt,$);const Gt=d?.graphContainer,Wt=a?.graphContainer;let D;t[14]!==d?.description||t[15]!==d?.title||t[16]!==i||t[17]!==u||t[18]!==lt||t[19]!==G||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(D=O||lt||G||u?s.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:lt,width:g,graphDownload:G?ne:void 0,dataDownload:u?i.map(Qn).filter(Kn).length>0?i.map(Jn).filter(zn):i.filter(Bn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=i,t[17]=u,t[18]=lt,t[19]=G,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=D):D=t[24];let V;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==q||t[28]!==c||t[29]!==i||t[30]!==qt||t[31]!==xt||t[32]!==N||t[33]!==g?(V=qt&&i.filter(Pn).length!==0&&i.length>0?s.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:g,colorLegendTitle:q,colors:c||B.Colors[N].categoricalColors.colors,colorDomain:r||Ee.uniqBy(i,"color",!0),setSelectedColor:de,showNAColor:xt,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=q,t[28]=c,t[29]=i,t[30]=qt,t[31]=xt,t[32]=N,t[33]=g,t[34]=V):V=t[34];let Y;t[35]!==i.length?(Y=i.length===0&&s.jsxRuntimeExports.jsx(rn.EmptyState,{}),t[35]=i.length,t[36]=Y):Y=t[36];let X;t[37]!==nt||t[38]!==ee||t[39]!==ht||t[40]!==d||t[41]!==r||t[42]!==c||t[43]!==It||t[44]!==Tt||t[45]!==Vt||t[46]!==i||t[47]!==Lt||t[48]!==$t||t[49]!==fe||t[50]!==w||t[51]!==M||t[52]!==h||t[53]!==ae||t[54]!==ut||t[55]!==ft||t[56]!==Qt||t[57]!==Ut||t[58]!==et||t[59]!==yt||t[60]!==Rt||t[61]!==vt||t[62]!==pt||t[63]!==p||t[64]!==ce||t[65]!==Ht||t[66]!==St||t[67]!==gt||t[68]!==me||t[69]!==a||t[70]!==tt||t[71]!==I||t[72]!==it||t[73]!==N||t[74]!==T||t[75]!==ue||t[76]!==le?(X=it&&I&&i.length>0?s.jsxRuntimeExports.jsx(fn,{data:i,lineColors:i.filter(Fn).length===0?c?[c]:[B.Colors.primaryColors["blue-600"]]:c||B.Colors[N].categoricalColors.colors,width:it,height:I,dateFormat:Lt,noOfXTicks:et??ln.getNoOfTicks(it),leftMargin:h,rightMargin:ce,topMargin:ue,bottomMargin:ht,tooltip:T,onSeriesMouseOver:Rt,suffix:tt,prefix:pt,highlightAreaSettings:fe,refValues:p,minValue:Qt,maxValue:ut,highlightedLines:w,animate:nt===!0?{duration:.5,once:!0,amount:.5}:nt||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:me,showDots:St,annotations:ee,customHighlightAreaSettings:Tt,yAxisTitle:le,noOfYTicks:yt,minDate:ft,maxDate:ae,curveType:It,styles:a,classNames:d,selectedColor:Ht,showLabels:gt,colorDomain:i.filter(Xn).length===0?[]:r||Ee.uniqBy(i,"color",!0),dimmedOpacity:$t,precision:vt,customLayers:Vt,naLabel:Ut}):null,t[37]=nt,t[38]=ee,t[39]=ht,t[40]=d,t[41]=r,t[42]=c,t[43]=It,t[44]=Tt,t[45]=Vt,t[46]=i,t[47]=Lt,t[48]=$t,t[49]=fe,t[50]=w,t[51]=M,t[52]=h,t[53]=ae,t[54]=ut,t[55]=ft,t[56]=Qt,t[57]=Ut,t[58]=et,t[59]=yt,t[60]=Rt,t[61]=vt,t[62]=pt,t[63]=p,t[64]=ce,t[65]=Ht,t[66]=St,t[67]=gt,t[68]=me,t[69]=a,t[70]=tt,t[71]=I,t[72]=it,t[73]=N,t[74]=T,t[75]=ue,t[76]=le,t[77]=X):X=t[77];let F;t[78]!==Y||t[79]!==X?(F=s.jsxRuntimeExports.jsxs(Ve.GraphArea,{ref:W,children:[Y,X]}),t[78]=Y,t[79]=X,t[80]=F):F=t[80];let P;t[81]!==d?.footnote||t[82]!==d?.source||t[83]!==C||t[84]!==st||t[85]!==a?.footnote||t[86]!==a?.source||t[87]!==g?(P=st||C?s.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:st,footNote:C,width:g}):null,t[81]=d?.footnote,t[82]=d?.source,t[83]=C,t[84]=st,t[85]=a?.footnote,t[86]=a?.source,t[87]=g,t[88]=P):P=t[88];let rt;return t[89]!==S||t[90]!==dt||t[91]!==Kt||t[92]!==U||t[93]!==M||t[94]!==f||t[95]!==ct||t[96]!==se||t[97]!==Gt||t[98]!==Wt||t[99]!==D||t[100]!==V||t[101]!==F||t[102]!==P||t[103]!==N||t[104]!==g?(rt=s.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:Gt,style:Wt,id:Kt,ref:ne,"aria-label":S,backgroundColor:dt,theme:N,language:M,minHeight:f,width:g,height:U,relativeHeight:se,padding:ct,children:[D,V,F,P]}),t[89]=S,t[90]=dt,t[91]=Kt,t[92]=U,t[93]=M,t[94]=f,t[95]=ct,t[96]=se,t[97]=Gt,t[98]=Wt,t[99]=D,t[100]=V,t[101]=F,t[102]=P,t[103]=N,t[104]=g,t[105]=rt):rt=t[105],rt}function Xn(e){return e.color}function Fn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e!==void 0}function zn(e){return e!==void 0}function Jn(e){return e.data}function Kn(e){return e!==void 0}function Qn(e){return e.data}exports.MultiLineAltChart=Yn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),L=require("react"),b=require("./parse-xYI9yrvL.cjs"),$e=require("./index-Cno4Q0YE.cjs"),Ve=require("./numberFormattingFunction-02t-wJta.cjs"),Xe=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Te=require("./customArea-B1LWQBmM.cjs"),Fe=require("./AxisTitle-DV4n0RxE.cjs"),Pe=require("./Axis-Jt_tmhxS.cjs"),Be=require("./XTicksAndGridLines-CekrPykD.cjs"),ze=require("./ReferenceLine-M9aP3dj-.cjs"),Je=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Ke=require("./index-D69M6klB.cjs"),F=require("./Colors.cjs"),ke=require("./uniqBy-O05lp2S5.cjs"),Ne=require("./init-DU0ybBc_.cjs"),Qe=require("./time-CkcKbhwe.cjs"),Ze=require("./linear-CgUCbw9F.cjs"),_e=require("./delaunay-rcy0HhZi.cjs"),Ue=require("./line-DaEMhXmx.cjs"),Le=require("./step-BZ3C8QFW.cjs"),tn=require("./select-Bnfk0lJx.cjs"),zt=require("./proxy-C4-uo6nS.cjs"),en=require("./pointer-Dkq5NV1q.cjs"),nn=require("./use-in-view-C3o_ntMv.cjs"),on=require("./GraphFooter.cjs"),rn=require("./GraphHeader.cjs"),sn=require("./EmptyState-B4c-CrXs.cjs"),ln=require("./ColorLegendWithMouseOver.cjs"),He=require("./GraphContainer-B1EDxJ0S.cjs"),an=require("./getNoOfTicks-C_1CFXv_.cjs");function cn(e,t){return Array.from(t,o=>e[o])}function un(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[o]=t;if(o&&o.length!==2||t.length>1){const O=Uint32Array.from(e,(k,u)=>u);return t.length>1?(t=t.map(k=>e.map(k)),O.sort((k,u)=>{for(const r of t){const bt=Ie(r[k],r[u]);if(bt)return bt}})):(o=e.map(o),O.sort((k,u)=>Ie(o[k],o[u]))),cn(e,O)}return e.sort(fn(o))}function fn(e=Ne.ascending){if(e===Ne.ascending)return Ie;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,o)=>{const O=e(t,o);return O||O===0?O:(e(o,o)===0)-(e(t,t)===0)}}function Ie(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function mn(e){const t=s.compilerRuntimeExports.c(128),{data:o,width:O,height:k,lineColors:u,dateFormat:r,noOfXTicks:bt,rightMargin:it,topMargin:Jt,bottomMargin:ot,suffix:$,prefix:g,leftMargin:C,tooltip:Ct,onSeriesMouseOver:rt,refValues:st,highlightAreaSettings:Kt,minValue:P,maxValue:Rt,highlightedLines:V,animate:l,rtl:B,strokeWidth:q,showDots:le,annotations:At,customHighlightAreaSettings:Qt,yAxisTitle:Et,noOfYTicks:Zt,minDate:Lt,maxDate:_t,curveType:lt,styles:w,colorDomain:R,selectedColor:kt,classNames:A,showLabels:pe,dimmedOpacity:S,precision:U,naLabel:ge,customLayers:z,showHighlightedLinesLabels:ye}=e,Nt=L.useRef(null);let J;t[0]!==l.amount||t[1]!==l.once?(J={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=J):J=t[2];const m=nn.useInView(Nt,J),[N,ae]=L.useState(!1);let Dt,at;t[3]!==l.duration||t[4]!==N||t[5]!==m?(Dt=()=>{if(m&&!N){const n=setTimeout(()=>{ae(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},at=[m,N,l.duration],t[3]=l.duration,t[4]=N,t[5]=m,t[6]=Dt,t[7]=at):(Dt=t[6],at=t[7]),L.useEffect(Dt,at);const ce=lt==="linear"?Ue.curveLinear:lt==="step"?Le.curveStep:lt==="stepAfter"?Le.stepAfter:lt==="stepBefore"?Le.stepBefore:Le.monotoneX;let qt;t[8]!==r?(qt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=qt):qt=t[9];const a=$e.orderBy(o.map(qt),["date"],["asc"]).filter(Yn),d=ke.uniqBy(a,"label",!0);let St;t[10]!==r?(St=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=St):St=t[11];const te=un(ke.uniqBy(o,"date",!0).map(St),Wn),[h,ct]=L.useState(void 0),[ut,K]=L.useState(void 0),[ft,Q]=L.useState(void 0),Mt=Et?C+30:C;let mt;t[12]!==ot||t[13]!==it||t[14]!==Mt||t[15]!==Jt?(mt={top:Jt,bottom:ot,left:Mt,right:it},t[12]=ot,t[13]=it,t[14]=Mt,t[15]=Jt,t[16]=mt):mt=t[16];const p=mt,ue=L.useRef(null),fe=d.map(n=>$e.orderBy(a.filter(i=>i.label==n),["date"],["asc"]));let xt;if(t[17]!==r||t[18]!==Kt){let n;t[20]!==r?(n=i=>({...i,coordinates:[i.coordinates[0]===null?null:b.parse(`${i.coordinates[0]}`,r,new Date),i.coordinates[1]===null?null:b.parse(`${i.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],xt=Kt.map(n),t[17]=r,t[18]=Kt,t[19]=xt}else xt=t[19];const Tt=xt;let ht;if(t[22]!==Qt||t[23]!==r){let n;t[25]!==r?(n=i=>({...i,coordinates:i.coordinates.map((y,Bt)=>Bt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],ht=Qt.map(n),t[22]=Qt,t[23]=r,t[24]=ht}else ht=t[24];const me=ht,x=O-p.left-p.right,D=k-p.top-p.bottom,ee=Lt?b.parse(`${Lt}`,r,new Date):te[0],xe=_t?b.parse(`${_t}`,r,new Date):te[te.length-1],j=v.checkIfNullOrUndefined(P)?Math.min(...a.map(Gn).filter(Hn))?Math.min(...a.map(Un).filter(Vn))>0?0:Math.min(...a.map($n).filter(In)):0:P,Z=Math.max(...a.map(Tn).filter(Mn))?Math.max(...a.map(Sn).filter(qn)):0,f=Qe.time().domain([ee,xe]).range([0,x]);let _;t[27]!==j||t[28]!==P?(_=v.checkIfNullOrUndefined(P)?j:P,t[27]=j,t[28]=P,t[29]=_):_=t[29];let tt;t[30]!==Z||t[31]!==Rt?(tt=v.checkIfNullOrUndefined(Rt)?Z>0?Z:0:Rt,t[30]=Z,t[31]=Rt,t[32]=tt):tt=t[32];const c=Ze.linear().domain([_,tt]).range([D,0]).nice(),he=_e.Delaunay.from(a.filter(Dn),n=>f(n.date),n=>c(n.y)).voronoi([0,0,x<0?0:x,D<0?0:D]),It=Ue.line().x(n=>f(n.date)).y(n=>c(n.y)).curve(ce),ne=c.ticks(Zt),$t=f.ticks(bt);L.useEffect(()=>{const n=y=>{const Bt=a[Ne.bisectCenter(a.map(Nn),f.invert(en.pointer(y)[0]),0)];ct(Bt||a[a.length-1]),Q(y.clientY),K(y.clientX),rt?.(Bt||a[a.length-1])},i=()=>{ct(void 0),K(void 0),Q(void 0)};tn.select(ue.current).on("mousemove",n).on("mouseout",i),rt?.(void 0)},[f,a,rt]);let dt;t[33]!==l||t[34]!==D||t[35]!==x||t[36]!==Tt||t[37]!==m||t[38]!==f?(dt=s.jsxRuntimeExports.jsx(Ke.HighlightArea,{areaSettings:Tt,width:x,height:D,scale:f,animate:l,isInView:m}),t[33]=l,t[34]=D,t[35]=x,t[36]=Tt,t[37]=m,t[38]=f,t[39]=dt):dt=t[39];const pt=w?.yAxis?.gridLines,Vt=w?.yAxis?.labels;let E;t[40]!==pt||t[41]!==Vt?(E={gridLines:pt,labels:Vt},t[40]=pt,t[41]=Vt,t[42]=E):E=t[42];const Ut=A?.yAxis?.gridLines,Ht=A?.yAxis?.labels;let gt;t[43]!==Ut||t[44]!==Ht?(gt={gridLines:Ut,labels:Ht},t[43]=Ut,t[44]=Ht,t[45]=gt):gt=t[45];const Gt=c(j<0?0:j),yt=c(j<0?0:j),Wt=0-C,Yt=x+p.right,et=j<0?0:j;let vt;t[46]!==U||t[47]!==g||t[48]!==$||t[49]!==et?(vt=Ve.numberFormattingFunction(et,"NA",U,g,$),t[46]=U,t[47]=g,t[48]=$,t[49]=et,t[50]=vt):vt=t[50];const Ot=0-C,de=c(j<0?0:j),Xt=Z<0?"1em":-5;let jt;t[51]!==Ot||t[52]!==de||t[53]!==Xt?(jt={x:Ot,y:de,dx:0,dy:Xt},t[51]=Ot,t[52]=de,t[53]=Xt,t[54]=jt):jt=t[54];const Ft=A?.xAxis?.axis,ie=A?.yAxis?.labels;let M;t[55]!==Ft||t[56]!==ie?(M={axis:Ft,label:ie},t[55]=Ft,t[56]=ie,t[57]=M):M=t[57];const wt=w?.xAxis?.axis,Pt=w?.yAxis?.labels;let H;t[58]!==wt||t[59]!==Pt?(H={axis:wt,label:Pt},t[58]=wt,t[59]=Pt,t[60]=H):H=t[60];let T;t[61]!==Gt||t[62]!==yt||t[63]!==Wt||t[64]!==Yt||t[65]!==vt||t[66]!==jt||t[67]!==M||t[68]!==H?(T=s.jsxRuntimeExports.jsx(Pe.Axis,{y1:Gt,y2:yt,x1:Wt,x2:Yt,label:vt,labelPos:jt,classNames:M,styles:H}),t[61]=Gt,t[62]=yt,t[63]=Wt,t[64]=Yt,t[65]=vt,t[66]=jt,t[67]=M,t[68]=H,t[69]=T):T=t[69];const G=0-C-15,W=D/2,Y=w?.yAxis?.title,X=A?.yAxis?.title;let I;t[70]!==G||t[71]!==W||t[72]!==Y||t[73]!==X||t[74]!==Et?(I=s.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:G,y:W,style:Y,className:X,text:Et,rotate90:!0}),t[70]=G,t[71]=W,t[72]=Y,t[73]=X,t[74]=Et,t[75]=I):I=t[75];let nt;t[76]!==r?(nt=n=>b.format(n,r),t[76]=r,t[77]=nt):nt=t[77];const ve=$t.map(nt),Oe=$t.map(n=>f(n)),De=w?.xAxis?.gridLines,qe=w?.xAxis?.labels;let je;t[78]!==De||t[79]!==qe?(je={gridLines:De,labels:qe},t[78]=De,t[79]=qe,t[80]=je):je=t[80];const Se=A?.xAxis?.gridLines;let oe;t[81]!==Se?(oe=s.mo("opacity-0",Se),t[81]=Se,t[82]=oe):oe=t[82];const Me=A?.xAxis?.labels;let re;t[83]!==Me?(re=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Me),t[83]=Me,t[84]=re):re=t[84];let we;t[85]!==oe||t[86]!==re?(we={gridLines:oe,labels:re},t[85]=oe,t[86]=re,t[87]=we):we=t[87];let be;t[88]!==z?(be=z.filter(En).map(An),t[88]=z,t[89]=be):be=t[89];const Ge=a.filter(dn).map((n,i)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:he.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{ct(n),Q(y.clientY),K(y.clientX),rt?.(n)},onMouseMove:y=>{ct(n),Q(y.clientY),K(y.clientX)},onMouseLeave:()=>{ct(void 0),K(void 0),Q(void 0),rt?.(void 0)}})},i));let Ce;t[90]!==l||t[91]!==x||t[92]!==m||t[93]!==C||t[94]!==p.right||t[95]!==st||t[96]!==c?(Ce=st?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:st.map((n,i)=>s.jsxRuntimeExports.jsx(ze.RefLineY,{text:n.text,color:n.color,y:c(n.value),x1:0-C,x2:x+p.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},i))}):null,t[90]=l,t[91]=x,t[92]=m,t[93]=C,t[94]=p.right,t[95]=st,t[96]=c,t[97]=Ce):Ce=t[97];let se;if(t[98]!==l||t[99]!==At||t[100]!==r||t[101]!==x||t[102]!==m||t[103]!==p.right||t[104]!==B||t[105]!==f||t[106]!==c){let n;t[108]!==l||t[109]!==r||t[110]!==x||t[111]!==m||t[112]!==p.right||t[113]!==B||t[114]!==f||t[115]!==c?(n=(i,y)=>{const Bt=Te.getLineEndPoint({x:i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),y:i.yCoordinate?c(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8},{x:i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date)):0,y:i.yCoordinate?c(i.yCoordinate):0},v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius),We=i.showConnector?{y1:Bt.y,x1:Bt.x,y2:i.yCoordinate?c(i.yCoordinate)+(i.yOffset||0):0+(i.yOffset||0),x2:i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),cy:i.yCoordinate?c(i.yCoordinate):0,cx:i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius,strokeWidth:i.showConnector===!0?2:Math.min(i.showConnector||0,1)}:void 0,Ye={y:i.yCoordinate?c(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8,x:B?0:i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),width:B?i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0):x+p.right-(i.xCoordinate?f(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0)),maxWidth:i.maxWidth,fontWeight:i.fontWeight,align:i.align};return s.jsxRuntimeExports.jsx(Te.Annotation,{color:i.color,connectorsSettings:We,labelSettings:Ye,text:i.text,classNames:i.classNames,styles:i.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=x,t[111]=m,t[112]=p.right,t[113]=B,t[114]=f,t[115]=c,t[116]=n):n=t[116],se=At.map(n),t[98]=l,t[99]=At,t[100]=r,t[101]=x,t[102]=m,t[103]=p.right,t[104]=B,t[105]=f,t[106]=c,t[107]=se}else se=t[107];let Re;t[117]!==se?(Re=s.jsxRuntimeExports.jsx("g",{children:se}),t[117]=se,t[118]=Re):Re=t[118];let Ae;t[119]!==z?(Ae=z.filter(hn).map(xn),t[119]=z,t[120]=Ae):Ae=t[120];let Ee;return t[121]!==A?.tooltip||t[122]!==ut||t[123]!==ft||t[124]!==h||t[125]!==w?.tooltip||t[126]!==Ct?(Ee=h&&Ct&&ut&&ft?s.jsxRuntimeExports.jsx(Xe.Tooltip,{data:h,body:Ct,xPos:ut,yPos:ft,backgroundStyle:w?.tooltip,className:A?.tooltip}):null,t[121]=A?.tooltip,t[122]=ut,t[123]=ft,t[124]=h,t[125]=w?.tooltip,t[126]=Ct,t[127]=Ee):Ee=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(zt.motion.svg,{width:`${O}px`,height:`${k}px`,viewBox:`0 0 ${O} ${k}`,direction:"ltr",ref:Nt,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${p.left},${p.top})`,children:[dt,s.jsxRuntimeExports.jsx(Te.CustomArea,{areaSettings:me,scaleX:f,scaleY:c,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(Je.YTicksAndGridLines,{values:ne.filter(kn),y:ne.filter(Ln).map(n=>c(n)),x1:0-C,x2:x+p.right,styles:E,classNames:gt,suffix:$,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:U}),T,I]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Be.XTicksAndGridLines,{values:ve,x:Oe,y1:0,y2:D,styles:je,classNames:we,suffix:$,prefix:g,labelType:"primary",showGridLines:!0,precision:U})}),be,s.jsxRuntimeExports.jsxs(zt.motion.g,{children:[fe.map(n=>s.jsxRuntimeExports.jsxs(zt.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:h?n[0].label===h.label?1:S:kt?n[0].color&&u[R.indexOf(n[0].color)]===kt?1:S:V.length!==0?V.indexOf(n[0].label)!==-1?1:S:1},whileInView:{opacity:h?n[0].label===h.label?1:S:kt?n[0].color&&u[R.indexOf(n[0].color)]===kt?1:S:V.length!==0?V.indexOf(n[0].label)!==-1?1:S:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(zt.motion.path,{d:It(n.filter(Rn))||"",style:{fill:"none",strokeWidth:h?n[0].label===h.label?q+Math.max(2,.5*q):q:V.length!==0&&V.indexOf(n[0].label)!==-1?q+Math.max(2,.5*q):q},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:It(n.filter(Cn))||"",opacity:1,stroke:o.filter(bn).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray},whileInView:{pathLength:1,d:It(n.filter(wn))||"",opacity:1,stroke:o.filter(jn).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((i,y)=>s.jsxRuntimeExports.jsx(zt.motion.g,{children:v.checkIfNullOrUndefined(i.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:le?s.jsxRuntimeExports.jsx(zt.motion.circle,{r:x/n.length<5?0:x/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:o.filter(On).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray,cx:f(i.date),cy:c(i.y)},whileInView:{opacity:1,fill:o.filter(vn).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:N?l.duration:.5,delay:N?0:l.duration},cx:f(i.date),cy:c(i.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(V.indexOf(n[0].label)!==-1&&ye||h?.label===n[0].label)&&pe?s.jsxRuntimeExports.jsx(zt.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:o.filter(yn).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray,x:f(n[n.length-1].date),y:c(n[n.length-1].y)},whileInView:{opacity:1,fill:o.filter(gn).length===0?u[0]:n[0].color?u[R.indexOf(n[0].color)]:F.Colors.gray,x:f(n[n.length-1].date),y:c(n[n.length-1].y),transition:{duration:N?l.duration:.5,delay:N?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),h?s.jsxRuntimeExports.jsx("text",{y:c(h.y)-8,x:f(h.date),className:s.mo("graph-value text-sm font-bold",A?.graphObjectValues),style:{fill:o.filter(pn).length===0?u[0]:h.color?u[R.indexOf(h.color)]:F.Colors.gray,textAnchor:"middle",...w?.graphObjectValues||{}},children:Ve.numberFormattingFunction(h.y,ge,U,g,$)}):null]}),Ge,Ce,Re,Ae]})}),Ee]})}function xn(e){return e.layer}function hn(e){return e.position==="after"}function dn(e){return!v.checkIfNullOrUndefined(e.y)}function pn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function On(e){return e.color}function jn(e){return e.color}function wn(e){return!v.checkIfNullOrUndefined(e.y)}function bn(e){return e.color}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return!v.checkIfNullOrUndefined(e.y)}function An(e){return e.layer}function En(e){return e.position==="before"}function Ln(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function qn(e){return!v.checkIfNullOrUndefined(e)}function Sn(e){return e.y}function Mn(e){return!v.checkIfNullOrUndefined(e)}function Tn(e){return e.y}function In(e){return!v.checkIfNullOrUndefined(e)}function $n(e){return e.y}function Vn(e){return!v.checkIfNullOrUndefined(e)}function Un(e){return e.y}function Hn(e){return!v.checkIfNullOrUndefined(e)}function Gn(e){return e.y}function Wn(e,t){return Ne.ascending(e,t)}function Yn(e){return!v.checkIfNullOrUndefined(e.y)}function Xn(e){const t=s.compilerRuntimeExports.c(107),{data:o,graphTitle:O,showNAColor:k,colors:u,colorDomain:r,suffix:bt,sources:it,prefix:Jt,graphDescription:ot,height:$,width:g,footNote:C,noOfXTicks:Ct,dateFormat:rt,padding:st,backgroundColor:Kt,leftMargin:P,rightMargin:Rt,topMargin:V,bottomMargin:l,showColorScale:B,tooltip:q,relativeHeight:le,onSeriesMouseOver:At,showLabels:Qt,showHighlightedLinesLabels:Et,refValues:Zt,highlightAreaSettings:Lt,graphID:_t,minValue:lt,maxValue:w,highlightedLines:R,graphDownload:kt,dataDownload:A,animate:pe,language:S,colorLegendTitle:U,minHeight:ge,strokeWidth:z,showDots:ye,annotations:Nt,customHighlightAreaSettings:J,theme:m,ariaLabel:N,yAxisTitle:ae,noOfYTicks:Dt,minDate:at,maxDate:ce,curveType:qt,styles:a,classNames:d,dimmedOpacity:St,precision:te,customLayers:h,naLabel:ct}=e,ut=k===void 0?!0:k,K=bt===void 0?"":bt,ft=Jt===void 0?"":Jt,Q=Ct===void 0?10:Ct,Mt=rt===void 0?"yyyy":rt,mt=Kt===void 0?!1:Kt,p=P===void 0?30:P,ue=Rt===void 0?50:Rt,fe=V===void 0?20:V,xt=l===void 0?25:l,Tt=B===void 0?!0:B,ht=Qt===void 0?!0:Qt,me=Et===void 0?!1:Et;let x;t[0]!==Zt?(x=Zt===void 0?[]:Zt,t[0]=Zt,t[1]=x):x=t[1];const D=x;let ee;t[2]!==Lt?(ee=Lt===void 0?[]:Lt,t[2]=Lt,t[3]=ee):ee=t[3];const xe=ee;let j;t[4]!==R?(j=R===void 0?[]:R,t[4]=R,t[5]=j):j=t[5];const Z=j,f=kt===void 0?!1:kt,_=A===void 0?!1:A,tt=pe===void 0?!1:pe,c=S===void 0?"en":S,he=ge===void 0?0:ge,It=z===void 0?2:z,ne=ye===void 0?!0:ye;let $t;t[6]!==Nt?($t=Nt===void 0?[]:Nt,t[6]=Nt,t[7]=$t):$t=t[7];const dt=$t;let pt;t[8]!==J?(pt=J===void 0?[]:J,t[8]=J,t[9]=pt):pt=t[9];const Vt=pt,E=m===void 0?"light":m,Ut=Dt===void 0?5:Dt,Ht=qt===void 0?"curve":qt,gt=St===void 0?.3:St,Gt=te===void 0?2:te;let yt;t[10]!==h?(yt=h===void 0?[]:h,t[10]=h,t[11]=yt):yt=t[11];const Wt=yt,Yt=ct===void 0?"NA":ct,[et,vt]=L.useState(0),[Ot,de]=L.useState(0),[Xt,jt]=L.useState(void 0),Ft=L.useRef(null),ie=L.useRef(null);let M,wt;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{const ve=new ResizeObserver(Oe=>{vt(Oe[0].target.clientWidth||620),de(Oe[0].target.clientHeight||480)});return Ft.current&&ve.observe(Ft.current),()=>ve.disconnect()},wt=[],t[12]=M,t[13]=wt):(M=t[12],wt=t[13]),L.useEffect(M,wt);const Pt=d?.graphContainer,H=a?.graphContainer;let T;t[14]!==d?.description||t[15]!==d?.title||t[16]!==o||t[17]!==_||t[18]!==ot||t[19]!==f||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(T=O||ot||f||_?s.jsxRuntimeExports.jsx(rn.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:ot,width:g,graphDownload:f?ie:void 0,dataDownload:_?o.map(Zn).filter(Qn).length>0?o.map(Kn).filter(Jn):o.filter(zn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=o,t[17]=_,t[18]=ot,t[19]=f,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=T):T=t[24];let G;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==U||t[28]!==u||t[29]!==o||t[30]!==Tt||t[31]!==ut||t[32]!==E||t[33]!==g?(G=Tt&&o.filter(Bn).length!==0&&o.length>0?s.jsxRuntimeExports.jsx(ln.ColorLegendWithMouseOver,{width:g,colorLegendTitle:U,colors:u||F.Colors[E].categoricalColors.colors,colorDomain:r||ke.uniqBy(o,"color",!0),setSelectedColor:jt,showNAColor:ut,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=U,t[28]=u,t[29]=o,t[30]=Tt,t[31]=ut,t[32]=E,t[33]=g,t[34]=G):G=t[34];let W;t[35]!==o.length?(W=o.length===0&&s.jsxRuntimeExports.jsx(sn.EmptyState,{}),t[35]=o.length,t[36]=W):W=t[36];let Y;t[37]!==tt||t[38]!==dt||t[39]!==xt||t[40]!==d||t[41]!==r||t[42]!==u||t[43]!==Ht||t[44]!==Vt||t[45]!==Wt||t[46]!==o||t[47]!==Mt||t[48]!==gt||t[49]!==xe||t[50]!==Z||t[51]!==c||t[52]!==p||t[53]!==ce||t[54]!==w||t[55]!==at||t[56]!==lt||t[57]!==Yt||t[58]!==Q||t[59]!==Ut||t[60]!==At||t[61]!==Gt||t[62]!==ft||t[63]!==D||t[64]!==ue||t[65]!==Xt||t[66]!==ne||t[67]!==me||t[68]!==ht||t[69]!==It||t[70]!==a||t[71]!==K||t[72]!==Ot||t[73]!==et||t[74]!==E||t[75]!==q||t[76]!==fe||t[77]!==ae?(Y=et&&Ot&&o.length>0?s.jsxRuntimeExports.jsx(mn,{data:o,lineColors:o.filter(Pn).length===0?u?[u]:[F.Colors.primaryColors["blue-600"]]:u||F.Colors[E].categoricalColors.colors,width:et,height:Ot,dateFormat:Mt,noOfXTicks:Q??an.getNoOfTicks(et),leftMargin:p,rightMargin:ue,topMargin:fe,bottomMargin:xt,tooltip:q,onSeriesMouseOver:At,suffix:K,prefix:ft,highlightAreaSettings:xe,refValues:D,minValue:lt,maxValue:w,highlightedLines:Z,showHighlightedLinesLabels:me,animate:tt===!0?{duration:.5,once:!0,amount:.5}:tt||{duration:0,once:!0,amount:0},rtl:c==="he"||c==="ar",strokeWidth:It,showDots:ne,annotations:dt,customHighlightAreaSettings:Vt,yAxisTitle:ae,noOfYTicks:Ut,minDate:at,maxDate:ce,curveType:Ht,styles:a,classNames:d,selectedColor:Xt,showLabels:ht,colorDomain:o.filter(Fn).length===0?[]:r||ke.uniqBy(o,"color",!0),dimmedOpacity:gt,precision:Gt,customLayers:Wt,naLabel:Yt}):null,t[37]=tt,t[38]=dt,t[39]=xt,t[40]=d,t[41]=r,t[42]=u,t[43]=Ht,t[44]=Vt,t[45]=Wt,t[46]=o,t[47]=Mt,t[48]=gt,t[49]=xe,t[50]=Z,t[51]=c,t[52]=p,t[53]=ce,t[54]=w,t[55]=at,t[56]=lt,t[57]=Yt,t[58]=Q,t[59]=Ut,t[60]=At,t[61]=Gt,t[62]=ft,t[63]=D,t[64]=ue,t[65]=Xt,t[66]=ne,t[67]=me,t[68]=ht,t[69]=It,t[70]=a,t[71]=K,t[72]=Ot,t[73]=et,t[74]=E,t[75]=q,t[76]=fe,t[77]=ae,t[78]=Y):Y=t[78];let X;t[79]!==W||t[80]!==Y?(X=s.jsxRuntimeExports.jsxs(He.GraphArea,{ref:Ft,children:[W,Y]}),t[79]=W,t[80]=Y,t[81]=X):X=t[81];let I;t[82]!==d?.footnote||t[83]!==d?.source||t[84]!==C||t[85]!==it||t[86]!==a?.footnote||t[87]!==a?.source||t[88]!==g?(I=it||C?s.jsxRuntimeExports.jsx(on.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:it,footNote:C,width:g}):null,t[82]=d?.footnote,t[83]=d?.source,t[84]=C,t[85]=it,t[86]=a?.footnote,t[87]=a?.source,t[88]=g,t[89]=I):I=t[89];let nt;return t[90]!==N||t[91]!==mt||t[92]!==_t||t[93]!==$||t[94]!==c||t[95]!==he||t[96]!==st||t[97]!==le||t[98]!==Pt||t[99]!==H||t[100]!==T||t[101]!==G||t[102]!==X||t[103]!==I||t[104]!==E||t[105]!==g?(nt=s.jsxRuntimeExports.jsxs(He.GraphContainer,{className:Pt,style:H,id:_t,ref:ie,"aria-label":N,backgroundColor:mt,theme:E,language:c,minHeight:he,width:g,height:$,relativeHeight:le,padding:st,children:[T,G,X,I]}),t[90]=N,t[91]=mt,t[92]=_t,t[93]=$,t[94]=c,t[95]=he,t[96]=st,t[97]=le,t[98]=Pt,t[99]=H,t[100]=T,t[101]=G,t[102]=X,t[103]=I,t[104]=E,t[105]=g,t[106]=nt):nt=t[106],nt}function Fn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e.color}function zn(e){return e!==void 0}function Jn(e){return e!==void 0}function Kn(e){return e.data}function Qn(e){return e!==void 0}function Zn(e){return e.data}exports.MultiLineAltChart=Xn;
2
2
  //# sourceMappingURL=MultiLineAltChart.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiLineAltChart.cjs","sources":["../node_modules/d3-array/src/permute.js","../node_modules/d3-array/src/sort.js","../src/Components/Graphs/LineCharts/MultiLineAltChart/Graph.tsx","../src/Components/Graphs/LineCharts/MultiLineAltChart/index.tsx"],"sourcesContent":["export default function permute(source, keys) {\n return Array.from(keys, key => source[key]);\n}\n","import ascending from \"./ascending.js\";\nimport permute from \"./permute.js\";\n\nexport default function sort(values, ...F) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n values = Array.from(values);\n let [f] = F;\n if ((f && f.length !== 2) || F.length > 1) {\n const index = Uint32Array.from(values, (d, i) => i);\n if (F.length > 1) {\n F = F.map(f => values.map(f));\n index.sort((i, j) => {\n for (const f of F) {\n const c = ascendingDefined(f[i], f[j]);\n if (c) return c;\n }\n });\n } else {\n f = values.map(f);\n index.sort((i, j) => ascendingDefined(f[i], f[j]));\n }\n return permute(values, index);\n }\n return values.sort(compareDefined(f));\n}\n\nexport function compareDefined(compare = ascending) {\n if (compare === ascending) return ascendingDefined;\n if (typeof compare !== \"function\") throw new TypeError(\"compare is not a function\");\n return (a, b) => {\n const x = compare(a, b);\n if (x || x === 0) return x;\n return (compare(b, b) === 0) - (compare(a, a) === 0);\n };\n}\n\nexport function ascendingDefined(a, b) {\n return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);\n}\n","import { useEffect, useRef, useState } from 'react';\r\nimport {\r\n line,\r\n curveLinear,\r\n curveMonotoneX,\r\n curveStep,\r\n curveStepAfter,\r\n curveStepBefore,\r\n} from 'd3-shape';\r\nimport { scaleLinear, scaleTime } from 'd3-scale';\r\nimport { format } from 'date-fns/format';\r\nimport { parse } from 'date-fns/parse';\r\nimport { bisectCenter } from 'd3-array';\r\nimport { pointer, select } from 'd3-selection';\r\nimport { ascending, sort } from 'd3-array';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { Delaunay } from 'd3-delaunay';\r\nimport { motion, useInView } from 'motion/react';\r\nimport orderBy from 'lodash.orderby';\r\n\r\nimport {\r\n AnimateDataType,\r\n AnnotationSettingsDataType,\r\n ClassNameObject,\r\n CurveTypes,\r\n CustomHighlightAreaSettingsDataType,\r\n CustomLayerDataType,\r\n HighlightAreaSettingsDataType,\r\n MultiLineAltChartDataType,\r\n ReferenceDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { getLineEndPoint } from '@/Utils/getLineEndPoint';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { XTicksAndGridLines } from '@/Components/Elements/Axes/XTicksAndGridLines';\r\nimport { RefLineY } from '@/Components/Elements/ReferenceLine';\r\nimport { Annotation } from '@/Components/Elements/Annotations';\r\nimport { YTicksAndGridLines } from '@/Components/Elements/Axes/YTicksAndGridLines';\r\nimport { CustomArea } from '@/Components/Elements/HighlightArea/customArea';\r\nimport { HighlightArea } from '@/Components/Elements/HighlightArea';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: MultiLineAltChartDataType[];\r\n lineColors: string[];\r\n width: number;\r\n height: number;\r\n dateFormat: string;\r\n noOfXTicks: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n suffix: string;\r\n prefix: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightAreaSettings: HighlightAreaSettingsDataType[];\r\n refValues: ReferenceDataType[];\r\n maxValue?: number;\r\n minValue?: number;\r\n highlightedLines: (string | number)[];\r\n animate: AnimateDataType;\r\n rtl: boolean;\r\n strokeWidth: number;\r\n showLabels: boolean;\r\n showDots: boolean;\r\n annotations: AnnotationSettingsDataType[];\r\n customHighlightAreaSettings: CustomHighlightAreaSettingsDataType[];\r\n yAxisTitle?: string;\r\n noOfYTicks: number;\r\n minDate?: string | number;\r\n maxDate?: string | number;\r\n colorDomain: (string | number)[];\r\n curveType: CurveTypes;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n selectedColor?: string;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n naLabel: string;\r\n}\r\n\r\ninterface FormattedDataType {\r\n y: number;\r\n date: Date;\r\n label: number | string;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n lineColors,\r\n dateFormat,\r\n noOfXTicks,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n suffix,\r\n prefix,\r\n leftMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n refValues,\r\n highlightAreaSettings,\r\n minValue,\r\n maxValue,\r\n highlightedLines,\r\n animate,\r\n rtl,\r\n strokeWidth,\r\n showDots,\r\n annotations,\r\n customHighlightAreaSettings,\r\n yAxisTitle,\r\n noOfYTicks,\r\n minDate,\r\n maxDate,\r\n curveType,\r\n styles,\r\n colorDomain,\r\n selectedColor,\r\n classNames,\r\n showLabels,\r\n dimmedOpacity,\r\n precision,\r\n naLabel,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const [hasAnimatedOnce, setHasAnimatedOnce] = useState(false);\r\n\r\n useEffect(() => {\r\n if (isInView && !hasAnimatedOnce) {\r\n const timeout = setTimeout(\r\n () => {\r\n setHasAnimatedOnce(true);\r\n },\r\n (animate.duration + 0.5) * 1000,\r\n );\r\n return () => clearTimeout(timeout);\r\n }\r\n }, [isInView, hasAnimatedOnce, animate.duration]);\r\n const curve =\r\n curveType === 'linear'\r\n ? curveLinear\r\n : curveType === 'step'\r\n ? curveStep\r\n : curveType === 'stepAfter'\r\n ? curveStepAfter\r\n : curveType === 'stepBefore'\r\n ? curveStepBefore\r\n : curveMonotoneX;\r\n const dataFormatted = orderBy(\r\n data.map(d => ({\r\n ...d,\r\n date: parse(`${d.date}`, dateFormat, new Date()),\r\n })),\r\n ['date'],\r\n ['asc'],\r\n ).filter(d => !checkIfNullOrUndefined(d.y));\r\n const labels = uniqBy(dataFormatted, 'label', true) as (string | number)[];\r\n const dates = sort(\r\n uniqBy(data, 'date', true).map(d => parse(`${d}`, dateFormat, new Date())),\r\n (a, b) => ascending(a, b),\r\n );\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: yAxisTitle ? leftMargin + 30 : leftMargin,\r\n right: rightMargin,\r\n };\r\n const MouseoverRectRef = useRef(null);\r\n const lineArray = labels.map(d =>\r\n orderBy(\r\n dataFormatted.filter(el => el.label == d),\r\n ['date'],\r\n ['asc'],\r\n ),\r\n );\r\n const highlightAreaSettingsFormatted = highlightAreaSettings.map(d => ({\r\n ...d,\r\n coordinates: [\r\n d.coordinates[0] === null ? null : parse(`${d.coordinates[0]}`, dateFormat, new Date()),\r\n d.coordinates[1] === null ? null : parse(`${d.coordinates[1]}`, dateFormat, new Date()),\r\n ],\r\n }));\r\n const customHighlightAreaSettingsFormatted = customHighlightAreaSettings.map(d => ({\r\n ...d,\r\n coordinates: d.coordinates.map((el, j) =>\r\n j % 2 === 0 ? parse(`${el}`, dateFormat, new Date()) : (el as number),\r\n ),\r\n }));\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minYear = minDate ? parse(`${minDate}`, dateFormat, new Date()) : dates[0];\r\n const maxYear = maxDate ? parse(`${maxDate}`, dateFormat, new Date()) : dates[dates.length - 1];\r\n const minParam: number = checkIfNullOrUndefined(minValue)\r\n ? Math.min(...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]))\r\n ? (Math.min(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number) > 0\r\n ? 0\r\n : (Math.min(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n : 0\r\n : (minValue as number);\r\n const maxParam: number = (Math.max(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n ? (Math.max(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n : 0;\r\n\r\n const x = scaleTime().domain([minYear, maxYear]).range([0, graphWidth]);\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? minParam : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxParam > 0 ? maxParam : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n\r\n const voronoiDiagram = Delaunay.from(\r\n dataFormatted.filter(d => !checkIfNullOrUndefined(d.date) && !checkIfNullOrUndefined(d.y)),\r\n d => x(d.date),\r\n d => y(d.y as number),\r\n ).voronoi([0, 0, graphWidth < 0 ? 0 : graphWidth, graphHeight < 0 ? 0 : graphHeight]);\r\n const lineShape = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y))\r\n .curve(curve);\r\n const yTicks = y.ticks(noOfYTicks);\r\n const xTicks = x.ticks(noOfXTicks);\r\n useEffect(() => {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const mousemove = (event: any) => {\r\n const selectedData =\r\n dataFormatted[\r\n bisectCenter(\r\n dataFormatted.map(d => d.date),\r\n x.invert(pointer(event)[0]),\r\n 0,\r\n )\r\n ];\r\n setMouseOverData(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n };\r\n const mouseout = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n };\r\n select(MouseoverRectRef.current).on('mousemove', mousemove).on('mouseout', mouseout);\r\n onSeriesMouseOver?.(undefined);\r\n }, [x, dataFormatted, onSeriesMouseOver]);\r\n\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <HighlightArea\r\n areaSettings={highlightAreaSettingsFormatted}\r\n width={graphWidth}\r\n height={graphHeight}\r\n scale={x}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n <CustomArea\r\n areaSettings={customHighlightAreaSettingsFormatted}\r\n scaleX={x}\r\n scaleY={y}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n <g>\r\n <YTicksAndGridLines\r\n values={yTicks.filter(d => d !== 0)}\r\n y={yTicks.filter(d => d !== 0).map(d => y(d))}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n styles={{\r\n gridLines: styles?.yAxis?.gridLines,\r\n labels: styles?.yAxis?.labels,\r\n }}\r\n classNames={{\r\n gridLines: classNames?.yAxis?.gridLines,\r\n labels: classNames?.yAxis?.labels,\r\n }}\r\n suffix={suffix}\r\n prefix={prefix}\r\n labelType='secondary'\r\n showGridLines\r\n labelPos='vertical'\r\n precision={precision}\r\n />\r\n <Axis\r\n y1={y(minParam < 0 ? 0 : minParam)}\r\n y2={y(minParam < 0 ? 0 : minParam)}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n label={numberFormattingFunction(\r\n minParam < 0 ? 0 : minParam,\r\n 'NA',\r\n precision,\r\n prefix,\r\n suffix,\r\n )}\r\n labelPos={{\r\n x: 0 - leftMargin,\r\n y: y(minParam < 0 ? 0 : minParam),\r\n dx: 0,\r\n dy: maxParam < 0 ? '1em' : -5,\r\n }}\r\n classNames={{\r\n axis: classNames?.xAxis?.axis,\r\n label: classNames?.yAxis?.labels,\r\n }}\r\n styles={{\r\n axis: styles?.xAxis?.axis,\r\n label: styles?.yAxis?.labels,\r\n }}\r\n />\r\n <AxisTitle\r\n x={0 - leftMargin - 15}\r\n y={graphHeight / 2}\r\n style={styles?.yAxis?.title}\r\n className={classNames?.yAxis?.title}\r\n text={yAxisTitle}\r\n rotate90\r\n />\r\n </g>\r\n <g>\r\n <XTicksAndGridLines\r\n values={xTicks.map(d => format(d, dateFormat))}\r\n x={xTicks.map(d => x(d))}\r\n y1={0}\r\n y2={graphHeight}\r\n styles={{\r\n gridLines: styles?.xAxis?.gridLines,\r\n labels: styles?.xAxis?.labels,\r\n }}\r\n classNames={{\r\n gridLines: cn('opacity-0', classNames?.xAxis?.gridLines),\r\n labels: cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs',\r\n classNames?.xAxis?.labels,\r\n ),\r\n }}\r\n suffix={suffix}\r\n prefix={prefix}\r\n labelType='primary'\r\n showGridLines\r\n precision={precision}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <motion.g>\r\n {lineArray.map(d => (\r\n <motion.g\r\n key={d[0].label}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d[0].color\r\n ? lineColors[colorDomain.indexOf(d[0].color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d[0].color\r\n ? lineColors[colorDomain.indexOf(d[0].color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <motion.path\r\n d={\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || ''\r\n }\r\n style={{\r\n fill: 'none',\r\n strokeWidth: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? strokeWidth + Math.max(2, 0.5 * strokeWidth)\r\n : strokeWidth\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? strokeWidth + Math.max(2, 0.5 * strokeWidth)\r\n : strokeWidth\r\n : strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n pathLength: 0,\r\n d:\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || '',\r\n opacity: 1,\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n },\r\n whileInView: {\r\n pathLength: 1,\r\n d:\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || '',\r\n opacity: 1,\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n {d.map((el, j) => (\r\n <motion.g key={j}>\r\n {!checkIfNullOrUndefined(el.y) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={graphWidth / d.length < 5 ? 0 : graphWidth / d.length < 20 ? 2 : 4}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n cx: x(el.date),\r\n cy: y(el.y as number),\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n cx: x(el.date),\r\n cy: y(el.y as number),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n </>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n {(highlightedLines.indexOf(d[0].label) !== -1 ||\r\n mouseOverData?.label === d[0].label) &&\r\n showLabels ? (\r\n <motion.text\r\n className='text-sm font-bold'\r\n dx={5}\r\n dy={4}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n x: x(d[d.length - 1].date),\r\n y: y(d[d.length - 1].y as number),\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n x: x(d[d.length - 1].date),\r\n y: y(d[d.length - 1].y as number),\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n {d[0].label}\r\n </motion.text>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n {mouseOverData ? (\r\n <text\r\n y={y(mouseOverData.y) - 8}\r\n x={x(mouseOverData.date)}\r\n className={cn('graph-value text-sm font-bold', classNames?.graphObjectValues)}\r\n style={{\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !mouseOverData.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(mouseOverData.color)],\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {numberFormattingFunction(mouseOverData.y, naLabel, precision, prefix, suffix)}\r\n </text>\r\n ) : null}\r\n </motion.g>\r\n {dataFormatted\r\n .filter(d => !checkIfNullOrUndefined(d.y))\r\n .map((d, i) => {\r\n return (\r\n <g key={i}>\r\n <path\r\n d={voronoiDiagram.renderCell(\r\n dataFormatted.findIndex(el => el.label === d.label && el.date === d.date),\r\n )}\r\n opacity={0}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n />\r\n </g>\r\n );\r\n })}\r\n {refValues ? (\r\n <>\r\n {refValues.map((el, i) => (\r\n <RefLineY\r\n key={i}\r\n text={el.text}\r\n color={el.color}\r\n y={y(el.value as number)}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n classNames={el.classNames}\r\n styles={el.styles}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n ))}\r\n </>\r\n ) : null}\r\n <g>\r\n {annotations.map((d, i) => {\r\n const endPoints = getLineEndPoint(\r\n {\r\n x: d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n y: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0) - 8\r\n : 0 + (d.yOffset || 0) - 8,\r\n },\r\n {\r\n x: d.xCoordinate ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) : 0,\r\n y: d.yCoordinate ? y(d.yCoordinate as number) : 0,\r\n },\r\n checkIfNullOrUndefined(d.connectorRadius) ? 3.5 : (d.connectorRadius as number),\r\n );\r\n const connectorSettings = d.showConnector\r\n ? {\r\n y1: endPoints.y,\r\n x1: endPoints.x,\r\n y2: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0)\r\n : 0 + (d.yOffset || 0),\r\n x2: d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n cy: d.yCoordinate ? y(d.yCoordinate as number) : 0,\r\n cx: d.xCoordinate ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) : 0,\r\n circleRadius: checkIfNullOrUndefined(d.connectorRadius)\r\n ? 3.5\r\n : (d.connectorRadius as number),\r\n strokeWidth: d.showConnector === true ? 2 : Math.min(d.showConnector || 0, 1),\r\n }\r\n : undefined;\r\n const labelSettings = {\r\n y: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0) - 8\r\n : 0 + (d.yOffset || 0) - 8,\r\n x: rtl\r\n ? 0\r\n : d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n width: rtl\r\n ? d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0)\r\n : graphWidth +\r\n margin.right -\r\n (d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0)),\r\n maxWidth: d.maxWidth,\r\n fontWeight: d.fontWeight,\r\n align: d.align,\r\n };\r\n return (\r\n <Annotation\r\n key={i}\r\n color={d.color}\r\n connectorsSettings={connectorSettings}\r\n labelSettings={labelSettings}\r\n text={d.text}\r\n classNames={d.classNames}\r\n styles={d.styles}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n );\r\n })}\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n AnnotationSettingsDataType,\r\n CustomHighlightAreaSettingsDataType,\r\n Languages,\r\n MultiLineAltChartDataType,\r\n ReferenceDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n HighlightAreaSettingsDataType,\r\n CurveTypes,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\nimport { getNoOfTicks } from '@/Utils/getNoOfTicks';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: MultiLineAltChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for lines */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: (string | number)[];\r\n /** Toggle the visibility of labels of the lines when highlighted or mouse hovered */\r\n showLabels?: boolean;\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n /** Reference values for comparison */\r\n refValues?: ReferenceDataType[];\r\n /** Maximum value of the date for the chart */\r\n maxDate?: string | number;\r\n /** Minimum value of the date for the chart */\r\n minDate?: string | number;\r\n /** No. of ticks on the x-axis */\r\n noOfXTicks?: number;\r\n /** No. of ticks on the y-axis */\r\n noOfYTicks?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle the initial animation of the line. If the type is number then it uses the number as the time in seconds for animation. */\r\n animate?: boolean | AnimateDataType;\r\n /** Format of the date in the data object. Available formats can be found [here](https://date-fns.org/docs/format) */\r\n dateFormat?: string;\r\n /** Title for the Y-axis */\r\n yAxisTitle?: string;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Defines how “NA” values should be displayed/labelled in the graph */\r\n naLabel?: string;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedLines?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Annotations on the chart */\r\n annotations?: AnnotationSettingsDataType[];\r\n /** Highlighted area(square) on the chart */\r\n highlightAreaSettings?: HighlightAreaSettingsDataType[];\r\n /** Highlighted area(custom shape) on the chart */\r\n customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];\r\n /** Curve type for the line */\r\n curveType?: CurveTypes;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function MultiLineAltChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n showNAColor = true,\r\n colors,\r\n colorDomain,\r\n suffix = '',\r\n sources,\r\n prefix = '',\r\n graphDescription,\r\n height,\r\n width,\r\n footNote,\r\n noOfXTicks = 10,\r\n dateFormat = 'yyyy',\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 30,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 25,\r\n showColorScale = true,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showLabels = true,\r\n refValues = [],\r\n highlightAreaSettings = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n highlightedLines = [],\r\n graphDownload = false,\r\n dataDownload = false,\r\n animate = false,\r\n language = 'en',\r\n colorLegendTitle,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n showDots = true,\r\n annotations = [],\r\n customHighlightAreaSettings = [],\r\n theme = 'light',\r\n ariaLabel,\r\n yAxisTitle,\r\n noOfYTicks = 5,\r\n minDate,\r\n maxDate,\r\n curveType = 'curve',\r\n styles,\r\n classNames,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n naLabel = 'NA',\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n lineColors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n width={svgWidth}\r\n height={svgHeight}\r\n dateFormat={dateFormat}\r\n noOfXTicks={noOfXTicks ?? getNoOfTicks(svgWidth)}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n suffix={suffix}\r\n prefix={prefix}\r\n highlightAreaSettings={highlightAreaSettings}\r\n refValues={refValues}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n highlightedLines={highlightedLines}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n rtl={language === 'he' || language === 'ar'}\r\n strokeWidth={strokeWidth}\r\n showDots={showDots}\r\n annotations={annotations}\r\n customHighlightAreaSettings={customHighlightAreaSettings}\r\n yAxisTitle={yAxisTitle}\r\n noOfYTicks={noOfYTicks}\r\n minDate={minDate}\r\n maxDate={maxDate}\r\n curveType={curveType}\r\n styles={styles}\r\n classNames={classNames}\r\n selectedColor={selectedColor}\r\n showLabels={showLabels}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n customLayers={customLayers}\r\n naLabel={naLabel}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["permute","source","keys","key","sort","values","F","f","index","d","i","j","c","ascendingDefined","compareDefined","compare","ascending","a","b","x","Graph","props","$","_c","data","width","height","lineColors","dateFormat","noOfXTicks","rightMargin","topMargin","bottomMargin","suffix","prefix","leftMargin","tooltip","onSeriesMouseOver","refValues","highlightAreaSettings","minValue","maxValue","highlightedLines","animate","rtl","strokeWidth","showDots","annotations","customHighlightAreaSettings","yAxisTitle","noOfYTicks","minDate","maxDate","curveType","styles","colorDomain","selectedColor","classNames","showLabels","dimmedOpacity","precision","naLabel","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","hasAnimatedOnce","setHasAnimatedOnce","useState","t1","t2","duration","timeout","setTimeout","clearTimeout","useEffect","curve","curveLinear","curveStep","curveStepAfter","curveStepBefore","curveMonotoneX","t3","date","parse","Date","dataFormatted","orderBy","map","filter","_temp","labels","uniqBy","t4","d_1","dates","_temp2","mouseOverData","setMouseOverData","undefined","eventX","setEventX","eventY","setEventY","t5","t6","top","bottom","left","right","margin","MouseoverRectRef","lineArray","el","label","t7","t8","d_3","coordinates","highlightAreaSettingsFormatted","t9","d_4","el_0","customHighlightAreaSettingsFormatted","graphWidth","graphHeight","minYear","maxYear","length","minParam","checkIfNullOrUndefined","Math","min","_temp3","_temp4","_temp5","_temp6","_temp7","_temp8","maxParam","max","_temp9","_temp0","_temp1","_temp10","scaleTime","domain","range","t10","y","scaleLinear","nice","voronoiDiagram","Delaunay","from","_temp11","d_16","voronoi","lineShape","line","d_18","yTicks","ticks","xTicks","mousemove","event","selectedData","bisectCenter","_temp12","invert","pointer","clientY","clientX","mouseout","select","current","on","t11","jsx","HighlightArea","t12","yAxis","gridLines","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","numberFormattingFunction","t24","t25","t26","t27","dx","dy","t28","xAxis","axis","t29","t30","t31","t32","t33","t34","Axis","t35","t36","t37","title","t38","t39","AxisTitle","t40","d_24","format","t41","t42","d_25","t43","t44","t45","t46","t47","cn","t48","t49","t50","t51","_temp15","_temp16","t52","_temp27","d_30","renderCell","findIndex","el_12","event_0","event_1","t53","Fragment","el_13","i_0","RefLineY","text","color","value","t54","t55","d_31","i_1","endPoints","getLineEndPoint","xCoordinate","xOffset","yCoordinate","yOffset","connectorRadius","connectorSettings","showConnector","y1","x1","y2","x2","cy","cx","circleRadius","labelSettings","maxWidth","fontWeight","align","Annotation","t56","_temp28","_temp29","t57","Tooltip","jsxs","motion","CustomArea","YTicksAndGridLines","_temp13","_temp14","d_23","XTicksAndGridLines","d_28","opacity","transition","initial","indexOf","whileInView","_temp17","fill","pathLength","_temp18","stroke","_temp19","Colors","gray","_temp20","_temp21","el_6","j_0","_temp22","_temp23","delay","_temp24","_temp25","graphObjectValues","_temp26","textAnchor","d_33","layer","d_32","position","d_29","el_11","el_10","el_9","el_8","el_7","el_5","el_4","el_3","el_2","el_1","d_27","d_26","d_22","d_21","d_20","d_15","d_12","d_11","d_14","d_13","d_6","d_5","d_8","d_7","d_10","d_9","d_0","MultiLineAltChart","graphTitle","showNAColor","colors","sources","graphDescription","footNote","padding","backgroundColor","showColorScale","relativeHeight","graphID","graphDownload","dataDownload","language","colorLegendTitle","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","observe","disconnect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","EmptyState","primaryColors","getNoOfTicks","GraphArea","footnote","GraphFooter","GraphContainer","d_2"],"mappings":"sxCAAe,SAASA,GAAQC,EAAQC,EAAM,CAC5C,OAAO,MAAM,KAAKA,EAAMC,GAAOF,EAAOE,CAAG,CAAC,CAC5C,CCCe,SAASC,GAAKC,KAAWC,EAAG,CACzC,GAAI,OAAOD,EAAO,OAAO,QAAQ,GAAM,WAAY,MAAM,IAAI,UAAU,wBAAwB,EAC/FA,EAAS,MAAM,KAAKA,CAAM,EAC1B,GAAI,CAACE,CAAC,EAAID,EACV,GAAKC,GAAKA,EAAE,SAAW,GAAMD,EAAE,OAAS,EAAG,CACzC,MAAME,EAAQ,YAAY,KAAKH,EAAQ,CAACI,EAAGC,IAAMA,CAAC,EAClD,OAAIJ,EAAE,OAAS,GACbA,EAAIA,EAAE,IAAIC,GAAKF,EAAO,IAAIE,CAAC,CAAC,EAC5BC,EAAM,KAAK,CAACE,EAAGC,IAAM,CACnB,UAAWJ,KAAKD,EAAG,CACjB,MAAMM,GAAIC,GAAiBN,EAAEG,CAAC,EAAGH,EAAEI,CAAC,CAAC,EACrC,GAAIC,GAAG,OAAOA,EAChB,CACF,CAAC,IAEDL,EAAIF,EAAO,IAAIE,CAAC,EAChBC,EAAM,KAAK,CAACE,EAAGC,IAAME,GAAiBN,EAAEG,CAAC,EAAGH,EAAEI,CAAC,CAAC,CAAC,GAE5CX,GAAQK,EAAQG,CAAK,CAC9B,CACA,OAAOH,EAAO,KAAKS,GAAeP,CAAC,CAAC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EAACe,IAAK","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"MultiLineAltChart.cjs","sources":["../node_modules/d3-array/src/permute.js","../node_modules/d3-array/src/sort.js","../src/Components/Graphs/LineCharts/MultiLineAltChart/Graph.tsx","../src/Components/Graphs/LineCharts/MultiLineAltChart/index.tsx"],"sourcesContent":["export default function permute(source, keys) {\n return Array.from(keys, key => source[key]);\n}\n","import ascending from \"./ascending.js\";\nimport permute from \"./permute.js\";\n\nexport default function sort(values, ...F) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n values = Array.from(values);\n let [f] = F;\n if ((f && f.length !== 2) || F.length > 1) {\n const index = Uint32Array.from(values, (d, i) => i);\n if (F.length > 1) {\n F = F.map(f => values.map(f));\n index.sort((i, j) => {\n for (const f of F) {\n const c = ascendingDefined(f[i], f[j]);\n if (c) return c;\n }\n });\n } else {\n f = values.map(f);\n index.sort((i, j) => ascendingDefined(f[i], f[j]));\n }\n return permute(values, index);\n }\n return values.sort(compareDefined(f));\n}\n\nexport function compareDefined(compare = ascending) {\n if (compare === ascending) return ascendingDefined;\n if (typeof compare !== \"function\") throw new TypeError(\"compare is not a function\");\n return (a, b) => {\n const x = compare(a, b);\n if (x || x === 0) return x;\n return (compare(b, b) === 0) - (compare(a, a) === 0);\n };\n}\n\nexport function ascendingDefined(a, b) {\n return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);\n}\n","import { useEffect, useRef, useState } from 'react';\r\nimport {\r\n line,\r\n curveLinear,\r\n curveMonotoneX,\r\n curveStep,\r\n curveStepAfter,\r\n curveStepBefore,\r\n} from 'd3-shape';\r\nimport { scaleLinear, scaleTime } from 'd3-scale';\r\nimport { format } from 'date-fns/format';\r\nimport { parse } from 'date-fns/parse';\r\nimport { bisectCenter } from 'd3-array';\r\nimport { pointer, select } from 'd3-selection';\r\nimport { ascending, sort } from 'd3-array';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { Delaunay } from 'd3-delaunay';\r\nimport { motion, useInView } from 'motion/react';\r\nimport orderBy from 'lodash.orderby';\r\n\r\nimport {\r\n AnimateDataType,\r\n AnnotationSettingsDataType,\r\n ClassNameObject,\r\n CurveTypes,\r\n CustomHighlightAreaSettingsDataType,\r\n CustomLayerDataType,\r\n HighlightAreaSettingsDataType,\r\n MultiLineAltChartDataType,\r\n ReferenceDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { getLineEndPoint } from '@/Utils/getLineEndPoint';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { XTicksAndGridLines } from '@/Components/Elements/Axes/XTicksAndGridLines';\r\nimport { RefLineY } from '@/Components/Elements/ReferenceLine';\r\nimport { Annotation } from '@/Components/Elements/Annotations';\r\nimport { YTicksAndGridLines } from '@/Components/Elements/Axes/YTicksAndGridLines';\r\nimport { CustomArea } from '@/Components/Elements/HighlightArea/customArea';\r\nimport { HighlightArea } from '@/Components/Elements/HighlightArea';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: MultiLineAltChartDataType[];\r\n lineColors: string[];\r\n width: number;\r\n height: number;\r\n dateFormat: string;\r\n noOfXTicks: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n suffix: string;\r\n prefix: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightAreaSettings: HighlightAreaSettingsDataType[];\r\n refValues: ReferenceDataType[];\r\n maxValue?: number;\r\n minValue?: number;\r\n highlightedLines: (string | number)[];\r\n animate: AnimateDataType;\r\n rtl: boolean;\r\n strokeWidth: number;\r\n showLabels: boolean;\r\n showDots: boolean;\r\n annotations: AnnotationSettingsDataType[];\r\n customHighlightAreaSettings: CustomHighlightAreaSettingsDataType[];\r\n yAxisTitle?: string;\r\n noOfYTicks: number;\r\n minDate?: string | number;\r\n maxDate?: string | number;\r\n colorDomain: (string | number)[];\r\n curveType: CurveTypes;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n selectedColor?: string;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n naLabel: string;\r\n showHighlightedLinesLabels: boolean;\r\n}\r\n\r\ninterface FormattedDataType {\r\n y: number;\r\n date: Date;\r\n label: number | string;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n lineColors,\r\n dateFormat,\r\n noOfXTicks,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n suffix,\r\n prefix,\r\n leftMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n refValues,\r\n highlightAreaSettings,\r\n minValue,\r\n maxValue,\r\n highlightedLines,\r\n animate,\r\n rtl,\r\n strokeWidth,\r\n showDots,\r\n annotations,\r\n customHighlightAreaSettings,\r\n yAxisTitle,\r\n noOfYTicks,\r\n minDate,\r\n maxDate,\r\n curveType,\r\n styles,\r\n colorDomain,\r\n selectedColor,\r\n classNames,\r\n showLabels,\r\n dimmedOpacity,\r\n precision,\r\n naLabel,\r\n customLayers,\r\n showHighlightedLinesLabels,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const [hasAnimatedOnce, setHasAnimatedOnce] = useState(false);\r\n\r\n useEffect(() => {\r\n if (isInView && !hasAnimatedOnce) {\r\n const timeout = setTimeout(\r\n () => {\r\n setHasAnimatedOnce(true);\r\n },\r\n (animate.duration + 0.5) * 1000,\r\n );\r\n return () => clearTimeout(timeout);\r\n }\r\n }, [isInView, hasAnimatedOnce, animate.duration]);\r\n const curve =\r\n curveType === 'linear'\r\n ? curveLinear\r\n : curveType === 'step'\r\n ? curveStep\r\n : curveType === 'stepAfter'\r\n ? curveStepAfter\r\n : curveType === 'stepBefore'\r\n ? curveStepBefore\r\n : curveMonotoneX;\r\n const dataFormatted = orderBy(\r\n data.map(d => ({\r\n ...d,\r\n date: parse(`${d.date}`, dateFormat, new Date()),\r\n })),\r\n ['date'],\r\n ['asc'],\r\n ).filter(d => !checkIfNullOrUndefined(d.y));\r\n const labels = uniqBy(dataFormatted, 'label', true) as (string | number)[];\r\n const dates = sort(\r\n uniqBy(data, 'date', true).map(d => parse(`${d}`, dateFormat, new Date())),\r\n (a, b) => ascending(a, b),\r\n );\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: yAxisTitle ? leftMargin + 30 : leftMargin,\r\n right: rightMargin,\r\n };\r\n const MouseoverRectRef = useRef(null);\r\n const lineArray = labels.map(d =>\r\n orderBy(\r\n dataFormatted.filter(el => el.label == d),\r\n ['date'],\r\n ['asc'],\r\n ),\r\n );\r\n const highlightAreaSettingsFormatted = highlightAreaSettings.map(d => ({\r\n ...d,\r\n coordinates: [\r\n d.coordinates[0] === null ? null : parse(`${d.coordinates[0]}`, dateFormat, new Date()),\r\n d.coordinates[1] === null ? null : parse(`${d.coordinates[1]}`, dateFormat, new Date()),\r\n ],\r\n }));\r\n const customHighlightAreaSettingsFormatted = customHighlightAreaSettings.map(d => ({\r\n ...d,\r\n coordinates: d.coordinates.map((el, j) =>\r\n j % 2 === 0 ? parse(`${el}`, dateFormat, new Date()) : (el as number),\r\n ),\r\n }));\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minYear = minDate ? parse(`${minDate}`, dateFormat, new Date()) : dates[0];\r\n const maxYear = maxDate ? parse(`${maxDate}`, dateFormat, new Date()) : dates[dates.length - 1];\r\n const minParam: number = checkIfNullOrUndefined(minValue)\r\n ? Math.min(...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]))\r\n ? (Math.min(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number) > 0\r\n ? 0\r\n : (Math.min(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n : 0\r\n : (minValue as number);\r\n const maxParam: number = (Math.max(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n ? (Math.max(\r\n ...(dataFormatted.map(d => d.y).filter(d => !checkIfNullOrUndefined(d)) as number[]),\r\n ) as number)\r\n : 0;\r\n\r\n const x = scaleTime().domain([minYear, maxYear]).range([0, graphWidth]);\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? minParam : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxParam > 0 ? maxParam : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n\r\n const voronoiDiagram = Delaunay.from(\r\n dataFormatted.filter(d => !checkIfNullOrUndefined(d.date) && !checkIfNullOrUndefined(d.y)),\r\n d => x(d.date),\r\n d => y(d.y as number),\r\n ).voronoi([0, 0, graphWidth < 0 ? 0 : graphWidth, graphHeight < 0 ? 0 : graphHeight]);\r\n const lineShape = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y))\r\n .curve(curve);\r\n const yTicks = y.ticks(noOfYTicks);\r\n const xTicks = x.ticks(noOfXTicks);\r\n useEffect(() => {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const mousemove = (event: any) => {\r\n const selectedData =\r\n dataFormatted[\r\n bisectCenter(\r\n dataFormatted.map(d => d.date),\r\n x.invert(pointer(event)[0]),\r\n 0,\r\n )\r\n ];\r\n setMouseOverData(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n };\r\n const mouseout = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n };\r\n select(MouseoverRectRef.current).on('mousemove', mousemove).on('mouseout', mouseout);\r\n onSeriesMouseOver?.(undefined);\r\n }, [x, dataFormatted, onSeriesMouseOver]);\r\n\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <HighlightArea\r\n areaSettings={highlightAreaSettingsFormatted}\r\n width={graphWidth}\r\n height={graphHeight}\r\n scale={x}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n <CustomArea\r\n areaSettings={customHighlightAreaSettingsFormatted}\r\n scaleX={x}\r\n scaleY={y}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n <g>\r\n <YTicksAndGridLines\r\n values={yTicks.filter(d => d !== 0)}\r\n y={yTicks.filter(d => d !== 0).map(d => y(d))}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n styles={{\r\n gridLines: styles?.yAxis?.gridLines,\r\n labels: styles?.yAxis?.labels,\r\n }}\r\n classNames={{\r\n gridLines: classNames?.yAxis?.gridLines,\r\n labels: classNames?.yAxis?.labels,\r\n }}\r\n suffix={suffix}\r\n prefix={prefix}\r\n labelType='secondary'\r\n showGridLines\r\n labelPos='vertical'\r\n precision={precision}\r\n />\r\n <Axis\r\n y1={y(minParam < 0 ? 0 : minParam)}\r\n y2={y(minParam < 0 ? 0 : minParam)}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n label={numberFormattingFunction(\r\n minParam < 0 ? 0 : minParam,\r\n 'NA',\r\n precision,\r\n prefix,\r\n suffix,\r\n )}\r\n labelPos={{\r\n x: 0 - leftMargin,\r\n y: y(minParam < 0 ? 0 : minParam),\r\n dx: 0,\r\n dy: maxParam < 0 ? '1em' : -5,\r\n }}\r\n classNames={{\r\n axis: classNames?.xAxis?.axis,\r\n label: classNames?.yAxis?.labels,\r\n }}\r\n styles={{\r\n axis: styles?.xAxis?.axis,\r\n label: styles?.yAxis?.labels,\r\n }}\r\n />\r\n <AxisTitle\r\n x={0 - leftMargin - 15}\r\n y={graphHeight / 2}\r\n style={styles?.yAxis?.title}\r\n className={classNames?.yAxis?.title}\r\n text={yAxisTitle}\r\n rotate90\r\n />\r\n </g>\r\n <g>\r\n <XTicksAndGridLines\r\n values={xTicks.map(d => format(d, dateFormat))}\r\n x={xTicks.map(d => x(d))}\r\n y1={0}\r\n y2={graphHeight}\r\n styles={{\r\n gridLines: styles?.xAxis?.gridLines,\r\n labels: styles?.xAxis?.labels,\r\n }}\r\n classNames={{\r\n gridLines: cn('opacity-0', classNames?.xAxis?.gridLines),\r\n labels: cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs',\r\n classNames?.xAxis?.labels,\r\n ),\r\n }}\r\n suffix={suffix}\r\n prefix={prefix}\r\n labelType='primary'\r\n showGridLines\r\n precision={precision}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <motion.g>\r\n {lineArray.map(d => (\r\n <motion.g\r\n key={d[0].label}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d[0].color\r\n ? lineColors[colorDomain.indexOf(d[0].color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d[0].color\r\n ? lineColors[colorDomain.indexOf(d[0].color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <motion.path\r\n d={\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || ''\r\n }\r\n style={{\r\n fill: 'none',\r\n strokeWidth: mouseOverData\r\n ? d[0].label === mouseOverData.label\r\n ? strokeWidth + Math.max(2, 0.5 * strokeWidth)\r\n : strokeWidth\r\n : highlightedLines.length !== 0\r\n ? highlightedLines.indexOf(d[0].label) !== -1\r\n ? strokeWidth + Math.max(2, 0.5 * strokeWidth)\r\n : strokeWidth\r\n : strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n pathLength: 0,\r\n d:\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || '',\r\n opacity: 1,\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n },\r\n whileInView: {\r\n pathLength: 1,\r\n d:\r\n lineShape(\r\n d.filter((el): el is FormattedDataType => !checkIfNullOrUndefined(el.y)),\r\n ) || '',\r\n opacity: 1,\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n {d.map((el, j) => (\r\n <motion.g key={j}>\r\n {!checkIfNullOrUndefined(el.y) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={graphWidth / d.length < 5 ? 0 : graphWidth / d.length < 20 ? 2 : 4}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n cx: x(el.date),\r\n cy: y(el.y as number),\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n cx: x(el.date),\r\n cy: y(el.y as number),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n </>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n {((highlightedLines.indexOf(d[0].label) !== -1 && showHighlightedLinesLabels) ||\r\n mouseOverData?.label === d[0].label) &&\r\n showLabels ? (\r\n <motion.text\r\n className='text-sm font-bold'\r\n dx={5}\r\n dy={4}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n x: x(d[d.length - 1].date),\r\n y: y(d[d.length - 1].y as number),\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d[0].color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d[0].color)],\r\n x: x(d[d.length - 1].date),\r\n y: y(d[d.length - 1].y as number),\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n {d[0].label}\r\n </motion.text>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n {mouseOverData ? (\r\n <text\r\n y={y(mouseOverData.y) - 8}\r\n x={x(mouseOverData.date)}\r\n className={cn('graph-value text-sm font-bold', classNames?.graphObjectValues)}\r\n style={{\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !mouseOverData.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(mouseOverData.color)],\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {numberFormattingFunction(mouseOverData.y, naLabel, precision, prefix, suffix)}\r\n </text>\r\n ) : null}\r\n </motion.g>\r\n {dataFormatted\r\n .filter(d => !checkIfNullOrUndefined(d.y))\r\n .map((d, i) => {\r\n return (\r\n <g key={i}>\r\n <path\r\n d={voronoiDiagram.renderCell(\r\n dataFormatted.findIndex(el => el.label === d.label && el.date === d.date),\r\n )}\r\n opacity={0}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n />\r\n </g>\r\n );\r\n })}\r\n {refValues ? (\r\n <>\r\n {refValues.map((el, i) => (\r\n <RefLineY\r\n key={i}\r\n text={el.text}\r\n color={el.color}\r\n y={y(el.value as number)}\r\n x1={0 - leftMargin}\r\n x2={graphWidth + margin.right}\r\n classNames={el.classNames}\r\n styles={el.styles}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n ))}\r\n </>\r\n ) : null}\r\n <g>\r\n {annotations.map((d, i) => {\r\n const endPoints = getLineEndPoint(\r\n {\r\n x: d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n y: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0) - 8\r\n : 0 + (d.yOffset || 0) - 8,\r\n },\r\n {\r\n x: d.xCoordinate ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) : 0,\r\n y: d.yCoordinate ? y(d.yCoordinate as number) : 0,\r\n },\r\n checkIfNullOrUndefined(d.connectorRadius) ? 3.5 : (d.connectorRadius as number),\r\n );\r\n const connectorSettings = d.showConnector\r\n ? {\r\n y1: endPoints.y,\r\n x1: endPoints.x,\r\n y2: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0)\r\n : 0 + (d.yOffset || 0),\r\n x2: d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n cy: d.yCoordinate ? y(d.yCoordinate as number) : 0,\r\n cx: d.xCoordinate ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) : 0,\r\n circleRadius: checkIfNullOrUndefined(d.connectorRadius)\r\n ? 3.5\r\n : (d.connectorRadius as number),\r\n strokeWidth: d.showConnector === true ? 2 : Math.min(d.showConnector || 0, 1),\r\n }\r\n : undefined;\r\n const labelSettings = {\r\n y: d.yCoordinate\r\n ? y(d.yCoordinate as number) + (d.yOffset || 0) - 8\r\n : 0 + (d.yOffset || 0) - 8,\r\n x: rtl\r\n ? 0\r\n : d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0),\r\n width: rtl\r\n ? d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0)\r\n : graphWidth +\r\n margin.right -\r\n (d.xCoordinate\r\n ? x(parse(`${d.xCoordinate}`, dateFormat, new Date())) + (d.xOffset || 0)\r\n : 0 + (d.xOffset || 0)),\r\n maxWidth: d.maxWidth,\r\n fontWeight: d.fontWeight,\r\n align: d.align,\r\n };\r\n return (\r\n <Annotation\r\n key={i}\r\n color={d.color}\r\n connectorsSettings={connectorSettings}\r\n labelSettings={labelSettings}\r\n text={d.text}\r\n classNames={d.classNames}\r\n styles={d.styles}\r\n animate={animate}\r\n isInView={isInView}\r\n />\r\n );\r\n })}\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n AnnotationSettingsDataType,\r\n CustomHighlightAreaSettingsDataType,\r\n Languages,\r\n MultiLineAltChartDataType,\r\n ReferenceDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n HighlightAreaSettingsDataType,\r\n CurveTypes,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\nimport { getNoOfTicks } from '@/Utils/getNoOfTicks';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: MultiLineAltChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for lines */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: (string | number)[];\r\n /** Toggle the visibility of labels of the lines when highlighted or mouse hovered */\r\n showLabels?: boolean;\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n /** Reference values for comparison */\r\n refValues?: ReferenceDataType[];\r\n /** Maximum value of the date for the chart */\r\n maxDate?: string | number;\r\n /** Minimum value of the date for the chart */\r\n minDate?: string | number;\r\n /** No. of ticks on the x-axis */\r\n noOfXTicks?: number;\r\n /** No. of ticks on the y-axis */\r\n noOfYTicks?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle the initial animation of the line. If the type is number then it uses the number as the time in seconds for animation. */\r\n animate?: boolean | AnimateDataType;\r\n /** Format of the date in the data object. Available formats can be found [here](https://date-fns.org/docs/format) */\r\n dateFormat?: string;\r\n /** Title for the Y-axis */\r\n yAxisTitle?: string;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Defines how “NA” values should be displayed/labelled in the graph */\r\n naLabel?: string;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedLines?: (string | number)[];\r\n /** Defines if the labels should be shown for highlighted lines. */\r\n showHighlightedLinesLabels?: boolean;\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Annotations on the chart */\r\n annotations?: AnnotationSettingsDataType[];\r\n /** Highlighted area(square) on the chart */\r\n highlightAreaSettings?: HighlightAreaSettingsDataType[];\r\n /** Highlighted area(custom shape) on the chart */\r\n customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];\r\n /** Curve type for the line */\r\n curveType?: CurveTypes;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function MultiLineAltChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n showNAColor = true,\r\n colors,\r\n colorDomain,\r\n suffix = '',\r\n sources,\r\n prefix = '',\r\n graphDescription,\r\n height,\r\n width,\r\n footNote,\r\n noOfXTicks = 10,\r\n dateFormat = 'yyyy',\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 30,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 25,\r\n showColorScale = true,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showLabels = true,\r\n showHighlightedLinesLabels = false,\r\n refValues = [],\r\n highlightAreaSettings = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n highlightedLines = [],\r\n graphDownload = false,\r\n dataDownload = false,\r\n animate = false,\r\n language = 'en',\r\n colorLegendTitle,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n showDots = true,\r\n annotations = [],\r\n customHighlightAreaSettings = [],\r\n theme = 'light',\r\n ariaLabel,\r\n yAxisTitle,\r\n noOfYTicks = 5,\r\n minDate,\r\n maxDate,\r\n curveType = 'curve',\r\n styles,\r\n classNames,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n naLabel = 'NA',\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n lineColors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n width={svgWidth}\r\n height={svgHeight}\r\n dateFormat={dateFormat}\r\n noOfXTicks={noOfXTicks ?? getNoOfTicks(svgWidth)}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n suffix={suffix}\r\n prefix={prefix}\r\n highlightAreaSettings={highlightAreaSettings}\r\n refValues={refValues}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n highlightedLines={highlightedLines}\r\n showHighlightedLinesLabels={showHighlightedLinesLabels}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n rtl={language === 'he' || language === 'ar'}\r\n strokeWidth={strokeWidth}\r\n showDots={showDots}\r\n annotations={annotations}\r\n customHighlightAreaSettings={customHighlightAreaSettings}\r\n yAxisTitle={yAxisTitle}\r\n noOfYTicks={noOfYTicks}\r\n minDate={minDate}\r\n maxDate={maxDate}\r\n curveType={curveType}\r\n styles={styles}\r\n classNames={classNames}\r\n selectedColor={selectedColor}\r\n showLabels={showLabels}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n customLayers={customLayers}\r\n naLabel={naLabel}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["permute","source","keys","key","sort","values","F","f","index","d","i","j","c","ascendingDefined","compareDefined","compare","ascending","a","b","x","Graph","props","$","_c","data","width","height","lineColors","dateFormat","noOfXTicks","rightMargin","topMargin","bottomMargin","suffix","prefix","leftMargin","tooltip","onSeriesMouseOver","refValues","highlightAreaSettings","minValue","maxValue","highlightedLines","animate","rtl","strokeWidth","showDots","annotations","customHighlightAreaSettings","yAxisTitle","noOfYTicks","minDate","maxDate","curveType","styles","colorDomain","selectedColor","classNames","showLabels","dimmedOpacity","precision","naLabel","customLayers","showHighlightedLinesLabels","svgRef","useRef","t0","amount","once","isInView","useInView","hasAnimatedOnce","setHasAnimatedOnce","useState","t1","t2","duration","timeout","setTimeout","clearTimeout","useEffect","curve","curveLinear","curveStep","curveStepAfter","curveStepBefore","curveMonotoneX","t3","date","parse","Date","dataFormatted","orderBy","map","filter","_temp","labels","uniqBy","t4","d_1","dates","_temp2","mouseOverData","setMouseOverData","undefined","eventX","setEventX","eventY","setEventY","t5","t6","top","bottom","left","right","margin","MouseoverRectRef","lineArray","el","label","t7","t8","d_3","coordinates","highlightAreaSettingsFormatted","t9","d_4","el_0","customHighlightAreaSettingsFormatted","graphWidth","graphHeight","minYear","maxYear","length","minParam","checkIfNullOrUndefined","Math","min","_temp3","_temp4","_temp5","_temp6","_temp7","_temp8","maxParam","max","_temp9","_temp0","_temp1","_temp10","scaleTime","domain","range","t10","y","scaleLinear","nice","voronoiDiagram","Delaunay","from","_temp11","d_16","voronoi","lineShape","line","d_18","yTicks","ticks","xTicks","mousemove","event","selectedData","bisectCenter","_temp12","invert","pointer","clientY","clientX","mouseout","select","current","on","t11","jsx","HighlightArea","t12","yAxis","gridLines","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","numberFormattingFunction","t24","t25","t26","t27","dx","dy","t28","xAxis","axis","t29","t30","t31","t32","t33","t34","Axis","t35","t36","t37","title","t38","t39","AxisTitle","t40","d_24","format","t41","t42","d_25","t43","t44","t45","t46","t47","cn","t48","t49","t50","t51","_temp15","_temp16","t52","_temp27","d_30","renderCell","findIndex","el_12","event_0","event_1","t53","Fragment","el_13","i_0","RefLineY","text","color","value","t54","t55","d_31","i_1","endPoints","getLineEndPoint","xCoordinate","xOffset","yCoordinate","yOffset","connectorRadius","connectorSettings","showConnector","y1","x1","y2","x2","cy","cx","circleRadius","labelSettings","maxWidth","fontWeight","align","Annotation","t56","_temp28","_temp29","t57","Tooltip","jsxs","motion","CustomArea","YTicksAndGridLines","_temp13","_temp14","d_23","XTicksAndGridLines","d_28","opacity","transition","initial","indexOf","whileInView","_temp17","fill","pathLength","_temp18","stroke","_temp19","Colors","gray","_temp20","_temp21","el_6","j_0","_temp22","_temp23","delay","_temp24","_temp25","graphObjectValues","_temp26","textAnchor","d_33","layer","d_32","position","d_29","el_11","el_10","el_9","el_8","el_7","el_5","el_4","el_3","el_2","el_1","d_27","d_26","d_22","d_21","d_20","d_15","d_12","d_11","d_14","d_13","d_6","d_5","d_8","d_7","d_10","d_9","d_0","MultiLineAltChart","graphTitle","showNAColor","colors","sources","graphDescription","footNote","padding","backgroundColor","showColorScale","relativeHeight","graphID","graphDownload","dataDownload","language","colorLegendTitle","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","observe","disconnect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","EmptyState","primaryColors","getNoOfTicks","GraphArea","footnote","GraphFooter","GraphContainer","d_2"],"mappings":"sxCAAe,SAASA,GAAQC,EAAQC,EAAM,CAC5C,OAAO,MAAM,KAAKA,EAAMC,GAAOF,EAAOE,CAAG,CAAC,CAC5C,CCCe,SAASC,GAAKC,KAAWC,EAAG,CACzC,GAAI,OAAOD,EAAO,OAAO,QAAQ,GAAM,WAAY,MAAM,IAAI,UAAU,wBAAwB,EAC/FA,EAAS,MAAM,KAAKA,CAAM,EAC1B,GAAI,CAACE,CAAC,EAAID,EACV,GAAKC,GAAKA,EAAE,SAAW,GAAMD,EAAE,OAAS,EAAG,CACzC,MAAME,EAAQ,YAAY,KAAKH,EAAQ,CAACI,EAAGC,IAAMA,CAAC,EAClD,OAAIJ,EAAE,OAAS,GACbA,EAAIA,EAAE,IAAIC,GAAKF,EAAO,IAAIE,CAAC,CAAC,EAC5BC,EAAM,KAAK,CAACE,EAAGC,IAAM,CACnB,UAAWJ,KAAKD,EAAG,CACjB,MAAMM,GAAIC,GAAiBN,EAAEG,CAAC,EAAGH,EAAEI,CAAC,CAAC,EACrC,GAAIC,GAAG,OAAOA,EAChB,CACF,CAAC,IAEDL,EAAIF,EAAO,IAAIE,CAAC,EAChBC,EAAM,KAAK,CAACE,EAAGC,IAAME,GAAiBN,EAAEG,CAAC,EAAGH,EAAEI,CAAC,CAAC,CAAC,GAE5CX,GAAQK,EAAQG,CAAK,CAC9B,CACA,OAAOH,EAAO,KAAKS,GAAeP,CAAC,CAAC,CACtC,CAEO,SAASO,GAAeC,EAAUC,aAAW,CAClD,GAAID,IAAYC,GAAAA,UAAW,OAAOH,GAClC,GAAI,OAAOE,GAAY,WAAY,MAAM,IAAI,UAAU,2BAA2B,EAClF,MAAO,CAACE,EAAGC,IAAM,CACf,MAAMC,EAAIJ,EAAQE,EAAGC,CAAC,EACtB,OAAIC,GAAKA,IAAM,EAAUA,GACjBJ,EAAQG,EAAG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,EAAA,GAAA,IAAAmN,GAAAnN,EAAA,GAAA,IAAA4V,GAAA5V,SAAAG,GAzHVkN,4BAACsK,kBAAA,CACY,UAAAlL,GACJ,MAAAG,EACH0I,MACCc,OACOP,aAAAA,EACKV,gBAAAA,GACVS,MAAAA,EACGH,SAAAA,EACCE,UAAAA,GACJxV,MAAAA,EACCC,OAAAA,EACQiV,eAAAA,GACPH,QAAAA,GAERrI,SAAAA,CAAAA,EAuBAE,EAWDG,EA6DCC,CAAAA,EAYH,EAAiBnN,MAAA6V,EAAA7V,MAAAmV,GAAAnV,MAAAsV,GAAAtV,MAAAI,EAAAJ,MAAAyV,EAAAzV,MAAA2V,GAAA3V,MAAAkV,GAAAlV,MAAAqV,GAAArV,MAAAyM,GAAAzM,MAAA4M,EAAA5M,OAAA6M,EAAA7M,OAAA+M,EAAA/M,OAAAkN,EAAAlN,OAAAmN,EAAAnN,OAAA4V,EAAA5V,OAAAG,EAAAH,OAAAqN,IAAAA,GAAArN,EAAA,GAAA,EA1HjBqN,EA0HiB,CAvMd,SAAA5F,GAAAgM,EAAA,CAAA,OAgLyBzN,EAAEyI,KAAM,CAhLjC,SAAAjH,GAAAf,EAAA,CAAA,OAoIyBT,EAAEyI,KAAM,CApIjC,SAAAlH,GAAAvB,EAAA,CAAA,OAmHoCA,EAAEyI,KAAM,CAnH5C,SAAAnH,GAAAzC,EAAA,CAAA,OA8G4B1F,IAAM+F,MAAS,CA9G3C,SAAAmC,GAAAqN,EAAA,CAAA,OA6G6CvV,IAAM+F,MAAS,CA7G5D,SAAAkC,GAAAjI,EAAA,CAAA,OA6GyBA,EAACe,IAAK,CA7G/B,SAAA6E,GAAAqB,EAAA,CAAA,OA4G2CjH,IAAM+F,MAAS,CA5G1D,SAAAT,GAAAmT,EAAA,CAAA,OA4GuBzY,EAACe,IAAK","x_google_ignoreList":[0,1]}
@@ -178,6 +178,8 @@ declare interface Props {
178
178
  naLabel?: string;
179
179
  /** Data points to highlight. Use the label value from data to highlight the data point */
180
180
  highlightedLines?: (string | number)[];
181
+ /** Defines if the labels should be shown for highlighted lines. */
182
+ showHighlightedLinesLabels?: boolean;
181
183
  /** Defines the opacity of the non-highlighted data */
182
184
  dimmedOpacity?: number;
183
185
  /** Annotations on the chart */