@undp/data-viz 2.3.13 → 2.3.14
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/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +330 -334
- package/dist/StripChart.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/StripChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-6v2a2njQ.cjs"),z=require("react"),Zt=require("./index-DQA8q5sC.cjs"),_t=require("./index-Cno4Q0YE.cjs"),te=require("./Tooltip-BLa2EfMs.cjs"),J=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Lt=require("./numberFormattingFunction-02t-wJta.cjs"),x=require("./Colors.cjs"),ee=require("./DetailsModal-DIRTulvr.cjs"),ie=require("./linear-CgUCbw9F.cjs"),ot=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},(D,v)=>v*o)}function ue(e){const t=l.compilerRuntimeExports.c(101),{data:o,width:D,height:v,colors:n,colorDomain:a,radius:c,leftMargin:V,rightMargin:bt,topMargin:mt,bottomMargin:Et,tooltip:xt,onSeriesMouseOver:nt,highlightedDataPoints:r,selectedColor:rt,minValue:S,maxValue:A,onSeriesMouseClick:K,noOfTicks:lt,prefix:Q,suffix:at,stripType:b,highlightColor:g,dotOpacity:gt,resetSelectionOnDoubleClick:Z,detailsOnClick:O,styles:p,classNames:j,valueColor:f,animate:m,dimmedOpacity:tt,precision:et,customLayers:M,showDataMinMax:jt}=e,yt=V===void 0?20:V,wt=bt===void 0?20:bt,Ct=mt===void 0?10:mt,Mt=Et===void 0?10:Et,kt=z.useRef(null);let st;t[0]!==m.amount||t[1]!==m.once?(st={once:m.once,amount:m.amount},t[0]=m.amount,t[1]=m.once,t[2]=st):st=t[2];const w=oe.useInView(kt,st),[dt,vt]=z.useState(void 0),[I,d]=z.useState(void 0),[u,Vt]=z.useState(void 0),[ht,It]=z.useState(void 0);let it;t[3]!==Mt||t[4]!==yt||t[5]!==wt||t[6]!==Ct?(it={top:Ct,bottom:Mt,left:yt,right:wt},t[3]=Mt,t[4]=yt,t[5]=wt,t[6]=Ct,t[7]=it):it=t[7];const h=it,Y=D-h.left-h.right,B=v-h.top-h.bottom;let $,E,C,q,k,N,T,F,U,P,L,H;if(t[8]!==m.duration||t[9]!==j?.graphObjectValues||t[10]!==j?.yAxis?.labels||t[11]!==a||t[12]!==n||t[13]!==M||t[14]!==o||t[15]!==O||t[16]!==tt||t[17]!==gt||t[18]!==B||t[19]!==Y||t[20]!==v||t[21]!==g||t[22]!==r||t[23]!==w||t[24]!==h.left||t[25]!==h.top||t[26]!==A||t[27]!==S||t[28]!==I||t[29]!==lt||t[30]!==K||t[31]!==nt||t[32]!==et||t[33]!==Q||t[34]!==c||t[35]!==Z||t[36]!==rt||t[37]!==jt||t[38]!==b||t[39]!==p?.graphObjectValues||t[40]!==p?.yAxis?.labels||t[41]!==at||t[42]!==f||t[43]!==D){const Nt=o.map(Ue);let ut;t[56]!==r?(ut=i=>{const s=(r||[]).indexOf(i.label);return s===-1?1/0:s},t[56]=r,t[57]=ut):ut=t[57];const At=_t.orderBy(Nt,[ut],["desc"]);let pt;t[58]!==o||t[59]!==A?(pt=J.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]=pt):pt=t[60];const Rt=pt;let Ot;t[61]!==o||t[62]!==S?(Ot=J.checkIfNullOrUndefined(S)?Math.min(...o.filter(Ae).map(Se))>=0?0:Math.min(...o.filter(De).map(Re)):S,t[61]=o,t[62]=S,t[63]=Ot):Ot=t[63];const Dt=Ot,ft=ie.linear().domain([Dt,Rt]).range([B,0]).nice(),St=re(lt,B);E=ot.motion.svg,q=`${D}px`,k=`${v}px`,N=`0 0 ${D} ${v}`,T="ltr",F=kt,H=`translate(${h.left},${h.top})`,t[64]!==M?(C=M.filter(Ne).map(ke),t[64]=M,t[65]=C):C=t[65],$=ne.AnimatePresence,U=At.map(i=>l.jsxRuntimeExports.jsxs(ot.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Y/2,y:ft(0)},whileInView:{x:Y/2,y:ft(i.position),opacity:rt?i.color&&n[a.indexOf(i.color)]===rt?.95:tt:r.length!==0?r.indexOf(i.label)!==-1?.95:tt:gt,transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},onMouseEnter:s=>{vt(i),It(s.clientY),Vt(s.clientX),nt?.(i)},onClick:()=>{(K||O)&&(Zt.isEqual(I,i)&&Z?(d(void 0),K?.(void 0)):(d(i),K?.(i)))},onMouseMove:s=>{vt(i),It(s.clientY),Vt(s.clientX)},onMouseLeave:()=>{vt(void 0),Vt(void 0),It(void 0),nt?.(void 0)},children:[b==="dot"?l.jsxRuntimeExports.jsx(ot.motion.circle,{cy:0,cx:0,variants:{initial:{fill:g&&r?r.indexOf(i.label)!==-1?g:o.filter(Ee).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(Ie).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray},whileInView:{fill:g&&r?r.indexOf(i.label)!==-1?g:o.filter(Ve).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(Me).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray,transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},r:c}):l.jsxRuntimeExports.jsx(ot.motion.rect,{y:-1,height:2,variants:{initial:{x:0-c,width:c*2,fill:g&&r?r.indexOf(i.label)!==-1?g:o.filter(Ce).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(we).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray},whileInView:{x:0-c,width:c*2,fill:g&&r?r.indexOf(i.label)!==-1?g:o.filter(je).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(be).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray,transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}}}),r.length!==0&&r.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(ot.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+c+3,fill:f||(g&&r?r.indexOf(i.label)!==-1?g:o.filter(Oe).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(ve).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray)},whileInView:{opacity:1,x:0+c+3,fill:f||(g&&r?r.indexOf(i.label)!==-1?g:o.filter(ye).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(ge).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray),transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},style:{textAnchor:"start",...p?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",j?.graphObjectValues),children:Lt.numberFormattingFunction(i.position,"NA",et,Q,at)}):null]},i.label)),P=jt?[Math.min(...o.filter(he).map(de)),Math.max(...o.filter(xe).map(me))].map((i,s)=>l.jsxRuntimeExports.jsx(ot.motion.g,{variants:{initial:{opacity:0,x:Y/2,y:ft(0)},whileInView:{x:Y/2,y:ft(i),opacity:1,transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:l.jsxRuntimeExports.jsx(ot.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+c+3},whileInView:{opacity:1,x:0+c+3,transition:{duration:m.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},style:{textAnchor:"start",...p?.graphObjectValues||{}},className:l.mo("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200",j?.graphObjectValues),children:Lt.numberFormattingFunction(i,"NA",et,Q,at)},s)},s)):null,L=St.map((i,s)=>l.jsxRuntimeExports.jsx("text",{y:i,x:Y/2+c+5,style:{textAnchor:"start",...p?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",j?.yAxis?.labels),children:Lt.numberFormattingFunction(ft.invert(i),"NA",et,Q,at)},s)),t[8]=m.duration,t[9]=j?.graphObjectValues,t[10]=j?.yAxis?.labels,t[11]=a,t[12]=n,t[13]=M,t[14]=o,t[15]=O,t[16]=tt,t[17]=gt,t[18]=B,t[19]=Y,t[20]=v,t[21]=g,t[22]=r,t[23]=w,t[24]=h.left,t[25]=h.top,t[26]=A,t[27]=S,t[28]=I,t[29]=lt,t[30]=K,t[31]=nt,t[32]=et,t[33]=Q,t[34]=c,t[35]=Z,t[36]=rt,t[37]=jt,t[38]=b,t[39]=p?.graphObjectValues,t[40]=p?.yAxis?.labels,t[41]=at,t[42]=f,t[43]=D,t[44]=$,t[45]=E,t[46]=C,t[47]=q,t[48]=k,t[49]=N,t[50]=T,t[51]=F,t[52]=U,t[53]=P,t[54]=L,t[55]=H}else $=t[44],E=t[45],C=t[46],q=t[47],k=t[48],N=t[49],T=t[50],F=t[51],U=t[52],P=t[53],L=t[54],H=t[55];let G;t[66]!==$||t[67]!==U||t[68]!==P||t[69]!==L?(G=l.jsxRuntimeExports.jsxs($,{children:[U,P,L]}),t[66]=$,t[67]=U,t[68]=P,t[69]=L,t[70]=G):G=t[70];let y;t[71]!==M?(y=M.filter(fe).map(pe),t[71]=M,t[72]=y):y=t[72];let W;t[73]!==C||t[74]!==G||t[75]!==y||t[76]!==H?(W=l.jsxRuntimeExports.jsxs("g",{transform:H,children:[C,G,y]}),t[73]=C,t[74]=G,t[75]=y,t[76]=H,t[77]=W):W=t[77];let _;t[78]!==E||t[79]!==q||t[80]!==k||t[81]!==N||t[82]!==T||t[83]!==F||t[84]!==W?(_=l.jsxRuntimeExports.jsx(E,{width:q,height:k,viewBox:N,direction:T,ref:F,children:W}),t[78]=E,t[79]=q,t[80]=k,t[81]=N,t[82]=T,t[83]=F,t[84]=W,t[85]=_):_=t[85];let R;t[86]!==j?.tooltip||t[87]!==u||t[88]!==ht||t[89]!==dt||t[90]!==p?.tooltip||t[91]!==xt?(R=dt&&xt&&u&&ht?l.jsxRuntimeExports.jsx(te.Tooltip,{data:dt,body:xt,xPos:u,yPos:ht,backgroundStyle:p?.tooltip,className:j?.tooltip}):null,t[86]=j?.tooltip,t[87]=u,t[88]=ht,t[89]=dt,t[90]=p?.tooltip,t[91]=xt,t[92]=R):R=t[92];let X;t[93]!==j?.modal||t[94]!==O||t[95]!==I?(X=O&&I!==void 0?l.jsxRuntimeExports.jsx(ee.DetailsModal,{body:O,data:I,setData:d,className:j?.modal}):null,t[93]=j?.modal,t[94]=O,t[95]=I,t[96]=X):X=t[96];let ct;return t[97]!==_||t[98]!==R||t[99]!==X?(ct=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[_,R,X]}),t[97]=_,t[98]=R,t[99]=X,t[100]=ct):ct=t[100],ct}function pe(e){return e.layer}function fe(e){return e.position==="after"}function me(e){return e.position}function xe(e){return!J.checkIfNullOrUndefined(e.position)}function de(e){return e.position}function he(e){return!J.checkIfNullOrUndefined(e.position)}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 Ie(e){return e.color}function Ee(e){return e.color}function ke(e){return e.layer}function Ne(e){return e.position==="before"}function Re(e){return e.position}function De(e){return!J.checkIfNullOrUndefined(e.position)}function Se(e){return e.position}function Ae(e){return!J.checkIfNullOrUndefined(e.position)}function $e(e){return e.position}function qe(e){return!J.checkIfNullOrUndefined(e.position)}function Te(e){return e.position}function Fe(e){return!J.checkIfNullOrUndefined(e.position)}function Ue(e,t){return{...e,id:`${t}`}}function Pe(e){const t=l.compilerRuntimeExports.c(101),{data:o,width:D,height:v,colors:n,colorDomain:a,radius:c,leftMargin:V,rightMargin:bt,topMargin:mt,bottomMargin:Et,tooltip:xt,onSeriesMouseOver:nt,highlightedDataPoints:r,selectedColor:rt,minValue:S,maxValue:A,onSeriesMouseClick:K,prefix:lt,suffix:Q,stripType:at,highlightColor:b,dotOpacity:g,resetSelectionOnDoubleClick:gt,detailsOnClick:Z,styles:O,classNames:p,valueColor:j,animate:f,noOfTicks:m,dimmedOpacity:tt,precision:et,customLayers:M,showDataMinMax:jt}=e,yt=V===void 0?5:V,wt=bt===void 0?5:bt,Ct=mt===void 0?10:mt,Mt=Et===void 0?10:Et,kt=z.useRef(null);let st;t[0]!==f.amount||t[1]!==f.once?(st={once:f.once,amount:f.amount},t[0]=f.amount,t[1]=f.once,t[2]=st):st=t[2];const w=oe.useInView(kt,st),[dt,vt]=z.useState(void 0),[I,d]=z.useState(void 0),[u,Vt]=z.useState(void 0),[ht,It]=z.useState(void 0);let it;t[3]!==Mt||t[4]!==yt||t[5]!==wt||t[6]!==Ct?(it={top:Ct,bottom:Mt,left:yt,right:wt},t[3]=Mt,t[4]=yt,t[5]=wt,t[6]=Ct,t[7]=it):it=t[7];const h=it,Y=D-h.left-h.right,B=v-h.top-h.bottom;let $,E,C,q,k,N,T,F,U,P,L,H;if(t[8]!==f.duration||t[9]!==p?.graphObjectValues||t[10]!==p?.xAxis?.labels||t[11]!==a||t[12]!==n||t[13]!==M||t[14]!==o||t[15]!==Z||t[16]!==tt||t[17]!==g||t[18]!==B||t[19]!==Y||t[20]!==v||t[21]!==b||t[22]!==r||t[23]!==w||t[24]!==h.left||t[25]!==h.top||t[26]!==A||t[27]!==S||t[28]!==I||t[29]!==m||t[30]!==K||t[31]!==nt||t[32]!==et||t[33]!==lt||t[34]!==c||t[35]!==gt||t[36]!==rt||t[37]!==jt||t[38]!==at||t[39]!==O?.graphObjectValues||t[40]!==O?.xAxis?.labels||t[41]!==Q||t[42]!==j||t[43]!==D){const Nt=o.map(di);let ut;t[56]!==r?(ut=i=>{const s=(r||[]).indexOf(i.label);return s===-1?1/0:s},t[56]=r,t[57]=ut):ut=t[57];const At=_t.orderBy(Nt,[ut],["desc"]);let pt;t[58]!==o||t[59]!==A?(pt=J.checkIfNullOrUndefined(A)?Math.max(...o.filter(xi).map(mi))<0?0:Math.max(...o.filter(fi).map(pi)):A,t[58]=o,t[59]=A,t[60]=pt):pt=t[60];const Rt=pt;let Ot;t[61]!==o||t[62]!==S?(Ot=J.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]=Ot):Ot=t[63];const Dt=Ot,ft=ie.linear().domain([Dt,Rt]).range([0,Y]).nice(),St=re(m,Y);E=ot.motion.svg,q=`${D}px`,k=`${v}px`,N=`0 0 ${D} ${v}`,T="ltr",F=kt,H=`translate(${h.left},${h.top})`,t[64]!==M?(C=M.filter(li).map(ri),t[64]=M,t[65]=C):C=t[65],$=ne.AnimatePresence,U=At.map(i=>l.jsxRuntimeExports.jsxs(ot.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:ft(0),y:B/2},whileInView:{x:ft(i.position),y:B/2,opacity:rt?i.color&&n[a.indexOf(i.color)]===rt?.95:tt:r.length!==0?r.indexOf(i.label)!==-1?.95:tt:g,transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},onMouseEnter:s=>{vt(i),It(s.clientY),Vt(s.clientX),nt?.(i)},onClick:()=>{(K||Z)&&(Zt.isEqual(I,i)&>?(d(void 0),K?.(void 0)):(d(i),K?.(i)))},onMouseMove:s=>{vt(i),It(s.clientY),Vt(s.clientX)},onMouseLeave:()=>{vt(void 0),Vt(void 0),It(void 0),nt?.(void 0)},children:[at==="dot"?l.jsxRuntimeExports.jsx(ot.motion.circle,{cy:0,cx:0,variants:{initial:{fill:b&&r?r.indexOf(i.label)!==-1?b:o.filter(ni).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(oi).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray},whileInView:{fill:b&&r?r.indexOf(i.label)!==-1?b:o.filter(ii).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(ei).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray,transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},r:c}):l.jsxRuntimeExports.jsx(ot.motion.rect,{x:-1,width:2,variants:{initial:{y:0-c,height:c*2,fill:b&&r?r.indexOf(i.label)!==-1?b:o.filter(ti).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(_e).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray},whileInView:{y:0-c,height:c*2,fill:b&&r?r.indexOf(i.label)!==-1?b:o.filter(Ze).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(Qe).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray,transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}}}),r.length!==0&&r.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(ot.motion.text,{x:0,variants:{initial:{opacity:0,y:0-c-5,fill:j||(b&&r?r.indexOf(i.label)!==-1?b:o.filter(Ke).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(Je).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray)},whileInView:{opacity:1,y:0-c-5,fill:j||(b&&r?r.indexOf(i.label)!==-1?b:o.filter(ze).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray:o.filter(Be).length===0?n[0]:i.color?n[a.indexOf(i.color)]:x.Colors.gray),transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},style:{textAnchor:"middle",...O?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",p?.graphObjectValues),children:Lt.numberFormattingFunction(i.position,"NA",et,lt,Q)}):null]},i.label)),P=jt?[Math.min(...o.filter(Ye).map(Xe)),Math.max(...o.filter(We).map(Ge))].map((i,s)=>l.jsxRuntimeExports.jsx(ot.motion.g,{variants:{initial:{opacity:0,x:ft(0),y:B/2},whileInView:{x:ft(i),y:B/2,opacity:1,transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},children:l.jsxRuntimeExports.jsx(ot.motion.text,{x:0,variants:{initial:{opacity:0,y:0-c-5},whileInView:{opacity:1,y:0-c-5,transition:{duration:f.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},style:{textAnchor:"middle",...O?.graphObjectValues||{}},className:l.mo("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200",p?.graphObjectValues),children:Lt.numberFormattingFunction(i,"NA",et,lt,Q)})},s)):null,L=St.map((i,s)=>l.jsxRuntimeExports.jsx("text",{x:i,y:B/2+c,style:{textAnchor:s===0?"start":s===St.length-1?"end":"middle",...O?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",p?.xAxis?.labels),dy:"1em",children:Lt.numberFormattingFunction(ft.invert(i),"NA",et,lt,Q)},s)),t[8]=f.duration,t[9]=p?.graphObjectValues,t[10]=p?.xAxis?.labels,t[11]=a,t[12]=n,t[13]=M,t[14]=o,t[15]=Z,t[16]=tt,t[17]=g,t[18]=B,t[19]=Y,t[20]=v,t[21]=b,t[22]=r,t[23]=w,t[24]=h.left,t[25]=h.top,t[26]=A,t[27]=S,t[28]=I,t[29]=m,t[30]=K,t[31]=nt,t[32]=et,t[33]=lt,t[34]=c,t[35]=gt,t[36]=rt,t[37]=jt,t[38]=at,t[39]=O?.graphObjectValues,t[40]=O?.xAxis?.labels,t[41]=Q,t[42]=j,t[43]=D,t[44]=$,t[45]=E,t[46]=C,t[47]=q,t[48]=k,t[49]=N,t[50]=T,t[51]=F,t[52]=U,t[53]=P,t[54]=L,t[55]=H}else $=t[44],E=t[45],C=t[46],q=t[47],k=t[48],N=t[49],T=t[50],F=t[51],U=t[52],P=t[53],L=t[54],H=t[55];let G;t[66]!==$||t[67]!==U||t[68]!==P||t[69]!==L?(G=l.jsxRuntimeExports.jsxs($,{children:[U,P,L]}),t[66]=$,t[67]=U,t[68]=P,t[69]=L,t[70]=G):G=t[70];let y;t[71]!==M?(y=M.filter(He).map(Le),t[71]=M,t[72]=y):y=t[72];let W;t[73]!==C||t[74]!==G||t[75]!==y||t[76]!==H?(W=l.jsxRuntimeExports.jsxs("g",{transform:H,children:[C,G,y]}),t[73]=C,t[74]=G,t[75]=y,t[76]=H,t[77]=W):W=t[77];let _;t[78]!==E||t[79]!==q||t[80]!==k||t[81]!==N||t[82]!==T||t[83]!==F||t[84]!==W?(_=l.jsxRuntimeExports.jsx(E,{width:q,height:k,viewBox:N,direction:T,ref:F,children:W}),t[78]=E,t[79]=q,t[80]=k,t[81]=N,t[82]=T,t[83]=F,t[84]=W,t[85]=_):_=t[85];let R;t[86]!==p?.tooltip||t[87]!==u||t[88]!==ht||t[89]!==dt||t[90]!==O?.tooltip||t[91]!==xt?(R=dt&&xt&&u&&ht?l.jsxRuntimeExports.jsx(te.Tooltip,{data:dt,body:xt,xPos:u,yPos:ht,backgroundStyle:O?.tooltip,className:p?.tooltip}):null,t[86]=p?.tooltip,t[87]=u,t[88]=ht,t[89]=dt,t[90]=O?.tooltip,t[91]=xt,t[92]=R):R=t[92];let X;t[93]!==p?.modal||t[94]!==Z||t[95]!==I?(X=Z&&I!==void 0?l.jsxRuntimeExports.jsx(ee.DetailsModal,{body:Z,data:I,setData:d,className:p?.modal}):null,t[93]=p?.modal,t[94]=Z,t[95]=I,t[96]=X):X=t[96];let ct;return t[97]!==_||t[98]!==R||t[99]!==X?(ct=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[_,R,X]}),t[97]=_,t[98]=R,t[99]=X,t[100]=ct):ct=t[100],ct}function Le(e){return e.layer}function He(e){return e.position==="after"}function Ge(e){return e.position}function We(e){return!J.checkIfNullOrUndefined(e.position)}function Xe(e){return e.position}function Ye(e){return!J.checkIfNullOrUndefined(e.position)}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!J.checkIfNullOrUndefined(e.position)}function ci(e){return e.position}function ui(e){return!J.checkIfNullOrUndefined(e.position)}function pi(e){return e.position}function fi(e){return!J.checkIfNullOrUndefined(e.position)}function mi(e){return e.position}function xi(e){return!J.checkIfNullOrUndefined(e.position)}function di(e,t){return{...e,id:`${t}`}}function hi(e){const t=l.compilerRuntimeExports.c(93),{data:o,graphTitle:D,colors:v,sources:n,graphDescription:a,height:c,width:V,footNote:bt,colorDomain:mt,colorLegendTitle:Et,radius:xt,padding:nt,backgroundColor:r,leftMargin:rt,rightMargin:S,topMargin:A,bottomMargin:K,tooltip:lt,relativeHeight:Q,onSeriesMouseOver:at,showColorScale:b,highlightedDataPoints:g,graphID:gt,minValue:Z,maxValue:O,onSeriesMouseClick:p,noOfTicks:j,graphDownload:f,dataDownload:m,prefix:tt,suffix:et,stripType:M,language:jt,highlightColor:yt,dotOpacity:wt,showNAColor:Ct,minHeight:Mt,theme:kt,ariaLabel:st,valueColor:w,resetSelectionOnDoubleClick:dt,detailsOnClick:vt,orientation:I,styles:d,classNames:u,animate:Vt,dimmedOpacity:ht,precision:It,customLayers:it,showDataMinMax:h}=e,Y=xt===void 0?5:xt,B=r===void 0?!1:r,$=b===void 0?!0:b;let E;t[0]!==g?(E=g===void 0?[]:g,t[0]=g,t[1]=E):E=t[1];const C=E,q=j===void 0?2:j,k=f===void 0?!1:f,N=m===void 0?!1:m,T=tt===void 0?"":tt,F=et===void 0?"":et,U=M===void 0?"dot":M,P=jt===void 0?"en":jt,L=wt===void 0?.3:wt,H=Ct===void 0?!0:Ct,G=Mt===void 0?0:Mt,y=kt===void 0?"light":kt,W=dt===void 0?!0:dt,_=I===void 0?"vertical":I,R=Vt===void 0?!1:Vt,X=ht===void 0?.3:ht,ct=It===void 0?2:It;let Nt;t[2]!==it?(Nt=it===void 0?[]:it,t[2]=it,t[3]=Nt):Nt=t[3];const ut=Nt,At=h===void 0?!1:h,pt=_==="horizontal"?Pe:ue,[Rt,Ot]=z.useState(0),[Dt,ft]=z.useState(0),[St,i]=z.useState(void 0),s=z.useRef(null),Bt=z.useRef(null);let Ht,Gt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Ht=()=>{const zt=new ResizeObserver(Jt=>{Ot(Jt[0].target.clientWidth||620),ft(Jt[0].target.clientHeight||480)});return s.current&&zt.observe(s.current),()=>zt.disconnect()},Gt=[],t[4]=Ht,t[5]=Gt):(Ht=t[4],Gt=t[5]),z.useEffect(Ht,Gt);const Xt=u?.graphContainer,Yt=d?.graphContainer;let $t;t[6]!==u?.description||t[7]!==u?.title||t[8]!==o||t[9]!==N||t[10]!==a||t[11]!==k||t[12]!==D||t[13]!==d?.description||t[14]!==d?.title||t[15]!==V?($t=D||a||k||N?l.jsxRuntimeExports.jsx(ce.GraphHeader,{styles:{title:d?.title,description:d?.description},classNames:{title:u?.title,description:u?.description},graphTitle:D,graphDescription:a,width:V,graphDownload:k?Bt:void 0,dataDownload:N?o.map(Ci).filter(wi).length>0?o.map(ji).filter(bi):o.filter(Oi):null}):null,t[6]=u?.description,t[7]=u?.title,t[8]=o,t[9]=N,t[10]=a,t[11]=k,t[12]=D,t[13]=d?.description,t[14]=d?.title,t[15]=V,t[16]=$t):$t=t[16];let qt;t[17]!==u?.colorLegend||t[18]!==mt||t[19]!==Et||t[20]!==v||t[21]!==o||t[22]!==$||t[23]!==H||t[24]!==y||t[25]!==V?(qt=$!==!1&&o.filter(vi).length!==0&&o.length>0?l.jsxRuntimeExports.jsx(ae.ColorLegendWithMouseOver,{width:V,colorLegendTitle:Et,colors:v||x.Colors[y].categoricalColors.colors,colorDomain:mt||Kt.uniqBy(o,"color",!0),setSelectedColor:i,showNAColor:H,className:u?.colorLegend}):null,t[17]=u?.colorLegend,t[18]=mt,t[19]=Et,t[20]=v,t[21]=o,t[22]=$,t[23]=H,t[24]=y,t[25]=V,t[26]=qt):qt=t[26];let Tt;t[27]!==o.length?(Tt=o.length===0&&l.jsxRuntimeExports.jsx(le.EmptyState,{}),t[27]=o.length,t[28]=Tt):Tt=t[28];let Ft;t[29]!==pt||t[30]!==R||t[31]!==K||t[32]!==u||t[33]!==mt||t[34]!==v||t[35]!==ut||t[36]!==o||t[37]!==vt||t[38]!==X||t[39]!==L||t[40]!==yt||t[41]!==C||t[42]!==rt||t[43]!==O||t[44]!==Z||t[45]!==q||t[46]!==p||t[47]!==at||t[48]!==ct||t[49]!==T||t[50]!==Y||t[51]!==W||t[52]!==S||t[53]!==St||t[54]!==At||t[55]!==U||t[56]!==d||t[57]!==F||t[58]!==Dt||t[59]!==Rt||t[60]!==y||t[61]!==lt||t[62]!==A||t[63]!==w?(Ft=Rt&&Dt&&o.length>0?l.jsxRuntimeExports.jsx(pt,{data:o,width:Rt,showDataMinMax:At,height:Dt,colorDomain:o.filter(yi).length===0?[]:mt||Kt.uniqBy(o,"color",!0),colors:o.filter(gi).length===0?v?[v]:[x.Colors.primaryColors["blue-600"]]:v||x.Colors[y].categoricalColors.colors,selectedColor:St,radius:Y,leftMargin:rt,rightMargin:S,topMargin:A,bottomMargin:K,tooltip:lt,onSeriesMouseOver:at,highlightedDataPoints:C,minValue:Z,maxValue:O,onSeriesMouseClick:p,prefix:T,suffix:F,stripType:U,highlightColor:yt,dotOpacity:L,resetSelectionOnDoubleClick:W,detailsOnClick:vt,styles:d,classNames:u,valueColor:w,animate:R===!0?{duration:.5,once:!0,amount:.5}:R||{duration:0,once:!0,amount:0},noOfTicks:q,dimmedOpacity:X,precision:ct,customLayers:ut}):null,t[29]=pt,t[30]=R,t[31]=K,t[32]=u,t[33]=mt,t[34]=v,t[35]=ut,t[36]=o,t[37]=vt,t[38]=X,t[39]=L,t[40]=yt,t[41]=C,t[42]=rt,t[43]=O,t[44]=Z,t[45]=q,t[46]=p,t[47]=at,t[48]=ct,t[49]=T,t[50]=Y,t[51]=W,t[52]=S,t[53]=St,t[54]=At,t[55]=U,t[56]=d,t[57]=F,t[58]=Dt,t[59]=Rt,t[60]=y,t[61]=lt,t[62]=A,t[63]=w,t[64]=Ft):Ft=t[64];let Ut;t[65]!==Tt||t[66]!==Ft?(Ut=l.jsxRuntimeExports.jsxs(Qt.GraphArea,{ref:s,children:[Tt,Ft]}),t[65]=Tt,t[66]=Ft,t[67]=Ut):Ut=t[67];let Pt;t[68]!==u?.footnote||t[69]!==u?.source||t[70]!==bt||t[71]!==n||t[72]!==d?.footnote||t[73]!==d?.source||t[74]!==V?(Pt=n||bt?l.jsxRuntimeExports.jsx(se.GraphFooter,{styles:{footnote:d?.footnote,source:d?.source},classNames:{footnote:u?.footnote,source:u?.source},sources:n,footNote:bt,width:V}):null,t[68]=u?.footnote,t[69]=u?.source,t[70]=bt,t[71]=n,t[72]=d?.footnote,t[73]=d?.source,t[74]=V,t[75]=Pt):Pt=t[75];let Wt;return t[76]!==st||t[77]!==B||t[78]!==gt||t[79]!==c||t[80]!==P||t[81]!==G||t[82]!==nt||t[83]!==Q||t[84]!==Xt||t[85]!==Yt||t[86]!==$t||t[87]!==qt||t[88]!==Ut||t[89]!==Pt||t[90]!==y||t[91]!==V?(Wt=l.jsxRuntimeExports.jsxs(Qt.GraphContainer,{className:Xt,style:Yt,id:gt,ref:Bt,"aria-label":st,backgroundColor:B,theme:y,language:P,minHeight:G,width:V,height:c,relativeHeight:Q,padding:nt,children:[$t,qt,Ut,Pt]}),t[76]=st,t[77]=B,t[78]=gt,t[79]=c,t[80]=P,t[81]=G,t[82]=nt,t[83]=Q,t[84]=Xt,t[85]=Yt,t[86]=$t,t[87]=qt,t[88]=Ut,t[89]=Pt,t[90]=y,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=hi;
|
|
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 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,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ACCY,OAAAA,EACQ+O,eAAAA,EACPF,QAAAA,GAERuC,SAAAA,CAAAA,GAuBAI,GAWDS,GAsDCE,EAAAA,EAYH,EAAiBtS,MAAA2P,GAAA3P,MAAAiP,EAAAjP,MAAAoP,GAAApP,MAAAG,EAAAH,MAAAuP,EAAAvP,MAAAyP,EAAAzP,MAAAgP,GAAAhP,MAAAkP,EAAAlP,MAAAoR,GAAApR,MAAAsR,GAAAtR,MAAAuR,GAAAvR,MAAA2R,GAAA3R,MAAAoS,GAAApS,MAAAsS,GAAAtS,MAAA0P,EAAA1P,MAAAT,EAAAS,MAAA0S,IAAAA,GAAA1S,EAAA,EAAA,EAnHjB0S,EAmHiB,CA5Ld,SAAAlM,GAAAoF,EAAA,CAAA,OAwIyBb,EAAEjD,KAAM,CAxIjC,SAAAvB,GAAAsF,EAAA,CAAA,OAmIyBd,EAAEjD,KAAM,CAnIjC,SAAAxB,GAAAyE,EAAA,CAAA,OA+G8CA,EAAEjD,KAAM,CA/GtD,SAAA5B,GAAAkG,EAAA,CAAA,OA0G4BxE,IAAMtF,MAAS,CA1G3C,SAAA2D,GAAAoG,EAAA,CAAA,OAyG6CzE,IAAMtF,MAAS,CAzG5D,SAAA0D,GAAA4B,EAAA,CAAA,OAyGyBA,EAAC1H,IAAK,CAzG/B,SAAA6F,GAAAuG,EAAA,CAAA,OAwG2C1E,IAAMtF,MAAS,CAxG1D,SAAA2C,GAAAsH,EAAA,CAAA,OAwGuB3E,EAAC1H,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 ? [\r\n Math.min(\r\n ...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position),\r\n ),\r\n Math.max(\r\n ...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position),\r\n ),\r\n ].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),\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 },\r\n whileInView: {\r\n opacity: 1,\r\n x: 0 + radius + 3,\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 text-primary-gray-550 dark:text-primary-gray-200',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d, '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 ? [\r\n Math.min(\r\n ...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position),\r\n ),\r\n Math.max(\r\n ...data.filter(d => !checkIfNullOrUndefined(d.position)).map(d => d.position),\r\n ),\r\n ].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),\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 },\r\n whileInView: {\r\n opacity: 1,\r\n y: 0 - radius - 5,\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 text-primary-gray-550 dark:text-primary-gray-200',\r\n classNames?.graphObjectValues,\r\n )}\r\n >\r\n {numberFormattingFunction(d, '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","_temp22","_temp23","_temp24","_temp25","d_15","i_0","tick","i_1","invert","_temp26","_temp27","t19","t20","Tooltip","t21","modal","DetailsModal","t22","Fragment","d_17","layer","d_16","d_14","d_13","d_12","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","_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":"oyBAAO,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,OA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