@undp/data-viz 2.3.11 → 2.3.13
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.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +4 -4
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +2 -2
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +2 -2
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +2 -2
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +39 -39
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +2 -2
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/Data/department.json +530 -0
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +3 -3
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +19 -19
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +2 -2
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-D807L58h.js → EmptyState-B3fPoH6L.js} +2 -2
- package/dist/{EmptyState-D807L58h.js.map → EmptyState-B3fPoH6L.js.map} +1 -1
- package/dist/{EmptyState-N1eHt3vq.cjs → EmptyState-B4c-CrXs.cjs} +2 -2
- package/dist/{EmptyState-N1eHt3vq.cjs.map → EmptyState-B4c-CrXs.cjs.map} +1 -1
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-CT3xPv2P.js → GraphEl-Bb5oGHoa.js} +4 -3
- package/dist/GraphEl-Bb5oGHoa.js.map +1 -0
- package/dist/{GraphEl-DvwOOhF1.cjs → GraphEl-BerZfJ3j.cjs} +2 -2
- package/dist/{GraphEl-DvwOOhF1.cjs.map → GraphEl-BerZfJ3j.cjs.map} +1 -1
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +29 -29
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +393 -391
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +2 -2
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +439 -437
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/{Source-24M277ZQ.cjs → Source-BOSAl3UX.cjs} +2 -2
- package/dist/{Source-24M277ZQ.cjs.map → Source-BOSAl3UX.cjs.map} +1 -1
- package/dist/{Source-eILIr4Ov.js → Source-Djkz-7jX.js} +2 -2
- package/dist/{Source-eILIr4Ov.js.map → Source-Djkz-7jX.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +592 -481
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +2 -2
- package/dist/Types.d.ts +1 -0
- package/dist/Typography-CZZxlj1W.cjs +2 -0
- package/dist/Typography-CZZxlj1W.cjs.map +1 -0
- package/dist/{Typography-HicNIA61.js → Typography-DMVW6JnV.js} +67 -60
- package/dist/Typography-DMVW6JnV.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/{index-B5ggV1vg.js → index-C6VwVS8W.js} +3 -3
- package/dist/{index-B5ggV1vg.js.map → index-C6VwVS8W.js.map} +1 -1
- package/dist/{index-BDR7MlMo.cjs → index-_TlgeI_i.cjs} +2 -2
- package/dist/{index-BDR7MlMo.cjs.map → index-_TlgeI_i.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-CT3xPv2P.js.map +0 -1
- package/dist/Typography-Cc_iHQB-.cjs +0 -2
- package/dist/Typography-Cc_iHQB-.cjs.map +0 -1
- package/dist/Typography-HicNIA61.js.map +0 -1
package/dist/StripChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-6v2a2njQ.cjs"),X=require("react"),Kt=require("./index-DQA8q5sC.cjs"),Qt=require("./index-Cno4Q0YE.cjs"),Zt=require("./Tooltip-BLa2EfMs.cjs"),mt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ht=require("./numberFormattingFunction-02t-wJta.cjs"),u=require("./Colors.cjs"),_t=require("./DetailsModal-DIRTulvr.cjs"),te=require("./linear-CgUCbw9F.cjs"),wt=require("./proxy-C4-uo6nS.cjs"),ee=require("./use-in-view-C3o_ntMv.cjs"),oe=require("./index-CoobIWNj.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-B1EDxJ0S.cjs"),ne=require("./EmptyState-N1eHt3vq.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),le=require("./GraphFooter.cjs"),se=require("./GraphHeader.cjs");function ie(e,t){if(e<2)return[];const i=t/(e-1);return Array.from({length:e},(D,v)=>v*i)}function ae(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,noOfTicks:st,prefix:et,suffix:at,stripType:O,highlightColor:h,dotOpacity:dt,resetSelectionOnDoubleClick:B,detailsOnClick:b,styles:f,classNames:C,valueColor:x,animate:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?20:E,xt=gt===void 0?20:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==g.amount||t[1]!==g.once?(ut={once:g.once,amount:g.amount},t[0]=g.amount,t[1]=g.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==g.duration||t[9]!==C?.graphObjectValues||t[10]!==C?.yAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==b||t[16]!==J||t[17]!==dt||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==h||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==st||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==et||t[34]!==d||t[35]!==B||t[36]!==tt||t[37]!==O||t[38]!==f?.graphObjectValues||t[39]!==f?.yAxis?.labels||t[40]!==at||t[41]!==x||t[42]!==D){const Dt=i.map(Se);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(Ne).map(De))<0?0:Math.max(...i.filter(Ie).map(ke)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Re).map(Ve))>=0?0:Math.min(...i.filter(Ee).map(Me)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([Q,0]).nice(),It=ie(st,Q);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(we).map(Ce),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:K/2,y:Et(0)},whileInView:{x:K/2,y:Et(o.position),opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:dt,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||b)&&(Kt.isEqual(M,o)&&B?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[O==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(je).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(Oe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ve).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{y:-1,height:2,variants:{initial:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(he).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(de).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(me).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},style:{textAnchor:"start",...f?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",C?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,et,at)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{y:o,x:K/2+d+5,style:{textAnchor:"start",...f?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",C?.yAxis?.labels),children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,et,at)},c)),t[8]=g.duration,t[9]=C?.graphObjectValues,t[10]=C?.yAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=b,t[16]=J,t[17]=dt,t[18]=Q,t[19]=K,t[20]=v,t[21]=h,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=st,t[30]=Y,t[31]=_,t[32]=ct,t[33]=et,t[34]=d,t[35]=B,t[36]=tt,t[37]=O,t[38]=f?.graphObjectValues,t[39]=f?.yAxis?.labels,t[40]=at,t[41]=x,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(ue).map(ce),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==C?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==f?.tooltip||t[88]!==lt?(z=ot&<&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:f?.tooltip,className:C?.tooltip}):null,t[83]=C?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=f?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==C?.modal||t[91]!==b||t[92]!==M?(I=b&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:b,data:M,setData:jt,className:C?.modal}):null,t[90]=C?.modal,t[91]=b,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function ce(e){return e.layer}function ue(e){return e.position==="after"}function fe(e){return e.color}function pe(e){return e.color}function me(e){return e.color}function de(e){return e.color}function xe(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.color}function be(e){return e.color}function je(e){return e.color}function Ce(e){return e.layer}function we(e){return e.position==="before"}function Me(e){return e.position}function Ee(e){return!mt.checkIfNullOrUndefined(e.position)}function Ve(e){return e.position}function Re(e){return!mt.checkIfNullOrUndefined(e.position)}function ke(e){return e.position}function Ie(e){return!mt.checkIfNullOrUndefined(e.position)}function De(e){return e.position}function Ne(e){return!mt.checkIfNullOrUndefined(e.position)}function Se(e,t){return{...e,id:`${t}`}}function $e(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,prefix:st,suffix:et,stripType:at,highlightColor:O,dotOpacity:h,resetSelectionOnDoubleClick:dt,detailsOnClick:B,styles:b,classNames:f,valueColor:C,animate:x,noOfTicks:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?5:E,xt=gt===void 0?5:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==x.amount||t[1]!==x.once?(ut={once:x.once,amount:x.amount},t[0]=x.amount,t[1]=x.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==x.duration||t[9]!==f?.graphObjectValues||t[10]!==f?.xAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==B||t[16]!==J||t[17]!==h||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==O||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==g||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==st||t[34]!==d||t[35]!==dt||t[36]!==tt||t[37]!==at||t[38]!==b?.graphObjectValues||t[39]!==b?.xAxis?.labels||t[40]!==et||t[41]!==C||t[42]!==D){const Dt=i.map(ro);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(no).map(io))<0?0:Math.max(...i.filter(oo).map(eo)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(to).map(_e))>=0?0:Math.min(...i.filter(Ze).map(Qe)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([0,K]).nice(),It=ie(g,K);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(Ke).map(Je),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Et(0),y:Q/2},whileInView:{x:Et(o.position),y:Q/2,opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:h,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||B)&&(Kt.isEqual(M,o)&&dt?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[at==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(ze).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(Ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{x:-1,width:2,variants:{initial:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(We).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(He).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{x:0,variants:{initial:{opacity:0,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Le).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Te).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},style:{textAnchor:"middle",...b?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",f?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,st,et)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{x:o,y:Q/2+d,style:{textAnchor:c===0?"start":c===It.length-1?"end":"middle",...b?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",f?.xAxis?.labels),dy:"1em",children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,st,et)},c)),t[8]=x.duration,t[9]=f?.graphObjectValues,t[10]=f?.xAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=B,t[16]=J,t[17]=h,t[18]=Q,t[19]=K,t[20]=v,t[21]=O,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=g,t[30]=Y,t[31]=_,t[32]=ct,t[33]=st,t[34]=d,t[35]=dt,t[36]=tt,t[37]=at,t[38]=b?.graphObjectValues,t[39]=b?.xAxis?.labels,t[40]=et,t[41]=C,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(qe).map(Ae),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==f?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==b?.tooltip||t[88]!==lt?(z=ot&<&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:b?.tooltip,className:f?.tooltip}):null,t[83]=f?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=b?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==f?.modal||t[91]!==B||t[92]!==M?(I=B&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:B,data:M,setData:jt,className:f?.modal}):null,t[90]=f?.modal,t[91]=B,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function Ae(e){return e.layer}function qe(e){return e.position==="after"}function Te(e){return e.color}function Fe(e){return e.color}function Pe(e){return e.color}function Le(e){return e.color}function Ue(e){return e.color}function He(e){return e.color}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.color}function Be(e){return e.color}function ze(e){return e.color}function Je(e){return e.layer}function Ke(e){return e.position==="before"}function Qe(e){return e.position}function Ze(e){return!mt.checkIfNullOrUndefined(e.position)}function _e(e){return e.position}function to(e){return!mt.checkIfNullOrUndefined(e.position)}function eo(e){return e.position}function oo(e){return!mt.checkIfNullOrUndefined(e.position)}function io(e){return e.position}function no(e){return!mt.checkIfNullOrUndefined(e.position)}function ro(e,t){return{...e,id:`${t}`}}function lo(e){const t=l.compilerRuntimeExports.c(92),{data:i,graphTitle:D,colors:v,sources:n,graphDescription:s,height:d,width:E,footNote:gt,colorDomain:rt,colorLegendTitle:Mt,radius:lt,padding:_,backgroundColor:r,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,relativeHeight:et,onSeriesMouseOver:at,showColorScale:O,highlightedDataPoints:h,graphID:dt,minValue:B,maxValue:b,onSeriesMouseClick:f,noOfTicks:C,graphDownload:x,dataDownload:g,prefix:J,suffix:ct,stripType:w,language:yt,highlightColor:xt,dotOpacity:vt,showNAColor:Ot,minHeight:Vt,theme:ut,ariaLabel:$,valueColor:ot,resetSelectionOnDoubleClick:bt,detailsOnClick:M,orientation:jt,styles:p,classNames:a,animate:ft,dimmedOpacity:Ct,precision:pt,customLayers:m}=e,K=lt===void 0?5:lt,Q=r===void 0?!1:r,A=O===void 0?!0:O;let V;t[0]!==h?(V=h===void 0?[]:h,t[0]=h,t[1]=V):V=t[1];const q=V,T=C===void 0?2:C,R=x===void 0?!1:x,k=g===void 0?!1:g,F=J===void 0?"":J,P=ct===void 0?"":ct,L=w===void 0?"dot":w,U=yt===void 0?"en":yt,j=vt===void 0?.3:vt,H=Ot===void 0?!0:Ot,G=Vt===void 0?0:Vt,y=ut===void 0?"light":ut,W=bt===void 0?!0:bt,z=jt===void 0?"vertical":jt,I=ft===void 0?!1:ft,it=Ct===void 0?.3:Ct,Dt=pt===void 0?2:pt;let Z;t[2]!==m?(Z=m===void 0?[]:m,t[2]=m,t[3]=Z):Z=t[3];const Nt=Z,nt=z==="horizontal"?$e:ae,[Rt,ht]=X.useState(0),[kt,Et]=X.useState(0),[It,o]=X.useState(void 0),c=X.useRef(null),Xt=X.useRef(null);let Pt,Lt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>{const Yt=new ResizeObserver(Bt=>{ht(Bt[0].target.clientWidth||620),Et(Bt[0].target.clientHeight||480)});return c.current&&Yt.observe(c.current),()=>Yt.disconnect()},Lt=[],t[4]=Pt,t[5]=Lt):(Pt=t[4],Lt=t[5]),X.useEffect(Pt,Lt);const Gt=a?.graphContainer,Wt=p?.graphContainer;let St;t[6]!==a?.description||t[7]!==a?.title||t[8]!==i||t[9]!==k||t[10]!==s||t[11]!==R||t[12]!==D||t[13]!==p?.description||t[14]!==p?.title||t[15]!==E?(St=D||s||R||k?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:a?.title,description:a?.description},graphTitle:D,graphDescription:s,width:E,graphDownload:R?Xt:void 0,dataDownload:k?i.map(xo).filter(mo).length>0?i.map(po).filter(fo):i.filter(uo):null}):null,t[6]=a?.description,t[7]=a?.title,t[8]=i,t[9]=k,t[10]=s,t[11]=R,t[12]=D,t[13]=p?.description,t[14]=p?.title,t[15]=E,t[16]=St):St=t[16];let $t;t[17]!==a?.colorLegend||t[18]!==rt||t[19]!==Mt||t[20]!==v||t[21]!==i||t[22]!==A||t[23]!==H||t[24]!==y||t[25]!==E?($t=A!==!1&&i.filter(co).length!==0&&i.length>0?l.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:E,colorLegendTitle:Mt,colors:v||u.Colors[y].categoricalColors.colors,colorDomain:rt||zt.uniqBy(i,"color",!0),setSelectedColor:o,showNAColor:H,className:a?.colorLegend}):null,t[17]=a?.colorLegend,t[18]=rt,t[19]=Mt,t[20]=v,t[21]=i,t[22]=A,t[23]=H,t[24]=y,t[25]=E,t[26]=$t):$t=t[26];let At;t[27]!==i.length?(At=i.length===0&&l.jsxRuntimeExports.jsx(ne.EmptyState,{}),t[27]=i.length,t[28]=At):At=t[28];let qt;t[29]!==nt||t[30]!==I||t[31]!==Y||t[32]!==a||t[33]!==rt||t[34]!==v||t[35]!==Nt||t[36]!==i||t[37]!==M||t[38]!==it||t[39]!==j||t[40]!==xt||t[41]!==q||t[42]!==tt||t[43]!==b||t[44]!==B||t[45]!==T||t[46]!==f||t[47]!==at||t[48]!==Dt||t[49]!==F||t[50]!==K||t[51]!==W||t[52]!==N||t[53]!==It||t[54]!==L||t[55]!==p||t[56]!==P||t[57]!==kt||t[58]!==Rt||t[59]!==y||t[60]!==st||t[61]!==S||t[62]!==ot?(qt=Rt&&kt&&i.length>0?l.jsxRuntimeExports.jsx(nt,{data:i,width:Rt,height:kt,colorDomain:i.filter(ao).length===0?[]:rt||zt.uniqBy(i,"color",!0),colors:i.filter(so).length===0?v?[v]:[u.Colors.primaryColors["blue-600"]]:v||u.Colors[y].categoricalColors.colors,selectedColor:It,radius:K,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,onSeriesMouseOver:at,highlightedDataPoints:q,minValue:B,maxValue:b,onSeriesMouseClick:f,prefix:F,suffix:P,stripType:L,highlightColor:xt,dotOpacity:j,resetSelectionOnDoubleClick:W,detailsOnClick:M,styles:p,classNames:a,valueColor:ot,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},noOfTicks:T,dimmedOpacity:it,precision:Dt,customLayers:Nt}):null,t[29]=nt,t[30]=I,t[31]=Y,t[32]=a,t[33]=rt,t[34]=v,t[35]=Nt,t[36]=i,t[37]=M,t[38]=it,t[39]=j,t[40]=xt,t[41]=q,t[42]=tt,t[43]=b,t[44]=B,t[45]=T,t[46]=f,t[47]=at,t[48]=Dt,t[49]=F,t[50]=K,t[51]=W,t[52]=N,t[53]=It,t[54]=L,t[55]=p,t[56]=P,t[57]=kt,t[58]=Rt,t[59]=y,t[60]=st,t[61]=S,t[62]=ot,t[63]=qt):qt=t[63];let Tt;t[64]!==At||t[65]!==qt?(Tt=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:c,children:[At,qt]}),t[64]=At,t[65]=qt,t[66]=Tt):Tt=t[66];let Ft;t[67]!==a?.footnote||t[68]!==a?.source||t[69]!==gt||t[70]!==n||t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==E?(Ft=n||gt?l.jsxRuntimeExports.jsx(le.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:n,footNote:gt,width:E}):null,t[67]=a?.footnote,t[68]=a?.source,t[69]=gt,t[70]=n,t[71]=p?.footnote,t[72]=p?.source,t[73]=E,t[74]=Ft):Ft=t[74];let Ut;return t[75]!==$||t[76]!==Q||t[77]!==dt||t[78]!==d||t[79]!==U||t[80]!==G||t[81]!==_||t[82]!==et||t[83]!==Gt||t[84]!==Wt||t[85]!==St||t[86]!==$t||t[87]!==Tt||t[88]!==Ft||t[89]!==y||t[90]!==E?(Ut=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:Gt,style:Wt,id:dt,ref:Xt,"aria-label":$,backgroundColor:Q,theme:y,language:U,minHeight:G,width:E,height:d,relativeHeight:et,padding:_,children:[St,$t,Tt,Ft]}),t[75]=$,t[76]=Q,t[77]=dt,t[78]=d,t[79]=U,t[80]=G,t[81]=_,t[82]=et,t[83]=Gt,t[84]=Wt,t[85]=St,t[86]=$t,t[87]=Tt,t[88]=Ft,t[89]=y,t[90]=E,t[91]=Ut):Ut=t[91],Ut}function so(e){return e.color}function ao(e){return e.color}function co(e){return e.color}function uo(e){return e!==void 0}function fo(e){return e!==void 0}function po(e){return e.data}function mo(e){return e!==void 0}function xo(e){return e.data}exports.StripChart=lo;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CHPV5EwG-6v2a2njQ.cjs"),z=require("react"),Zt=require("./index-DQA8q5sC.cjs"),_t=require("./index-Cno4Q0YE.cjs"),te=require("./Tooltip-BLa2EfMs.cjs"),gt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ut=require("./numberFormattingFunction-02t-wJta.cjs"),s=require("./Colors.cjs"),ee=require("./DetailsModal-DIRTulvr.cjs"),ie=require("./linear-CgUCbw9F.cjs"),it=require("./proxy-C4-uo6nS.cjs"),oe=require("./use-in-view-C3o_ntMv.cjs"),ne=require("./index-CoobIWNj.cjs"),Kt=require("./uniqBy-O05lp2S5.cjs"),Qt=require("./GraphContainer-B1EDxJ0S.cjs"),le=require("./EmptyState-B4c-CrXs.cjs"),ae=require("./ColorLegendWithMouseOver.cjs"),se=require("./GraphFooter.cjs"),ce=require("./GraphHeader.cjs");function re(e,t){if(e<2)return[];const o=t/(e-1);return Array.from({length:e},(k,b)=>b*o)}function ue(e){const t=a.compilerRuntimeExports.c(101),{data:o,width:k,height:b,colors:n,colorDomain:l,radius:f,leftMargin:V,rightMargin:jt,topMargin:mt,bottomMargin:Rt,tooltip:xt,onSeriesMouseOver:ot,highlightedDataPoints:r,selectedColor:nt,minValue:S,maxValue:A,onSeriesMouseClick:J,noOfTicks:rt,prefix:K,suffix:lt,stripType:d,highlightColor:x,dotOpacity:yt,resetSelectionOnDoubleClick:Q,detailsOnClick:j,styles:m,classNames:v,valueColor:u,animate:h,dimmedOpacity:_,precision:tt,customLayers:M,showDataMinMax:wt}=e,vt=V===void 0?20:V,Ct=jt===void 0?20:jt,Mt=mt===void 0?10:mt,Vt=Rt===void 0?10:Rt,Dt=z.useRef(null);let at;t[0]!==h.amount||t[1]!==h.once?(at={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=at):at=t[2];const w=oe.useInView(Dt,at),[ht,Ot]=z.useState(void 0),[E,g]=z.useState(void 0),[p,Et]=z.useState(void 0),[dt,It]=z.useState(void 0);let et;t[3]!==Vt||t[4]!==vt||t[5]!==Ct||t[6]!==Mt?(et={top:Mt,bottom:Vt,left:vt,right:Ct},t[3]=Vt,t[4]=vt,t[5]=Ct,t[6]=Mt,t[7]=et):et=t[7];const y=et,Y=k-y.left-y.right,B=b-y.top-y.bottom;let $,I,C,q,R,D,T,F,P,L,U,H;if(t[8]!==h.duration||t[9]!==v?.graphObjectValues||t[10]!==v?.yAxis?.labels||t[11]!==l||t[12]!==n||t[13]!==M||t[14]!==o||t[15]!==j||t[16]!==_||t[17]!==yt||t[18]!==B||t[19]!==Y||t[20]!==b||t[21]!==x||t[22]!==r||t[23]!==w||t[24]!==y.left||t[25]!==y.top||t[26]!==A||t[27]!==S||t[28]!==E||t[29]!==rt||t[30]!==J||t[31]!==ot||t[32]!==tt||t[33]!==K||t[34]!==f||t[35]!==Q||t[36]!==nt||t[37]!==wt||t[38]!==d||t[39]!==m?.graphObjectValues||t[40]!==m?.yAxis?.labels||t[41]!==lt||t[42]!==u||t[43]!==k){const Nt=o.map(Pe);let ct;t[56]!==r?(ct=i=>{const c=(r||[]).indexOf(i.label);return c===-1?1/0:c},t[56]=r,t[57]=ct):ct=t[57];const ut=_t.orderBy(Nt,[ct],["desc"]);let ft;t[58]!==o||t[59]!==A?(ft=gt.checkIfNullOrUndefined(A)?Math.max(...o.filter(Fe).map(Te))<0?0:Math.max(...o.filter(qe).map($e)):A,t[58]=o,t[59]=A,t[60]=ft):ft=t[60];const kt=ft;let bt;t[61]!==o||t[62]!==S?(bt=gt.checkIfNullOrUndefined(S)?Math.min(...o.filter(Ae).map(Se))>=0?0:Math.min(...o.filter(ke).map(Ne)):S,t[61]=o,t[62]=S,t[63]=bt):bt=t[63];const St=bt,pt=ie.linear().domain([St,kt]).range([B,0]).nice(),At=re(rt,B);I=it.motion.svg,q=`${k}px`,R=`${b}px`,D=`0 0 ${k} ${b}`,T="ltr",F=Dt,H=`translate(${y.left},${y.top})`,t[64]!==M?(C=M.filter(De).map(Re),t[64]=M,t[65]=C):C=t[65],$=ne.AnimatePresence,P=ut.map(i=>a.jsxRuntimeExports.jsxs(it.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Y/2,y:pt(0)},whileInView:{x:Y/2,y:pt(i.position),opacity:nt?i.color&&n[l.indexOf(i.color)]===nt?.95:_:r.length!==0?r.indexOf(i.label)!==-1?.95:_:yt,transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:c=>{Ot(i),It(c.clientY),Et(c.clientX),ot?.(i)},onClick:()=>{(J||j)&&(Zt.isEqual(E,i)&&Q?(g(void 0),J?.(void 0)):(g(i),J?.(i)))},onMouseMove:c=>{Ot(i),It(c.clientY),Et(c.clientX)},onMouseLeave:()=>{Ot(void 0),Et(void 0),It(void 0),ot?.(void 0)},children:[d==="dot"?a.jsxRuntimeExports.jsx(it.motion.circle,{cy:0,cx:0,variants:{initial:{fill:x&&r?r.indexOf(i.label)!==-1?x:o.filter(Ie).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Ee).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray},whileInView:{fill:x&&r?r.indexOf(i.label)!==-1?x:o.filter(Ve).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Me).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray,transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},r:f}):a.jsxRuntimeExports.jsx(it.motion.rect,{y:-1,height:2,variants:{initial:{x:0-f,width:f*2,fill:x&&r?r.indexOf(i.label)!==-1?x:o.filter(Ce).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(we).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray},whileInView:{x:0-f,width:f*2,fill:x&&r?r.indexOf(i.label)!==-1?x:o.filter(je).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(be).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray,transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}),r.length!==0&&r.indexOf(i.label)!==-1?a.jsxRuntimeExports.jsx(it.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+f+3,fill:u||(x&&r?r.indexOf(i.label)!==-1?x:o.filter(Oe).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(ve).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray)},whileInView:{opacity:1,x:0+f+3,fill:u||(x&&r?r.indexOf(i.label)!==-1?x:o.filter(ye).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(ge).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray),transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{textAnchor:"start",...m?.graphObjectValues||{}},className:a.mo("graph-value text-sm font-bold",v?.graphObjectValues),children:Ut.numberFormattingFunction(i.position,"NA",tt,K,lt)}):null]},i.label)),L=wt?[ut[0],ut[ut.length-1]].map((i,c)=>a.jsxRuntimeExports.jsx(it.motion.g,{variants:{initial:{opacity:0,x:Y/2,y:pt(0)},whileInView:{x:Y/2,y:pt(i.position),opacity:1,transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:a.jsxRuntimeExports.jsx(it.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+f+3,fill:u||(x&&r?r.indexOf(i.label)!==-1?x:o.filter(de).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(he).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray)},whileInView:{opacity:1,x:0+f+3,fill:u||(x&&r?r.indexOf(i.label)!==-1?x:o.filter(xe).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(me).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray),transition:{duration:h.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{textAnchor:"start",...m?.graphObjectValues||{}},className:a.mo("graph-value text-sm",v?.graphObjectValues),children:Ut.numberFormattingFunction(i.position,"NA",tt,K,lt)},c)},c)):null,U=At.map((i,c)=>a.jsxRuntimeExports.jsx("text",{y:i,x:Y/2+f+5,style:{textAnchor:"start",...m?.yAxis?.labels||{}},className:a.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",v?.yAxis?.labels),children:Ut.numberFormattingFunction(pt.invert(i),"NA",tt,K,lt)},c)),t[8]=h.duration,t[9]=v?.graphObjectValues,t[10]=v?.yAxis?.labels,t[11]=l,t[12]=n,t[13]=M,t[14]=o,t[15]=j,t[16]=_,t[17]=yt,t[18]=B,t[19]=Y,t[20]=b,t[21]=x,t[22]=r,t[23]=w,t[24]=y.left,t[25]=y.top,t[26]=A,t[27]=S,t[28]=E,t[29]=rt,t[30]=J,t[31]=ot,t[32]=tt,t[33]=K,t[34]=f,t[35]=Q,t[36]=nt,t[37]=wt,t[38]=d,t[39]=m?.graphObjectValues,t[40]=m?.yAxis?.labels,t[41]=lt,t[42]=u,t[43]=k,t[44]=$,t[45]=I,t[46]=C,t[47]=q,t[48]=R,t[49]=D,t[50]=T,t[51]=F,t[52]=P,t[53]=L,t[54]=U,t[55]=H}else $=t[44],I=t[45],C=t[46],q=t[47],R=t[48],D=t[49],T=t[50],F=t[51],P=t[52],L=t[53],U=t[54],H=t[55];let G;t[66]!==$||t[67]!==P||t[68]!==L||t[69]!==U?(G=a.jsxRuntimeExports.jsxs($,{children:[P,L,U]}),t[66]=$,t[67]=P,t[68]=L,t[69]=U,t[70]=G):G=t[70];let O;t[71]!==M?(O=M.filter(pe).map(fe),t[71]=M,t[72]=O):O=t[72];let W;t[73]!==C||t[74]!==G||t[75]!==O||t[76]!==H?(W=a.jsxRuntimeExports.jsxs("g",{transform:H,children:[C,G,O]}),t[73]=C,t[74]=G,t[75]=O,t[76]=H,t[77]=W):W=t[77];let Z;t[78]!==I||t[79]!==q||t[80]!==R||t[81]!==D||t[82]!==T||t[83]!==F||t[84]!==W?(Z=a.jsxRuntimeExports.jsx(I,{width:q,height:R,viewBox:D,direction:T,ref:F,children:W}),t[78]=I,t[79]=q,t[80]=R,t[81]=D,t[82]=T,t[83]=F,t[84]=W,t[85]=Z):Z=t[85];let N;t[86]!==v?.tooltip||t[87]!==p||t[88]!==dt||t[89]!==ht||t[90]!==m?.tooltip||t[91]!==xt?(N=ht&&xt&&p&&dt?a.jsxRuntimeExports.jsx(te.Tooltip,{data:ht,body:xt,xPos:p,yPos:dt,backgroundStyle:m?.tooltip,className:v?.tooltip}):null,t[86]=v?.tooltip,t[87]=p,t[88]=dt,t[89]=ht,t[90]=m?.tooltip,t[91]=xt,t[92]=N):N=t[92];let X;t[93]!==v?.modal||t[94]!==j||t[95]!==E?(X=j&&E!==void 0?a.jsxRuntimeExports.jsx(ee.DetailsModal,{body:j,data:E,setData:g,className:v?.modal}):null,t[93]=v?.modal,t[94]=j,t[95]=E,t[96]=X):X=t[96];let st;return t[97]!==Z||t[98]!==N||t[99]!==X?(st=a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[Z,N,X]}),t[97]=Z,t[98]=N,t[99]=X,t[100]=st):st=t[100],st}function fe(e){return e.layer}function pe(e){return e.position==="after"}function me(e){return e.color}function xe(e){return e.color}function he(e){return e.color}function de(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.color}function be(e){return e.color}function je(e){return e.color}function we(e){return e.color}function Ce(e){return e.color}function Me(e){return e.color}function Ve(e){return e.color}function Ee(e){return e.color}function Ie(e){return e.color}function Re(e){return e.layer}function De(e){return e.position==="before"}function Ne(e){return e.position}function ke(e){return!gt.checkIfNullOrUndefined(e.position)}function Se(e){return e.position}function Ae(e){return!gt.checkIfNullOrUndefined(e.position)}function $e(e){return e.position}function qe(e){return!gt.checkIfNullOrUndefined(e.position)}function Te(e){return e.position}function Fe(e){return!gt.checkIfNullOrUndefined(e.position)}function Pe(e,t){return{...e,id:`${t}`}}function Le(e){const t=a.compilerRuntimeExports.c(101),{data:o,width:k,height:b,colors:n,colorDomain:l,radius:f,leftMargin:V,rightMargin:jt,topMargin:mt,bottomMargin:Rt,tooltip:xt,onSeriesMouseOver:ot,highlightedDataPoints:r,selectedColor:nt,minValue:S,maxValue:A,onSeriesMouseClick:J,prefix:rt,suffix:K,stripType:lt,highlightColor:d,dotOpacity:x,resetSelectionOnDoubleClick:yt,detailsOnClick:Q,styles:j,classNames:m,valueColor:v,animate:u,noOfTicks:h,dimmedOpacity:_,precision:tt,customLayers:M,showDataMinMax:wt}=e,vt=V===void 0?5:V,Ct=jt===void 0?5:jt,Mt=mt===void 0?10:mt,Vt=Rt===void 0?10:Rt,Dt=z.useRef(null);let at;t[0]!==u.amount||t[1]!==u.once?(at={once:u.once,amount:u.amount},t[0]=u.amount,t[1]=u.once,t[2]=at):at=t[2];const w=oe.useInView(Dt,at),[ht,Ot]=z.useState(void 0),[E,g]=z.useState(void 0),[p,Et]=z.useState(void 0),[dt,It]=z.useState(void 0);let et;t[3]!==Vt||t[4]!==vt||t[5]!==Ct||t[6]!==Mt?(et={top:Mt,bottom:Vt,left:vt,right:Ct},t[3]=Vt,t[4]=vt,t[5]=Ct,t[6]=Mt,t[7]=et):et=t[7];const y=et,Y=k-y.left-y.right,B=b-y.top-y.bottom;let $,I,C,q,R,D,T,F,P,L,U,H;if(t[8]!==u.duration||t[9]!==m?.graphObjectValues||t[10]!==m?.xAxis?.labels||t[11]!==l||t[12]!==n||t[13]!==M||t[14]!==o||t[15]!==Q||t[16]!==_||t[17]!==x||t[18]!==B||t[19]!==Y||t[20]!==b||t[21]!==d||t[22]!==r||t[23]!==w||t[24]!==y.left||t[25]!==y.top||t[26]!==A||t[27]!==S||t[28]!==E||t[29]!==h||t[30]!==J||t[31]!==ot||t[32]!==tt||t[33]!==rt||t[34]!==f||t[35]!==yt||t[36]!==nt||t[37]!==wt||t[38]!==lt||t[39]!==j?.graphObjectValues||t[40]!==j?.xAxis?.labels||t[41]!==K||t[42]!==v||t[43]!==k){const Nt=o.map(hi);let ct;t[56]!==r?(ct=i=>{const c=(r||[]).indexOf(i.label);return c===-1?1/0:c},t[56]=r,t[57]=ct):ct=t[57];const ut=_t.orderBy(Nt,[ct],["desc"]);let ft;t[58]!==o||t[59]!==A?(ft=gt.checkIfNullOrUndefined(A)?Math.max(...o.filter(xi).map(mi))<0?0:Math.max(...o.filter(pi).map(fi)):A,t[58]=o,t[59]=A,t[60]=ft):ft=t[60];const kt=ft;let bt;t[61]!==o||t[62]!==S?(bt=gt.checkIfNullOrUndefined(S)?Math.min(...o.filter(ui).map(ci))>=0?0:Math.min(...o.filter(si).map(ai)):S,t[61]=o,t[62]=S,t[63]=bt):bt=t[63];const St=bt,pt=ie.linear().domain([St,kt]).range([0,Y]).nice(),At=re(h,Y);I=it.motion.svg,q=`${k}px`,R=`${b}px`,D=`0 0 ${k} ${b}`,T="ltr",F=Dt,H=`translate(${y.left},${y.top})`,t[64]!==M?(C=M.filter(li).map(ri),t[64]=M,t[65]=C):C=t[65],$=ne.AnimatePresence,P=ut.map(i=>a.jsxRuntimeExports.jsxs(it.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:pt(0),y:B/2},whileInView:{x:pt(i.position),y:B/2,opacity:nt?i.color&&n[l.indexOf(i.color)]===nt?.95:_:r.length!==0?r.indexOf(i.label)!==-1?.95:_:x,transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},onMouseEnter:c=>{Ot(i),It(c.clientY),Et(c.clientX),ot?.(i)},onClick:()=>{(J||Q)&&(Zt.isEqual(E,i)&&yt?(g(void 0),J?.(void 0)):(g(i),J?.(i)))},onMouseMove:c=>{Ot(i),It(c.clientY),Et(c.clientX)},onMouseLeave:()=>{Ot(void 0),Et(void 0),It(void 0),ot?.(void 0)},children:[lt==="dot"?a.jsxRuntimeExports.jsx(it.motion.circle,{cy:0,cx:0,variants:{initial:{fill:d&&r?r.indexOf(i.label)!==-1?d:o.filter(ni).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(oi).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray},whileInView:{fill:d&&r?r.indexOf(i.label)!==-1?d:o.filter(ii).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(ei).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray,transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},r:f}):a.jsxRuntimeExports.jsx(it.motion.rect,{x:-1,width:2,variants:{initial:{y:0-f,height:f*2,fill:d&&r?r.indexOf(i.label)!==-1?d:o.filter(ti).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(_e).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray},whileInView:{y:0-f,height:f*2,fill:d&&r?r.indexOf(i.label)!==-1?d:o.filter(Ze).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Qe).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray,transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}}}),r.length!==0&&r.indexOf(i.label)!==-1?a.jsxRuntimeExports.jsx(it.motion.text,{x:0,variants:{initial:{opacity:0,y:0-f-5,fill:v||(d&&r?r.indexOf(i.label)!==-1?d:o.filter(Ke).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Je).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray)},whileInView:{opacity:1,y:0-f-5,fill:v||(d&&r?r.indexOf(i.label)!==-1?d:o.filter(ze).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Be).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},style:{textAnchor:"middle",...j?.graphObjectValues||{}},className:a.mo("graph-value text-sm font-bold",m?.graphObjectValues),children:Ut.numberFormattingFunction(i.position,"NA",tt,rt,K)}):null]},i.label)),L=wt?[ut[0],ut[ut.length-1]].map((i,c)=>a.jsxRuntimeExports.jsx(it.motion.g,{variants:{initial:{opacity:0,x:pt(0),y:B/2},whileInView:{x:pt(i.position),y:B/2,opacity:1,transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},children:a.jsxRuntimeExports.jsx(it.motion.text,{x:0,variants:{initial:{opacity:0,y:0-f-5,fill:v||(d&&r?r.indexOf(i.label)!==-1?d:o.filter(Ye).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Xe).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray)},whileInView:{opacity:1,y:0-f-5,fill:v||(d&&r?r.indexOf(i.label)!==-1?d:o.filter(We).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray:o.filter(Ge).length===0?n[0]:i.color?n[l.indexOf(i.color)]:s.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},style:{textAnchor:"middle",...j?.graphObjectValues||{}},className:a.mo("graph-value text-sm",m?.graphObjectValues),children:Ut.numberFormattingFunction(i.position,"NA",tt,rt,K)})},c)):null,U=At.map((i,c)=>a.jsxRuntimeExports.jsx("text",{x:i,y:B/2+f,style:{textAnchor:c===0?"start":c===At.length-1?"end":"middle",...j?.xAxis?.labels||{}},className:a.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",m?.xAxis?.labels),dy:"1em",children:Ut.numberFormattingFunction(pt.invert(i),"NA",tt,rt,K)},c)),t[8]=u.duration,t[9]=m?.graphObjectValues,t[10]=m?.xAxis?.labels,t[11]=l,t[12]=n,t[13]=M,t[14]=o,t[15]=Q,t[16]=_,t[17]=x,t[18]=B,t[19]=Y,t[20]=b,t[21]=d,t[22]=r,t[23]=w,t[24]=y.left,t[25]=y.top,t[26]=A,t[27]=S,t[28]=E,t[29]=h,t[30]=J,t[31]=ot,t[32]=tt,t[33]=rt,t[34]=f,t[35]=yt,t[36]=nt,t[37]=wt,t[38]=lt,t[39]=j?.graphObjectValues,t[40]=j?.xAxis?.labels,t[41]=K,t[42]=v,t[43]=k,t[44]=$,t[45]=I,t[46]=C,t[47]=q,t[48]=R,t[49]=D,t[50]=T,t[51]=F,t[52]=P,t[53]=L,t[54]=U,t[55]=H}else $=t[44],I=t[45],C=t[46],q=t[47],R=t[48],D=t[49],T=t[50],F=t[51],P=t[52],L=t[53],U=t[54],H=t[55];let G;t[66]!==$||t[67]!==P||t[68]!==L||t[69]!==U?(G=a.jsxRuntimeExports.jsxs($,{children:[P,L,U]}),t[66]=$,t[67]=P,t[68]=L,t[69]=U,t[70]=G):G=t[70];let O;t[71]!==M?(O=M.filter(He).map(Ue),t[71]=M,t[72]=O):O=t[72];let W;t[73]!==C||t[74]!==G||t[75]!==O||t[76]!==H?(W=a.jsxRuntimeExports.jsxs("g",{transform:H,children:[C,G,O]}),t[73]=C,t[74]=G,t[75]=O,t[76]=H,t[77]=W):W=t[77];let Z;t[78]!==I||t[79]!==q||t[80]!==R||t[81]!==D||t[82]!==T||t[83]!==F||t[84]!==W?(Z=a.jsxRuntimeExports.jsx(I,{width:q,height:R,viewBox:D,direction:T,ref:F,children:W}),t[78]=I,t[79]=q,t[80]=R,t[81]=D,t[82]=T,t[83]=F,t[84]=W,t[85]=Z):Z=t[85];let N;t[86]!==m?.tooltip||t[87]!==p||t[88]!==dt||t[89]!==ht||t[90]!==j?.tooltip||t[91]!==xt?(N=ht&&xt&&p&&dt?a.jsxRuntimeExports.jsx(te.Tooltip,{data:ht,body:xt,xPos:p,yPos:dt,backgroundStyle:j?.tooltip,className:m?.tooltip}):null,t[86]=m?.tooltip,t[87]=p,t[88]=dt,t[89]=ht,t[90]=j?.tooltip,t[91]=xt,t[92]=N):N=t[92];let X;t[93]!==m?.modal||t[94]!==Q||t[95]!==E?(X=Q&&E!==void 0?a.jsxRuntimeExports.jsx(ee.DetailsModal,{body:Q,data:E,setData:g,className:m?.modal}):null,t[93]=m?.modal,t[94]=Q,t[95]=E,t[96]=X):X=t[96];let st;return t[97]!==Z||t[98]!==N||t[99]!==X?(st=a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[Z,N,X]}),t[97]=Z,t[98]=N,t[99]=X,t[100]=st):st=t[100],st}function Ue(e){return e.layer}function He(e){return e.position==="after"}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.color}function Be(e){return e.color}function ze(e){return e.color}function Je(e){return e.color}function Ke(e){return e.color}function Qe(e){return e.color}function Ze(e){return e.color}function _e(e){return e.color}function ti(e){return e.color}function ei(e){return e.color}function ii(e){return e.color}function oi(e){return e.color}function ni(e){return e.color}function ri(e){return e.layer}function li(e){return e.position==="before"}function ai(e){return e.position}function si(e){return!gt.checkIfNullOrUndefined(e.position)}function ci(e){return e.position}function ui(e){return!gt.checkIfNullOrUndefined(e.position)}function fi(e){return e.position}function pi(e){return!gt.checkIfNullOrUndefined(e.position)}function mi(e){return e.position}function xi(e){return!gt.checkIfNullOrUndefined(e.position)}function hi(e,t){return{...e,id:`${t}`}}function di(e){const t=a.compilerRuntimeExports.c(93),{data:o,graphTitle:k,colors:b,sources:n,graphDescription:l,height:f,width:V,footNote:jt,colorDomain:mt,colorLegendTitle:Rt,radius:xt,padding:ot,backgroundColor:r,leftMargin:nt,rightMargin:S,topMargin:A,bottomMargin:J,tooltip:rt,relativeHeight:K,onSeriesMouseOver:lt,showColorScale:d,highlightedDataPoints:x,graphID:yt,minValue:Q,maxValue:j,onSeriesMouseClick:m,noOfTicks:v,graphDownload:u,dataDownload:h,prefix:_,suffix:tt,stripType:M,language:wt,highlightColor:vt,dotOpacity:Ct,showNAColor:Mt,minHeight:Vt,theme:Dt,ariaLabel:at,valueColor:w,resetSelectionOnDoubleClick:ht,detailsOnClick:Ot,orientation:E,styles:g,classNames:p,animate:Et,dimmedOpacity:dt,precision:It,customLayers:et,showDataMinMax:y}=e,Y=xt===void 0?5:xt,B=r===void 0?!1:r,$=d===void 0?!0:d;let I;t[0]!==x?(I=x===void 0?[]:x,t[0]=x,t[1]=I):I=t[1];const C=I,q=v===void 0?2:v,R=u===void 0?!1:u,D=h===void 0?!1:h,T=_===void 0?"":_,F=tt===void 0?"":tt,P=M===void 0?"dot":M,L=wt===void 0?"en":wt,U=Ct===void 0?.3:Ct,H=Mt===void 0?!0:Mt,G=Vt===void 0?0:Vt,O=Dt===void 0?"light":Dt,W=ht===void 0?!0:ht,Z=E===void 0?"vertical":E,N=Et===void 0?!1:Et,X=dt===void 0?.3:dt,st=It===void 0?2:It;let Nt;t[2]!==et?(Nt=et===void 0?[]:et,t[2]=et,t[3]=Nt):Nt=t[3];const ct=Nt,ut=y===void 0?!1:y,ft=Z==="horizontal"?Le:ue,[kt,bt]=z.useState(0),[St,pt]=z.useState(0),[At,i]=z.useState(void 0),c=z.useRef(null),Bt=z.useRef(null);let Ht,Gt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Ht=()=>{const zt=new ResizeObserver(Jt=>{bt(Jt[0].target.clientWidth||620),pt(Jt[0].target.clientHeight||480)});return c.current&&zt.observe(c.current),()=>zt.disconnect()},Gt=[],t[4]=Ht,t[5]=Gt):(Ht=t[4],Gt=t[5]),z.useEffect(Ht,Gt);const Xt=p?.graphContainer,Yt=g?.graphContainer;let $t;t[6]!==p?.description||t[7]!==p?.title||t[8]!==o||t[9]!==D||t[10]!==l||t[11]!==R||t[12]!==k||t[13]!==g?.description||t[14]!==g?.title||t[15]!==V?($t=k||l||R||D?a.jsxRuntimeExports.jsx(ce.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:p?.title,description:p?.description},graphTitle:k,graphDescription:l,width:V,graphDownload:R?Bt:void 0,dataDownload:D?o.map(Ci).filter(wi).length>0?o.map(ji).filter(bi):o.filter(Oi):null}):null,t[6]=p?.description,t[7]=p?.title,t[8]=o,t[9]=D,t[10]=l,t[11]=R,t[12]=k,t[13]=g?.description,t[14]=g?.title,t[15]=V,t[16]=$t):$t=t[16];let qt;t[17]!==p?.colorLegend||t[18]!==mt||t[19]!==Rt||t[20]!==b||t[21]!==o||t[22]!==$||t[23]!==H||t[24]!==O||t[25]!==V?(qt=$!==!1&&o.filter(vi).length!==0&&o.length>0?a.jsxRuntimeExports.jsx(ae.ColorLegendWithMouseOver,{width:V,colorLegendTitle:Rt,colors:b||s.Colors[O].categoricalColors.colors,colorDomain:mt||Kt.uniqBy(o,"color",!0),setSelectedColor:i,showNAColor:H,className:p?.colorLegend}):null,t[17]=p?.colorLegend,t[18]=mt,t[19]=Rt,t[20]=b,t[21]=o,t[22]=$,t[23]=H,t[24]=O,t[25]=V,t[26]=qt):qt=t[26];let Tt;t[27]!==o.length?(Tt=o.length===0&&a.jsxRuntimeExports.jsx(le.EmptyState,{}),t[27]=o.length,t[28]=Tt):Tt=t[28];let Ft;t[29]!==ft||t[30]!==N||t[31]!==J||t[32]!==p||t[33]!==mt||t[34]!==b||t[35]!==ct||t[36]!==o||t[37]!==Ot||t[38]!==X||t[39]!==U||t[40]!==vt||t[41]!==C||t[42]!==nt||t[43]!==j||t[44]!==Q||t[45]!==q||t[46]!==m||t[47]!==lt||t[48]!==st||t[49]!==T||t[50]!==Y||t[51]!==W||t[52]!==S||t[53]!==At||t[54]!==ut||t[55]!==P||t[56]!==g||t[57]!==F||t[58]!==St||t[59]!==kt||t[60]!==O||t[61]!==rt||t[62]!==A||t[63]!==w?(Ft=kt&&St&&o.length>0?a.jsxRuntimeExports.jsx(ft,{data:o,width:kt,showDataMinMax:ut,height:St,colorDomain:o.filter(yi).length===0?[]:mt||Kt.uniqBy(o,"color",!0),colors:o.filter(gi).length===0?b?[b]:[s.Colors.primaryColors["blue-600"]]:b||s.Colors[O].categoricalColors.colors,selectedColor:At,radius:Y,leftMargin:nt,rightMargin:S,topMargin:A,bottomMargin:J,tooltip:rt,onSeriesMouseOver:lt,highlightedDataPoints:C,minValue:Q,maxValue:j,onSeriesMouseClick:m,prefix:T,suffix:F,stripType:P,highlightColor:vt,dotOpacity:U,resetSelectionOnDoubleClick:W,detailsOnClick:Ot,styles:g,classNames:p,valueColor:w,animate:N===!0?{duration:.5,once:!0,amount:.5}:N||{duration:0,once:!0,amount:0},noOfTicks:q,dimmedOpacity:X,precision:st,customLayers:ct}):null,t[29]=ft,t[30]=N,t[31]=J,t[32]=p,t[33]=mt,t[34]=b,t[35]=ct,t[36]=o,t[37]=Ot,t[38]=X,t[39]=U,t[40]=vt,t[41]=C,t[42]=nt,t[43]=j,t[44]=Q,t[45]=q,t[46]=m,t[47]=lt,t[48]=st,t[49]=T,t[50]=Y,t[51]=W,t[52]=S,t[53]=At,t[54]=ut,t[55]=P,t[56]=g,t[57]=F,t[58]=St,t[59]=kt,t[60]=O,t[61]=rt,t[62]=A,t[63]=w,t[64]=Ft):Ft=t[64];let Pt;t[65]!==Tt||t[66]!==Ft?(Pt=a.jsxRuntimeExports.jsxs(Qt.GraphArea,{ref:c,children:[Tt,Ft]}),t[65]=Tt,t[66]=Ft,t[67]=Pt):Pt=t[67];let Lt;t[68]!==p?.footnote||t[69]!==p?.source||t[70]!==jt||t[71]!==n||t[72]!==g?.footnote||t[73]!==g?.source||t[74]!==V?(Lt=n||jt?a.jsxRuntimeExports.jsx(se.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:n,footNote:jt,width:V}):null,t[68]=p?.footnote,t[69]=p?.source,t[70]=jt,t[71]=n,t[72]=g?.footnote,t[73]=g?.source,t[74]=V,t[75]=Lt):Lt=t[75];let Wt;return t[76]!==at||t[77]!==B||t[78]!==yt||t[79]!==f||t[80]!==L||t[81]!==G||t[82]!==ot||t[83]!==K||t[84]!==Xt||t[85]!==Yt||t[86]!==$t||t[87]!==qt||t[88]!==Pt||t[89]!==Lt||t[90]!==O||t[91]!==V?(Wt=a.jsxRuntimeExports.jsxs(Qt.GraphContainer,{className:Xt,style:Yt,id:yt,ref:Bt,"aria-label":at,backgroundColor:B,theme:O,language:L,minHeight:G,width:V,height:f,relativeHeight:K,padding:ot,children:[$t,qt,Pt,Lt]}),t[76]=at,t[77]=B,t[78]=yt,t[79]=f,t[80]=L,t[81]=G,t[82]=ot,t[83]=K,t[84]=Xt,t[85]=Yt,t[86]=$t,t[87]=qt,t[88]=Pt,t[89]=Lt,t[90]=O,t[91]=V,t[92]=Wt):Wt=t[92],Wt}function gi(e){return e.color}function yi(e){return e.color}function vi(e){return e.color}function Oi(e){return e!==void 0}function bi(e){return e!==void 0}function ji(e){return e.data}function wi(e){return e!==void 0}function Ci(e){return e.data}exports.StripChart=di;
|
|
2
2
|
//# sourceMappingURL=StripChart.cjs.map
|
package/dist/StripChart.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StripChart.cjs","sources":["../src/Utils/getTickPosition.ts","../src/Components/Graphs/StripChart/Graph.tsx","../src/Components/Graphs/StripChart/index.tsx"],"sourcesContent":["export function getTickPositions(count: number, width: number) {\r\n if (count < 2) return [];\r\n const step = width / (count - 1);\r\n return Array.from({ length: count }, (_, i) => i * step);\r\n}\r\n","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\nimport orderBy from 'lodash.orderby';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n StripChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { getTickPositions } from '@/Utils/getTickPosition';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: StripChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\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 // 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 prefix: string;\r\n suffix: string;\r\n stripType: 'strip' | 'dot';\r\n highlightColor?: string;\r\n dotOpacity: number;\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 valueColor?: string;\r\n animate: AnimateDataType;\r\n noOfTicks: number;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function VerticalGraph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin = 20,\r\n rightMargin = 20,\r\n topMargin = 10,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n noOfTicks,\r\n prefix,\r\n suffix,\r\n stripType,\r\n highlightColor,\r\n dotOpacity,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n valueColor,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // 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\r\n const dataWithId = data.map((d, i) => ({ ...d, id: `${i}` }));\r\n\r\n const sortedData = orderBy(\r\n dataWithId,\r\n [\r\n item => {\r\n const index = (highlightedDataPoints || []).indexOf(item.label);\r\n return index === -1 ? Infinity : index;\r\n },\r\n ],\r\n ['desc'],\r\n );\r\n const yMaxValue = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) < 0\r\n ? 0\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const yMinValue = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) >= 0\r\n ? 0\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const y = scaleLinear().domain([yMinValue, yMaxValue]).range([graphHeight, 0]).nice();\r\n const ticks = getTickPositions(noOfTicks, graphHeight);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {sortedData.map(d => {\r\n return (\r\n <motion.g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: graphWidth / 2,\r\n y: y(0),\r\n },\r\n whileInView: {\r\n x: graphWidth / 2,\r\n y: y(d.position),\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 0.95\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.95\r\n : dimmedOpacity\r\n : dotOpacity,\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 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 onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n >\r\n {stripType === 'dot' ? (\r\n <motion.circle\r\n cy={0}\r\n cx={0}\r\n variants={{\r\n initial: {\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 r={radius}\r\n />\r\n ) : (\r\n <motion.rect\r\n y={-1}\r\n height={2}\r\n variants={{\r\n initial: {\r\n x: 0 - radius,\r\n width: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 x: 0 - radius,\r\n width: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 />\r\n )}\r\n {highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n y={0}\r\n dy='0.33em'\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'start',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value text-sm font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n </motion.g>\r\n );\r\n })}\r\n {ticks.map((tick, i) => (\r\n <text\r\n key={i}\r\n y={tick}\r\n x={graphWidth / 2 + radius + 5}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-550 dark:fill-primary-gray-500 text-xs',\r\n classNames?.yAxis?.labels,\r\n )}\r\n >\r\n {numberFormattingFunction(y.invert(tick), 'NA', precision, prefix, suffix)}\r\n </text>\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\r\nexport function HorizontalGraph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin = 5,\r\n rightMargin = 5,\r\n topMargin = 10,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n prefix,\r\n suffix,\r\n stripType,\r\n highlightColor,\r\n dotOpacity,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n valueColor,\r\n animate,\r\n noOfTicks,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // 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\r\n const dataWithId = data.map((d, i) => ({ ...d, id: `${i}` }));\r\n\r\n const sortedData = orderBy(\r\n dataWithId,\r\n [\r\n item => {\r\n const index = (highlightedDataPoints || []).indexOf(item.label);\r\n return index === -1 ? Infinity : index;\r\n },\r\n ],\r\n ['desc'],\r\n );\r\n const xMaxValue = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) < 0\r\n ? 0\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const xMinValue = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) >= 0\r\n ? 0\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const x = scaleLinear().domain([xMinValue, xMaxValue]).range([0, graphWidth]).nice();\r\n const ticks = getTickPositions(noOfTicks, graphWidth);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {sortedData.map(d => {\r\n return (\r\n <motion.g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: x(0),\r\n y: graphHeight / 2,\r\n },\r\n whileInView: {\r\n x: x(d.position),\r\n y: graphHeight / 2,\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 0.95\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.95\r\n : dimmedOpacity\r\n : dotOpacity,\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 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 onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n >\r\n {stripType === 'dot' ? (\r\n <motion.circle\r\n cy={0}\r\n cx={0}\r\n variants={{\r\n initial: {\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 r={radius}\r\n />\r\n ) : (\r\n <motion.rect\r\n x={-1}\r\n width={2}\r\n variants={{\r\n initial: {\r\n y: 0 - radius,\r\n height: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 y: 0 - radius,\r\n height: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 />\r\n )}\r\n {highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n x={0}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value text-sm font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n </motion.g>\r\n );\r\n })}\r\n {ticks.map((tick, i) => (\r\n <text\r\n key={i}\r\n x={tick}\r\n y={graphHeight / 2 + radius}\r\n style={{\r\n textAnchor: i === 0 ? 'start' : i === ticks.length - 1 ? 'end' : 'middle',\r\n ...(styles?.xAxis?.labels || {}),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-550 dark:fill-primary-gray-500 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n dy='1em'\r\n >\r\n {numberFormattingFunction(x.invert(tick), 'NA', precision, prefix, suffix)}\r\n </text>\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 { useEffect, useRef, useState } from 'react';\r\n\r\nimport { HorizontalGraph, VerticalGraph } from './Graph';\r\n\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport {\r\n SourcesDataType,\r\n Languages,\r\n StripChartDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: StripChartDataType[];\r\n\r\n /** Orientation of the graph */\r\n orientation?: 'vertical' | 'horizontal';\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 /** Color of the highlighted data points */\r\n highlightColor?: 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 /** Color of value labels */\r\n valueColor?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Number of ticks on the axis */\r\n noOfTicks?: number;\r\n /** Radius of the dots or width of the strips */\r\n radius?: number;\r\n /** Opacity of each dot or strip */\r\n dotOpacity?: number;\r\n /** Type of strip */\r\n stripType?: 'strip' | 'dot';\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 /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** 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 StripChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n padding,\r\n backgroundColor = false,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\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 noOfTicks = 2,\r\n graphDownload = false,\r\n dataDownload = false,\r\n prefix = '',\r\n suffix = '',\r\n stripType = 'dot',\r\n language = 'en',\r\n highlightColor,\r\n dotOpacity = 0.3,\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n valueColor,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n orientation = 'vertical',\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n } = props;\r\n\r\n const Comp = orientation === 'horizontal' ? HorizontalGraph : VerticalGraph;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale !== false && 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 <Comp\r\n data={data}\r\n width={svgWidth}\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 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 prefix={prefix}\r\n suffix={suffix}\r\n stripType={stripType}\r\n highlightColor={highlightColor}\r\n dotOpacity={dotOpacity}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n valueColor={valueColor}\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 noOfTicks={noOfTicks}\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["getTickPositions","count","width","step","Array","from","length","_","i","VerticalGraph","props","$","_c","data","height","colors","colorDomain","radius","leftMargin","t0","rightMargin","t1","topMargin","t2","bottomMargin","t3","tooltip","onSeriesMouseOver","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","noOfTicks","prefix","suffix","stripType","highlightColor","dotOpacity","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","valueColor","animate","dimmedOpacity","precision","customLayers","undefined","svgRef","useRef","t4","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t5","top","bottom","left","right","margin","graphWidth","graphHeight","T0","T1","t10","t11","t12","t13","t14","t6","t7","t8","t9","duration","graphObjectValues","yAxis","labels","dataWithId","map","_temp","t15","item","index","indexOf","label","Infinity","sortedData","orderBy","t16","checkIfNullOrUndefined","Math","max","filter","_temp2","_temp3","_temp4","_temp5","yMaxValue","t17","min","_temp6","_temp7","_temp8","_temp9","yMinValue","y","scaleLinear","domain","range","nice","ticks","motion","svg","_temp0","_temp1","AnimatePresence","d_10","jsxs","initial","opacity","x","whileInView","d","position","color","transition","event","clientY","clientX","isEqual","event_0","fill","_temp10","Colors","gray","_temp11","_temp12","_temp13","jsx","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","_temp21","textAnchor","cn","numberFormattingFunction","tick","i_0","invert","_temp22","_temp23","t18","t19","Tooltip","t20","modal","DetailsModal","t21","Fragment","d_12","layer","d_11","el_10","el","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_9","d_8","d_5","d_4","d_7","d_6","d_1","d_0","d_3","d_2","id","HorizontalGraph","xAxis","_temp24","_temp25","_temp26","_temp27","_temp28","xMaxValue","_temp29","_temp30","_temp31","_temp32","xMinValue","_temp33","_temp34","_temp35","_temp36","_temp37","_temp38","_temp39","_temp40","_temp41","_temp42","_temp43","_temp44","_temp45","_temp46","_temp47","_temp48","StripChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","language","showNAColor","minHeight","theme","ariaLabel","orientation","t22","Comp","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","t23","t24","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","t25","graphContainer","t26","t27","description","title","GraphHeader","t28","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","t29","EmptyState","t30","primaryColors","t31","GraphArea","t32","footnote","source","GraphFooter","t33","GraphContainer"],"mappings":"qyBAAO,SAASA,GAAiBC,EAAeC,EAAe,CAC7D,GAAID,EAAQ,EAAG,MAAO,CAAA,EACtB,MAAME,EAAOD,GAASD,EAAQ,GAC9B,OAAOG,MAAMC,KAAK,CAAEC,OAAQL,CAAAA,EAAS,CAACM,EAAGC,IAAMA,EAAIL,CAAI,CACzD,CCwDO,SAAAM,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,KAAAA,EAAAX,MAAAA,EAAAY,OAAAA,EAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAC,EAAAC,YAAAC,GAAAC,UAAAC,GAAAC,aAAAC,GAAAC,QAAAA,GAAAC,kBAAAA,EAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,EAAAC,SAAAA,EAAAC,mBAAAA,EAAAC,UAAAA,GAAAC,OAAAA,GAAAC,OAAAA,GAAAC,U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H,EAAiBtR,MAAA2O,EAAA3O,MAAAiO,EAAAjO,MAAAoO,GAAApO,MAAAG,EAAAH,MAAAuO,EAAAvO,MAAAyO,EAAAzO,MAAAgO,EAAAhO,MAAAkO,GAAAlO,MAAAoQ,GAAApQ,MAAAsQ,GAAAtQ,MAAAuQ,GAAAvQ,MAAA2Q,GAAA3Q,MAAAoR,GAAApR,MAAAsR,GAAAtR,MAAA0O,EAAA1O,MAAAT,EAAAS,MAAA0R,IAAAA,GAAA1R,EAAA,EAAA,EAlHjB0R,EAkHiB,CA1Ld,SAAApL,GAAA0E,EAAA,CAAA,OAsIyBT,EAAE3C,KAAM,CAtIjC,SAAAvB,GAAA4E,EAAA,CAAA,OAiIyBV,EAAE3C,KAAM,CAjIjC,SAAAxB,GAAAmE,EAAA,CAAA,OA8G8CA,EAAE3C,KAAM,CA9GtD,SAAA5B,GAAAwF,EAAA,CAAA,OAyG4B9D,IAAMrF,MAAS,CAzG3C,SAAA0D,GAAA0F,EAAA,CAAA,OAwG6C/D,IAAMrF,MAAS,CAxG5D,SAAAyD,GAAA4B,EAAA,CAAA,OAwGyBA,EAACxH,IAAK,CAxG/B,SAAA2F,GAAA6F,EAAA,CAAA,OAuG2ChE,IAAMrF,MAAS,CAvG1D,SAAA0C,GAAA4G,EAAA,CAAA,OAuGuBjE,EAACxH,IAAK"}
|
|
1
|
+
{"version":3,"file":"StripChart.cjs","sources":["../src/Utils/getTickPosition.ts","../src/Components/Graphs/StripChart/Graph.tsx","../src/Components/Graphs/StripChart/index.tsx"],"sourcesContent":["export function getTickPositions(count: number, width: number) {\r\n if (count < 2) return [];\r\n const step = width / (count - 1);\r\n return Array.from({ length: count }, (_, i) => i * step);\r\n}\r\n","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\nimport orderBy from 'lodash.orderby';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n StripChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { getTickPositions } from '@/Utils/getTickPosition';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: StripChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\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 showDataMinMax: boolean;\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 prefix: string;\r\n suffix: string;\r\n stripType: 'strip' | 'dot';\r\n highlightColor?: string;\r\n dotOpacity: number;\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 valueColor?: string;\r\n animate: AnimateDataType;\r\n noOfTicks: number;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function VerticalGraph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin = 20,\r\n rightMargin = 20,\r\n topMargin = 10,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n noOfTicks,\r\n prefix,\r\n suffix,\r\n stripType,\r\n highlightColor,\r\n dotOpacity,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n valueColor,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n showDataMinMax,\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\r\n const dataWithId = data.map((d, i) => ({ ...d, id: `${i}` }));\r\n\r\n const sortedData = orderBy(\r\n dataWithId,\r\n [\r\n item => {\r\n const index = (highlightedDataPoints || []).indexOf(item.label);\r\n return index === -1 ? Infinity : index;\r\n },\r\n ],\r\n ['desc'],\r\n );\r\n const yMaxValue = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) < 0\r\n ? 0\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const yMinValue = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) >= 0\r\n ? 0\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const y = scaleLinear().domain([yMinValue, yMaxValue]).range([graphHeight, 0]).nice();\r\n const ticks = getTickPositions(noOfTicks, graphHeight);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {sortedData.map(d => {\r\n return (\r\n <motion.g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: graphWidth / 2,\r\n y: y(0),\r\n },\r\n whileInView: {\r\n x: graphWidth / 2,\r\n y: y(d.position),\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 0.95\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.95\r\n : dimmedOpacity\r\n : dotOpacity,\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 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 onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n >\r\n {stripType === 'dot' ? (\r\n <motion.circle\r\n cy={0}\r\n cx={0}\r\n variants={{\r\n initial: {\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 r={radius}\r\n />\r\n ) : (\r\n <motion.rect\r\n y={-1}\r\n height={2}\r\n variants={{\r\n initial: {\r\n x: 0 - radius,\r\n width: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 x: 0 - radius,\r\n width: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 />\r\n )}\r\n {highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n y={0}\r\n dy='0.33em'\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'start',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value text-sm font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n </motion.g>\r\n );\r\n })}\r\n {showDataMinMax\r\n ? [sortedData[0], sortedData[sortedData.length - 1]].map((d, i) => (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: graphWidth / 2,\r\n y: y(0),\r\n },\r\n whileInView: {\r\n x: graphWidth / 2,\r\n y: y(d.position),\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\n <motion.text\r\n key={i}\r\n y={0}\r\n dy='0.33em'\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n x: 0 + radius + 3,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'start',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn('graph-value text-sm', classNames?.graphObjectValues)}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n </motion.g>\r\n ))\r\n : null}\r\n {ticks.map((tick, i) => (\r\n <text\r\n key={i}\r\n y={tick}\r\n x={graphWidth / 2 + radius + 5}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-550 dark:fill-primary-gray-500 text-xs',\r\n classNames?.yAxis?.labels,\r\n )}\r\n >\r\n {numberFormattingFunction(y.invert(tick), 'NA', precision, prefix, suffix)}\r\n </text>\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\r\nexport function HorizontalGraph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin = 5,\r\n rightMargin = 5,\r\n topMargin = 10,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n prefix,\r\n suffix,\r\n stripType,\r\n highlightColor,\r\n dotOpacity,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n valueColor,\r\n animate,\r\n noOfTicks,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n showDataMinMax,\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\r\n const dataWithId = data.map((d, i) => ({ ...d, id: `${i}` }));\r\n\r\n const sortedData = orderBy(\r\n dataWithId,\r\n [\r\n item => {\r\n const index = (highlightedDataPoints || []).indexOf(item.label);\r\n return index === -1 ? Infinity : index;\r\n },\r\n ],\r\n ['desc'],\r\n );\r\n const xMaxValue = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) < 0\r\n ? 0\r\n : Math.max(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const xMinValue = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position)) >= 0\r\n ? 0\r\n : Math.min(...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position));\r\n const x = scaleLinear().domain([xMinValue, xMaxValue]).range([0, graphWidth]).nice();\r\n const ticks = getTickPositions(noOfTicks, graphWidth);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {sortedData.map(d => {\r\n return (\r\n <motion.g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: x(0),\r\n y: graphHeight / 2,\r\n },\r\n whileInView: {\r\n x: x(d.position),\r\n y: graphHeight / 2,\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 0.95\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.95\r\n : dimmedOpacity\r\n : dotOpacity,\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 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 onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n >\r\n {stripType === 'dot' ? (\r\n <motion.circle\r\n cy={0}\r\n cx={0}\r\n variants={{\r\n initial: {\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 r={radius}\r\n />\r\n ) : (\r\n <motion.rect\r\n x={-1}\r\n width={2}\r\n variants={{\r\n initial: {\r\n y: 0 - radius,\r\n height: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 y: 0 - radius,\r\n height: radius * 2,\r\n fill:\r\n highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 />\r\n )}\r\n {highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n x={0}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn(\r\n 'graph-value text-sm font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n </motion.g>\r\n );\r\n })}\r\n {showDataMinMax\r\n ? [sortedData[0], sortedData[sortedData.length - 1]].map((d, i) => (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: x(0),\r\n y: graphHeight / 2,\r\n },\r\n whileInView: {\r\n x: x(d.position),\r\n y: graphHeight / 2,\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\n <motion.text\r\n x={0}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 opacity: 1,\r\n y: 0 - radius - 5,\r\n fill:\r\n valueColor ||\r\n (highlightColor && highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? highlightColor\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 : 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 style={{\r\n textAnchor: 'middle',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n className={cn('graph-value text-sm', classNames?.graphObjectValues)}\r\n >\r\n {numberFormattingFunction(d.position, 'NA', precision, prefix, suffix)}\r\n </motion.text>\r\n </motion.g>\r\n ))\r\n : null}\r\n {ticks.map((tick, i) => (\r\n <text\r\n key={i}\r\n x={tick}\r\n y={graphHeight / 2 + radius}\r\n style={{\r\n textAnchor: i === 0 ? 'start' : i === ticks.length - 1 ? 'end' : 'middle',\r\n ...(styles?.xAxis?.labels || {}),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-550 dark:fill-primary-gray-500 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n dy='1em'\r\n >\r\n {numberFormattingFunction(x.invert(tick), 'NA', precision, prefix, suffix)}\r\n </text>\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 { useEffect, useRef, useState } from 'react';\r\n\r\nimport { HorizontalGraph, VerticalGraph } from './Graph';\r\n\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport {\r\n SourcesDataType,\r\n Languages,\r\n StripChartDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: StripChartDataType[];\r\n\r\n /** Orientation of the graph */\r\n orientation?: 'vertical' | 'horizontal';\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 /** Color of the highlighted data points */\r\n highlightColor?: 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 /** Color of value labels */\r\n valueColor?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Number of ticks on the axis */\r\n noOfTicks?: number;\r\n /** Radius of the dots or width of the strips */\r\n radius?: number;\r\n /** Opacity of each dot or strip */\r\n dotOpacity?: number;\r\n /** Type of strip */\r\n stripType?: 'strip' | 'dot';\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 /** Toggles if the graph show the min and max value of the data. */\r\n showDataMinMax?: boolean;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** 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 StripChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n padding,\r\n backgroundColor = false,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\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 noOfTicks = 2,\r\n graphDownload = false,\r\n dataDownload = false,\r\n prefix = '',\r\n suffix = '',\r\n stripType = 'dot',\r\n language = 'en',\r\n highlightColor,\r\n dotOpacity = 0.3,\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n valueColor,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n orientation = 'vertical',\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n showDataMinMax = false,\r\n } = props;\r\n\r\n const Comp = orientation === 'horizontal' ? HorizontalGraph : VerticalGraph;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale !== false && 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 <Comp\r\n data={data}\r\n width={svgWidth}\r\n showDataMinMax={showDataMinMax}\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 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 prefix={prefix}\r\n suffix={suffix}\r\n stripType={stripType}\r\n highlightColor={highlightColor}\r\n dotOpacity={dotOpacity}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n valueColor={valueColor}\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 noOfTicks={noOfTicks}\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["getTickPositions","count","width","step","Array","from","length","_","i","VerticalGraph","props","$","_c","data","height","colors","colorDomain","radius","leftMargin","t0","rightMargin","t1","topMargin","t2","bottomMargin","t3","tooltip","onSeriesMouseOver","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","noOfTicks","prefix","suffix","stripType","highlightColor","dotOpacity","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","valueColor","animate","dimmedOpacity","precision","customLayers","showDataMinMax","undefined","svgRef","useRef","t4","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t5","top","bottom","left","right","margin","graphWidth","graphHeight","T0","T1","t10","t11","t12","t13","t14","t15","t6","t7","t8","t9","duration","graphObjectValues","yAxis","labels","dataWithId","map","_temp","t16","item","index","indexOf","label","Infinity","sortedData","orderBy","t17","checkIfNullOrUndefined","Math","max","filter","_temp2","_temp3","_temp4","_temp5","yMaxValue","t18","min","_temp6","_temp7","_temp8","_temp9","yMinValue","y","scaleLinear","domain","range","nice","ticks","motion","svg","_temp0","_temp1","AnimatePresence","d_10","jsxs","initial","opacity","x","whileInView","d","position","color","transition","event","clientY","clientX","isEqual","event_0","fill","_temp10","Colors","gray","_temp11","_temp12","_temp13","jsx","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","_temp21","textAnchor","cn","numberFormattingFunction","d_11","i_0","_temp22","_temp23","_temp24","_temp25","tick","i_1","invert","_temp26","_temp27","t19","t20","Tooltip","t21","modal","DetailsModal","t22","Fragment","d_13","layer","d_12","el_14","el","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_9","d_8","d_5","d_4","d_7","d_6","d_1","d_0","d_3","d_2","id","HorizontalGraph","xAxis","_temp28","_temp29","_temp30","_temp31","_temp32","xMaxValue","_temp33","_temp34","_temp35","_temp36","xMinValue","_temp37","_temp38","_temp39","_temp40","_temp41","_temp42","_temp43","_temp44","_temp45","_temp46","_temp47","_temp48","_temp49","_temp50","_temp51","_temp52","_temp53","_temp54","_temp55","_temp56","StripChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","language","showNAColor","minHeight","theme","ariaLabel","orientation","t23","Comp","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","t24","t25","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","t26","graphContainer","t27","t28","description","title","GraphHeader","t29","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","t30","EmptyState","t31","primaryColors","t32","GraphArea","t33","footnote","source","GraphFooter","t34","GraphContainer"],"mappings":"qyBAAO,SAASA,GAAiBC,EAAeC,EAAe,CAC7D,GAAID,EAAQ,EAAG,MAAO,CAAA,EACtB,MAAME,EAAOD,GAASD,EAAQ,GAC9B,OAAOG,MAAMC,KAAK,CAAEC,OAAQL,CAAAA,EAAS,CAACM,EAAGC,IAAMA,EAAIL,CAAI,CACzD,CCyDO,SAAAM,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAX,MAAAA,EAAAY,OAAAA,EAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAC,EAAAC,YAAAC,GAAAC,UAAAC,GAAAC,aAAAC,GAAAC,QAAAA,GAAAC,kBAAAA,GAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,EAAAC,SAAAA,EAAAC,mBAAAA,EAAAC,UAAAA,GAAAC,OAAAA,EAAAC,OAAAA,GAAAC,UAAAA,EAAAC,eAAAA,EAAAC,WAAAA,GAAAC,4BAAAA,EAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,cAAAA,EAAAC,UAAAA,GAAAC,aAAAA,EAAAC,eAAAA,EAAAA,EAkCItC,EA3BFQ,GAAAC,IAAA8B,OAAA,GAAA9B,EACAC,GAAAC,KAAA4B,OAAA,GAAA5B,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AK,CAzG/B,SAAA6F,GAAAuG,EAAA,CAAA,OAwG2C1E,IAAMtF,MAAS,CAxG1D,SAAA2C,GAAAsH,EAAA,CAAA,OAwGuB3E,EAAC1H,IAAK"}
|
package/dist/StripChart.d.ts
CHANGED
|
@@ -121,6 +121,8 @@ declare interface Props {
|
|
|
121
121
|
dimmedOpacity?: number;
|
|
122
122
|
/** Toggles if the graph animates in when loaded. */
|
|
123
123
|
animate?: boolean | AnimateDataType;
|
|
124
|
+
/** Toggles if the graph show the min and max value of the data. */
|
|
125
|
+
showDataMinMax?: boolean;
|
|
124
126
|
/** Specifies the number of decimal places to display in the value. */
|
|
125
127
|
precision?: number;
|
|
126
128
|
/** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
|