@undp/data-viz 2.1.3 → 2.1.5

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 (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-CTPQjnHt.cjs"),A=require("react"),O=require("./parse-hMnG_lRV.cjs"),xi=require("./index-Cno4Q0YE.cjs"),ei=require("./numberFormattingFunction-02t-wJta.cjs"),mi=require("./Tooltip-uUdw6wJL.cjs"),It=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ii=require("./customArea-CMF5g-C3.cjs"),di=require("./AxisTitle-sS5bLLR7.cjs"),pi=require("./Axis-DxRV2yMi.cjs"),fi=require("./XTicksAndGridLines-B6CELS7q.cjs"),hi=require("./ReferenceLine-BH0qdf4R.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),gi=require("./index-B_sAFsEV.cjs"),ji=require("./time-CZd5YLSP.cjs"),vi=require("./linear-BwPAspcq.cjs"),ni=require("./line-DaEMhXmx.cjs"),Ge=require("./step-BZ3C8QFW.cjs"),oi=require("./area-C1gxfNGD.cjs"),wi=require("./select-Bnfk0lJx.cjs"),Ri=require("./init-DU0ybBc_.cjs"),bi=require("./pointer-Dkq5NV1q.cjs"),Ei=require("./use-in-view-QcfiW0w3.cjs"),S=require("./proxy-BxvUI_9l.cjs"),Oi=require("./GraphFooter.cjs"),Ci=require("./GraphHeader.cjs"),Ai=require("./ColorLegend.cjs"),Pe=require("./Colors.cjs"),Vi=require("./generateRandomString-B5zBiJzS.cjs"),Li=require("./EmptyState-sAEZ_5rU.cjs"),si=require("./GraphContainer-d8A46BK2.cjs"),Si=require("./getNoOfTicks-C_1CFXv_.cjs");function ki(r){const t=s.compilerRuntimeExports.c(217),{data:k,width:ot,height:Nt,lineColors:c,suffix:E,prefix:v,dateFormat:x,showValues:w,noOfXTicks:Tt,rightMargin:qt,leftMargin:V,topMargin:$t,bottomMargin:gt,tooltip:H,highlightAreaSettings:Mt,onSeriesMouseOver:Ft,animate:i,rtl:W,showColorLegendAtTop:Gt,colorDomain:N,diffAreaColors:D,idSuffix:st,strokeWidth:T,showDots:q,refValues:jt,minValue:I,maxValue:vt,annotations:Pt,customHighlightAreaSettings:Ht,yAxisTitle:Y,noOfYTicks:xe,minDate:Wt,maxDate:wt,curveType:Rt,styles:f,classNames:d,precision:b,customLayers:$}=r,bt=A.useRef(null);let X;t[0]!==i.amount||t[1]!==i.once?(X={once:i.once,amount:i.amount},t[0]=i.amount,t[1]=i.once,t[2]=X):X=t[2];const u=Ei.useInView(bt,X),[p,ne]=A.useState(!1);let Et,at;t[3]!==i.duration||t[4]!==p||t[5]!==u?(Et=()=>{if(u&&!p){const o=setTimeout(()=>{ne(!0)},(i.duration+.5)*1e3);return()=>clearTimeout(o)}},at=[u,p,i.duration],t[3]=i.duration,t[4]=p,t[5]=u,t[6]=Et,t[7]=at):(Et=t[6],at=t[7]),A.useEffect(Et,at);const U=Rt==="linear"?ni.curveLinear:Rt==="step"?Ge.curveStep:Rt==="stepAfter"?Ge.stepAfter:Rt==="stepBefore"?Ge.stepBefore:Ge.monotoneX,[L,g]=A.useState(void 0),[h,oe]=A.useState(void 0),[B,Yt]=A.useState(void 0),Ot=Y?V+30:V;let rt;t[8]!==gt||t[9]!==qt||t[10]!==Ot||t[11]!==$t?(rt={top:$t,bottom:gt,left:Ot,right:qt},t[8]=gt,t[9]=qt,t[10]=Ot,t[11]=$t,t[12]=rt):rt=t[12];const y=rt,lt=A.useRef(null);let z;t[13]!==x?(z=o=>({...o,date:O.parse(`${o.date}`,x,new Date)}),t[13]=x,t[14]=z):z=t[14];const n=xi.orderBy(k.map(z),["date"],["asc"]);let ct;if(t[15]!==x||t[16]!==Mt){let o;t[18]!==x?(o=e=>({...e,coordinates:[e.coordinates[0]===null?null:O.parse(`${e.coordinates[0]}`,x,new Date),e.coordinates[1]===null?null:O.parse(`${e.coordinates[1]}`,x,new Date)]}),t[18]=x,t[19]=o):o=t[19],ct=Mt.map(o),t[15]=x,t[16]=Mt,t[17]=ct}else ct=t[17];const Ct=ct;let ut;if(t[20]!==Ht||t[21]!==x){let o;t[23]!==x?(o=e=>({...e,coordinates:e.coordinates.map((P,Dt)=>Dt%2===0?O.parse(`${P}`,x,new Date):P)}),t[23]=x,t[24]=o):o=t[24],ut=Ht.map(o),t[20]=Ht,t[21]=x,t[22]=ut}else ut=t[22];const se=ut,m=ot-y.left-y.right,j=Nt-y.top-y.bottom,ae=Wt?O.parse(`${Wt}`,x,new Date):n[0].date,Xt=wt?O.parse(`${wt}`,x,new Date):n[n.length-1].date,J=Math.min(...n.map(zi))!==1/0?Math.min(...n.map(Bi))>0?0:Math.min(...n.map(Ui)):0,K=Math.min(...n.map(Xi))!==1/0?Math.min(...n.map(Yi))>0?0:Math.min(...n.map(Wi)):0,M=Math.max(...n.map(Hi))!==1/0?Math.max(...n.map(Pi)):0,Ut=Math.max(...n.map(Gi))!==1/0?Math.max(...n.map(Fi)):0;let Q;t[25]!==J||t[26]!==K||t[27]!==I?(Q=It.checkIfNullOrUndefined(I)?J<K?J:K:I,t[25]=J,t[26]=K,t[27]=I,t[28]=Q):Q=t[28];const R=Q,Z=M>Ut?M:Ut,a=ji.time().domain([ae,Xt]).range([0,m]);let xt;t[29]!==R||t[30]!==I?(xt=It.checkIfNullOrUndefined(I)?R:I,t[29]=R,t[30]=I,t[31]=xt):xt=t[31];let _;t[32]!==Z||t[33]!==vt?(_=It.checkIfNullOrUndefined(vt)?Z>0?Z:0:vt,t[32]=Z,t[33]=vt,t[34]=_):_=t[34];const l=vi.linear().domain([xt,_]).range([j,0]).nice(),mt=ni.line().x(o=>a(o.date)).y(o=>l(o.y1)).curve(U),Bt=ni.line().x(o=>a(o.date)).y(o=>l(o.y2)).curve(U),At=oi.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(o=>l(o.y2)).curve(U),re=oi.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(0).curve(U),le=oi.area().x(o=>a(o.date)).y1(o=>l(o.y2)).y0(0).curve(U),zt=l.ticks(xe),Jt=a.ticks(Tt);A.useEffect(()=>{const o=P=>{const Dt=n[Ri.bisectCenter(n.map(Mi),a.invert(bi.pointer(P)[0]),0)];g(Dt||n[n.length-1]),Ft?.(Dt||n[n.length-1]),Yt(P.clientY),oe(P.clientX)},e=()=>{g(void 0),oe(void 0),Yt(void 0),Ft?.(void 0)};wi.select(lt.current).on("mousemove",o).on("mouseout",e)},[a,n,Ft]);let dt;t[35]===Symbol.for("react.memo_cache_sentinel")?(dt={fill:"none"},t[35]=dt):dt=t[35];let tt;t[36]===Symbol.for("react.memo_cache_sentinel")?(tt={fill:"none"},t[36]=tt):tt=t[36];let pt;t[37]!==i||t[38]!==j||t[39]!==m||t[40]!==Ct||t[41]!==u||t[42]!==a?(pt=s.jsxRuntimeExports.jsx(gi.HighlightArea,{areaSettings:Ct,width:m,height:j,scale:a,animate:i,isInView:u}),t[37]=i,t[38]=j,t[39]=m,t[40]=Ct,t[41]=u,t[42]=a,t[43]=pt):pt=t[43];const et=f?.yAxis?.gridLines,ce=f?.yAxis?.labels;let it;t[44]!==et||t[45]!==ce?(it={gridLines:et,labels:ce},t[44]=et,t[45]=ce,t[46]=it):it=t[46];const ue=d?.yAxis?.gridLines,Vt=d?.yAxis?.labels;let Lt;t[47]!==ue||t[48]!==Vt?(Lt={gridLines:ue,labels:Vt},t[47]=ue,t[48]=Vt,t[49]=Lt):Lt=t[49];const ft=l(R<0?0:R),ht=l(R<0?0:R),St=0-V,kt=m+y.right,F=R<0?0:R;let C;t[50]!==b||t[51]!==v||t[52]!==E||t[53]!==F?(C=ei.numberFormattingFunction(F,"NA",b,v,E),t[50]=b,t[51]=v,t[52]=E,t[53]=F,t[54]=C):C=t[54];const G=0-V,yt=l(R<0?0:R),Kt=Z<0?"1rem":-5;let nt;t[55]!==G||t[56]!==yt||t[57]!==Kt?(nt={x:G,y:yt,dx:0,dy:Kt},t[55]=G,t[56]=yt,t[57]=Kt,t[58]=nt):nt=t[58];const He=d?.xAxis?.axis,We=d?.yAxis?.labels;let Qt;t[59]!==He||t[60]!==We?(Qt={axis:He,label:We},t[59]=He,t[60]=We,t[61]=Qt):Qt=t[61];const Ye=f?.xAxis?.axis,Xe=f?.yAxis?.labels;let Zt;t[62]!==Ye||t[63]!==Xe?(Zt={axis:Ye,label:Xe},t[62]=Ye,t[63]=Xe,t[64]=Zt):Zt=t[64];let me;t[65]!==ft||t[66]!==ht||t[67]!==St||t[68]!==kt||t[69]!==C||t[70]!==nt||t[71]!==Qt||t[72]!==Zt?(me=s.jsxRuntimeExports.jsx(pi.Axis,{y1:ft,y2:ht,x1:St,x2:kt,label:C,labelPos:nt,classNames:Qt,styles:Zt}),t[65]=ft,t[66]=ht,t[67]=St,t[68]=kt,t[69]=C,t[70]=nt,t[71]=Qt,t[72]=Zt,t[73]=me):me=t[73];const Ue=0-V-15,Be=j/2,ze=f?.yAxis?.title,Je=d?.yAxis?.title;let de;t[74]!==Ue||t[75]!==Be||t[76]!==ze||t[77]!==Je||t[78]!==Y?(de=s.jsxRuntimeExports.jsx(di.AxisTitle,{x:Ue,y:Be,style:ze,className:Je,text:Y,rotate90:!0}),t[74]=Ue,t[75]=Be,t[76]=ze,t[77]=Je,t[78]=Y,t[79]=de):de=t[79];let pe;t[80]!==x?(pe=o=>O.format(o,x),t[80]=x,t[81]=pe):pe=t[81];const ai=Jt.map(pe),ri=Jt.map(o=>a(o)),Ke=f?.xAxis?.gridLines,Qe=f?.xAxis?.labels;let fe;t[82]!==Ke||t[83]!==Qe?(fe={gridLines:Ke,labels:Qe},t[82]=Ke,t[83]=Qe,t[84]=fe):fe=t[84];const Ze=d?.xAxis?.gridLines;let _t;t[85]!==Ze?(_t=s.mo("opacity-0",Ze),t[85]=Ze,t[86]=_t):_t=t[86];const _e=d?.xAxis?.labels;let te;t[87]!==_e?(te=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",_e),t[87]=_e,t[88]=te):te=t[88];let he;t[89]!==_t||t[90]!==te?(he={gridLines:_t,labels:te},t[89]=_t,t[90]=te,t[91]=he):he=t[91];let ye;t[92]!==$?(ye=$.filter(Ti).map(Ni),t[92]=$,t[93]=ye):ye=t[93];let ge;t[94]!==D[1]?(ge={fill:D[1]},t[94]=D[1],t[95]=ge):ge=t[95];let je;t[96]!==i.duration?(je={opacity:0,transition:{duration:i.duration}},t[96]=i.duration,t[97]=je):je=t[97];let ve;t[98]===Symbol.for("react.memo_cache_sentinel")?(ve={opacity:1},t[98]=ve):ve=t[98];let we;t[99]!==i.duration?(we={initial:ve,whileInView:{opacity:1,transition:{duration:i.duration}}},t[99]=i.duration,t[100]=we):we=t[100];let Re;t[101]!==D[0]?(Re={fill:D[0]},t[101]=D[0],t[102]=Re):Re=t[102];let be;t[103]!==i.duration?(be={opacity:0,transition:{duration:i.duration}},t[103]=i.duration,t[104]=be):be=t[104];let Ee;t[105]===Symbol.for("react.memo_cache_sentinel")?(Ee={opacity:0},t[105]=Ee):Ee=t[105];let Oe;t[106]!==i.duration?(Oe={initial:Ee,whileInView:{opacity:1,transition:{duration:i.duration}}},t[106]=i.duration,t[107]=Oe):Oe=t[107];let Ce;t[108]!==c[0]||t[109]!==T?(Ce={fill:"none",stroke:c[0],strokeWidth:T},t[108]=c[0],t[109]=T,t[110]=Ce):Ce=t[110];let Ae;t[111]!==i.duration?(Ae={opacity:0,transition:{duration:i.duration}},t[111]=i.duration,t[112]=Ae):Ae=t[112];let Ve;t[113]!==c[1]||t[114]!==T?(Ve={fill:"none",stroke:c[1],strokeWidth:T},t[113]=c[1],t[114]=T,t[115]=Ve):Ve=t[115];let Le;t[116]!==i.duration?(Le={opacity:0,transition:{duration:i.duration}},t[116]=i.duration,t[117]=Le):Le=t[117];const li=1,ti=Bt(n)||"";let ee;t[118]!==i.duration?(ee={duration:i.duration},t[118]=i.duration,t[119]=ee):ee=t[119];let Se;t[120]!==ti||t[121]!==ee?(Se={pathLength:li,d:ti,opacity:1,transition:ee},t[120]=ti,t[121]=ee,t[122]=Se):Se=t[122];let ke;t[123]!==i.duration||t[124]!==N||t[125]!==n||t[126]!==p||t[127]!==u||t[128]!==c[0]||t[129]!==c[1]||t[130]!==Gt||t[131]!==a||t[132]!==l?(ke=Gt?null:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(S.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:c[0]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:c[0],transition:{duration:p?i.duration:.5,delay:p?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:N[0]},N[0]),s.jsxRuntimeExports.jsx(S.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:c[1]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:c[1],transition:{duration:p?i.duration:.5,delay:p?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:N[1]},N[1])]}),t[123]=i.duration,t[124]=N,t[125]=n,t[126]=p,t[127]=u,t[128]=c[0],t[129]=c[1],t[130]=Gt,t[131]=a,t[132]=l,t[133]=ke):ke=t[133];let De;t[134]!==d?.mouseOverLine||t[135]!==j||t[136]!==L||t[137]!==f?.mouseOverLine||t[138]!==a?(De=L?s.jsxRuntimeExports.jsx("line",{y1:0,y2:j,x1:a(L.date),x2:a(L.date),className:s.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:f?.mouseOverLine}):null,t[134]=d?.mouseOverLine,t[135]=j,t[136]=L,t[137]=f?.mouseOverLine,t[138]=a,t[139]=De):De=t[139];let Ie;if(t[140]!==i.duration||t[141]!==d?.graphObjectValues||t[142]!==n||t[143]!==m||t[144]!==p||t[145]!==u||t[146]!==c[0]||t[147]!==c[1]||t[148]!==b||t[149]!==v||t[150]!==q||t[151]!==w||t[152]!==f?.graphObjectValues||t[153]!==E||t[154]!==a||t[155]!==l){let o;t[157]!==i.duration||t[158]!==d?.graphObjectValues||t[159]!==n.length||t[160]!==m||t[161]!==p||t[162]!==u||t[163]!==c[0]||t[164]!==c[1]||t[165]!==b||t[166]!==v||t[167]!==q||t[168]!==w||t[169]!==f?.graphObjectValues||t[170]!==E||t[171]!==a||t[172]!==l?(o=(e,P)=>s.jsxRuntimeExports.jsxs(S.motion.g,{children:[It.checkIfNullOrUndefined(e.y1)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[q?s.jsxRuntimeExports.jsx(S.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y1),fill:c[0]},whileInView:{opacity:1,fill:c[0],transition:{duration:.5,delay:i.duration},cx:a(e.date),cy:l(e.y1)}},initial:"initial",animate:u?"whileInView":"initial"}):null,w?s.jsxRuntimeExports.jsx(S.motion.text,{dy:e.y2<e.y1?-8:"1em",style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-1 text-xs font-bold",d?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y1),fill:c[0]},whileInView:{opacity:1,fill:c[0],x:a(e.date),y:l(e.y1),transition:{duration:p?i.duration:.5,delay:p?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:ei.numberFormattingFunction(e.y1,"NA",b,v,E)}):null]}),It.checkIfNullOrUndefined(e.y2)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[q?s.jsxRuntimeExports.jsx(S.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y2),fill:c[1]},whileInView:{opacity:1,fill:c[1],transition:{duration:p?i.duration:.5,delay:p?0:i.duration},cx:a(e.date),cy:l(e.y2)}},initial:"initial",animate:u?"whileInView":"initial"}):null,w?s.jsxRuntimeExports.jsx(S.motion.text,{dy:e.y2>e.y1?-8:"1em",style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-2 text-xs font-bold",d?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y2),fill:c[1]},whileInView:{opacity:1,x:a(e.date),y:l(e.y2),fill:c[1],transition:{duration:p?i.duration:.5,delay:p?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:ei.numberFormattingFunction(e.y2,"NA",b,v,E)}):null]})]},P),t[157]=i.duration,t[158]=d?.graphObjectValues,t[159]=n.length,t[160]=m,t[161]=p,t[162]=u,t[163]=c[0],t[164]=c[1],t[165]=b,t[166]=v,t[167]=q,t[168]=w,t[169]=f?.graphObjectValues,t[170]=E,t[171]=a,t[172]=l,t[173]=o):o=t[173],Ie=n.map(o),t[140]=i.duration,t[141]=d?.graphObjectValues,t[142]=n,t[143]=m,t[144]=p,t[145]=u,t[146]=c[0],t[147]=c[1],t[148]=b,t[149]=v,t[150]=q,t[151]=w,t[152]=f?.graphObjectValues,t[153]=E,t[154]=a,t[155]=l,t[156]=Ie}else Ie=t[156];let Ne;t[174]!==i||t[175]!==m||t[176]!==u||t[177]!==V||t[178]!==y.right||t[179]!==jt||t[180]!==l?(Ne=jt?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:jt.map((o,e)=>s.jsxRuntimeExports.jsx(hi.RefLineY,{text:o.text,color:o.color,y:l(o.value),x1:0-V,x2:m+y.right,classNames:o.classNames,styles:o.styles,animate:i,isInView:u},e))}):null,t[174]=i,t[175]=m,t[176]=u,t[177]=V,t[178]=y.right,t[179]=jt,t[180]=l,t[181]=Ne):Ne=t[181];let ie;if(t[182]!==i||t[183]!==Pt||t[184]!==x||t[185]!==m||t[186]!==u||t[187]!==y.right||t[188]!==W||t[189]!==a||t[190]!==l){let o;t[192]!==i||t[193]!==x||t[194]!==m||t[195]!==u||t[196]!==y.right||t[197]!==W||t[198]!==a||t[199]!==l?(o=(e,P)=>{const Dt=ii.getLineEndPoint({x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},It.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),ci=e.showConnector?{y1:Dt.y,x1:Dt.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date)):0,circleRadius:It.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,ui={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:W?0:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:W?e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0):m+y.right-(e.xCoordinate?a(O.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return s.jsxRuntimeExports.jsx(ii.Annotation,{color:e.color,connectorsSettings:ci,labelSettings:ui,text:e.text,classNames:e.classNames,styles:e.styles,animate:i,isInView:u},P)},t[192]=i,t[193]=x,t[194]=m,t[195]=u,t[196]=y.right,t[197]=W,t[198]=a,t[199]=l,t[200]=o):o=t[200],ie=Pt.map(o),t[182]=i,t[183]=Pt,t[184]=x,t[185]=m,t[186]=u,t[187]=y.right,t[188]=W,t[189]=a,t[190]=l,t[191]=ie}else ie=t[191];let Te;t[201]!==ie?(Te=s.jsxRuntimeExports.jsx("g",{children:ie}),t[201]=ie,t[202]=Te):Te=t[202];let qe;t[203]!==$?(qe=$.filter(Ii).map(Di),t[203]=$,t[204]=qe):qe=t[204];let $e;t[205]===Symbol.for("react.memo_cache_sentinel")?($e={fill:"none",pointerEvents:"all"},t[205]=$e):$e=t[205];let Me;t[206]!==lt||t[207]!==j||t[208]!==m?(Me=s.jsxRuntimeExports.jsx("rect",{ref:lt,style:$e,width:m,height:j}),t[206]=lt,t[207]=j,t[208]=m,t[209]=Me):Me=t[209];let Fe;return t[210]!==d?.tooltip||t[211]!==h||t[212]!==B||t[213]!==L||t[214]!==f?.tooltip||t[215]!==H?(Fe=L&&H&&h&&B?s.jsxRuntimeExports.jsx(mi.Tooltip,{data:L,body:H,xPos:h,yPos:B,backgroundStyle:f?.tooltip,className:d?.tooltip}):null,t[210]=d?.tooltip,t[211]=h,t[212]=B,t[213]=L,t[214]=f?.tooltip,t[215]=H,t[216]=Fe):Fe=t[216],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(S.motion.svg,{width:`${ot}px`,height:`${Nt}px`,viewBox:`0 0 ${ot} ${Nt}`,direction:"ltr",ref:bt,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${y.left},${y.top})`,children:[s.jsxRuntimeExports.jsx("clipPath",{id:`above${st}`,children:s.jsxRuntimeExports.jsx("path",{d:le(n),style:dt})}),s.jsxRuntimeExports.jsx("clipPath",{id:`below${st}`,children:s.jsxRuntimeExports.jsx("path",{d:re(n),style:tt})}),pt,s.jsxRuntimeExports.jsx(ii.CustomArea,{areaSettings:se,scaleX:a,scaleY:l,animate:i,isInView:u}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:zt.filter($i),y:zt.filter(qi).map(o=>l(o)),x1:0-V,x2:m+y.right,styles:it,classNames:Lt,suffix:E,prefix:v,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:b}),me,de]})}),s.jsxRuntimeExports.jsx(fi.XTicksAndGridLines,{values:ai,x:ri,y1:0,y2:j,styles:fe,classNames:he,suffix:E,prefix:v,labelType:"primary",showGridLines:!0,precision:b}),ye,s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(S.motion.path,{clipPath:`url(#below${st})`,d:At(n)||"",style:ge,exit:je,variants:we,initial:"initial",animate:u?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(S.motion.path,{clipPath:`url(#above${st})`,d:At(n)||"",style:Re,exit:be,variants:Oe,initial:"initial",animate:u?"whileInView":"initial"})]}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(S.motion.path,{d:mt(n)||"",style:Ce,exit:Ae,variants:{initial:{pathLength:0,d:mt(n)||"",opacity:1},whileInView:{pathLength:1,d:mt(n)||"",opacity:1,transition:{duration:i.duration}}},initial:"initial",animate:u?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(S.motion.path,{style:Ve,exit:Le,variants:{initial:{pathLength:0,d:Bt(n)||"",opacity:1},whileInView:Se},initial:"initial",animate:u?"whileInView":"initial"}),ke,De,Ie]}),Ne,Te,qe,Me]})}),Fe]})}function Di(r){return r.layer}function Ii(r){return r.position==="after"}function Ni(r){return r.layer}function Ti(r){return r.position==="before"}function qi(r){return r!==0}function $i(r){return r!==0}function Mi(r){return r.date}function Fi(r){return r.y2}function Gi(r){return r.y2}function Pi(r){return r.y1}function Hi(r){return r.y1}function Wi(r){return r.y2}function Yi(r){return r.y2}function Xi(r){return r.y2}function Ui(r){return r.y1}function Bi(r){return r.y1}function zi(r){return r.y1}function Ji(r){const t=s.compilerRuntimeExports.c(90),{data:k,graphTitle:ot,suffix:Nt,sources:c,prefix:E,graphDescription:v,height:x,width:w,footNote:Tt,noOfXTicks:qt,dateFormat:V,showValues:$t,padding:gt,lineColors:H,backgroundColor:Mt,leftMargin:Ft,rightMargin:i,topMargin:W,bottomMargin:Gt,tooltip:N,highlightAreaSettings:D,relativeHeight:st,onSeriesMouseOver:T,graphID:q,graphDownload:jt,dataDownload:I,animate:vt,language:Pt,minHeight:Ht,labels:Y,showColorLegendAtTop:xe,colorLegendTitle:Wt,diffAreaColors:wt,strokeWidth:Rt,showDots:f,refValues:d,minValue:b,maxValue:$,annotations:bt,customHighlightAreaSettings:X,theme:u,ariaLabel:p,yAxisTitle:ne,noOfYTicks:Et,minDate:at,maxDate:U,curveType:L,styles:g,classNames:h,precision:oe,customLayers:B}=r,Yt=Nt===void 0?"":Nt,Ot=E===void 0?"":E,rt=qt===void 0?10:qt,y=V===void 0?"yyyy":V,lt=$t===void 0?!1:$t;let z;t[0]!==H?(z=H===void 0?[Pe.Colors.light.categoricalColors.colors[0],Pe.Colors.light.categoricalColors.colors[1]]:H,t[0]=H,t[1]=z):z=t[1];const n=z,ct=Mt===void 0?!1:Mt,Ct=Ft===void 0?30:Ft,ut=i===void 0?50:i,se=W===void 0?20:W,m=Gt===void 0?25:Gt;let j;t[2]!==D?(j=D===void 0?[]:D,t[2]=D,t[3]=j):j=t[3];const ae=j,Xt=jt===void 0?!1:jt,J=I===void 0?!1:I,K=vt===void 0?!1:vt,M=Pt===void 0?"en":Pt,Ut=Ht===void 0?0:Ht,Q=xe===void 0?!1:xe;let R;t[4]!==wt?(R=wt===void 0?[Pe.Colors.alerts.red,Pe.Colors.alerts.darkGreen]:wt,t[4]=wt,t[5]=R):R=t[5];const Z=R,a=Rt===void 0?2:Rt,xt=f===void 0?!0:f;let _;t[6]!==d?(_=d===void 0?[]:d,t[6]=d,t[7]=_):_=t[7];const l=_;let mt;t[8]!==bt?(mt=bt===void 0?[]:bt,t[8]=bt,t[9]=mt):mt=t[9];const Bt=mt;let At;t[10]!==X?(At=X===void 0?[]:X,t[10]=X,t[11]=At):At=t[11];const re=At,le=u===void 0?"light":u,zt=Et===void 0?5:Et,Jt=L===void 0?"curve":L,dt=oe===void 0?2:oe;let tt;t[12]!==B?(tt=B===void 0?[]:B,t[12]=B,t[13]=tt):tt=t[13];const pt=tt,[et,ce]=A.useState(0),[it,ue]=A.useState(0),Vt=A.useRef(null),Lt=A.useRef(null);let ft,ht;t[14]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>{const Kt=new ResizeObserver(nt=>{ce(nt[0].target.clientWidth||620),ue(nt[0].target.clientHeight||480)});return Vt.current&&Kt.observe(Vt.current),()=>Kt.disconnect()},ht=[],t[14]=ft,t[15]=ht):(ft=t[14],ht=t[15]),A.useEffect(ft,ht);const St=h?.graphContainer,kt=g?.graphContainer;let F;t[16]!==h?.description||t[17]!==h?.title||t[18]!==k||t[19]!==J||t[20]!==v||t[21]!==Xt||t[22]!==ot||t[23]!==g?.description||t[24]!==g?.title||t[25]!==w?(F=ot||v||Xt||J?s.jsxRuntimeExports.jsx(Ci.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:h?.title,description:h?.description},graphTitle:ot,graphDescription:v,width:w,graphDownload:Xt?Lt:void 0,dataDownload:J?k.map(tn).filter(_i).length>0?k.map(Zi).filter(Qi):k.filter(Ki):null}):null,t[16]=h?.description,t[17]=h?.title,t[18]=k,t[19]=J,t[20]=v,t[21]=Xt,t[22]=ot,t[23]=g?.description,t[24]=g?.title,t[25]=w,t[26]=F):F=t[26];let C;t[27]!==K||t[28]!==Bt||t[29]!==m||t[30]!==h||t[31]!==Wt||t[32]!==Jt||t[33]!==re||t[34]!==pt||t[35]!==k||t[36]!==y||t[37]!==Z||t[38]!==ae||t[39]!==Y||t[40]!==M||t[41]!==Ct||t[42]!==n||t[43]!==U||t[44]!==$||t[45]!==at||t[46]!==b||t[47]!==rt||t[48]!==zt||t[49]!==T||t[50]!==dt||t[51]!==Ot||t[52]!==l||t[53]!==ut||t[54]!==Q||t[55]!==xt||t[56]!==lt||t[57]!==a||t[58]!==g||t[59]!==Yt||t[60]!==it||t[61]!==et||t[62]!==N||t[63]!==se||t[64]!==ne?(C=k.length===0?s.jsxRuntimeExports.jsx(Li.EmptyState,{}):s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[Q?s.jsxRuntimeExports.jsx(Ai.ColorLegend,{colorDomain:Y,colorLegendTitle:Wt,colors:n,showNAColor:!1,className:h?.colorLegend}):null,s.jsxRuntimeExports.jsx(si.GraphArea,{ref:Vt,children:et&&it?s.jsxRuntimeExports.jsx(ki,{data:k,lineColors:n,colorDomain:Y,width:et,height:it,suffix:Yt,prefix:Ot,dateFormat:y,showValues:lt,noOfXTicks:rt??Si.getNoOfTicks(et),leftMargin:Ct,rightMargin:ut,topMargin:se,bottomMargin:m,highlightAreaSettings:ae,tooltip:N,onSeriesMouseOver:T,showColorLegendAtTop:Q,animate:K===!0?{duration:.5,once:!0,amount:.5}:K||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",diffAreaColors:Z,idSuffix:Vi.generateRandomString(8),strokeWidth:a,showDots:xt,refValues:l,minValue:b,maxValue:$,annotations:Bt,customHighlightAreaSettings:re,yAxisTitle:ne,noOfYTicks:zt,minDate:at,maxDate:U,curveType:Jt,styles:g,classNames:h,precision:dt,customLayers:pt}):null})]}),t[27]=K,t[28]=Bt,t[29]=m,t[30]=h,t[31]=Wt,t[32]=Jt,t[33]=re,t[34]=pt,t[35]=k,t[36]=y,t[37]=Z,t[38]=ae,t[39]=Y,t[40]=M,t[41]=Ct,t[42]=n,t[43]=U,t[44]=$,t[45]=at,t[46]=b,t[47]=rt,t[48]=zt,t[49]=T,t[50]=dt,t[51]=Ot,t[52]=l,t[53]=ut,t[54]=Q,t[55]=xt,t[56]=lt,t[57]=a,t[58]=g,t[59]=Yt,t[60]=it,t[61]=et,t[62]=N,t[63]=se,t[64]=ne,t[65]=C):C=t[65];let G;t[66]!==h?.footnote||t[67]!==h?.source||t[68]!==Tt||t[69]!==c||t[70]!==g?.footnote||t[71]!==g?.source||t[72]!==w?(G=c||Tt?s.jsxRuntimeExports.jsx(Oi.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:h?.footnote,source:h?.source},sources:c,footNote:Tt,width:w}):null,t[66]=h?.footnote,t[67]=h?.source,t[68]=Tt,t[69]=c,t[70]=g?.footnote,t[71]=g?.source,t[72]=w,t[73]=G):G=t[73];let yt;return t[74]!==p||t[75]!==ct||t[76]!==q||t[77]!==x||t[78]!==M||t[79]!==Ut||t[80]!==gt||t[81]!==st||t[82]!==St||t[83]!==kt||t[84]!==F||t[85]!==C||t[86]!==G||t[87]!==le||t[88]!==w?(yt=s.jsxRuntimeExports.jsxs(si.GraphContainer,{className:St,style:kt,id:q,ref:Lt,"aria-label":p,backgroundColor:ct,theme:le,language:M,minHeight:Ut,width:w,height:x,relativeHeight:st,padding:gt,children:[F,C,G]}),t[74]=p,t[75]=ct,t[76]=q,t[77]=x,t[78]=M,t[79]=Ut,t[80]=gt,t[81]=st,t[82]=St,t[83]=kt,t[84]=F,t[85]=C,t[86]=G,t[87]=le,t[88]=w,t[89]=yt):yt=t[89],yt}function Ki(r){return r!==void 0}function Qi(r){return r!==void 0}function Zi(r){return r.data}function _i(r){return r!==void 0}function tn(r){return r.data}exports.DifferenceLineChart=Ji;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-CTPQjnHt.cjs"),L=require("react"),C=require("./parse-hMnG_lRV.cjs"),xi=require("./index-Cno4Q0YE.cjs"),ei=require("./numberFormattingFunction-02t-wJta.cjs"),mi=require("./Tooltip-uUdw6wJL.cjs"),qt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ii=require("./customArea-CMF5g-C3.cjs"),di=require("./AxisTitle-sS5bLLR7.cjs"),fi=require("./Axis-DxRV2yMi.cjs"),pi=require("./XTicksAndGridLines-B6CELS7q.cjs"),hi=require("./ReferenceLine-BH0qdf4R.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),gi=require("./index-B_sAFsEV.cjs"),ji=require("./time-CZd5YLSP.cjs"),vi=require("./linear-BwPAspcq.cjs"),ni=require("./line-DaEMhXmx.cjs"),He=require("./step-BZ3C8QFW.cjs"),oi=require("./area-C1gxfNGD.cjs"),wi=require("./select-Bnfk0lJx.cjs"),Ri=require("./init-DU0ybBc_.cjs"),bi=require("./pointer-Dkq5NV1q.cjs"),Ei=require("./use-in-view-QcfiW0w3.cjs"),D=require("./proxy-BxvUI_9l.cjs"),Oi=require("./GraphFooter.cjs"),Ci=require("./GraphHeader.cjs"),Ai=require("./ColorLegend.cjs"),We=require("./Colors.cjs"),Vi=require("./generateRandomString-B5zBiJzS.cjs"),Li=require("./EmptyState-gLDRXBHm.cjs"),si=require("./GraphContainer-d8A46BK2.cjs"),Si=require("./getNoOfTicks-C_1CFXv_.cjs");function ki(r){const t=s.compilerRuntimeExports.c(217),{data:j,width:rt,height:$t,lineColors:c,suffix:O,prefix:w,dateFormat:x,showValues:R,noOfXTicks:Mt,rightMargin:Ft,leftMargin:S,topMargin:Gt,bottomMargin:wt,tooltip:B,highlightAreaSettings:Pt,onSeriesMouseOver:Ht,animate:i,rtl:z,showColorLegendAtTop:Wt,colorDomain:$,diffAreaColors:I,idSuffix:lt,strokeWidth:M,showDots:F,refValues:Rt,minValue:N,maxValue:bt,annotations:Yt,customHighlightAreaSettings:Xt,yAxisTitle:T,noOfYTicks:de,minDate:Ut,maxDate:Et,curveType:Ot,styles:h,classNames:d,precision:E,customLayers:G}=r,Ct=L.useRef(null);let J;t[0]!==i.amount||t[1]!==i.once?(J={once:i.once,amount:i.amount},t[0]=i.amount,t[1]=i.once,t[2]=J):J=t[2];const u=Ei.useInView(Ct,J),[f,se]=L.useState(!1);let At,ct;t[3]!==i.duration||t[4]!==f||t[5]!==u?(At=()=>{if(u&&!f){const o=setTimeout(()=>{se(!0)},(i.duration+.5)*1e3);return()=>clearTimeout(o)}},ct=[u,f,i.duration],t[3]=i.duration,t[4]=f,t[5]=u,t[6]=At,t[7]=ct):(At=t[6],ct=t[7]),L.useEffect(At,ct);const K=Ot==="linear"?ni.curveLinear:Ot==="step"?He.curveStep:Ot==="stepAfter"?He.stepAfter:Ot==="stepBefore"?He.stepBefore:He.monotoneX,[k,g]=L.useState(void 0),[p,ae]=L.useState(void 0),[Q,Bt]=L.useState(void 0),Vt=T?S+30:S;let ut;t[8]!==wt||t[9]!==Ft||t[10]!==Vt||t[11]!==Gt?(ut={top:Gt,bottom:wt,left:Vt,right:Ft},t[8]=wt,t[9]=Ft,t[10]=Vt,t[11]=Gt,t[12]=ut):ut=t[12];const y=ut,xt=L.useRef(null);let Z;t[13]!==x?(Z=o=>({...o,date:C.parse(`${o.date}`,x,new Date)}),t[13]=x,t[14]=Z):Z=t[14];const n=xi.orderBy(j.map(Z),["date"],["asc"]);let mt;if(t[15]!==x||t[16]!==Pt){let o;t[18]!==x?(o=e=>({...e,coordinates:[e.coordinates[0]===null?null:C.parse(`${e.coordinates[0]}`,x,new Date),e.coordinates[1]===null?null:C.parse(`${e.coordinates[1]}`,x,new Date)]}),t[18]=x,t[19]=o):o=t[19],mt=Pt.map(o),t[15]=x,t[16]=Pt,t[17]=mt}else mt=t[17];const Lt=mt;let dt;if(t[20]!==Xt||t[21]!==x){let o;t[23]!==x?(o=e=>({...e,coordinates:e.coordinates.map((U,Tt)=>Tt%2===0?C.parse(`${U}`,x,new Date):U)}),t[23]=x,t[24]=o):o=t[24],dt=Xt.map(o),t[20]=Xt,t[21]=x,t[22]=dt}else dt=t[22];const re=dt,m=rt-y.left-y.right,v=$t-y.top-y.bottom,le=Ut?C.parse(`${Ut}`,x,new Date):n[0].date,zt=Et?C.parse(`${Et}`,x,new Date):n[n.length-1].date,_=Math.min(...n.map(zi))!==1/0?Math.min(...n.map(Bi))>0?0:Math.min(...n.map(Ui)):0,tt=Math.min(...n.map(Xi))!==1/0?Math.min(...n.map(Yi))>0?0:Math.min(...n.map(Wi)):0,P=Math.max(...n.map(Hi))!==1/0?Math.max(...n.map(Pi)):0,Jt=Math.max(...n.map(Gi))!==1/0?Math.max(...n.map(Fi)):0;let q;t[25]!==_||t[26]!==tt||t[27]!==N?(q=qt.checkIfNullOrUndefined(N)?_<tt?_:tt:N,t[25]=_,t[26]=tt,t[27]=N,t[28]=q):q=t[28];const b=q,et=P>Jt?P:Jt,a=ji.time().domain([le,zt]).range([0,m]);let ft;t[29]!==b||t[30]!==N?(ft=qt.checkIfNullOrUndefined(N)?b:N,t[29]=b,t[30]=N,t[31]=ft):ft=t[31];let it;t[32]!==et||t[33]!==bt?(it=qt.checkIfNullOrUndefined(bt)?et>0?et:0:bt,t[32]=et,t[33]=bt,t[34]=it):it=t[34];const l=vi.linear().domain([ft,it]).range([v,0]).nice(),pt=ni.line().x(o=>a(o.date)).y(o=>l(o.y1)).curve(K),Kt=ni.line().x(o=>a(o.date)).y(o=>l(o.y2)).curve(K),St=oi.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(o=>l(o.y2)).curve(K),ce=oi.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(0).curve(K),ue=oi.area().x(o=>a(o.date)).y1(o=>l(o.y2)).y0(0).curve(K),Qt=l.ticks(de),Zt=a.ticks(Mt);L.useEffect(()=>{const o=U=>{const Tt=n[Ri.bisectCenter(n.map(Mi),a.invert(bi.pointer(U)[0]),0)];g(Tt||n[n.length-1]),Ht?.(Tt||n[n.length-1]),Bt(U.clientY),ae(U.clientX)},e=()=>{g(void 0),ae(void 0),Bt(void 0),Ht?.(void 0)};wi.select(xt.current).on("mousemove",o).on("mouseout",e)},[a,n,Ht]);let ht;t[35]===Symbol.for("react.memo_cache_sentinel")?(ht={fill:"none"},t[35]=ht):ht=t[35];let nt;t[36]===Symbol.for("react.memo_cache_sentinel")?(nt={fill:"none"},t[36]=nt):nt=t[36];let yt;t[37]!==i||t[38]!==v||t[39]!==m||t[40]!==Lt||t[41]!==u||t[42]!==a?(yt=s.jsxRuntimeExports.jsx(gi.HighlightArea,{areaSettings:Lt,width:m,height:v,scale:a,animate:i,isInView:u}),t[37]=i,t[38]=v,t[39]=m,t[40]=Lt,t[41]=u,t[42]=a,t[43]=yt):yt=t[43];const ot=h?.yAxis?.gridLines,xe=h?.yAxis?.labels;let st;t[44]!==ot||t[45]!==xe?(st={gridLines:ot,labels:xe},t[44]=ot,t[45]=xe,t[46]=st):st=t[46];const me=d?.yAxis?.gridLines,kt=d?.yAxis?.labels;let Dt;t[47]!==me||t[48]!==kt?(Dt={gridLines:me,labels:kt},t[47]=me,t[48]=kt,t[49]=Dt):Dt=t[49];const gt=l(b<0?0:b),jt=l(b<0?0:b),It=0-S,Nt=m+y.right,H=b<0?0:b;let A;t[50]!==E||t[51]!==w||t[52]!==O||t[53]!==H?(A=ei.numberFormattingFunction(H,"NA",E,w,O),t[50]=E,t[51]=w,t[52]=O,t[53]=H,t[54]=A):A=t[54];const W=0-S,Y=l(b<0?0:b),X=et<0?"1rem":-5;let V;t[55]!==W||t[56]!==Y||t[57]!==X?(V={x:W,y:Y,dx:0,dy:X},t[55]=W,t[56]=Y,t[57]=X,t[58]=V):V=t[58];const vt=d?.xAxis?.axis,_t=d?.yAxis?.labels;let at;t[59]!==vt||t[60]!==_t?(at={axis:vt,label:_t},t[59]=vt,t[60]=_t,t[61]=at):at=t[61];const Ye=h?.xAxis?.axis,Xe=h?.yAxis?.labels;let te;t[62]!==Ye||t[63]!==Xe?(te={axis:Ye,label:Xe},t[62]=Ye,t[63]=Xe,t[64]=te):te=t[64];let fe;t[65]!==gt||t[66]!==jt||t[67]!==It||t[68]!==Nt||t[69]!==A||t[70]!==V||t[71]!==at||t[72]!==te?(fe=s.jsxRuntimeExports.jsx(fi.Axis,{y1:gt,y2:jt,x1:It,x2:Nt,label:A,labelPos:V,classNames:at,styles:te}),t[65]=gt,t[66]=jt,t[67]=It,t[68]=Nt,t[69]=A,t[70]=V,t[71]=at,t[72]=te,t[73]=fe):fe=t[73];const Ue=0-S-15,Be=v/2,ze=h?.yAxis?.title,Je=d?.yAxis?.title;let pe;t[74]!==Ue||t[75]!==Be||t[76]!==ze||t[77]!==Je||t[78]!==T?(pe=s.jsxRuntimeExports.jsx(di.AxisTitle,{x:Ue,y:Be,style:ze,className:Je,text:T,rotate90:!0}),t[74]=Ue,t[75]=Be,t[76]=ze,t[77]=Je,t[78]=T,t[79]=pe):pe=t[79];let he;t[80]!==x?(he=o=>C.format(o,x),t[80]=x,t[81]=he):he=t[81];const ai=Zt.map(he),ri=Zt.map(o=>a(o)),Ke=h?.xAxis?.gridLines,Qe=h?.xAxis?.labels;let ye;t[82]!==Ke||t[83]!==Qe?(ye={gridLines:Ke,labels:Qe},t[82]=Ke,t[83]=Qe,t[84]=ye):ye=t[84];const Ze=d?.xAxis?.gridLines;let ee;t[85]!==Ze?(ee=s.mo("opacity-0",Ze),t[85]=Ze,t[86]=ee):ee=t[86];const _e=d?.xAxis?.labels;let ie;t[87]!==_e?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",_e),t[87]=_e,t[88]=ie):ie=t[88];let ge;t[89]!==ee||t[90]!==ie?(ge={gridLines:ee,labels:ie},t[89]=ee,t[90]=ie,t[91]=ge):ge=t[91];let je;t[92]!==G?(je=G.filter(Ti).map(Ni),t[92]=G,t[93]=je):je=t[93];let ve;t[94]!==I[1]?(ve={fill:I[1]},t[94]=I[1],t[95]=ve):ve=t[95];let we;t[96]!==i.duration?(we={opacity:0,transition:{duration:i.duration}},t[96]=i.duration,t[97]=we):we=t[97];let Re;t[98]===Symbol.for("react.memo_cache_sentinel")?(Re={opacity:1},t[98]=Re):Re=t[98];let be;t[99]!==i.duration?(be={initial:Re,whileInView:{opacity:1,transition:{duration:i.duration}}},t[99]=i.duration,t[100]=be):be=t[100];let Ee;t[101]!==I[0]?(Ee={fill:I[0]},t[101]=I[0],t[102]=Ee):Ee=t[102];let Oe;t[103]!==i.duration?(Oe={opacity:0,transition:{duration:i.duration}},t[103]=i.duration,t[104]=Oe):Oe=t[104];let Ce;t[105]===Symbol.for("react.memo_cache_sentinel")?(Ce={opacity:0},t[105]=Ce):Ce=t[105];let Ae;t[106]!==i.duration?(Ae={initial:Ce,whileInView:{opacity:1,transition:{duration:i.duration}}},t[106]=i.duration,t[107]=Ae):Ae=t[107];let Ve;t[108]!==c[0]||t[109]!==M?(Ve={fill:"none",stroke:c[0],strokeWidth:M},t[108]=c[0],t[109]=M,t[110]=Ve):Ve=t[110];let Le;t[111]!==i.duration?(Le={opacity:0,transition:{duration:i.duration}},t[111]=i.duration,t[112]=Le):Le=t[112];let Se;t[113]!==c[1]||t[114]!==M?(Se={fill:"none",stroke:c[1],strokeWidth:M},t[113]=c[1],t[114]=M,t[115]=Se):Se=t[115];let ke;t[116]!==i.duration?(ke={opacity:0,transition:{duration:i.duration}},t[116]=i.duration,t[117]=ke):ke=t[117];const li=1,ti=Kt(n)||"";let ne;t[118]!==i.duration?(ne={duration:i.duration},t[118]=i.duration,t[119]=ne):ne=t[119];let De;t[120]!==ti||t[121]!==ne?(De={pathLength:li,d:ti,opacity:1,transition:ne},t[120]=ti,t[121]=ne,t[122]=De):De=t[122];let Ie;t[123]!==i.duration||t[124]!==$||t[125]!==n||t[126]!==f||t[127]!==u||t[128]!==c[0]||t[129]!==c[1]||t[130]!==Wt||t[131]!==a||t[132]!==l?(Ie=Wt?null:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(D.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:c[0]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:c[0],transition:{duration:f?i.duration:.5,delay:f?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:$[0]},$[0]),s.jsxRuntimeExports.jsx(D.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:c[1]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:c[1],transition:{duration:f?i.duration:.5,delay:f?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:$[1]},$[1])]}),t[123]=i.duration,t[124]=$,t[125]=n,t[126]=f,t[127]=u,t[128]=c[0],t[129]=c[1],t[130]=Wt,t[131]=a,t[132]=l,t[133]=Ie):Ie=t[133];let Ne;t[134]!==d?.mouseOverLine||t[135]!==v||t[136]!==k||t[137]!==h?.mouseOverLine||t[138]!==a?(Ne=k?s.jsxRuntimeExports.jsx("line",{y1:0,y2:v,x1:a(k.date),x2:a(k.date),className:s.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:h?.mouseOverLine}):null,t[134]=d?.mouseOverLine,t[135]=v,t[136]=k,t[137]=h?.mouseOverLine,t[138]=a,t[139]=Ne):Ne=t[139];let Te;if(t[140]!==i.duration||t[141]!==d?.graphObjectValues||t[142]!==n||t[143]!==m||t[144]!==f||t[145]!==u||t[146]!==c[0]||t[147]!==c[1]||t[148]!==E||t[149]!==w||t[150]!==F||t[151]!==R||t[152]!==h?.graphObjectValues||t[153]!==O||t[154]!==a||t[155]!==l){let o;t[157]!==i.duration||t[158]!==d?.graphObjectValues||t[159]!==n.length||t[160]!==m||t[161]!==f||t[162]!==u||t[163]!==c[0]||t[164]!==c[1]||t[165]!==E||t[166]!==w||t[167]!==F||t[168]!==R||t[169]!==h?.graphObjectValues||t[170]!==O||t[171]!==a||t[172]!==l?(o=(e,U)=>s.jsxRuntimeExports.jsxs(D.motion.g,{children:[qt.checkIfNullOrUndefined(e.y1)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[F?s.jsxRuntimeExports.jsx(D.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y1),fill:c[0]},whileInView:{opacity:1,fill:c[0],transition:{duration:.5,delay:i.duration},cx:a(e.date),cy:l(e.y1)}},initial:"initial",animate:u?"whileInView":"initial"}):null,R?s.jsxRuntimeExports.jsx(D.motion.text,{dy:e.y2<e.y1?-8:"1em",style:{textAnchor:"middle",...h?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-1 text-xs font-bold",d?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y1),fill:c[0]},whileInView:{opacity:1,fill:c[0],x:a(e.date),y:l(e.y1),transition:{duration:f?i.duration:.5,delay:f?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:ei.numberFormattingFunction(e.y1,"NA",E,w,O)}):null]}),qt.checkIfNullOrUndefined(e.y2)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[F?s.jsxRuntimeExports.jsx(D.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y2),fill:c[1]},whileInView:{opacity:1,fill:c[1],transition:{duration:f?i.duration:.5,delay:f?0:i.duration},cx:a(e.date),cy:l(e.y2)}},initial:"initial",animate:u?"whileInView":"initial"}):null,R?s.jsxRuntimeExports.jsx(D.motion.text,{dy:e.y2>e.y1?-8:"1em",style:{textAnchor:"middle",...h?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-2 text-xs font-bold",d?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y2),fill:c[1]},whileInView:{opacity:1,x:a(e.date),y:l(e.y2),fill:c[1],transition:{duration:f?i.duration:.5,delay:f?0:i.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:ei.numberFormattingFunction(e.y2,"NA",E,w,O)}):null]})]},U),t[157]=i.duration,t[158]=d?.graphObjectValues,t[159]=n.length,t[160]=m,t[161]=f,t[162]=u,t[163]=c[0],t[164]=c[1],t[165]=E,t[166]=w,t[167]=F,t[168]=R,t[169]=h?.graphObjectValues,t[170]=O,t[171]=a,t[172]=l,t[173]=o):o=t[173],Te=n.map(o),t[140]=i.duration,t[141]=d?.graphObjectValues,t[142]=n,t[143]=m,t[144]=f,t[145]=u,t[146]=c[0],t[147]=c[1],t[148]=E,t[149]=w,t[150]=F,t[151]=R,t[152]=h?.graphObjectValues,t[153]=O,t[154]=a,t[155]=l,t[156]=Te}else Te=t[156];let qe;t[174]!==i||t[175]!==m||t[176]!==u||t[177]!==S||t[178]!==y.right||t[179]!==Rt||t[180]!==l?(qe=Rt?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:Rt.map((o,e)=>s.jsxRuntimeExports.jsx(hi.RefLineY,{text:o.text,color:o.color,y:l(o.value),x1:0-S,x2:m+y.right,classNames:o.classNames,styles:o.styles,animate:i,isInView:u},e))}):null,t[174]=i,t[175]=m,t[176]=u,t[177]=S,t[178]=y.right,t[179]=Rt,t[180]=l,t[181]=qe):qe=t[181];let oe;if(t[182]!==i||t[183]!==Yt||t[184]!==x||t[185]!==m||t[186]!==u||t[187]!==y.right||t[188]!==z||t[189]!==a||t[190]!==l){let o;t[192]!==i||t[193]!==x||t[194]!==m||t[195]!==u||t[196]!==y.right||t[197]!==z||t[198]!==a||t[199]!==l?(o=(e,U)=>{const Tt=ii.getLineEndPoint({x:e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},qt.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),ci=e.showConnector?{y1:Tt.y,x1:Tt.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date)):0,circleRadius:qt.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,ui={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:z?0:e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:z?e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0):m+y.right-(e.xCoordinate?a(C.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return s.jsxRuntimeExports.jsx(ii.Annotation,{color:e.color,connectorsSettings:ci,labelSettings:ui,text:e.text,classNames:e.classNames,styles:e.styles,animate:i,isInView:u},U)},t[192]=i,t[193]=x,t[194]=m,t[195]=u,t[196]=y.right,t[197]=z,t[198]=a,t[199]=l,t[200]=o):o=t[200],oe=Yt.map(o),t[182]=i,t[183]=Yt,t[184]=x,t[185]=m,t[186]=u,t[187]=y.right,t[188]=z,t[189]=a,t[190]=l,t[191]=oe}else oe=t[191];let $e;t[201]!==oe?($e=s.jsxRuntimeExports.jsx("g",{children:oe}),t[201]=oe,t[202]=$e):$e=t[202];let Me;t[203]!==G?(Me=G.filter(Ii).map(Di),t[203]=G,t[204]=Me):Me=t[204];let Fe;t[205]===Symbol.for("react.memo_cache_sentinel")?(Fe={fill:"none",pointerEvents:"all"},t[205]=Fe):Fe=t[205];let Ge;t[206]!==xt||t[207]!==v||t[208]!==m?(Ge=s.jsxRuntimeExports.jsx("rect",{ref:xt,style:Fe,width:m,height:v}),t[206]=xt,t[207]=v,t[208]=m,t[209]=Ge):Ge=t[209];let Pe;return t[210]!==d?.tooltip||t[211]!==p||t[212]!==Q||t[213]!==k||t[214]!==h?.tooltip||t[215]!==B?(Pe=k&&B&&p&&Q?s.jsxRuntimeExports.jsx(mi.Tooltip,{data:k,body:B,xPos:p,yPos:Q,backgroundStyle:h?.tooltip,className:d?.tooltip}):null,t[210]=d?.tooltip,t[211]=p,t[212]=Q,t[213]=k,t[214]=h?.tooltip,t[215]=B,t[216]=Pe):Pe=t[216],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(D.motion.svg,{width:`${rt}px`,height:`${$t}px`,viewBox:`0 0 ${rt} ${$t}`,direction:"ltr",ref:Ct,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${y.left},${y.top})`,children:[s.jsxRuntimeExports.jsx("clipPath",{id:`above${lt}`,children:s.jsxRuntimeExports.jsx("path",{d:ue(n),style:ht})}),s.jsxRuntimeExports.jsx("clipPath",{id:`below${lt}`,children:s.jsxRuntimeExports.jsx("path",{d:ce(n),style:nt})}),yt,s.jsxRuntimeExports.jsx(ii.CustomArea,{areaSettings:re,scaleX:a,scaleY:l,animate:i,isInView:u}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Qt.filter($i),y:Qt.filter(qi).map(o=>l(o)),x1:0-S,x2:m+y.right,styles:st,classNames:Dt,suffix:O,prefix:w,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:E}),fe,pe]})}),s.jsxRuntimeExports.jsx(pi.XTicksAndGridLines,{values:ai,x:ri,y1:0,y2:v,styles:ye,classNames:ge,suffix:O,prefix:w,labelType:"primary",showGridLines:!0,precision:E}),je,s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(D.motion.path,{clipPath:`url(#below${lt})`,d:St(n)||"",style:ve,exit:we,variants:be,initial:"initial",animate:u?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(D.motion.path,{clipPath:`url(#above${lt})`,d:St(n)||"",style:Ee,exit:Oe,variants:Ae,initial:"initial",animate:u?"whileInView":"initial"})]}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(D.motion.path,{d:pt(n)||"",style:Ve,exit:Le,variants:{initial:{pathLength:0,d:pt(n)||"",opacity:1},whileInView:{pathLength:1,d:pt(n)||"",opacity:1,transition:{duration:i.duration}}},initial:"initial",animate:u?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(D.motion.path,{style:Se,exit:ke,variants:{initial:{pathLength:0,d:Kt(n)||"",opacity:1},whileInView:De},initial:"initial",animate:u?"whileInView":"initial"}),Ie,Ne,Te]}),qe,$e,Me,Ge]})}),Pe]})}function Di(r){return r.layer}function Ii(r){return r.position==="after"}function Ni(r){return r.layer}function Ti(r){return r.position==="before"}function qi(r){return r!==0}function $i(r){return r!==0}function Mi(r){return r.date}function Fi(r){return r.y2}function Gi(r){return r.y2}function Pi(r){return r.y1}function Hi(r){return r.y1}function Wi(r){return r.y2}function Yi(r){return r.y2}function Xi(r){return r.y2}function Ui(r){return r.y1}function Bi(r){return r.y1}function zi(r){return r.y1}function Ji(r){const t=s.compilerRuntimeExports.c(102),{data:j,graphTitle:rt,suffix:$t,sources:c,prefix:O,graphDescription:w,height:x,width:R,footNote:Mt,noOfXTicks:Ft,dateFormat:S,showValues:Gt,padding:wt,lineColors:B,backgroundColor:Pt,leftMargin:Ht,rightMargin:i,topMargin:z,bottomMargin:Wt,tooltip:$,highlightAreaSettings:I,relativeHeight:lt,onSeriesMouseOver:M,graphID:F,graphDownload:Rt,dataDownload:N,animate:bt,language:Yt,minHeight:Xt,labels:T,showColorLegendAtTop:de,colorLegendTitle:Ut,diffAreaColors:Et,strokeWidth:Ot,showDots:h,refValues:d,minValue:E,maxValue:G,annotations:Ct,customHighlightAreaSettings:J,theme:u,ariaLabel:f,yAxisTitle:se,noOfYTicks:At,minDate:ct,maxDate:K,curveType:k,styles:g,classNames:p,precision:ae,customLayers:Q}=r,Bt=$t===void 0?"":$t,Vt=O===void 0?"":O,ut=Ft===void 0?10:Ft,y=S===void 0?"yyyy":S,xt=Gt===void 0?!1:Gt;let Z;t[0]!==B?(Z=B===void 0?[We.Colors.light.categoricalColors.colors[0],We.Colors.light.categoricalColors.colors[1]]:B,t[0]=B,t[1]=Z):Z=t[1];const n=Z,mt=Pt===void 0?!1:Pt,Lt=Ht===void 0?30:Ht,dt=i===void 0?50:i,re=z===void 0?20:z,m=Wt===void 0?25:Wt;let v;t[2]!==I?(v=I===void 0?[]:I,t[2]=I,t[3]=v):v=t[3];const le=v,zt=Rt===void 0?!1:Rt,_=N===void 0?!1:N,tt=bt===void 0?!1:bt,P=Yt===void 0?"en":Yt,Jt=Xt===void 0?0:Xt,q=de===void 0?!1:de;let b;t[4]!==Et?(b=Et===void 0?[We.Colors.alerts.red,We.Colors.alerts.darkGreen]:Et,t[4]=Et,t[5]=b):b=t[5];const et=b,a=Ot===void 0?2:Ot,ft=h===void 0?!0:h;let it;t[6]!==d?(it=d===void 0?[]:d,t[6]=d,t[7]=it):it=t[7];const l=it;let pt;t[8]!==Ct?(pt=Ct===void 0?[]:Ct,t[8]=Ct,t[9]=pt):pt=t[9];const Kt=pt;let St;t[10]!==J?(St=J===void 0?[]:J,t[10]=J,t[11]=St):St=t[11];const ce=St,ue=u===void 0?"light":u,Qt=At===void 0?5:At,Zt=k===void 0?"curve":k,ht=ae===void 0?2:ae;let nt;t[12]!==Q?(nt=Q===void 0?[]:Q,t[12]=Q,t[13]=nt):nt=t[13];const yt=nt,[ot,xe]=L.useState(0),[st,me]=L.useState(0),kt=L.useRef(null),Dt=L.useRef(null);let gt,jt;t[14]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>{const _t=new ResizeObserver(at=>{xe(at[0].target.clientWidth||620),me(at[0].target.clientHeight||480)});return kt.current&&_t.observe(kt.current),()=>_t.disconnect()},jt=[],t[14]=gt,t[15]=jt):(gt=t[14],jt=t[15]),L.useEffect(gt,jt);const It=p?.graphContainer,Nt=g?.graphContainer;let H;t[16]!==p?.description||t[17]!==p?.title||t[18]!==j||t[19]!==_||t[20]!==w||t[21]!==zt||t[22]!==rt||t[23]!==g?.description||t[24]!==g?.title||t[25]!==R?(H=rt||w||zt||_?s.jsxRuntimeExports.jsx(Ci.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:p?.title,description:p?.description},graphTitle:rt,graphDescription:w,width:R,graphDownload:zt?Dt:void 0,dataDownload:_?j.map(tn).filter(_i).length>0?j.map(Zi).filter(Qi):j.filter(Ki):null}):null,t[16]=p?.description,t[17]=p?.title,t[18]=j,t[19]=_,t[20]=w,t[21]=zt,t[22]=rt,t[23]=g?.description,t[24]=g?.title,t[25]=R,t[26]=H):H=t[26];let A;t[27]!==p?.colorLegend||t[28]!==Ut||t[29]!==j.length||t[30]!==T||t[31]!==n||t[32]!==q?(A=q&&j.length>0?s.jsxRuntimeExports.jsx(Ai.ColorLegend,{colorDomain:T,colorLegendTitle:Ut,colors:n,showNAColor:!1,className:p?.colorLegend}):null,t[27]=p?.colorLegend,t[28]=Ut,t[29]=j.length,t[30]=T,t[31]=n,t[32]=q,t[33]=A):A=t[33];let W;t[34]!==j.length?(W=j.length===0&&s.jsxRuntimeExports.jsx(Li.EmptyState,{}),t[34]=j.length,t[35]=W):W=t[35];let Y;t[36]!==tt||t[37]!==Kt||t[38]!==m||t[39]!==p||t[40]!==Zt||t[41]!==ce||t[42]!==yt||t[43]!==j||t[44]!==y||t[45]!==et||t[46]!==le||t[47]!==T||t[48]!==P||t[49]!==Lt||t[50]!==n||t[51]!==K||t[52]!==G||t[53]!==ct||t[54]!==E||t[55]!==ut||t[56]!==Qt||t[57]!==M||t[58]!==ht||t[59]!==Vt||t[60]!==l||t[61]!==dt||t[62]!==q||t[63]!==ft||t[64]!==xt||t[65]!==a||t[66]!==g||t[67]!==Bt||t[68]!==st||t[69]!==ot||t[70]!==$||t[71]!==re||t[72]!==se?(Y=ot&&st&&j.length>0?s.jsxRuntimeExports.jsx(ki,{data:j,lineColors:n,colorDomain:T,width:ot,height:st,suffix:Bt,prefix:Vt,dateFormat:y,showValues:xt,noOfXTicks:ut??Si.getNoOfTicks(ot),leftMargin:Lt,rightMargin:dt,topMargin:re,bottomMargin:m,highlightAreaSettings:le,tooltip:$,onSeriesMouseOver:M,showColorLegendAtTop:q,animate:tt===!0?{duration:.5,once:!0,amount:.5}:tt||{duration:0,once:!0,amount:0},rtl:P==="he"||P==="ar",diffAreaColors:et,idSuffix:Vi.generateRandomString(8),strokeWidth:a,showDots:ft,refValues:l,minValue:E,maxValue:G,annotations:Kt,customHighlightAreaSettings:ce,yAxisTitle:se,noOfYTicks:Qt,minDate:ct,maxDate:K,curveType:Zt,styles:g,classNames:p,precision:ht,customLayers:yt}):null,t[36]=tt,t[37]=Kt,t[38]=m,t[39]=p,t[40]=Zt,t[41]=ce,t[42]=yt,t[43]=j,t[44]=y,t[45]=et,t[46]=le,t[47]=T,t[48]=P,t[49]=Lt,t[50]=n,t[51]=K,t[52]=G,t[53]=ct,t[54]=E,t[55]=ut,t[56]=Qt,t[57]=M,t[58]=ht,t[59]=Vt,t[60]=l,t[61]=dt,t[62]=q,t[63]=ft,t[64]=xt,t[65]=a,t[66]=g,t[67]=Bt,t[68]=st,t[69]=ot,t[70]=$,t[71]=re,t[72]=se,t[73]=Y):Y=t[73];let X;t[74]!==W||t[75]!==Y?(X=s.jsxRuntimeExports.jsxs(si.GraphArea,{ref:kt,children:[W,Y]}),t[74]=W,t[75]=Y,t[76]=X):X=t[76];let V;t[77]!==p?.footnote||t[78]!==p?.source||t[79]!==Mt||t[80]!==c||t[81]!==g?.footnote||t[82]!==g?.source||t[83]!==R?(V=c||Mt?s.jsxRuntimeExports.jsx(Oi.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:c,footNote:Mt,width:R}):null,t[77]=p?.footnote,t[78]=p?.source,t[79]=Mt,t[80]=c,t[81]=g?.footnote,t[82]=g?.source,t[83]=R,t[84]=V):V=t[84];let vt;return t[85]!==f||t[86]!==mt||t[87]!==F||t[88]!==x||t[89]!==P||t[90]!==Jt||t[91]!==wt||t[92]!==lt||t[93]!==It||t[94]!==Nt||t[95]!==H||t[96]!==A||t[97]!==X||t[98]!==V||t[99]!==ue||t[100]!==R?(vt=s.jsxRuntimeExports.jsxs(si.GraphContainer,{className:It,style:Nt,id:F,ref:Dt,"aria-label":f,backgroundColor:mt,theme:ue,language:P,minHeight:Jt,width:R,height:x,relativeHeight:lt,padding:wt,children:[H,A,X,V]}),t[85]=f,t[86]=mt,t[87]=F,t[88]=x,t[89]=P,t[90]=Jt,t[91]=wt,t[92]=lt,t[93]=It,t[94]=Nt,t[95]=H,t[96]=A,t[97]=X,t[98]=V,t[99]=ue,t[100]=R,t[101]=vt):vt=t[101],vt}function Ki(r){return r!==void 0}function Qi(r){return r!==void 0}function Zi(r){return r.data}function _i(r){return r!==void 0}function tn(r){return r.data}exports.DifferenceLineChart=Ji;
2
2
  //# sourceMappingURL=DifferenceLineChart.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DifferenceLineChart.cjs","sources":["../src/Components/Graphs/LineCharts/DifferenceLineChart/Graph.tsx","../src/Components/Graphs/LineCharts/DifferenceLineChart/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\r\nimport {\r\n line,\r\n curveMonotoneX,\r\n area,\r\n curveLinear,\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 { motion, useInView } from 'motion/react';\r\nimport { cn } from '@undp/design-system-react/cn';\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 DifferenceLineChartDataType,\r\n HighlightAreaSettingsDataType,\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 { HighlightArea } from '@/Components/Elements/HighlightArea';\r\nimport { CustomArea } from '@/Components/Elements/HighlightArea/customArea';\r\n\r\ninterface Props {\r\n data: DifferenceLineChartDataType[];\r\n lineColors: [string, string];\r\n diffAreaColors: [string, string];\r\n width: number;\r\n height: number;\r\n suffix: string;\r\n prefix: string;\r\n dateFormat: string;\r\n showValues: boolean;\r\n noOfXTicks: number;\r\n rightMargin: number;\r\n leftMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n highlightAreaSettings: HighlightAreaSettingsDataType[];\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 animate: AnimateDataType;\r\n rtl: boolean;\r\n colorDomain: [string, string];\r\n showColorLegendAtTop?: boolean;\r\n idSuffix: string;\r\n strokeWidth: number;\r\n showDots: boolean;\r\n refValues: ReferenceDataType[];\r\n maxValue?: number;\r\n minValue?: number;\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 curveType: CurveTypes;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\ninterface FormattedDataType {\r\n y1: number;\r\n y2: number;\r\n date: Date;\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 suffix,\r\n prefix,\r\n dateFormat,\r\n showValues,\r\n noOfXTicks,\r\n rightMargin,\r\n leftMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n highlightAreaSettings,\r\n onSeriesMouseOver,\r\n animate,\r\n rtl,\r\n showColorLegendAtTop,\r\n colorDomain,\r\n diffAreaColors,\r\n idSuffix,\r\n strokeWidth,\r\n showDots,\r\n refValues,\r\n minValue,\r\n maxValue,\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 classNames,\r\n precision,\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 // 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 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 );\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()) : dataFormatted[0].date;\r\n const maxYear = maxDate\r\n ? parse(`${maxDate}`, dateFormat, new Date())\r\n : dataFormatted[dataFormatted.length - 1].date;\r\n const minParam1 =\r\n Math.min(...dataFormatted.map(d => d.y1)) !== Infinity\r\n ? Math.min(...dataFormatted.map(d => d.y1)) > 0\r\n ? 0\r\n : Math.min(...dataFormatted.map(d => d.y1))\r\n : 0;\r\n const minParam2 =\r\n Math.min(...dataFormatted.map(d => d.y2)) !== Infinity\r\n ? Math.min(...dataFormatted.map(d => d.y2)) > 0\r\n ? 0\r\n : Math.min(...dataFormatted.map(d => d.y2))\r\n : 0;\r\n const maxParam1 =\r\n Math.max(...dataFormatted.map(d => d.y1)) !== Infinity\r\n ? Math.max(...dataFormatted.map(d => d.y1))\r\n : 0;\r\n const maxParam2 =\r\n Math.max(...dataFormatted.map(d => d.y2)) !== Infinity\r\n ? Math.max(...dataFormatted.map(d => d.y2))\r\n : 0;\r\n\r\n const minParam = checkIfNullOrUndefined(minValue)\r\n ? minParam1 < minParam2\r\n ? minParam1\r\n : minParam2\r\n : (minValue as number);\r\n const maxParam = maxParam1 > maxParam2 ? maxParam1 : maxParam2;\r\n const x = scaleTime().domain([minYear, maxYear]).range([0, graphWidth]);\r\n\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 lineShape1 = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y1))\r\n .curve(curve);\r\n\r\n const lineShape2 = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y2))\r\n .curve(curve);\r\n\r\n const mainGraphArea = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y1))\r\n .y0(d => y(d.y2))\r\n .curve(curve);\r\n const mainGraphArea1 = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y1))\r\n .y0(0)\r\n .curve(curve);\r\n const mainGraphArea2 = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y2))\r\n .y0(0)\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 onSeriesMouseOver?.(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n };\r\n const mouseout = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n };\r\n select(MouseoverRectRef.current).on('mousemove', mousemove).on('mouseout', mouseout);\r\n }, [x, dataFormatted, onSeriesMouseOver]);\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 <clipPath id={`above${idSuffix}`}>\r\n <path\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n d={mainGraphArea2(dataFormatted as any) as string}\r\n style={{ fill: 'none' }}\r\n />\r\n </clipPath>\r\n <clipPath id={`below${idSuffix}`}>\r\n <path\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n d={mainGraphArea1(dataFormatted as any) as string}\r\n style={{ fill: 'none' }}\r\n />\r\n </clipPath>\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 <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 ? '1rem' : -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 {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g>\r\n <motion.path\r\n clipPath={`url(#below${idSuffix})`}\r\n d={mainGraphArea(dataFormatted) || ''}\r\n style={{ fill: diffAreaColors[1] }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 1 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n <motion.path\r\n clipPath={`url(#above${idSuffix})`}\r\n d={mainGraphArea(dataFormatted) || ''}\r\n style={{ fill: diffAreaColors[0] }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n </g>\r\n <g>\r\n <motion.path\r\n d={lineShape1(dataFormatted) || ''}\r\n style={{\r\n fill: 'none',\r\n stroke: lineColors[0],\r\n strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { pathLength: 0, d: lineShape1(dataFormatted) || '', opacity: 1 },\r\n whileInView: {\r\n pathLength: 1,\r\n d: lineShape1(dataFormatted) || '',\r\n opacity: 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 style={{\r\n fill: 'none',\r\n stroke: lineColors[1],\r\n strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { pathLength: 0, d: lineShape2(dataFormatted) || '', opacity: 1 },\r\n whileInView: {\r\n pathLength: 1,\r\n d: lineShape2(dataFormatted) || '',\r\n opacity: 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 {showColorLegendAtTop ? null : (\r\n <g>\r\n <motion.text\r\n key={colorDomain[0]}\r\n className='text-xs'\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 x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y1 as number),\r\n fill: lineColors[0],\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y1 as number),\r\n fill: lineColors[0],\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 {colorDomain[0]}\r\n </motion.text>\r\n <motion.text\r\n key={colorDomain[1]}\r\n className='text-xs'\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 x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y2 as number),\r\n fill: lineColors[1],\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y2 as number),\r\n fill: lineColors[1],\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 {colorDomain[1]}\r\n </motion.text>\r\n </g>\r\n )}\r\n {mouseOverData ? (\r\n <line\r\n y1={0}\r\n y2={graphHeight}\r\n x1={x(mouseOverData.date)}\r\n x2={x(mouseOverData.date)}\r\n className={cn(\r\n 'undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100',\r\n classNames?.mouseOverLine,\r\n )}\r\n style={styles?.mouseOverLine}\r\n />\r\n ) : null}\r\n {dataFormatted.map((d, i) => (\r\n <motion.g key={i}>\r\n {!checkIfNullOrUndefined(d.y1) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={\r\n graphWidth / dataFormatted.length < 5\r\n ? 0\r\n : graphWidth / dataFormatted.length < 20\r\n ? 2\r\n : 4\r\n }\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, cx: x(d.date), cy: y(d.y1), fill: lineColors[0] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[0],\r\n transition: { duration: 0.5, delay: animate.duration },\r\n cx: x(d.date),\r\n cy: y(d.y1),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n dy={d.y2 < d.y1 ? -8 : '1em'}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value graph-value-line-1 text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, x: x(d.date), y: y(d.y1), fill: lineColors[0] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[0],\r\n x: x(d.date),\r\n y: y(d.y1),\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 {numberFormattingFunction(d.y1, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n {!checkIfNullOrUndefined(d.y2) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={\r\n graphWidth / dataFormatted.length < 5\r\n ? 0\r\n : graphWidth / dataFormatted.length < 20\r\n ? 2\r\n : 4\r\n }\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, cx: x(d.date), cy: y(d.y2), fill: lineColors[1] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[1],\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n cx: x(d.date),\r\n cy: y(d.y2),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n dy={d.y2 > d.y1 ? -8 : '1em'}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value graph-value-line-2 text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, x: x(d.date), y: y(d.y2), fill: lineColors[1] },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(d.date),\r\n y: y(d.y2),\r\n fill: lineColors[1],\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 {numberFormattingFunction(d.y2, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n </g>\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 <rect\r\n ref={MouseoverRectRef}\r\n style={{\r\n fill: 'none',\r\n pointerEvents: 'all',\r\n }}\r\n width={graphWidth}\r\n height={graphHeight}\r\n />\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 { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { ColorLegend } from '@/Components/Elements/ColorLegend';\r\nimport {\r\n AnnotationSettingsDataType,\r\n CustomHighlightAreaSettingsDataType,\r\n DifferenceLineChartDataType,\r\n Languages,\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 { Colors } from '@/Components/ColorPalette';\r\nimport { generateRandomString } from '@/Utils/generateRandomString';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\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: DifferenceLineChartDataType[];\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 /** Array of colors for the 2 lines */\r\n lineColors?: [string, string];\r\n /** Array of colors to highlight the negative and positive difference between the lines */\r\n diffAreaColors?: [string, string];\r\n /** Toggle the visibility of color legend between the top of the graphs and next to the line */\r\n showColorLegendAtTop?: 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 /** 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 /** Reference values for comparison */\r\n refValues?: ReferenceDataType[];\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 values */\r\n showValues?: boolean;\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 /** Labels for the lines */\r\n labels: [string, string];\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 /** 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 DifferenceLineChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\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 showValues = false,\r\n padding,\r\n lineColors = [\r\n Colors.light.categoricalColors.colors[0],\r\n Colors.light.categoricalColors.colors[1],\r\n ],\r\n backgroundColor = false,\r\n leftMargin = 30,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 25,\r\n tooltip,\r\n highlightAreaSettings = [],\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n graphID,\r\n graphDownload = false,\r\n dataDownload = false,\r\n animate = false,\r\n language = 'en',\r\n minHeight = 0,\r\n labels,\r\n showColorLegendAtTop = false,\r\n colorLegendTitle,\r\n diffAreaColors = [Colors.alerts.red, Colors.alerts.darkGreen],\r\n strokeWidth = 2,\r\n showDots = true,\r\n refValues = [],\r\n minValue,\r\n maxValue,\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 precision = 2,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\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 {data.length === 0 ? (\r\n <EmptyState />\r\n ) : (\r\n <>\r\n {showColorLegendAtTop ? (\r\n <ColorLegend\r\n colorDomain={labels}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={lineColors}\r\n showNAColor={false}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {svgWidth && svgHeight ? (\r\n <Graph\r\n data={data}\r\n lineColors={lineColors}\r\n colorDomain={labels}\r\n width={svgWidth}\r\n height={svgHeight}\r\n suffix={suffix}\r\n prefix={prefix}\r\n dateFormat={dateFormat}\r\n showValues={showValues}\r\n noOfXTicks={noOfXTicks ?? getNoOfTicks(svgWidth)}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n highlightAreaSettings={highlightAreaSettings}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n showColorLegendAtTop={showColorLegendAtTop}\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 diffAreaColors={diffAreaColors}\r\n idSuffix={generateRandomString(8)}\r\n strokeWidth={strokeWidth}\r\n showDots={showDots}\r\n refValues={refValues}\r\n minValue={minValue}\r\n maxValue={maxValue}\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 precision={precision}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n </>\r\n )}\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":["Graph","props","$","_c","data","width","height","lineColors","suffix","prefix","dateFormat","showValues","noOfXTicks","rightMargin","leftMargin","topMargin","bottomMargin","tooltip","highlightAreaSettings","onSeriesMouseOver","animate","rtl","showColorLegendAtTop","colorDomain","diffAreaColors","idSuffix","strokeWidth","showDots","refValues","minValue","maxValue","annotations","customHighlightAreaSettings","yAxisTitle","noOfYTicks","minDate","maxDate","curveType","styles","classNames","precision","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","hasAnimatedOnce","setHasAnimatedOnce","useState","t1","t2","duration","timeout","setTimeout","clearTimeout","useEffect","curve","curveLinear","curveStep","curveStepAfter","curveStepBefore","curveMonotoneX","mouseOverData","setMouseOverData","undefined","eventX","setEventX","eventY","setEventY","t3","t4","top","bottom","left","right","margin","MouseoverRectRef","t5","d","date","parse","Date","dataFormatted","orderBy","map","t6","t7","d_0","coordinates","highlightAreaSettingsFormatted","t8","d_1","el","j","customHighlightAreaSettingsFormatted","graphWidth","graphHeight","minYear","maxYear","length","minParam1","Math","min","_temp","Infinity","_temp2","_temp3","minParam2","_temp4","_temp5","_temp6","maxParam1","max","_temp7","_temp8","maxParam2","_temp9","_temp0","checkIfNullOrUndefined","minParam","maxParam","x","scaleTime","domain","range","t9","t10","y","scaleLinear","nice","lineShape1","line","d_12","y1","lineShape2","d_14","y2","mainGraphArea","area","d_16","d_17","y0","d_18","mainGraphArea1","d_20","mainGraphArea2","d_22","yTicks","ticks","xTicks","mousemove","event","selectedData","bisectCenter","_temp1","invert","pointer","clientY","clientX","mouseout","select","current","on","t11","Symbol","for","fill","t12","t13","jsx","HighlightArea","t14","yAxis","gridLines","t15","labels","t16","t17","t18","t19","t20","t21","t22","t23","t24","t25","numberFormattingFunction","t26","t27","t28","t29","dx","dy","t30","xAxis","axis","t31","t32","label","t33","t34","t35","t36","Axis","t37","t38","t39","title","t40","t41","AxisTitle","t42","d_27","format","t43","t44","d_28","t45","t46","t47","t48","t49","cn","t50","t51","t52","t53","filter","_temp12","_temp13","t54","t55","opacity","transition","t56","t57","initial","whileInView","t58","t59","t60","t61","t62","stroke","t63","t64","t65","t66","t67","t68","t69","pathLength","t70","jsxs","motion","delay","t71","mouseOverLine","t72","graphObjectValues","t73","d_31","i","Fragment","cx","cy","textAnchor","el_0","i_0","RefLineY","text","color","value","t74","t75","d_32","i_1","endPoints","getLineEndPoint","xCoordinate","xOffset","yCoordinate","yOffset","connectorRadius","connectorSettings","showConnector","x1","x2","circleRadius","labelSettings","maxWidth","fontWeight","align","Annotation","t76","_temp14","_temp15","t77","pointerEvents","t78","t79","Tooltip","CustomArea","YTicksAndGridLines","_temp10","_temp11","d_26","XTicksAndGridLines","d_34","layer","d_33","position","d_30","d_29","d_25","d_24","d_23","d_10","d_11","d_8","d_9","d_5","d_6","d_7","d_2","d_3","d_4","DifferenceLineChart","graphTitle","sources","graphDescription","footNote","padding","backgroundColor","relativeHeight","graphID","graphDownload","dataDownload","language","minHeight","colorLegendTitle","theme","ariaLabel","Colors","light","categoricalColors","colors","alerts","red","darkGreen","svgWidth","setSvgWidth","svgHeight","setSvgHeight","graphDiv","graphParentDiv","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","observe","disconnect","graphContainer","description","GraphHeader","EmptyState","ColorLegend","colorLegend","GraphArea","getNoOfTicks","generateRandomString","footnote","source","GraphFooter","GraphContainer"],"mappings":"oxCA6FO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,GAAAC,OAAAA,GAAAC,WAAAA,EAAAC,OAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,WAAAA,EAAAC,WAAAA,GAAAC,YAAAA,GAAAC,WAAAA,EAAAC,UAAAA,GAAAC,aAAAA,GAAAC,QAAAA,EAAAC,sBAAAA,GAAAC,kBAAAA,GAAAC,QAAAA,EAAAC,IAAAA,EAAAC,qBAAAA,GAAAC,YAAAA,EAAAC,eAAAA,EAAAC,SAAAA,GAAAC,YAAAA,EAAAC,SAAAA,EAAAC,UAAAA,GAAAC,SAAAA,EAAAC,SAAAA,GAAAC,YAAA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":3,"file":"DifferenceLineChart.cjs","sources":["../src/Components/Graphs/LineCharts/DifferenceLineChart/Graph.tsx","../src/Components/Graphs/LineCharts/DifferenceLineChart/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\r\nimport {\r\n line,\r\n curveMonotoneX,\r\n area,\r\n curveLinear,\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 { motion, useInView } from 'motion/react';\r\nimport { cn } from '@undp/design-system-react/cn';\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 DifferenceLineChartDataType,\r\n HighlightAreaSettingsDataType,\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 { HighlightArea } from '@/Components/Elements/HighlightArea';\r\nimport { CustomArea } from '@/Components/Elements/HighlightArea/customArea';\r\n\r\ninterface Props {\r\n data: DifferenceLineChartDataType[];\r\n lineColors: [string, string];\r\n diffAreaColors: [string, string];\r\n width: number;\r\n height: number;\r\n suffix: string;\r\n prefix: string;\r\n dateFormat: string;\r\n showValues: boolean;\r\n noOfXTicks: number;\r\n rightMargin: number;\r\n leftMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n highlightAreaSettings: HighlightAreaSettingsDataType[];\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 animate: AnimateDataType;\r\n rtl: boolean;\r\n colorDomain: [string, string];\r\n showColorLegendAtTop?: boolean;\r\n idSuffix: string;\r\n strokeWidth: number;\r\n showDots: boolean;\r\n refValues: ReferenceDataType[];\r\n maxValue?: number;\r\n minValue?: number;\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 curveType: CurveTypes;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\ninterface FormattedDataType {\r\n y1: number;\r\n y2: number;\r\n date: Date;\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 suffix,\r\n prefix,\r\n dateFormat,\r\n showValues,\r\n noOfXTicks,\r\n rightMargin,\r\n leftMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n highlightAreaSettings,\r\n onSeriesMouseOver,\r\n animate,\r\n rtl,\r\n showColorLegendAtTop,\r\n colorDomain,\r\n diffAreaColors,\r\n idSuffix,\r\n strokeWidth,\r\n showDots,\r\n refValues,\r\n minValue,\r\n maxValue,\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 classNames,\r\n precision,\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 // 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 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 );\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()) : dataFormatted[0].date;\r\n const maxYear = maxDate\r\n ? parse(`${maxDate}`, dateFormat, new Date())\r\n : dataFormatted[dataFormatted.length - 1].date;\r\n const minParam1 =\r\n Math.min(...dataFormatted.map(d => d.y1)) !== Infinity\r\n ? Math.min(...dataFormatted.map(d => d.y1)) > 0\r\n ? 0\r\n : Math.min(...dataFormatted.map(d => d.y1))\r\n : 0;\r\n const minParam2 =\r\n Math.min(...dataFormatted.map(d => d.y2)) !== Infinity\r\n ? Math.min(...dataFormatted.map(d => d.y2)) > 0\r\n ? 0\r\n : Math.min(...dataFormatted.map(d => d.y2))\r\n : 0;\r\n const maxParam1 =\r\n Math.max(...dataFormatted.map(d => d.y1)) !== Infinity\r\n ? Math.max(...dataFormatted.map(d => d.y1))\r\n : 0;\r\n const maxParam2 =\r\n Math.max(...dataFormatted.map(d => d.y2)) !== Infinity\r\n ? Math.max(...dataFormatted.map(d => d.y2))\r\n : 0;\r\n\r\n const minParam = checkIfNullOrUndefined(minValue)\r\n ? minParam1 < minParam2\r\n ? minParam1\r\n : minParam2\r\n : (minValue as number);\r\n const maxParam = maxParam1 > maxParam2 ? maxParam1 : maxParam2;\r\n const x = scaleTime().domain([minYear, maxYear]).range([0, graphWidth]);\r\n\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 lineShape1 = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y1))\r\n .curve(curve);\r\n\r\n const lineShape2 = line<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y(d => y(d.y2))\r\n .curve(curve);\r\n\r\n const mainGraphArea = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y1))\r\n .y0(d => y(d.y2))\r\n .curve(curve);\r\n const mainGraphArea1 = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y1))\r\n .y0(0)\r\n .curve(curve);\r\n const mainGraphArea2 = area<FormattedDataType>()\r\n .x(d => x(d.date))\r\n .y1(d => y(d.y2))\r\n .y0(0)\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 onSeriesMouseOver?.(selectedData || dataFormatted[dataFormatted.length - 1]);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n };\r\n const mouseout = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n };\r\n select(MouseoverRectRef.current).on('mousemove', mousemove).on('mouseout', mouseout);\r\n }, [x, dataFormatted, onSeriesMouseOver]);\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 <clipPath id={`above${idSuffix}`}>\r\n <path\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n d={mainGraphArea2(dataFormatted as any) as string}\r\n style={{ fill: 'none' }}\r\n />\r\n </clipPath>\r\n <clipPath id={`below${idSuffix}`}>\r\n <path\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n d={mainGraphArea1(dataFormatted as any) as string}\r\n style={{ fill: 'none' }}\r\n />\r\n </clipPath>\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 <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 ? '1rem' : -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 {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g>\r\n <motion.path\r\n clipPath={`url(#below${idSuffix})`}\r\n d={mainGraphArea(dataFormatted) || ''}\r\n style={{ fill: diffAreaColors[1] }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 1 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n <motion.path\r\n clipPath={`url(#above${idSuffix})`}\r\n d={mainGraphArea(dataFormatted) || ''}\r\n style={{ fill: diffAreaColors[0] }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n </g>\r\n <g>\r\n <motion.path\r\n d={lineShape1(dataFormatted) || ''}\r\n style={{\r\n fill: 'none',\r\n stroke: lineColors[0],\r\n strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { pathLength: 0, d: lineShape1(dataFormatted) || '', opacity: 1 },\r\n whileInView: {\r\n pathLength: 1,\r\n d: lineShape1(dataFormatted) || '',\r\n opacity: 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 style={{\r\n fill: 'none',\r\n stroke: lineColors[1],\r\n strokeWidth,\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { pathLength: 0, d: lineShape2(dataFormatted) || '', opacity: 1 },\r\n whileInView: {\r\n pathLength: 1,\r\n d: lineShape2(dataFormatted) || '',\r\n opacity: 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 {showColorLegendAtTop ? null : (\r\n <g>\r\n <motion.text\r\n key={colorDomain[0]}\r\n className='text-xs'\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 x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y1 as number),\r\n fill: lineColors[0],\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y1 as number),\r\n fill: lineColors[0],\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 {colorDomain[0]}\r\n </motion.text>\r\n <motion.text\r\n key={colorDomain[1]}\r\n className='text-xs'\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 x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y2 as number),\r\n fill: lineColors[1],\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(dataFormatted[dataFormatted.length - 1].date),\r\n y: y(dataFormatted[dataFormatted.length - 1].y2 as number),\r\n fill: lineColors[1],\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 {colorDomain[1]}\r\n </motion.text>\r\n </g>\r\n )}\r\n {mouseOverData ? (\r\n <line\r\n y1={0}\r\n y2={graphHeight}\r\n x1={x(mouseOverData.date)}\r\n x2={x(mouseOverData.date)}\r\n className={cn(\r\n 'undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100',\r\n classNames?.mouseOverLine,\r\n )}\r\n style={styles?.mouseOverLine}\r\n />\r\n ) : null}\r\n {dataFormatted.map((d, i) => (\r\n <motion.g key={i}>\r\n {!checkIfNullOrUndefined(d.y1) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={\r\n graphWidth / dataFormatted.length < 5\r\n ? 0\r\n : graphWidth / dataFormatted.length < 20\r\n ? 2\r\n : 4\r\n }\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, cx: x(d.date), cy: y(d.y1), fill: lineColors[0] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[0],\r\n transition: { duration: 0.5, delay: animate.duration },\r\n cx: x(d.date),\r\n cy: y(d.y1),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n dy={d.y2 < d.y1 ? -8 : '1em'}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value graph-value-line-1 text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, x: x(d.date), y: y(d.y1), fill: lineColors[0] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[0],\r\n x: x(d.date),\r\n y: y(d.y1),\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 {numberFormattingFunction(d.y1, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n {!checkIfNullOrUndefined(d.y2) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={\r\n graphWidth / dataFormatted.length < 5\r\n ? 0\r\n : graphWidth / dataFormatted.length < 20\r\n ? 2\r\n : 4\r\n }\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, cx: x(d.date), cy: y(d.y2), fill: lineColors[1] },\r\n whileInView: {\r\n opacity: 1,\r\n fill: lineColors[1],\r\n transition: {\r\n duration: hasAnimatedOnce ? animate.duration : 0.5,\r\n delay: hasAnimatedOnce ? 0 : animate.duration,\r\n },\r\n cx: x(d.date),\r\n cy: y(d.y2),\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n dy={d.y2 > d.y1 ? -8 : '1em'}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value graph-value-line-2 text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { opacity: 0, x: x(d.date), y: y(d.y2), fill: lineColors[1] },\r\n whileInView: {\r\n opacity: 1,\r\n x: x(d.date),\r\n y: y(d.y2),\r\n fill: lineColors[1],\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 {numberFormattingFunction(d.y2, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </motion.g>\r\n ))}\r\n </g>\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 <rect\r\n ref={MouseoverRectRef}\r\n style={{\r\n fill: 'none',\r\n pointerEvents: 'all',\r\n }}\r\n width={graphWidth}\r\n height={graphHeight}\r\n />\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 { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { ColorLegend } from '@/Components/Elements/ColorLegend';\r\nimport {\r\n AnnotationSettingsDataType,\r\n CustomHighlightAreaSettingsDataType,\r\n DifferenceLineChartDataType,\r\n Languages,\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 { Colors } from '@/Components/ColorPalette';\r\nimport { generateRandomString } from '@/Utils/generateRandomString';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\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: DifferenceLineChartDataType[];\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 /** Array of colors for the 2 lines */\r\n lineColors?: [string, string];\r\n /** Array of colors to highlight the negative and positive difference between the lines */\r\n diffAreaColors?: [string, string];\r\n /** Toggle the visibility of color legend between the top of the graphs and next to the line */\r\n showColorLegendAtTop?: 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 /** 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 /** Reference values for comparison */\r\n refValues?: ReferenceDataType[];\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 values */\r\n showValues?: boolean;\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 /** Labels for the lines */\r\n labels: [string, string];\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 /** 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 DifferenceLineChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\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 showValues = false,\r\n padding,\r\n lineColors = [\r\n Colors.light.categoricalColors.colors[0],\r\n Colors.light.categoricalColors.colors[1],\r\n ],\r\n backgroundColor = false,\r\n leftMargin = 30,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 25,\r\n tooltip,\r\n highlightAreaSettings = [],\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n graphID,\r\n graphDownload = false,\r\n dataDownload = false,\r\n animate = false,\r\n language = 'en',\r\n minHeight = 0,\r\n labels,\r\n showColorLegendAtTop = false,\r\n colorLegendTitle,\r\n diffAreaColors = [Colors.alerts.red, Colors.alerts.darkGreen],\r\n strokeWidth = 2,\r\n showDots = true,\r\n refValues = [],\r\n minValue,\r\n maxValue,\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 precision = 2,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\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 {showColorLegendAtTop && data.length > 0 ? (\r\n <ColorLegend\r\n colorDomain={labels}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={lineColors}\r\n showNAColor={false}\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={lineColors}\r\n colorDomain={labels}\r\n width={svgWidth}\r\n height={svgHeight}\r\n suffix={suffix}\r\n prefix={prefix}\r\n dateFormat={dateFormat}\r\n showValues={showValues}\r\n noOfXTicks={noOfXTicks ?? getNoOfTicks(svgWidth)}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n highlightAreaSettings={highlightAreaSettings}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n showColorLegendAtTop={showColorLegendAtTop}\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 diffAreaColors={diffAreaColors}\r\n idSuffix={generateRandomString(8)}\r\n strokeWidth={strokeWidth}\r\n showDots={showDots}\r\n refValues={refValues}\r\n minValue={minValue}\r\n maxValue={maxValue}\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 precision={precision}\r\n customLayers={customLayers}\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":["Graph","props","$","_c","data","width","height","lineColors","suffix","prefix","dateFormat","showValues","noOfXTicks","rightMargin","leftMargin","topMargin","bottomMargin","tooltip","highlightAreaSettings","onSeriesMouseOver","animate","rtl","showColorLegendAtTop","colorDomain","diffAreaColors","idSuffix","strokeWidth","showDots","refValues","minValue","maxValue","annotations","customHighlightAreaSettings","yAxisTitle","noOfYTicks","minDate","maxDate","curveType","styles","classNames","precision","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","hasAnimatedOnce","setHasAnimatedOnce","useState","t1","t2","duration","timeout","setTimeout","clearTimeout","useEffect","curve","curveLinear","curveStep","curveStepAfter","curveStepBefore","curveMonotoneX","mouseOverData","setMouseOverData","undefined","eventX","setEventX","eventY","setEventY","t3","t4","top","bottom","left","right","margin","MouseoverRectRef","t5","d","date","parse","Date","dataFormatted","orderBy","map","t6","t7","d_0","coordinates","highlightAreaSettingsFormatted","t8","d_1","el","j","customHighlightAreaSettingsFormatted","graphWidth","graphHeight","minYear","maxYear","length","minParam1","Math","min","_temp","Infinity","_temp2","_temp3","minParam2","_temp4","_temp5","_temp6","maxParam1","max","_temp7","_temp8","maxParam2","_temp9","_temp0","checkIfNullOrUndefined","minParam","maxParam","x","scaleTime","domain","range","t9","t10","y","scaleLinear","nice","lineShape1","line","d_12","y1","lineShape2","d_14","y2","mainGraphArea","area","d_16","d_17","y0","d_18","mainGraphArea1","d_20","mainGraphArea2","d_22","yTicks","ticks","xTicks","mousemove","event","selectedData","bisectCenter","_temp1","invert","pointer","clientY","clientX","mouseout","select","current","on","t11","Symbol","for","fill","t12","t13","jsx","HighlightArea","t14","yAxis","gridLines","t15","labels","t16","t17","t18","t19","t20","t21","t22","t23","t24","t25","numberFormattingFunction","t26","t27","t28","t29","dx","dy","t30","xAxis","axis","t31","t32","label","t33","t34","t35","t36","Axis","t37","t38","t39","title","t40","t41","AxisTitle","t42","d_27","format","t43","t44","d_28","t45","t46","t47","t48","t49","cn","t50","t51","t52","t53","filter","_temp12","_temp13","t54","t55","opacity","transition","t56","t57","initial","whileInView","t58","t59","t60","t61","t62","stroke","t63","t64","t65","t66","t67","t68","t69","pathLength","t70","jsxs","motion","delay","t71","mouseOverLine","t72","graphObjectValues","t73","d_31","i","Fragment","cx","cy","textAnchor","el_0","i_0","RefLineY","text","color","value","t74","t75","d_32","i_1","endPoints","getLineEndPoint","xCoordinate","xOffset","yCoordinate","yOffset","connectorRadius","connectorSettings","showConnector","x1","x2","circleRadius","labelSettings","maxWidth","fontWeight","align","Annotation","t76","_temp14","_temp15","t77","pointerEvents","t78","t79","Tooltip","CustomArea","YTicksAndGridLines","_temp10","_temp11","d_26","XTicksAndGridLines","d_34","layer","d_33","position","d_30","d_29","d_25","d_24","d_23","d_10","d_11","d_8","d_9","d_5","d_6","d_7","d_2","d_3","d_4","DifferenceLineChart","graphTitle","sources","graphDescription","footNote","padding","backgroundColor","relativeHeight","graphID","graphDownload","dataDownload","language","minHeight","colorLegendTitle","theme","ariaLabel","Colors","light","categoricalColors","colors","alerts","red","darkGreen","svgWidth","setSvgWidth","svgHeight","setSvgHeight","graphDiv","graphParentDiv","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","observe","disconnect","graphContainer","description","GraphHeader","colorLegend","ColorLegend","EmptyState","getNoOfTicks","generateRandomString","GraphArea","footnote","source","GraphFooter","GraphContainer"],"mappings":"oxCA6FO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,GAAAC,OAAAA,GAAAC,WAAAA,EAAAC,OAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,WAAAA,EAAAC,WAAAA,GAAAC,YAAAA,GAAAC,WAAAA,EAAAC,UAAAA,GAAAC,aAAAA,GAAAC,QAAAA,EAAAC,sBAAAA,GAAAC,kBAAAA,GAAAC,QAAAA,EAAAC,IAAAA,EAAAC,qBAAAA,GAAAC,YAAAA,EAAAC,eAAAA,EAAAC,SAAAA,GAAAC,YAAAA,EAAAC,SAAAA,EAAAC,UAAAA,GAAAC,SAAAA,EAAAC,SAAAA,GAAAC,YAAAA,GAAAC,4BAAAA,G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