@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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +279 -272
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +298 -287
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.js +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +404 -397
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +116 -113
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-BixTEyKW.cjs +2 -0
- package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
- package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +2 -2
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +368 -361
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +327 -320
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +374 -367
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +34 -33
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +366 -359
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +285 -278
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Spinner-CQZcjzwd.cjs +2 -0
- package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
- package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
- package/dist/Spinner-DVBnY6Vg.js.map +1 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/index-R1gTfap5.js +337 -0
- package/dist/index-R1gTfap5.js.map +1 -0
- package/dist/index-WML2dCZ0.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-BLMih7RN.cjs +0 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
- package/dist/GraphEl-CRrAlbcr.js.map +0 -1
- package/dist/Spinner-D7rnnwnA.js.map +0 -1
- package/dist/Spinner-DRMBUsX7.cjs +0 -2
- package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/SlopeChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),L=require("react"),Qt=require("./index-DQA8q5sC.cjs"),Zt=require("./Tooltip-uUdw6wJL.cjs"),Wt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),f=require("./Colors.cjs"),Ft=require("./Axis-DxRV2yMi.cjs"),Xt=require("./AxisTitle-sS5bLLR7.cjs"),_t=require("./DetailsModal-BN0HDFlV.cjs"),te=require("./linear-BwPAspcq.cjs"),ee=require("./use-in-view-QcfiW0w3.cjs"),mt=require("./proxy-BxvUI_9l.cjs"),ie=require("./index-DG2bgAva.cjs"),oe=require("./GraphFooter.cjs"),ne=require("./GraphHeader.cjs"),le=require("./ColorLegendWithMouseOver.cjs"),re=require("./EmptyState-sAEZ_5rU.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-d8A46BK2.cjs");function se(e){const t=l.compilerRuntimeExports.c(148),{data:o,width:H,height:O,showLabels:nt,colors:n,colorDomain:x,radius:a,leftMargin:y,rightMargin:ft,topMargin:pt,bottomMargin:Ot,tooltip:Et,onSeriesMouseOver:lt,axisTitles:d,highlightedDataPoints:C,selectedColor:rt,minValue:st,maxValue:at,onSeriesMouseClick:yt,resetSelectionOnDoubleClick:At,detailsOnClick:k,styles:p,classNames:u,animate:r,dimmedOpacity:h,customLayers:E}=e,Mt=L.useRef(null);let dt;t[0]!==r.amount||t[1]!==r.once?(dt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=dt):dt=t[2];const j=ee.useInView(Mt,dt),[w,Dt]=L.useState(void 0),[G,St]=L.useState(void 0),[$t,Nt]=L.useState(void 0),[ht,It]=L.useState(void 0);let gt;t[3]!==Ot||t[4]!==y||t[5]!==ft||t[6]!==pt?(gt={top:pt,bottom:Ot,left:y,right:ft},t[3]=Ot,t[4]=y,t[5]=ft,t[6]=pt,t[7]=gt):gt=t[7];const c=gt,s=H-c.left-c.right,g=O-c.top-c.bottom;let Rt;t[8]!==o?(Rt=Math.min(...o.map(Ne)),t[8]=o,t[9]=Rt):Rt=t[9];let ct;t[10]!==o?(ct=Math.min(...o.map(Se)),t[10]=o,t[11]=ct):ct=t[11];const P=Math.min(Rt,ct);let vt;t[12]!==o?(vt=Math.max(...o.map(De)),t[12]=o,t[13]=vt):vt=t[13];let ut;t[14]!==o?(ut=Math.max(...o.map(Me)),t[14]=o,t[15]=ut):ut=t[15];const W=Math.max(vt,ut);let Y,U,A,B,F,X,M,z,D,S,N,$,R;if(t[16]!==r.duration||t[17]!==d[0]||t[18]!==d[1]||t[19]!==u?.dataConnectors||t[20]!==u?.yAxis?.axis||t[21]!==u?.yAxis?.labels||t[22]!==u?.yAxis?.title||t[23]!==x||t[24]!==n||t[25]!==E||t[26]!==o||t[27]!==k||t[28]!==h||t[29]!==g||t[30]!==s||t[31]!==O||t[32]!==C||t[33]!==j||t[34]!==c.left||t[35]!==c.top||t[36]!==at||t[37]!==W||t[38]!==st||t[39]!==P||t[40]!==G||t[41]!==w||t[42]!==yt||t[43]!==lt||t[44]!==a||t[45]!==At||t[46]!==rt||t[47]!==nt||t[48]!==p?.dataConnectors||t[49]!==p?.yAxis?.labels||t[50]!==p?.yAxis?.title||t[51]!==H){let q;t[65]!==st||t[66]!==P?(q=Wt.checkIfNullOrUndefined(st)?P>0?0:P:st,t[65]=st,t[66]=P,t[67]=q):q=t[67];let Vt;t[68]!==at||t[69]!==W?(Vt=Wt.checkIfNullOrUndefined(at)?W>0?W:0:at,t[68]=at,t[69]=W,t[70]=Vt):Vt=t[70];const m=te.linear().domain([q,Vt]).range([g,0]).nice();U=mt.motion.svg,B=`${H}px`,F=`${O}px`,X=`0 0 ${H} ${O}`,M="mx-auto",z="ltr",D=Mt,N=`translate(${c.left},${c.top})`;const Gt=u?.yAxis?.axis;let Z;t[71]!==Gt?(Z=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",Gt),t[71]=Gt,t[72]=Z):Z=t[72];let jt;t[73]!==Z?(jt={axis:Z},t[73]=Z,t[74]=jt):jt=t[74];let _;t[75]!==g||t[76]!==a||t[77]!==jt?(_=l.jsxRuntimeExports.jsx(Ft.Axis,{y1:0,y2:g,x1:a,x2:a,classNames:jt}),t[75]=g,t[76]=a,t[77]=jt,t[78]=_):_=t[78];const qt=g+15,wt=p?.yAxis?.title,bt=u?.yAxis?.title;let tt;t[79]!==bt?(tt=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",bt),t[79]=bt,t[80]=tt):tt=t[80];let et;t[81]!==d[0]||t[82]!==a||t[83]!==qt||t[84]!==wt||t[85]!==tt?(et=l.jsxRuntimeExports.jsx(Xt.AxisTitle,{x:a,y:qt,style:wt,className:tt,text:d[0]}),t[81]=d[0],t[82]=a,t[83]=qt,t[84]=wt,t[85]=tt,t[86]=et):et=t[86],t[87]!==_||t[88]!==et?($=l.jsxRuntimeExports.jsxs("g",{children:[_,et]}),t[87]=_,t[88]=et,t[89]=$):$=t[89];const kt=s-a,it=s-a,ot=u?.yAxis?.axis;let b;t[90]!==ot?(b=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",ot),t[90]=ot,t[91]=b):b=t[91];let T;t[92]!==b?(T={axis:b},t[92]=b,t[93]=T):T=t[93];let xt;t[94]!==g||t[95]!==kt||t[96]!==it||t[97]!==T?(xt=l.jsxRuntimeExports.jsx(Ft.Axis,{y1:0,y2:g,x1:kt,x2:it,classNames:T}),t[94]=g,t[95]=kt,t[96]=it,t[97]=T,t[98]=xt):xt=t[98];const Tt=s-a,Yt=g+15,Ut=p?.yAxis?.title,Bt=u?.yAxis?.title;let Lt;t[99]!==Bt?(Lt=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Bt),t[99]=Bt,t[100]=Lt):Lt=t[100];let Ht;t[101]!==d[1]||t[102]!==Tt||t[103]!==Yt||t[104]!==Ut||t[105]!==Lt?(Ht=l.jsxRuntimeExports.jsx(Xt.AxisTitle,{x:Tt,y:Yt,style:Ut,className:Lt,text:d[1]}),t[101]=d[1],t[102]=Tt,t[103]=Yt,t[104]=Ut,t[105]=Lt,t[106]=Ht):Ht=t[106],t[107]!==xt||t[108]!==Ht?(R=l.jsxRuntimeExports.jsxs("g",{children:[xt,Ht]}),t[107]=xt,t[108]=Ht,t[109]=R):R=t[109],t[110]!==E?(A=E.filter(ke).map(Re),t[110]=E,t[111]=A):A=t[111],Y=ie.AnimatePresence,S=o.map((i,Kt)=>l.jsxRuntimeExports.jsxs(mt.motion.g,{variants:{initial:{opacity:rt?i.color&&n[x.indexOf(`${i.color}`)]===rt?1:h:w?w.label===i.label?1:h:C.length!==0?C.indexOf(i.label)!==-1?1:h:1},whileInView:{opacity:rt?i.color&&n[x.indexOf(`${i.color}`)]===rt?1:h:w?w.label===i.label?1:h:C.length!==0?C.indexOf(i.label)!==-1?1:h:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},onMouseEnter:Pt=>{Dt(i),It(Pt.clientY),Nt(Pt.clientX),lt?.(i)},onMouseMove:Pt=>{Dt(i),It(Pt.clientY),Nt(Pt.clientX)},onMouseLeave:()=>{Dt(void 0),Nt(void 0),It(void 0),lt?.(void 0)},onClick:()=>{(yt||k)&&(Qt.isEqual(G,i)&&At?(St(void 0),yt?.(void 0)):(St(i),yt?.(i)))},children:[l.jsxRuntimeExports.jsx(mt.motion.circle,{variants:{initial:{cx:a,cy:m(i.y1),fill:o.filter($e).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Ae).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:a,cy:m(i.y1),fill:o.filter(Ee).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Oe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},r:a,style:{fillOpacity:.6}}),nt?l.jsxRuntimeExports.jsx(mt.motion.text,{variants:{initial:{y:m(i.y1),fill:o.filter(be).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:m(i.y1),fill:o.filter(we).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},style:{textAnchor:"end",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",textAnchor:"end",dx:0-a-3,children:i.label}):C.length!==0&&C.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(mt.motion.text,{variants:{initial:{y:m(i.y1),fill:o.filter(je).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:m(i.y1),fill:o.filter(Ce).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},style:{textAnchor:"end",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",dx:-3,children:i.label}):null,l.jsxRuntimeExports.jsx(mt.motion.circle,{variants:{initial:{cx:s-a,cy:m(i.y2),fill:o.filter(ve).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(ge).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:s-a,cy:m(i.y2),fill:o.filter(he).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(de).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},r:a,style:{fillOpacity:.6}}),nt?l.jsxRuntimeExports.jsx(mt.motion.text,{variants:{initial:{y:m(i.y2),fill:o.filter(ye).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:m(i.y2),fill:o.filter(pe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},style:{textAnchor:"start",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:s-5,dy:"0.33em",dx:a+3,children:i.label}):C.length!==0&&C.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(mt.motion.text,{variants:{initial:{y:m(i.y2),fill:o.filter(fe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:m(i.y2),fill:o.filter(me).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},style:{textAnchor:"start",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:s-5,dy:"0.33em",dx:3,children:i.label}):null,l.jsxRuntimeExports.jsx(mt.motion.line,{variants:{initial:{x1:a,x2:s-a,y1:m(i.y1),y2:m(i.y1),stroke:o.filter(xe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray},whileInView:{x1:a,x2:s-a,y1:m(i.y1),y2:m(i.y2),stroke:o.filter(ue).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,transition:{duration:r.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:r.duration}},className:u?.dataConnectors,style:{fill:"none",strokeWidth:1,...p?.dataConnectors}})]},Kt)),t[16]=r.duration,t[17]=d[0],t[18]=d[1],t[19]=u?.dataConnectors,t[20]=u?.yAxis?.axis,t[21]=u?.yAxis?.labels,t[22]=u?.yAxis?.title,t[23]=x,t[24]=n,t[25]=E,t[26]=o,t[27]=k,t[28]=h,t[29]=g,t[30]=s,t[31]=O,t[32]=C,t[33]=j,t[34]=c.left,t[35]=c.top,t[36]=at,t[37]=W,t[38]=st,t[39]=P,t[40]=G,t[41]=w,t[42]=yt,t[43]=lt,t[44]=a,t[45]=At,t[46]=rt,t[47]=nt,t[48]=p?.dataConnectors,t[49]=p?.yAxis?.labels,t[50]=p?.yAxis?.title,t[51]=H,t[52]=Y,t[53]=U,t[54]=A,t[55]=B,t[56]=F,t[57]=X,t[58]=M,t[59]=z,t[60]=D,t[61]=S,t[62]=N,t[63]=$,t[64]=R}else Y=t[52],U=t[53],A=t[54],B=t[55],F=t[56],X=t[57],M=t[58],z=t[59],D=t[60],S=t[61],N=t[62],$=t[63],R=t[64];let J;t[112]!==Y||t[113]!==S?(J=l.jsxRuntimeExports.jsx(Y,{children:S}),t[112]=Y,t[113]=S,t[114]=J):J=t[114];let v;t[115]!==E?(v=E.filter(ce).map(ae),t[115]=E,t[116]=v):v=t[116];let K;t[117]!==A||t[118]!==J||t[119]!==v||t[120]!==N||t[121]!==$||t[122]!==R?(K=l.jsxRuntimeExports.jsxs("g",{transform:N,children:[$,R,A,J,v]}),t[117]=A,t[118]=J,t[119]=v,t[120]=N,t[121]=$,t[122]=R,t[123]=K):K=t[123];let I;t[124]!==U||t[125]!==B||t[126]!==F||t[127]!==X||t[128]!==M||t[129]!==z||t[130]!==D||t[131]!==K?(I=l.jsxRuntimeExports.jsx(U,{width:B,height:F,viewBox:X,className:M,direction:z,ref:D,children:K}),t[124]=U,t[125]=B,t[126]=F,t[127]=X,t[128]=M,t[129]=z,t[130]=D,t[131]=K,t[132]=I):I=t[132];let Q;t[133]!==u?.tooltip||t[134]!==$t||t[135]!==ht||t[136]!==w||t[137]!==p?.tooltip||t[138]!==Et?(Q=w&&Et&&$t&&ht?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:w,body:Et,xPos:$t,yPos:ht,backgroundStyle:p?.tooltip,className:u?.tooltip}):null,t[133]=u?.tooltip,t[134]=$t,t[135]=ht,t[136]=w,t[137]=p?.tooltip,t[138]=Et,t[139]=Q):Q=t[139];let V;t[140]!==u?.modal||t[141]!==k||t[142]!==G?(V=k&&G!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:k,data:G,setData:St,className:u?.modal}):null,t[140]=u?.modal,t[141]=k,t[142]=G,t[143]=V):V=t[143];let Ct;return t[144]!==I||t[145]!==Q||t[146]!==V?(Ct=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[I,Q,V]}),t[144]=I,t[145]=Q,t[146]=V,t[147]=Ct):Ct=t[147],Ct}function ae(e){return e.layer}function ce(e){return e.position==="after"}function ue(e){return e.color}function xe(e){return e.color}function me(e){return e.color}function fe(e){return e.color}function pe(e){return e.color}function ye(e){return e.color}function de(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ve(e){return e.color}function Ce(e){return e.color}function je(e){return e.color}function we(e){return e.color}function be(e){return e.color}function Oe(e){return e.color}function Ee(e){return e.color}function Ae(e){return e.color}function $e(e){return e.color}function Re(e){return e.layer}function ke(e){return e.position==="before"}function Me(e){return e.y2}function De(e){return e.y1}function Se(e){return e.y2}function Ne(e){return e.y1}function Ie(e){const t=l.compilerRuntimeExports.c(76),{data:o,graphTitle:H,colors:O,sources:nt,graphDescription:n,showLabels:x,height:a,width:y,footNote:ft,colorDomain:pt,colorLegendTitle:Ot,radius:Et,axisTitles:lt,padding:d,backgroundColor:C,leftMargin:rt,rightMargin:st,topMargin:at,bottomMargin:yt,tooltip:At,relativeHeight:k,onSeriesMouseOver:p,showColorScale:u,highlightedDataPoints:r,graphID:h,minValue:E,maxValue:Mt,onSeriesMouseClick:dt,graphDownload:j,dataDownload:w,fillContainer:Dt,language:G,showNAColor:St,minHeight:$t,theme:Nt,ariaLabel:ht,resetSelectionOnDoubleClick:It,detailsOnClick:gt,styles:c,classNames:s,animate:g,dimmedOpacity:Rt,customLayers:ct}=e,P=x===void 0?!1:x,vt=Et===void 0?5:Et;let ut;t[0]!==lt?(ut=lt===void 0?["",""]:lt,t[0]=lt,t[1]=ut):ut=t[1];const W=ut,Y=C===void 0?!1:C,U=rt===void 0?50:rt,A=st===void 0?50:st,B=at===void 0?20:at,F=yt===void 0?20:yt,X=u===void 0?!0:u;let M;t[2]!==r?(M=r===void 0?[]:r,t[2]=r,t[3]=M):M=t[3];const z=M,D=j===void 0?!1:j,S=w===void 0?!1:w,N=Dt===void 0?!0:Dt,$=G===void 0?"en":G,R=St===void 0?!0:St,J=$t===void 0?0:$t,v=Nt===void 0?"light":Nt,K=It===void 0?!0:It,I=g===void 0?!1:g,Q=Rt===void 0?.3:Rt;let V;t[4]!==ct?(V=ct===void 0?[]:ct,t[4]=ct,t[5]=V):V=t[5];const Ct=V,[q,Vt]=L.useState(0),[m,Gt]=L.useState(0),[Z,jt]=L.useState(void 0),_=L.useRef(null),qt=L.useRef(null);let wt,bt;t[6]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>{const xt=new ResizeObserver(Tt=>{Vt(Tt[0].target.clientWidth||620),Gt(Tt[0].target.clientHeight||480)});return _.current&&xt.observe(_.current),()=>xt.disconnect()},bt=[],t[6]=wt,t[7]=bt):(wt=t[6],bt=t[7]),L.useEffect(wt,bt);const tt=s?.graphContainer,et=c?.graphContainer,kt=N?void 0:y;let it;t[8]!==s?.description||t[9]!==s?.title||t[10]!==o||t[11]!==S||t[12]!==n||t[13]!==D||t[14]!==H||t[15]!==c?.description||t[16]!==c?.title||t[17]!==y?(it=H||n||D||S?l.jsxRuntimeExports.jsx(ne.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:s?.title,description:s?.description},graphTitle:H,graphDescription:n,width:y,graphDownload:D?qt:void 0,dataDownload:S?o.map(Ye).filter(We).length>0?o.map(Pe).filter(Ge):o.filter(He):null}):null,t[8]=s?.description,t[9]=s?.title,t[10]=o,t[11]=S,t[12]=n,t[13]=D,t[14]=H,t[15]=c?.description,t[16]=c?.title,t[17]=y,t[18]=it):it=t[18];let ot;t[19]!==I||t[20]!==W||t[21]!==F||t[22]!==s||t[23]!==pt||t[24]!==Ot||t[25]!==O||t[26]!==Ct||t[27]!==o||t[28]!==gt||t[29]!==Q||t[30]!==N||t[31]!==z||t[32]!==U||t[33]!==Mt||t[34]!==E||t[35]!==dt||t[36]!==p||t[37]!==vt||t[38]!==K||t[39]!==A||t[40]!==Z||t[41]!==X||t[42]!==P||t[43]!==R||t[44]!==c||t[45]!==m||t[46]!==q||t[47]!==v||t[48]!==At||t[49]!==B||t[50]!==y?(ot=o.length===0?l.jsxRuntimeExports.jsx(re.EmptyState,{}):l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[X&&o.filter(Le).length!==0?l.jsxRuntimeExports.jsx(le.ColorLegendWithMouseOver,{width:y,colorLegendTitle:Ot,colors:O||f.Colors[v].categoricalColors.colors,colorDomain:pt||zt.uniqBy(o,"color",!0),setSelectedColor:jt,showNAColor:R,className:s?.colorLegend}):null,l.jsxRuntimeExports.jsx(Jt.GraphArea,{ref:_,children:q&&m?l.jsxRuntimeExports.jsx(se,{data:o.filter(Te),width:N||!y||q<y?q:y,height:m,colorDomain:o.filter(qe).length===0?[]:pt||zt.uniqBy(o,"color",!0),colors:o.filter(Ve).length===0?O?[O]:[f.Colors.primaryColors["blue-600"]]:O||f.Colors[v].categoricalColors.colors,selectedColor:Z,axisTitles:W,showLabels:P,radius:vt,leftMargin:U,rightMargin:A,topMargin:B,bottomMargin:F,tooltip:At,onSeriesMouseOver:p,highlightedDataPoints:z,minValue:E,maxValue:Mt,onSeriesMouseClick:dt,resetSelectionOnDoubleClick:K,detailsOnClick:gt,styles:c,classNames:s,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},dimmedOpacity:Q,customLayers:Ct}):null})]}),t[19]=I,t[20]=W,t[21]=F,t[22]=s,t[23]=pt,t[24]=Ot,t[25]=O,t[26]=Ct,t[27]=o,t[28]=gt,t[29]=Q,t[30]=N,t[31]=z,t[32]=U,t[33]=Mt,t[34]=E,t[35]=dt,t[36]=p,t[37]=vt,t[38]=K,t[39]=A,t[40]=Z,t[41]=X,t[42]=P,t[43]=R,t[44]=c,t[45]=m,t[46]=q,t[47]=v,t[48]=At,t[49]=B,t[50]=y,t[51]=ot):ot=t[51];let b;t[52]!==s?.footnote||t[53]!==s?.source||t[54]!==ft||t[55]!==nt||t[56]!==c?.footnote||t[57]!==c?.source||t[58]!==y?(b=nt||ft?l.jsxRuntimeExports.jsx(oe.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:s?.footnote,source:s?.source},sources:nt,footNote:ft,width:y}):null,t[52]=s?.footnote,t[53]=s?.source,t[54]=ft,t[55]=nt,t[56]=c?.footnote,t[57]=c?.source,t[58]=y,t[59]=b):b=t[59];let T;return t[60]!==ht||t[61]!==Y||t[62]!==h||t[63]!==a||t[64]!==$||t[65]!==J||t[66]!==d||t[67]!==k||t[68]!==tt||t[69]!==et||t[70]!==kt||t[71]!==it||t[72]!==ot||t[73]!==b||t[74]!==v?(T=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:tt,style:et,id:h,ref:qt,"aria-label":ht,backgroundColor:Y,theme:v,language:$,minHeight:J,width:kt,height:a,relativeHeight:k,padding:d,children:[it,ot,b]}),t[60]=ht,t[61]=Y,t[62]=h,t[63]=a,t[64]=$,t[65]=J,t[66]=d,t[67]=k,t[68]=tt,t[69]=et,t[70]=kt,t[71]=it,t[72]=ot,t[73]=b,t[74]=v,t[75]=T):T=t[75],T}function Ve(e){return e.color}function qe(e){return e.color}function Te(e){return!Wt.checkIfNullOrUndefined(e.y1)&&!Wt.checkIfNullOrUndefined(e.y2)}function Le(e){return e.color}function He(e){return e!==void 0}function Ge(e){return e!==void 0}function Pe(e){return e.data}function We(e){return e!==void 0}function Ye(e){return e.data}exports.SlopeChart=Ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),H=require("react"),Qt=require("./index-DQA8q5sC.cjs"),Zt=require("./Tooltip-uUdw6wJL.cjs"),Bt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),m=require("./Colors.cjs"),Xt=require("./Axis-DxRV2yMi.cjs"),Ft=require("./AxisTitle-sS5bLLR7.cjs"),_t=require("./DetailsModal-BN0HDFlV.cjs"),te=require("./linear-BwPAspcq.cjs"),ee=require("./use-in-view-QcfiW0w3.cjs"),pt=require("./proxy-BxvUI_9l.cjs"),ie=require("./index-DG2bgAva.cjs"),oe=require("./GraphFooter.cjs"),ne=require("./GraphHeader.cjs"),le=require("./ColorLegendWithMouseOver.cjs"),re=require("./EmptyState-gLDRXBHm.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-d8A46BK2.cjs");function se(e){const t=l.compilerRuntimeExports.c(148),{data:o,width:G,height:h,showLabels:st,colors:n,colorDomain:x,radius:a,leftMargin:y,rightMargin:yt,topMargin:P,bottomMargin:Et,tooltip:$t,onSeriesMouseOver:at,axisTitles:g,highlightedDataPoints:j,selectedColor:ct,minValue:ut,maxValue:xt,onSeriesMouseClick:dt,resetSelectionOnDoubleClick:kt,detailsOnClick:D,styles:p,classNames:u,animate:s,dimmedOpacity:v,customLayers:$}=e,St=H.useRef(null);let ht;t[0]!==s.amount||t[1]!==s.once?(ht={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=ht):ht=t[2];const w=ee.useInView(St,ht),[b,Nt]=H.useState(void 0),[W,It]=H.useState(void 0),[Rt,Vt]=H.useState(void 0),[gt,qt]=H.useState(void 0);let vt;t[3]!==Et||t[4]!==y||t[5]!==yt||t[6]!==P?(vt={top:P,bottom:Et,left:y,right:yt},t[3]=Et,t[4]=y,t[5]=yt,t[6]=P,t[7]=vt):vt=t[7];const c=vt,r=G-c.left-c.right,C=h-c.top-c.bottom;let Mt;t[8]!==o?(Mt=Math.min(...o.map(Ne)),t[8]=o,t[9]=Mt):Mt=t[9];let ft;t[10]!==o?(ft=Math.min(...o.map(Se)),t[10]=o,t[11]=ft):ft=t[11];const Y=Math.min(Mt,ft);let Ct;t[12]!==o?(Ct=Math.max(...o.map(De)),t[12]=o,t[13]=Ct):Ct=t[13];let mt;t[14]!==o?(mt=Math.max(...o.map(Me)),t[14]=o,t[15]=mt):mt=t[15];const U=Math.max(Ct,mt);let B,X,k,F,z,J,S,K,N,I,V,R,M;if(t[16]!==s.duration||t[17]!==g[0]||t[18]!==g[1]||t[19]!==u?.dataConnectors||t[20]!==u?.yAxis?.axis||t[21]!==u?.yAxis?.labels||t[22]!==u?.yAxis?.title||t[23]!==x||t[24]!==n||t[25]!==$||t[26]!==o||t[27]!==D||t[28]!==v||t[29]!==C||t[30]!==r||t[31]!==h||t[32]!==j||t[33]!==w||t[34]!==c.left||t[35]!==c.top||t[36]!==xt||t[37]!==U||t[38]!==ut||t[39]!==Y||t[40]!==W||t[41]!==b||t[42]!==dt||t[43]!==at||t[44]!==a||t[45]!==kt||t[46]!==ct||t[47]!==st||t[48]!==p?.dataConnectors||t[49]!==p?.yAxis?.labels||t[50]!==p?.yAxis?.title||t[51]!==G){let T;t[65]!==ut||t[66]!==Y?(T=Bt.checkIfNullOrUndefined(ut)?Y>0?0:Y:ut,t[65]=ut,t[66]=Y,t[67]=T):T=t[67];let Lt;t[68]!==xt||t[69]!==U?(Lt=Bt.checkIfNullOrUndefined(xt)?U>0?U:0:xt,t[68]=xt,t[69]=U,t[70]=Lt):Lt=t[70];const f=te.linear().domain([T,Lt]).range([C,0]).nice();X=pt.motion.svg,F=`${G}px`,z=`${h}px`,J=`0 0 ${G} ${h}`,S="mx-auto",K="ltr",N=St,V=`translate(${c.left},${c.top})`;const Yt=u?.yAxis?.axis;let tt;t[71]!==Yt?(tt=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",Yt),t[71]=Yt,t[72]=tt):tt=t[72];let wt;t[73]!==tt?(wt={axis:tt},t[73]=tt,t[74]=wt):wt=t[74];let et;t[75]!==C||t[76]!==a||t[77]!==wt?(et=l.jsxRuntimeExports.jsx(Xt.Axis,{y1:0,y2:C,x1:a,x2:a,classNames:wt}),t[75]=C,t[76]=a,t[77]=wt,t[78]=et):et=t[78];const Tt=C+15,bt=p?.yAxis?.title,Ot=u?.yAxis?.title;let it;t[79]!==Ot?(it=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Ot),t[79]=Ot,t[80]=it):it=t[80];let ot;t[81]!==g[0]||t[82]!==a||t[83]!==Tt||t[84]!==bt||t[85]!==it?(ot=l.jsxRuntimeExports.jsx(Ft.AxisTitle,{x:a,y:Tt,style:bt,className:it,text:g[0]}),t[81]=g[0],t[82]=a,t[83]=Tt,t[84]=bt,t[85]=it,t[86]=ot):ot=t[86],t[87]!==et||t[88]!==ot?(R=l.jsxRuntimeExports.jsxs("g",{children:[et,ot]}),t[87]=et,t[88]=ot,t[89]=R):R=t[89];const Dt=r-a,nt=r-a,lt=u?.yAxis?.axis;let O;t[90]!==lt?(O=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",lt),t[90]=lt,t[91]=O):O=t[91];let A;t[92]!==O?(A={axis:O},t[92]=O,t[93]=A):A=t[93];let E;t[94]!==C||t[95]!==Dt||t[96]!==nt||t[97]!==A?(E=l.jsxRuntimeExports.jsx(Xt.Axis,{y1:0,y2:C,x1:Dt,x2:nt,classNames:A}),t[94]=C,t[95]=Dt,t[96]=nt,t[97]=A,t[98]=E):E=t[98];const rt=r-a,At=C+15,Ht=p?.yAxis?.title,Gt=u?.yAxis?.title;let Pt;t[99]!==Gt?(Pt=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Gt),t[99]=Gt,t[100]=Pt):Pt=t[100];let Wt;t[101]!==g[1]||t[102]!==rt||t[103]!==At||t[104]!==Ht||t[105]!==Pt?(Wt=l.jsxRuntimeExports.jsx(Ft.AxisTitle,{x:rt,y:At,style:Ht,className:Pt,text:g[1]}),t[101]=g[1],t[102]=rt,t[103]=At,t[104]=Ht,t[105]=Pt,t[106]=Wt):Wt=t[106],t[107]!==E||t[108]!==Wt?(M=l.jsxRuntimeExports.jsxs("g",{children:[E,Wt]}),t[107]=E,t[108]=Wt,t[109]=M):M=t[109],t[110]!==$?(k=$.filter(Re).map(ke),t[110]=$,t[111]=k):k=t[111],B=ie.AnimatePresence,I=o.map((i,Kt)=>l.jsxRuntimeExports.jsxs(pt.motion.g,{variants:{initial:{opacity:ct?i.color&&n[x.indexOf(`${i.color}`)]===ct?1:v:b?b.label===i.label?1:v:j.length!==0?j.indexOf(i.label)!==-1?1:v:1},whileInView:{opacity:ct?i.color&&n[x.indexOf(`${i.color}`)]===ct?1:v:b?b.label===i.label?1:v:j.length!==0?j.indexOf(i.label)!==-1?1:v:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},onMouseEnter:Ut=>{Nt(i),qt(Ut.clientY),Vt(Ut.clientX),at?.(i)},onMouseMove:Ut=>{Nt(i),qt(Ut.clientY),Vt(Ut.clientX)},onMouseLeave:()=>{Nt(void 0),Vt(void 0),qt(void 0),at?.(void 0)},onClick:()=>{(dt||D)&&(Qt.isEqual(W,i)&&kt?(It(void 0),dt?.(void 0)):(It(i),dt?.(i)))},children:[l.jsxRuntimeExports.jsx(pt.motion.circle,{variants:{initial:{cx:a,cy:f(i.y1),fill:o.filter($e).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,stroke:o.filter(Ee).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{cx:a,cy:f(i.y1),fill:o.filter(Ae).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,stroke:o.filter(Oe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},r:a,style:{fillOpacity:.6}}),st?l.jsxRuntimeExports.jsx(pt.motion.text,{variants:{initial:{y:f(i.y1),fill:o.filter(be).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{y:f(i.y1),fill:o.filter(we).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},style:{textAnchor:"end",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",textAnchor:"end",dx:0-a-3,children:i.label}):j.length!==0&&j.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(pt.motion.text,{variants:{initial:{y:f(i.y1),fill:o.filter(je).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{y:f(i.y1),fill:o.filter(Ce).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},style:{textAnchor:"end",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",dx:-3,children:i.label}):null,l.jsxRuntimeExports.jsx(pt.motion.circle,{variants:{initial:{cx:r-a,cy:f(i.y2),fill:o.filter(ve).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,stroke:o.filter(ge).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{cx:r-a,cy:f(i.y2),fill:o.filter(he).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,stroke:o.filter(de).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},r:a,style:{fillOpacity:.6}}),st?l.jsxRuntimeExports.jsx(pt.motion.text,{variants:{initial:{y:f(i.y2),fill:o.filter(ye).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{y:f(i.y2),fill:o.filter(pe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},style:{textAnchor:"start",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:r-5,dy:"0.33em",dx:a+3,children:i.label}):j.length!==0&&j.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(pt.motion.text,{variants:{initial:{y:f(i.y2),fill:o.filter(me).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:0},whileInView:{y:f(i.y2),fill:o.filter(fe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},style:{textAnchor:"start",...p?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:r-5,dy:"0.33em",dx:3,children:i.label}):null,l.jsxRuntimeExports.jsx(pt.motion.line,{variants:{initial:{x1:a,x2:r-a,y1:f(i.y1),y2:f(i.y1),stroke:o.filter(xe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray},whileInView:{x1:a,x2:r-a,y1:f(i.y1),y2:f(i.y2),stroke:o.filter(ue).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:m.Colors.gray,transition:{duration:s.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:s.duration}},className:u?.dataConnectors,style:{fill:"none",strokeWidth:1,...p?.dataConnectors}})]},Kt)),t[16]=s.duration,t[17]=g[0],t[18]=g[1],t[19]=u?.dataConnectors,t[20]=u?.yAxis?.axis,t[21]=u?.yAxis?.labels,t[22]=u?.yAxis?.title,t[23]=x,t[24]=n,t[25]=$,t[26]=o,t[27]=D,t[28]=v,t[29]=C,t[30]=r,t[31]=h,t[32]=j,t[33]=w,t[34]=c.left,t[35]=c.top,t[36]=xt,t[37]=U,t[38]=ut,t[39]=Y,t[40]=W,t[41]=b,t[42]=dt,t[43]=at,t[44]=a,t[45]=kt,t[46]=ct,t[47]=st,t[48]=p?.dataConnectors,t[49]=p?.yAxis?.labels,t[50]=p?.yAxis?.title,t[51]=G,t[52]=B,t[53]=X,t[54]=k,t[55]=F,t[56]=z,t[57]=J,t[58]=S,t[59]=K,t[60]=N,t[61]=I,t[62]=V,t[63]=R,t[64]=M}else B=t[52],X=t[53],k=t[54],F=t[55],z=t[56],J=t[57],S=t[58],K=t[59],N=t[60],I=t[61],V=t[62],R=t[63],M=t[64];let Q;t[112]!==B||t[113]!==I?(Q=l.jsxRuntimeExports.jsx(B,{children:I}),t[112]=B,t[113]=I,t[114]=Q):Q=t[114];let d;t[115]!==$?(d=$.filter(ce).map(ae),t[115]=$,t[116]=d):d=t[116];let Z;t[117]!==k||t[118]!==Q||t[119]!==d||t[120]!==V||t[121]!==R||t[122]!==M?(Z=l.jsxRuntimeExports.jsxs("g",{transform:V,children:[R,M,k,Q,d]}),t[117]=k,t[118]=Q,t[119]=d,t[120]=V,t[121]=R,t[122]=M,t[123]=Z):Z=t[123];let q;t[124]!==X||t[125]!==F||t[126]!==z||t[127]!==J||t[128]!==S||t[129]!==K||t[130]!==N||t[131]!==Z?(q=l.jsxRuntimeExports.jsx(X,{width:F,height:z,viewBox:J,className:S,direction:K,ref:N,children:Z}),t[124]=X,t[125]=F,t[126]=z,t[127]=J,t[128]=S,t[129]=K,t[130]=N,t[131]=Z,t[132]=q):q=t[132];let _;t[133]!==u?.tooltip||t[134]!==Rt||t[135]!==gt||t[136]!==b||t[137]!==p?.tooltip||t[138]!==$t?(_=b&&$t&&Rt&>?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:b,body:$t,xPos:Rt,yPos:gt,backgroundStyle:p?.tooltip,className:u?.tooltip}):null,t[133]=u?.tooltip,t[134]=Rt,t[135]=gt,t[136]=b,t[137]=p?.tooltip,t[138]=$t,t[139]=_):_=t[139];let L;t[140]!==u?.modal||t[141]!==D||t[142]!==W?(L=D&&W!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:D,data:W,setData:It,className:u?.modal}):null,t[140]=u?.modal,t[141]=D,t[142]=W,t[143]=L):L=t[143];let jt;return t[144]!==q||t[145]!==_||t[146]!==L?(jt=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[q,_,L]}),t[144]=q,t[145]=_,t[146]=L,t[147]=jt):jt=t[147],jt}function ae(e){return e.layer}function ce(e){return e.position==="after"}function ue(e){return e.color}function xe(e){return e.color}function fe(e){return e.color}function me(e){return e.color}function pe(e){return e.color}function ye(e){return e.color}function de(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ve(e){return e.color}function Ce(e){return e.color}function je(e){return e.color}function we(e){return e.color}function be(e){return e.color}function Oe(e){return e.color}function Ae(e){return e.color}function Ee(e){return e.color}function $e(e){return e.color}function ke(e){return e.layer}function Re(e){return e.position==="before"}function Me(e){return e.y2}function De(e){return e.y1}function Se(e){return e.y2}function Ne(e){return e.y1}function Ie(e){const t=l.compilerRuntimeExports.c(89),{data:o,graphTitle:G,colors:h,sources:st,graphDescription:n,showLabels:x,height:a,width:y,footNote:yt,colorDomain:P,colorLegendTitle:Et,radius:$t,axisTitles:at,padding:g,backgroundColor:j,leftMargin:ct,rightMargin:ut,topMargin:xt,bottomMargin:dt,tooltip:kt,relativeHeight:D,onSeriesMouseOver:p,showColorScale:u,highlightedDataPoints:s,graphID:v,minValue:$,maxValue:St,onSeriesMouseClick:ht,graphDownload:w,dataDownload:b,fillContainer:Nt,language:W,showNAColor:It,minHeight:Rt,theme:Vt,ariaLabel:gt,resetSelectionOnDoubleClick:qt,detailsOnClick:vt,styles:c,classNames:r,animate:C,dimmedOpacity:Mt,customLayers:ft}=e,Y=x===void 0?!1:x,Ct=$t===void 0?5:$t;let mt;t[0]!==at?(mt=at===void 0?["",""]:at,t[0]=at,t[1]=mt):mt=t[1];const U=mt,B=j===void 0?!1:j,X=ct===void 0?50:ct,k=ut===void 0?50:ut,F=xt===void 0?20:xt,z=dt===void 0?20:dt,J=u===void 0?!0:u;let S;t[2]!==s?(S=s===void 0?[]:s,t[2]=s,t[3]=S):S=t[3];const K=S,N=w===void 0?!1:w,I=b===void 0?!1:b,V=Nt===void 0?!0:Nt,R=W===void 0?"en":W,M=It===void 0?!0:It,Q=Rt===void 0?0:Rt,d=Vt===void 0?"light":Vt,Z=qt===void 0?!0:qt,q=C===void 0?!1:C,_=Mt===void 0?.3:Mt;let L;t[4]!==ft?(L=ft===void 0?[]:ft,t[4]=ft,t[5]=L):L=t[5];const jt=L,[T,Lt]=H.useState(0),[f,Yt]=H.useState(0),[tt,wt]=H.useState(void 0),et=H.useRef(null),Tt=H.useRef(null);let bt,Ot;t[6]===Symbol.for("react.memo_cache_sentinel")?(bt=()=>{const Ht=new ResizeObserver(Gt=>{Lt(Gt[0].target.clientWidth||620),Yt(Gt[0].target.clientHeight||480)});return et.current&&Ht.observe(et.current),()=>Ht.disconnect()},Ot=[],t[6]=bt,t[7]=Ot):(bt=t[6],Ot=t[7]),H.useEffect(bt,Ot);const it=r?.graphContainer,ot=c?.graphContainer,Dt=V?void 0:y;let nt;t[8]!==r?.description||t[9]!==r?.title||t[10]!==o||t[11]!==I||t[12]!==n||t[13]!==N||t[14]!==G||t[15]!==c?.description||t[16]!==c?.title||t[17]!==y?(nt=G||n||N||I?l.jsxRuntimeExports.jsx(ne.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:r?.title,description:r?.description},graphTitle:G,graphDescription:n,width:y,graphDownload:N?Tt:void 0,dataDownload:I?o.map(Ye).filter(We).length>0?o.map(Pe).filter(Ge):o.filter(He):null}):null,t[8]=r?.description,t[9]=r?.title,t[10]=o,t[11]=I,t[12]=n,t[13]=N,t[14]=G,t[15]=c?.description,t[16]=c?.title,t[17]=y,t[18]=nt):nt=t[18];let lt;t[19]!==r?.colorLegend||t[20]!==P||t[21]!==Et||t[22]!==h||t[23]!==o||t[24]!==J||t[25]!==M||t[26]!==d||t[27]!==y?(lt=J&&o.filter(Te).length!==0&&o.length>0?l.jsxRuntimeExports.jsx(le.ColorLegendWithMouseOver,{width:y,colorLegendTitle:Et,colors:h||m.Colors[d].categoricalColors.colors,colorDomain:P||zt.uniqBy(o,"color",!0),setSelectedColor:wt,showNAColor:M,className:r?.colorLegend}):null,t[19]=r?.colorLegend,t[20]=P,t[21]=Et,t[22]=h,t[23]=o,t[24]=J,t[25]=M,t[26]=d,t[27]=y,t[28]=lt):lt=t[28];let O;t[29]!==o.length?(O=o.length===0&&l.jsxRuntimeExports.jsx(re.EmptyState,{}),t[29]=o.length,t[30]=O):O=t[30];let A;t[31]!==q||t[32]!==U||t[33]!==z||t[34]!==r||t[35]!==P||t[36]!==h||t[37]!==jt||t[38]!==o||t[39]!==vt||t[40]!==_||t[41]!==V||t[42]!==K||t[43]!==X||t[44]!==St||t[45]!==$||t[46]!==ht||t[47]!==p||t[48]!==Ct||t[49]!==Z||t[50]!==k||t[51]!==tt||t[52]!==Y||t[53]!==c||t[54]!==f||t[55]!==T||t[56]!==d||t[57]!==kt||t[58]!==F||t[59]!==y?(A=T&&f&&o.length>0?l.jsxRuntimeExports.jsx(se,{data:o.filter(Le),width:V||!y||T<y?T:y,height:f,colorDomain:o.filter(qe).length===0?[]:P||zt.uniqBy(o,"color",!0),colors:o.filter(Ve).length===0?h?[h]:[m.Colors.primaryColors["blue-600"]]:h||m.Colors[d].categoricalColors.colors,selectedColor:tt,axisTitles:U,showLabels:Y,radius:Ct,leftMargin:X,rightMargin:k,topMargin:F,bottomMargin:z,tooltip:kt,onSeriesMouseOver:p,highlightedDataPoints:K,minValue:$,maxValue:St,onSeriesMouseClick:ht,resetSelectionOnDoubleClick:Z,detailsOnClick:vt,styles:c,classNames:r,animate:q===!0?{duration:.5,once:!0,amount:.5}:q||{duration:0,once:!0,amount:0},dimmedOpacity:_,customLayers:jt}):null,t[31]=q,t[32]=U,t[33]=z,t[34]=r,t[35]=P,t[36]=h,t[37]=jt,t[38]=o,t[39]=vt,t[40]=_,t[41]=V,t[42]=K,t[43]=X,t[44]=St,t[45]=$,t[46]=ht,t[47]=p,t[48]=Ct,t[49]=Z,t[50]=k,t[51]=tt,t[52]=Y,t[53]=c,t[54]=f,t[55]=T,t[56]=d,t[57]=kt,t[58]=F,t[59]=y,t[60]=A):A=t[60];let E;t[61]!==O||t[62]!==A?(E=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:et,children:[O,A]}),t[61]=O,t[62]=A,t[63]=E):E=t[63];let rt;t[64]!==r?.footnote||t[65]!==r?.source||t[66]!==yt||t[67]!==st||t[68]!==c?.footnote||t[69]!==c?.source||t[70]!==y?(rt=st||yt?l.jsxRuntimeExports.jsx(oe.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:r?.footnote,source:r?.source},sources:st,footNote:yt,width:y}):null,t[64]=r?.footnote,t[65]=r?.source,t[66]=yt,t[67]=st,t[68]=c?.footnote,t[69]=c?.source,t[70]=y,t[71]=rt):rt=t[71];let At;return t[72]!==gt||t[73]!==B||t[74]!==v||t[75]!==a||t[76]!==R||t[77]!==Q||t[78]!==g||t[79]!==D||t[80]!==it||t[81]!==ot||t[82]!==Dt||t[83]!==nt||t[84]!==lt||t[85]!==E||t[86]!==rt||t[87]!==d?(At=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:it,style:ot,id:v,ref:Tt,"aria-label":gt,backgroundColor:B,theme:d,language:R,minHeight:Q,width:Dt,height:a,relativeHeight:D,padding:g,children:[nt,lt,E,rt]}),t[72]=gt,t[73]=B,t[74]=v,t[75]=a,t[76]=R,t[77]=Q,t[78]=g,t[79]=D,t[80]=it,t[81]=ot,t[82]=Dt,t[83]=nt,t[84]=lt,t[85]=E,t[86]=rt,t[87]=d,t[88]=At):At=t[88],At}function Ve(e){return e.color}function qe(e){return e.color}function Le(e){return!Bt.checkIfNullOrUndefined(e.y1)&&!Bt.checkIfNullOrUndefined(e.y2)}function Te(e){return e.color}function He(e){return e!==void 0}function Ge(e){return e!==void 0}function Pe(e){return e.data}function We(e){return e!==void 0}function Ye(e){return e.data}exports.SlopeChart=Ie;
|
|
2
2
|
//# sourceMappingURL=SlopeChart.cjs.map
|
package/dist/SlopeChart.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlopeChart.cjs","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\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 // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = 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: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\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 className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\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 /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\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 /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: 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 /** Details displayed on the modal when user clicks of a data point. 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 detailsOnClick?: 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 /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_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 SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\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 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={fillContainer ? undefined : 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 {showColorScale && data.filter(el => el.color).length !== 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {svgWidth && svgHeight ? (\r\n <Graph\r\n data={data.filter(\r\n d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2),\r\n )}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\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 dimmedOpacity={dimmedOpacity}\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","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","length","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","EmptyState","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","primaryColors","footnote","source","GraphFooter","GraphContainer"],"mappings":"qxBAqDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,WAAAA,GAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,GAAAC,UAAAA,GAAAC,aAAAA,GAAAC,QAAAA,GAAAC,kBAAAA,GAAAC,WAAAA,EAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,GAAAC,SAAAA,GAAAC,mBAAAA,GAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,cAAAA,EAAAC,aAAAA,CAAAA,EA2BI5B,EACJ6B,GAAeC,EAAAA,OAAO,IAAI,EAAE,IAAAC,GAAA9B,EAAA,CAAA,IAAAyB,EAAAM,QAAA/B,EAAA,CAAA,IAAAyB,EAAAO,MACOF,GAAA,CAAAE,KAC3BP,EAAOO,KAAKD,OACVN,EAAOM,MAAAA,EAChB/B,EAAA,CAAA,EAAAyB,EAAAM,OAAA/B,EAAA,CAAA,EAAAyB,EAAAO,KAAAhC,KAAA8B,IAAAA,GAAA9B,EAAA,CAAA,EAHD,MAAAiC,EAAiBC,GAAAA,UAAUN,GAAQE,EAGlC,EAED,CAAAK,EAAAC,EAAA,EAA0CC,EAAAA,SAAcC,MAAS,EAEjE,CAAAC,EAAAC,EAAA,EAA4CH,EAAAA,SAAcC,MAAS,EACnE,CAAAG,GAAAC,EAAA,EAA4BL,EAAAA,SAA6BC,MAAS,E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N,MAAAoN,EAAApN,MAAAsN,EAAAtN,MAAA0G,GAAA1G,MAAA2G,GAAA3G,MAAA6G,GAAA7G,MAAA8G,GAAA9G,MAAA+G,GAAA/G,MAAAgH,EAAAhH,MAAA+N,EAAA/N,MAAAiH,GAAAA,EAAAjH,EAAA,EAAA,EAnHjBiH,CAmHiB,CApLd,SAAAsC,GAAAgD,EAAA,CAAA,OAoI6Bf,EAAErD,KAAM,CApIrC,SAAAmB,GAAAkD,EAAA,CAAA,OA+H6BhB,EAAErD,KAAM,CA/HrC,SAAAe,GAAAuD,EAAA,CAAA,MA0HgB,CAAClH,GAAAA,uBAAuB2C,EAACc,EAAG,GAA5B,CAAkCzD,GAAAA,uBAAuB2C,EAAC6B,EAAG,CAAC,CA1H9E,SAAApC,GAAA6D,EAAA,CAAA,OA2GwCA,EAAErD,KAAM,CA3GhD,SAAAT,GAAAkF,EAAA,CAAA,OAkG4B1E,IAAM5F,MAAS,CAlG3C,SAAA2B,GAAA4I,EAAA,CAAA,OAiG6C3E,IAAM5F,MAAS,CAjG5D,SAAAyB,GAAAmE,EAAA,CAAA,OAiGyBA,EAAChI,IAAK,CAjG/B,SAAAyD,GAAA+I,EAAA,CAAA,OAgG2CxE,IAAM5F,MAAS,CAhG1D,SAAAmB,GAAAkJ,EAAA,CAAA,OAgGuBzE,EAAChI,IAAK"}
|
|
1
|
+
{"version":3,"file":"SlopeChart.cjs","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\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 // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = 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: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\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 className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\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 exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\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 /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\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 /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: 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 /** Details displayed on the modal when user clicks of a data point. 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 detailsOnClick?: 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 /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_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 SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\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 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={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data.filter(d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2))}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\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 dimmedOpacity={dimmedOpacity}\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","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","length","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","EmptyState","primaryColors","GraphArea","footnote","source","GraphFooter","GraphContainer"],"mappings":"qxBAqDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,WAAAA,GAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,GAAAC,UAAAA,EAAAC,aAAAA,GAAAC,QAAAA,GAAAC,kBAAAA,GAAAC,WAAAA,EAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,GAAAC,SAAAA,GAAAC,mBAAAA,GAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,cAAAA,EAAAC,aAAAA,CAAAA,EA2BI5B,EACJ6B,GAAeC,EAAAA,OAAO,IAAI,EAAE,IAAAC,GAAA9B,EAAA,CAAA,IAAAyB,EAAAM,QAAA/B,EAAA,CAAA,IAAAyB,EAAAO,MACOF,GAAA,CAAAE,KAC3BP,EAAOO,KAAKD,OACVN,EAAOM,MAAAA,EAChB/B,EAAA,CAAA,EAAAyB,EAAAM,OAAA/B,EAAA,CAAA,EAAAyB,EAAAO,KAAAhC,KAAA8B,IAAAA,GAAA9B,EAAA,CAAA,EAHD,MAAAiC,EAAiBC,G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