@undp/data-viz 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +298 -287
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +404 -397
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.js +42 -39
  31. package/dist/DonutChart.js.map +1 -1
  32. package/dist/DualAxisLineChart.cjs +1 -1
  33. package/dist/DualAxisLineChart.cjs.map +1 -1
  34. package/dist/DualAxisLineChart.js +320 -313
  35. package/dist/DualAxisLineChart.js.map +1 -1
  36. package/dist/DumbbellChart.cjs +1 -1
  37. package/dist/DumbbellChart.cjs.map +1 -1
  38. package/dist/DumbbellChart.js +298 -291
  39. package/dist/DumbbellChart.js.map +1 -1
  40. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  41. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  42. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  44. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  46. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
  47. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  48. package/dist/GriddedGraphs.cjs +1 -1
  49. package/dist/GriddedGraphs.js +1 -1
  50. package/dist/HeatMap.cjs +1 -1
  51. package/dist/HeatMap.cjs.map +1 -1
  52. package/dist/HeatMap.js +179 -172
  53. package/dist/HeatMap.js.map +1 -1
  54. package/dist/Histogram.cjs +1 -1
  55. package/dist/Histogram.js +1 -1
  56. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  57. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  58. package/dist/LineChartWithConfidenceInterval.js +368 -361
  59. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  60. package/dist/MultiLineAltChart.cjs +1 -1
  61. package/dist/MultiLineAltChart.cjs.map +1 -1
  62. package/dist/MultiLineAltChart.js +327 -320
  63. package/dist/MultiLineAltChart.js.map +1 -1
  64. package/dist/MultiLineChart.cjs +1 -1
  65. package/dist/MultiLineChart.cjs.map +1 -1
  66. package/dist/MultiLineChart.js +374 -367
  67. package/dist/MultiLineChart.js.map +1 -1
  68. package/dist/ParetoChart.cjs +1 -1
  69. package/dist/ParetoChart.cjs.map +1 -1
  70. package/dist/ParetoChart.js +385 -378
  71. package/dist/ParetoChart.js.map +1 -1
  72. package/dist/RadarChart.cjs +1 -1
  73. package/dist/RadarChart.cjs.map +1 -1
  74. package/dist/RadarChart.js +34 -33
  75. package/dist/RadarChart.js.map +1 -1
  76. package/dist/SankeyChart.cjs +1 -1
  77. package/dist/SankeyChart.cjs.map +1 -1
  78. package/dist/SankeyChart.js +176 -169
  79. package/dist/SankeyChart.js.map +1 -1
  80. package/dist/ScatterPlot.cjs +1 -1
  81. package/dist/ScatterPlot.cjs.map +1 -1
  82. package/dist/ScatterPlot.js +366 -359
  83. package/dist/ScatterPlot.js.map +1 -1
  84. package/dist/SimpleLineChart.cjs +1 -1
  85. package/dist/SimpleLineChart.cjs.map +1 -1
  86. package/dist/SimpleLineChart.js +285 -278
  87. package/dist/SimpleLineChart.js.map +1 -1
  88. package/dist/SingleGraphDashboard.cjs +1 -1
  89. package/dist/SingleGraphDashboard.js +1 -1
  90. package/dist/SlopeChart.cjs +1 -1
  91. package/dist/SlopeChart.cjs.map +1 -1
  92. package/dist/SlopeChart.js +243 -236
  93. package/dist/SlopeChart.js.map +1 -1
  94. package/dist/StripChart.cjs +1 -1
  95. package/dist/StripChart.cjs.map +1 -1
  96. package/dist/StripChart.js +293 -286
  97. package/dist/StripChart.js.map +1 -1
  98. package/dist/TreeMapGraph.cjs +1 -1
  99. package/dist/TreeMapGraph.cjs.map +1 -1
  100. package/dist/TreeMapGraph.js +222 -215
  101. package/dist/TreeMapGraph.js.map +1 -1
  102. package/dist/index-Blvf-Q3U.cjs +2 -0
  103. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  104. package/dist/index-D1RrKgK6.js +337 -0
  105. package/dist/index-D1RrKgK6.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.d.ts +2 -0
  108. package/dist/index.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  111. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  112. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  113. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  114. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  115. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  116. package/dist/index-CF5hnGvG.cjs +0 -2
  117. package/dist/index-DPGq3eIL.js +0 -330
  118. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SlopeChart.js","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {data.length === 0 ? (\r\n <EmptyState />\r\n ) : (\r\n <>\r\n {showColorScale && data.filter(el => el.color).length !== 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {svgWidth && svgHeight ? (\r\n <Graph\r\n data={data.filter(\r\n d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2),\r\n )}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n </>\r\n )}\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","width","height","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","length","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","EmptyState","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","primaryColors","footnote","source","GraphFooter","GraphContainer"],"mappings":";;;;;;;;;;;;;;;;;;;AAqDO,SAAAA,GAAAC,GAAA;AAAA,QAAAC,IAAAC,GAAAA,EAAA,GAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,aA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OAAAjH,IACCzG,QAAAA,GACQkN,gBAAAA,GACPF,SAAAA,GAERtG,UAAAA;AAAAA,IAAAA;AAAAA,IAuBAC;AAAAA,IAiEAC;AAAAA,EAAAA,GAYH,GAAiBhH,QAAAgO,IAAAhO,QAAAqN,GAAArN,QAAAwN,GAAAxN,QAAAI,GAAAJ,QAAA4N,GAAA5N,QAAA8N,GAAA9N,QAAAoN,GAAApN,QAAAsN,GAAAtN,QAAA0G,GAAA1G,QAAA2G,IAAA3G,QAAA6G,IAAA7G,QAAA8G,IAAA9G,QAAA+G,IAAA/G,QAAAgH,GAAAhH,QAAA+N,GAAA/N,QAAAiH,KAAAA,IAAAjH,EAAA,EAAA,GAnHjBiH;AAmHiB;AApLd,SAAAsC,GAAAgD,GAAA;AAAA,SAoI6Bf,EAAErD;AAAM;AApIrC,SAAAmB,GAAAkD,GAAA;AAAA,SA+H6BhB,EAAErD;AAAM;AA/HrC,SAAAe,GAAAuD,GAAA;AAAA,SA0HgB,CAAClH,GAAuB2C,EAACc,EAAG,KAA5B,CAAkCzD,GAAuB2C,EAAC6B,EAAG;AAAC;AA1H9E,SAAApC,GAAA6D,GAAA;AAAA,SA2GwCA,EAAErD;AAAM;AA3GhD,SAAAT,GAAAkF,GAAA;AAAA,SAkG4B1E,MAAM5F;AAAS;AAlG3C,SAAA2B,GAAA4I,GAAA;AAAA,SAiG6C3E,MAAM5F;AAAS;AAjG5D,SAAAyB,GAAAmE,GAAA;AAAA,SAiGyBA,EAAChI;AAAK;AAjG/B,SAAAyD,GAAA+I,GAAA;AAAA,SAgG2CxE,MAAM5F;AAAS;AAhG1D,SAAAmB,GAAAkJ,GAAA;AAAA,SAgGuBzE,EAAChI;AAAK;"}
1
+ {"version":3,"file":"SlopeChart.js","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints.length !== 0 ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints = [],\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data.filter(d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2))}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","width","height","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","length","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","EmptyState","primaryColors","GraphArea","footnote","source","GraphFooter","GraphContainer"],"mappings":";;;;;;;;;;;;;;;;;;;AAqDO,SAAAA,GAAAC,GAAA;AAAA,QAAAC,IAAAC,GAAAA,EAAA,GAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,cAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,mBAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,uBAAAA;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,oBAAAA;AAAAA,IAAAC,6BAAAA;AAAAA,IAAAC,gBAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,Y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GAAA+I,GAAA;AAAA,SAgG2CxE,MAAM5F;AAAS;AAhG1D,SAAAmB,GAAAkJ,GAAA;AAAA,SAgGuBzE,EAAChI;AAAK;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),X=require("react"),Bt=require("./index-DQA8q5sC.cjs"),zt=require("./index-Cno4Q0YE.cjs"),Jt=require("./Tooltip-uUdw6wJL.cjs"),pt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),c=require("./Colors.cjs"),Kt=require("./DetailsModal-BN0HDFlV.cjs"),Qt=require("./linear-BwPAspcq.cjs"),Zt=require("./use-in-view-QcfiW0w3.cjs"),wt=require("./proxy-BxvUI_9l.cjs"),_t=require("./index-DG2bgAva.cjs"),Xt=require("./uniqBy-O05lp2S5.cjs"),Yt=require("./GraphContainer-d8A46BK2.cjs"),ee=require("./EmptyState-sAEZ_5rU.cjs"),oe=require("./ColorLegendWithMouseOver.cjs"),ie=require("./GraphFooter.cjs"),ne=require("./GraphHeader.cjs");function te(e,t){if(e<2)return[];const i=t/(e-1);return Array.from({length:e},(D,j)=>j*i)}function re(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:j,colors:n,colorDomain:s,radius:m,leftMargin:E,rightMargin:ht,topMargin:gt,bottomMargin:Mt,tooltip:rt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,noOfTicks:lt,prefix:et,suffix:st,stripType:y,highlightColor:h,dotOpacity:mt,resetSelectionOnDoubleClick:B,detailsOnClick:v,styles:u,classNames:C,valueColor:d,animate:g,dimmedOpacity:J,precision:at,customLayers:w}=e,yt=E===void 0?20:E,xt=ht===void 0?20:ht,vt=gt===void 0?10:gt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ct;t[0]!==g.amount||t[1]!==g.once?(ct={once:g.once,amount:g.amount},t[0]=g.amount,t[1]=g.once,t[2]=ct):ct=t[2];const $=Zt.useInView(Vt,ct),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[f,x]=X.useState(void 0),[ut,Ct]=X.useState(void 0);let ft;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(ft={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=ft):ft=t[7];const p=ft,K=D-p.left-p.right,Q=j-p.top-p.bottom;let A,V,q,T,R,k,F,P,U,H,O;if(t[8]!==g.duration||t[9]!==C?.graphObjectValues||t[10]!==C?.yAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==v||t[16]!==J||t[17]!==mt||t[18]!==Q||t[19]!==K||t[20]!==j||t[21]!==h||t[22]!==r||t[23]!==$||t[24]!==p.left||t[25]!==p.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==lt||t[30]!==Y||t[31]!==_||t[32]!==at||t[33]!==et||t[34]!==m||t[35]!==B||t[36]!==tt||t[37]!==y||t[38]!==u?.graphObjectValues||t[39]!==u?.yAxis?.labels||t[40]!==st||t[41]!==d||t[42]!==D){const Dt=i.map(Ie);let Z;t[54]!==r?(Z=o=>{const a=(r||[]).indexOf(o.label);return a===-1?1/0:a},t[54]=r,t[55]=Z):Z=t[55];const Nt=zt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=pt.checkIfNullOrUndefined(S)?Math.max(...i.filter(ke).map(Re))<0?0:Math.max(...i.filter(Ve).map(Ee)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let dt;t[59]!==i||t[60]!==N?(dt=pt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Me).map(we))>=0?0:Math.min(...i.filter(Ce).map(je)):N,t[59]=i,t[60]=N,t[61]=dt):dt=t[61];const kt=dt,Et=Qt.linear().domain([kt,Rt]).range([Q,0]).nice(),It=te(lt,Q);V=wt.motion.svg,q=`${D}px`,T=`${j}px`,R=`0 0 ${D} ${j}`,k="ltr",F=Vt,H=`translate(${p.left},${p.top})`,t[62]!==w?(O=w.filter(be).map(Oe),t[62]=w,t[63]=O):O=t[63],A=_t.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:K/2,y:Et(0)},whileInView:{x:K/2,y:Et(o.position),opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:mt,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},onMouseEnter:a=>{bt(o),Ct(a.clientY),x(a.clientX),_?.(o)},onClick:()=>{(Y||v)&&(Bt.isEqual(M,o)&&B?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:a=>{bt(o),Ct(a.clientY),x(a.clientX)},onMouseLeave:()=>{bt(void 0),x(void 0),Ct(void 0),_?.(void 0)},children:[y==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ve).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray},whileInView:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(he).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},r:m}):l.jsxRuntimeExports.jsx(wt.motion.rect,{y:-1,height:2,variants:{initial:{x:0-m,width:m*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(de).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray},whileInView:{x:0-m,width:m*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(me).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+m+3,fill:d||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray)},whileInView:{opacity:1,x:0+m+3,fill:d||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(ce).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(ae).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray),transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},style:{textAnchor:"start",...u?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",C?.graphObjectValues),children:Pt.numberFormattingFunction(o.position,"NA",at,et,st)}):null]},o.label)),U=It.map((o,a)=>l.jsxRuntimeExports.jsx("text",{y:o,x:K/2+m+5,style:{textAnchor:"start",...u?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",C?.yAxis?.labels),children:Pt.numberFormattingFunction(Et.invert(o),"NA",at,et,st)},a)),t[8]=g.duration,t[9]=C?.graphObjectValues,t[10]=C?.yAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=v,t[16]=J,t[17]=mt,t[18]=Q,t[19]=K,t[20]=j,t[21]=h,t[22]=r,t[23]=$,t[24]=p.left,t[25]=p.top,t[26]=S,t[27]=N,t[28]=M,t[29]=lt,t[30]=Y,t[31]=_,t[32]=at,t[33]=et,t[34]=m,t[35]=B,t[36]=tt,t[37]=y,t[38]=u?.graphObjectValues,t[39]=u?.yAxis?.labels,t[40]=st,t[41]=d,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=U,t[52]=H,t[53]=O}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],U=t[51],H=t[52],O=t[53];let L;t[64]!==A||t[65]!==P||t[66]!==U?(L=l.jsxRuntimeExports.jsxs(A,{children:[P,U]}),t[64]=A,t[65]=P,t[66]=U,t[67]=L):L=t[67];let G;t[68]!==w?(G=w.filter(se).map(le),t[68]=w,t[69]=G):G=t[69];let b;t[70]!==L||t[71]!==G||t[72]!==H||t[73]!==O?(b=l.jsxRuntimeExports.jsxs("g",{transform:H,children:[O,L,G]}),t[70]=L,t[71]=G,t[72]=H,t[73]=O,t[74]=b):b=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==b?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:b}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=b,t[82]=W):W=t[82];let z;t[83]!==C?.tooltip||t[84]!==f||t[85]!==ut||t[86]!==ot||t[87]!==u?.tooltip||t[88]!==rt?(z=ot&&rt&&f&&ut?l.jsxRuntimeExports.jsx(Jt.Tooltip,{data:ot,body:rt,xPos:f,yPos:ut,backgroundStyle:u?.tooltip,className:C?.tooltip}):null,t[83]=C?.tooltip,t[84]=f,t[85]=ut,t[86]=ot,t[87]=u?.tooltip,t[88]=rt,t[89]=z):z=t[89];let I;t[90]!==C?.modal||t[91]!==v||t[92]!==M?(I=v&&M!==void 0?l.jsxRuntimeExports.jsx(Kt.DetailsModal,{body:v,data:M,setData:jt,className:C?.modal}):null,t[90]=C?.modal,t[91]=v,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function le(e){return e.layer}function se(e){return e.position==="after"}function ae(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function fe(e){return e.color}function pe(e){return e.color}function me(e){return e.color}function xe(e){return e.color}function de(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.layer}function be(e){return e.position==="before"}function je(e){return e.position}function Ce(e){return!pt.checkIfNullOrUndefined(e.position)}function we(e){return e.position}function Me(e){return!pt.checkIfNullOrUndefined(e.position)}function Ee(e){return e.position}function Ve(e){return!pt.checkIfNullOrUndefined(e.position)}function Re(e){return e.position}function ke(e){return!pt.checkIfNullOrUndefined(e.position)}function Ie(e,t){return{...e,id:`${t}`}}function De(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:j,colors:n,colorDomain:s,radius:m,leftMargin:E,rightMargin:ht,topMargin:gt,bottomMargin:Mt,tooltip:rt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,prefix:lt,suffix:et,stripType:st,highlightColor:y,dotOpacity:h,resetSelectionOnDoubleClick:mt,detailsOnClick:B,styles:v,classNames:u,valueColor:C,animate:d,noOfTicks:g,dimmedOpacity:J,precision:at,customLayers:w}=e,yt=E===void 0?5:E,xt=ht===void 0?5:ht,vt=gt===void 0?10:gt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ct;t[0]!==d.amount||t[1]!==d.once?(ct={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=ct):ct=t[2];const $=Zt.useInView(Vt,ct),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[f,x]=X.useState(void 0),[ut,Ct]=X.useState(void 0);let ft;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(ft={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=ft):ft=t[7];const p=ft,K=D-p.left-p.right,Q=j-p.top-p.bottom;let A,V,q,T,R,k,F,P,U,H,O;if(t[8]!==d.duration||t[9]!==u?.graphObjectValues||t[10]!==u?.xAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==B||t[16]!==J||t[17]!==h||t[18]!==Q||t[19]!==K||t[20]!==j||t[21]!==y||t[22]!==r||t[23]!==$||t[24]!==p.left||t[25]!==p.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==g||t[30]!==Y||t[31]!==_||t[32]!==at||t[33]!==lt||t[34]!==m||t[35]!==mt||t[36]!==tt||t[37]!==st||t[38]!==v?.graphObjectValues||t[39]!==v?.xAxis?.labels||t[40]!==et||t[41]!==C||t[42]!==D){const Dt=i.map(oo);let Z;t[54]!==r?(Z=o=>{const a=(r||[]).indexOf(o.label);return a===-1?1/0:a},t[54]=r,t[55]=Z):Z=t[55];const Nt=zt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=pt.checkIfNullOrUndefined(S)?Math.max(...i.filter(eo).map(to))<0?0:Math.max(...i.filter(_e).map(Ze)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let dt;t[59]!==i||t[60]!==N?(dt=pt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Qe).map(Ke))>=0?0:Math.min(...i.filter(Je).map(ze)):N,t[59]=i,t[60]=N,t[61]=dt):dt=t[61];const kt=dt,Et=Qt.linear().domain([kt,Rt]).range([0,K]).nice(),It=te(g,K);V=wt.motion.svg,q=`${D}px`,T=`${j}px`,R=`0 0 ${D} ${j}`,k="ltr",F=Vt,H=`translate(${p.left},${p.top})`,t[62]!==w?(O=w.filter(Be).map(Ye),t[62]=w,t[63]=O):O=t[63],A=_t.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Et(0),y:Q/2},whileInView:{x:Et(o.position),y:Q/2,opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:h,transition:{duration:d.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},onMouseEnter:a=>{bt(o),Ct(a.clientY),x(a.clientX),_?.(o)},onClick:()=>{(Y||B)&&(Bt.isEqual(M,o)&&mt?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:a=>{bt(o),Ct(a.clientY),x(a.clientX)},onMouseLeave:()=>{bt(void 0),x(void 0),Ct(void 0),_?.(void 0)},children:[st==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:y&&r?r.indexOf(o.label)!==-1?y:i.filter(Xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(We).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray},whileInView:{fill:y&&r?r.indexOf(o.label)!==-1?y:i.filter(Ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(Le).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray,transition:{duration:d.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},r:m}):l.jsxRuntimeExports.jsx(wt.motion.rect,{x:-1,width:2,variants:{initial:{y:0-m,height:m*2,fill:y&&r?r.indexOf(o.label)!==-1?y:i.filter(He).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(Ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray},whileInView:{y:0-m,height:m*2,fill:y&&r?r.indexOf(o.label)!==-1?y:i.filter(Pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(Fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray,transition:{duration:d.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{x:0,variants:{initial:{opacity:0,y:0-m-5,fill:C||(y&&r?r.indexOf(o.label)!==-1?y:i.filter(Te).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter(qe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray)},whileInView:{opacity:1,y:0-m-5,fill:C||(y&&r?r.indexOf(o.label)!==-1?y:i.filter(Ae).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray:i.filter($e).length===0?n[0]:o.color?n[s.indexOf(o.color)]:c.Colors.gray),transition:{duration:d.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},style:{textAnchor:"middle",...v?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",u?.graphObjectValues),children:Pt.numberFormattingFunction(o.position,"NA",at,lt,et)}):null]},o.label)),U=It.map((o,a)=>l.jsxRuntimeExports.jsx("text",{x:o,y:Q/2+m,style:{textAnchor:a===0?"start":a===It.length-1?"end":"middle",...v?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",u?.xAxis?.labels),dy:"1em",children:Pt.numberFormattingFunction(Et.invert(o),"NA",at,lt,et)},a)),t[8]=d.duration,t[9]=u?.graphObjectValues,t[10]=u?.xAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=B,t[16]=J,t[17]=h,t[18]=Q,t[19]=K,t[20]=j,t[21]=y,t[22]=r,t[23]=$,t[24]=p.left,t[25]=p.top,t[26]=S,t[27]=N,t[28]=M,t[29]=g,t[30]=Y,t[31]=_,t[32]=at,t[33]=lt,t[34]=m,t[35]=mt,t[36]=tt,t[37]=st,t[38]=v?.graphObjectValues,t[39]=v?.xAxis?.labels,t[40]=et,t[41]=C,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=U,t[52]=H,t[53]=O}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],U=t[51],H=t[52],O=t[53];let L;t[64]!==A||t[65]!==P||t[66]!==U?(L=l.jsxRuntimeExports.jsxs(A,{children:[P,U]}),t[64]=A,t[65]=P,t[66]=U,t[67]=L):L=t[67];let G;t[68]!==w?(G=w.filter(Se).map(Ne),t[68]=w,t[69]=G):G=t[69];let b;t[70]!==L||t[71]!==G||t[72]!==H||t[73]!==O?(b=l.jsxRuntimeExports.jsxs("g",{transform:H,children:[O,L,G]}),t[70]=L,t[71]=G,t[72]=H,t[73]=O,t[74]=b):b=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==b?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:b}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=b,t[82]=W):W=t[82];let z;t[83]!==u?.tooltip||t[84]!==f||t[85]!==ut||t[86]!==ot||t[87]!==v?.tooltip||t[88]!==rt?(z=ot&&rt&&f&&ut?l.jsxRuntimeExports.jsx(Jt.Tooltip,{data:ot,body:rt,xPos:f,yPos:ut,backgroundStyle:v?.tooltip,className:u?.tooltip}):null,t[83]=u?.tooltip,t[84]=f,t[85]=ut,t[86]=ot,t[87]=v?.tooltip,t[88]=rt,t[89]=z):z=t[89];let I;t[90]!==u?.modal||t[91]!==B||t[92]!==M?(I=B&&M!==void 0?l.jsxRuntimeExports.jsx(Kt.DetailsModal,{body:B,data:M,setData:jt,className:u?.modal}):null,t[90]=u?.modal,t[91]=B,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function Ne(e){return e.layer}function Se(e){return e.position==="after"}function $e(e){return e.color}function Ae(e){return e.color}function qe(e){return e.color}function Te(e){return e.color}function Fe(e){return e.color}function Pe(e){return e.color}function Ue(e){return e.color}function He(e){return e.color}function Le(e){return e.color}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.layer}function Be(e){return e.position==="before"}function ze(e){return e.position}function Je(e){return!pt.checkIfNullOrUndefined(e.position)}function Ke(e){return e.position}function Qe(e){return!pt.checkIfNullOrUndefined(e.position)}function Ze(e){return e.position}function _e(e){return!pt.checkIfNullOrUndefined(e.position)}function to(e){return e.position}function eo(e){return!pt.checkIfNullOrUndefined(e.position)}function oo(e,t){return{...e,id:`${t}`}}function io(e){const t=l.compilerRuntimeExports.c(80),{data:i,graphTitle:D,colors:j,sources:n,graphDescription:s,height:m,width:E,footNote:ht,colorDomain:gt,colorLegendTitle:Mt,radius:rt,padding:_,backgroundColor:r,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:lt,relativeHeight:et,onSeriesMouseOver:st,showColorScale:y,highlightedDataPoints:h,graphID:mt,minValue:B,maxValue:v,onSeriesMouseClick:u,noOfTicks:C,graphDownload:d,dataDownload:g,prefix:J,suffix:at,stripType:w,language:yt,highlightColor:xt,dotOpacity:vt,showNAColor:Ot,minHeight:Vt,theme:ct,ariaLabel:$,valueColor:ot,resetSelectionOnDoubleClick:bt,detailsOnClick:M,orientation:jt,styles:f,classNames:x,animate:ut,dimmedOpacity:Ct,precision:ft,customLayers:p}=e,K=rt===void 0?5:rt,Q=r===void 0?!1:r,A=y===void 0?!0:y;let V;t[0]!==h?(V=h===void 0?[]:h,t[0]=h,t[1]=V):V=t[1];const q=V,T=C===void 0?2:C,R=d===void 0?!1:d,k=g===void 0?!1:g,F=J===void 0?"":J,P=at===void 0?"":at,U=w===void 0?"dot":w,H=yt===void 0?"en":yt,O=vt===void 0?.3:vt,L=Ot===void 0?!0:Ot,G=Vt===void 0?0:Vt,b=ct===void 0?"light":ct,W=bt===void 0?!0:bt,z=jt===void 0?"vertical":jt,I=ut===void 0?!1:ut,it=Ct===void 0?.3:Ct,Dt=ft===void 0?2:ft;let Z;t[2]!==p?(Z=p===void 0?[]:p,t[2]=p,t[3]=Z):Z=t[3];const Nt=Z,nt=z==="horizontal"?De:re,[Rt,dt]=X.useState(0),[kt,Et]=X.useState(0),[It,o]=X.useState(void 0),a=X.useRef(null),Lt=X.useRef(null);let qt,Tt;t[4]===Symbol.for("react.memo_cache_sentinel")?(qt=()=>{const Gt=new ResizeObserver(Wt=>{dt(Wt[0].target.clientWidth||620),Et(Wt[0].target.clientHeight||480)});return a.current&&Gt.observe(a.current),()=>Gt.disconnect()},Tt=[],t[4]=qt,t[5]=Tt):(qt=t[4],Tt=t[5]),X.useEffect(qt,Tt);const Ut=x?.graphContainer,Ht=f?.graphContainer;let St;t[6]!==x?.description||t[7]!==x?.title||t[8]!==i||t[9]!==k||t[10]!==s||t[11]!==R||t[12]!==D||t[13]!==f?.description||t[14]!==f?.title||t[15]!==E?(St=D||s||R||k?l.jsxRuntimeExports.jsx(ne.GraphHeader,{styles:{title:f?.title,description:f?.description},classNames:{title:x?.title,description:x?.description},graphTitle:D,graphDescription:s,width:E,graphDownload:R?Lt:void 0,dataDownload:k?i.map(fo).filter(uo).length>0?i.map(co).filter(ao):i.filter(so):null}):null,t[6]=x?.description,t[7]=x?.title,t[8]=i,t[9]=k,t[10]=s,t[11]=R,t[12]=D,t[13]=f?.description,t[14]=f?.title,t[15]=E,t[16]=St):St=t[16];let $t;t[17]!==nt||t[18]!==I||t[19]!==Y||t[20]!==x||t[21]!==gt||t[22]!==Mt||t[23]!==j||t[24]!==Nt||t[25]!==i||t[26]!==M||t[27]!==it||t[28]!==O||t[29]!==xt||t[30]!==q||t[31]!==tt||t[32]!==v||t[33]!==B||t[34]!==T||t[35]!==u||t[36]!==st||t[37]!==Dt||t[38]!==F||t[39]!==K||t[40]!==W||t[41]!==N||t[42]!==It||t[43]!==A||t[44]!==L||t[45]!==U||t[46]!==f||t[47]!==P||t[48]!==kt||t[49]!==Rt||t[50]!==b||t[51]!==lt||t[52]!==S||t[53]!==ot||t[54]!==E?($t=i.length===0?l.jsxRuntimeExports.jsx(ee.EmptyState,{}):l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[A!==!1&&i.filter(lo).length!==0?l.jsxRuntimeExports.jsx(oe.ColorLegendWithMouseOver,{width:E,colorLegendTitle:Mt,colors:j||c.Colors[b].categoricalColors.colors,colorDomain:gt||Xt.uniqBy(i,"color",!0),setSelectedColor:o,showNAColor:L,className:x?.colorLegend}):null,l.jsxRuntimeExports.jsx(Yt.GraphArea,{ref:a,children:Rt&&kt?l.jsxRuntimeExports.jsx(nt,{data:i,width:Rt,height:kt,colorDomain:i.filter(ro).length===0?[]:gt||Xt.uniqBy(i,"color",!0),colors:i.filter(no).length===0?j?[j]:[c.Colors.primaryColors["blue-600"]]:j||c.Colors[b].categoricalColors.colors,selectedColor:It,radius:K,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:lt,onSeriesMouseOver:st,highlightedDataPoints:q,minValue:B,maxValue:v,onSeriesMouseClick:u,prefix:F,suffix:P,stripType:U,highlightColor:xt,dotOpacity:O,resetSelectionOnDoubleClick:W,detailsOnClick:M,styles:f,classNames:x,valueColor:ot,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},noOfTicks:T,dimmedOpacity:it,precision:Dt,customLayers:Nt}):null})]}),t[17]=nt,t[18]=I,t[19]=Y,t[20]=x,t[21]=gt,t[22]=Mt,t[23]=j,t[24]=Nt,t[25]=i,t[26]=M,t[27]=it,t[28]=O,t[29]=xt,t[30]=q,t[31]=tt,t[32]=v,t[33]=B,t[34]=T,t[35]=u,t[36]=st,t[37]=Dt,t[38]=F,t[39]=K,t[40]=W,t[41]=N,t[42]=It,t[43]=A,t[44]=L,t[45]=U,t[46]=f,t[47]=P,t[48]=kt,t[49]=Rt,t[50]=b,t[51]=lt,t[52]=S,t[53]=ot,t[54]=E,t[55]=$t):$t=t[55];let At;t[56]!==x?.footnote||t[57]!==x?.source||t[58]!==ht||t[59]!==n||t[60]!==f?.footnote||t[61]!==f?.source||t[62]!==E?(At=n||ht?l.jsxRuntimeExports.jsx(ie.GraphFooter,{styles:{footnote:f?.footnote,source:f?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:n,footNote:ht,width:E}):null,t[56]=x?.footnote,t[57]=x?.source,t[58]=ht,t[59]=n,t[60]=f?.footnote,t[61]=f?.source,t[62]=E,t[63]=At):At=t[63];let Ft;return t[64]!==$||t[65]!==Q||t[66]!==mt||t[67]!==m||t[68]!==H||t[69]!==G||t[70]!==_||t[71]!==et||t[72]!==Ut||t[73]!==Ht||t[74]!==St||t[75]!==$t||t[76]!==At||t[77]!==b||t[78]!==E?(Ft=l.jsxRuntimeExports.jsxs(Yt.GraphContainer,{className:Ut,style:Ht,id:mt,ref:Lt,"aria-label":$,backgroundColor:Q,theme:b,language:H,minHeight:G,width:E,height:m,relativeHeight:et,padding:_,children:[St,$t,At]}),t[64]=$,t[65]=Q,t[66]=mt,t[67]=m,t[68]=H,t[69]=G,t[70]=_,t[71]=et,t[72]=Ut,t[73]=Ht,t[74]=St,t[75]=$t,t[76]=At,t[77]=b,t[78]=E,t[79]=Ft):Ft=t[79],Ft}function no(e){return e.color}function ro(e){return e.color}function lo(e){return e.color}function so(e){return e!==void 0}function ao(e){return e!==void 0}function co(e){return e.data}function uo(e){return e!==void 0}function fo(e){return e.data}exports.StripChart=io;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),X=require("react"),Kt=require("./index-DQA8q5sC.cjs"),Qt=require("./index-Cno4Q0YE.cjs"),Zt=require("./Tooltip-uUdw6wJL.cjs"),mt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ht=require("./numberFormattingFunction-02t-wJta.cjs"),u=require("./Colors.cjs"),_t=require("./DetailsModal-BN0HDFlV.cjs"),te=require("./linear-BwPAspcq.cjs"),ee=require("./use-in-view-QcfiW0w3.cjs"),wt=require("./proxy-BxvUI_9l.cjs"),oe=require("./index-DG2bgAva.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-d8A46BK2.cjs"),ne=require("./EmptyState-gLDRXBHm.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),le=require("./GraphFooter.cjs"),se=require("./GraphHeader.cjs");function ie(e,t){if(e<2)return[];const i=t/(e-1);return Array.from({length:e},(D,v)=>v*i)}function ae(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,noOfTicks:st,prefix:et,suffix:at,stripType:O,highlightColor:h,dotOpacity:dt,resetSelectionOnDoubleClick:B,detailsOnClick:b,styles:f,classNames:C,valueColor:x,animate:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?20:E,xt=gt===void 0?20:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==g.amount||t[1]!==g.once?(ut={once:g.once,amount:g.amount},t[0]=g.amount,t[1]=g.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==g.duration||t[9]!==C?.graphObjectValues||t[10]!==C?.yAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==b||t[16]!==J||t[17]!==dt||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==h||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==st||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==et||t[34]!==d||t[35]!==B||t[36]!==tt||t[37]!==O||t[38]!==f?.graphObjectValues||t[39]!==f?.yAxis?.labels||t[40]!==at||t[41]!==x||t[42]!==D){const Dt=i.map(Se);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(Ne).map(De))<0?0:Math.max(...i.filter(Ie).map(ke)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Re).map(Ve))>=0?0:Math.min(...i.filter(Ee).map(Me)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([Q,0]).nice(),It=ie(st,Q);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(we).map(Ce),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:K/2,y:Et(0)},whileInView:{x:K/2,y:Et(o.position),opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:dt,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||b)&&(Kt.isEqual(M,o)&&B?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[O==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(je).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(Oe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ve).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{y:-1,height:2,variants:{initial:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(he).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(de).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(me).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},style:{textAnchor:"start",...f?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",C?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,et,at)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{y:o,x:K/2+d+5,style:{textAnchor:"start",...f?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",C?.yAxis?.labels),children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,et,at)},c)),t[8]=g.duration,t[9]=C?.graphObjectValues,t[10]=C?.yAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=b,t[16]=J,t[17]=dt,t[18]=Q,t[19]=K,t[20]=v,t[21]=h,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=st,t[30]=Y,t[31]=_,t[32]=ct,t[33]=et,t[34]=d,t[35]=B,t[36]=tt,t[37]=O,t[38]=f?.graphObjectValues,t[39]=f?.yAxis?.labels,t[40]=at,t[41]=x,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(ue).map(ce),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==C?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==f?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:f?.tooltip,className:C?.tooltip}):null,t[83]=C?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=f?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==C?.modal||t[91]!==b||t[92]!==M?(I=b&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:b,data:M,setData:jt,className:C?.modal}):null,t[90]=C?.modal,t[91]=b,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function ce(e){return e.layer}function ue(e){return e.position==="after"}function fe(e){return e.color}function pe(e){return e.color}function me(e){return e.color}function de(e){return e.color}function xe(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.color}function be(e){return e.color}function je(e){return e.color}function Ce(e){return e.layer}function we(e){return e.position==="before"}function Me(e){return e.position}function Ee(e){return!mt.checkIfNullOrUndefined(e.position)}function Ve(e){return e.position}function Re(e){return!mt.checkIfNullOrUndefined(e.position)}function ke(e){return e.position}function Ie(e){return!mt.checkIfNullOrUndefined(e.position)}function De(e){return e.position}function Ne(e){return!mt.checkIfNullOrUndefined(e.position)}function Se(e,t){return{...e,id:`${t}`}}function $e(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,prefix:st,suffix:et,stripType:at,highlightColor:O,dotOpacity:h,resetSelectionOnDoubleClick:dt,detailsOnClick:B,styles:b,classNames:f,valueColor:C,animate:x,noOfTicks:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?5:E,xt=gt===void 0?5:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==x.amount||t[1]!==x.once?(ut={once:x.once,amount:x.amount},t[0]=x.amount,t[1]=x.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==x.duration||t[9]!==f?.graphObjectValues||t[10]!==f?.xAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==B||t[16]!==J||t[17]!==h||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==O||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==g||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==st||t[34]!==d||t[35]!==dt||t[36]!==tt||t[37]!==at||t[38]!==b?.graphObjectValues||t[39]!==b?.xAxis?.labels||t[40]!==et||t[41]!==C||t[42]!==D){const Dt=i.map(ro);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(no).map(io))<0?0:Math.max(...i.filter(oo).map(eo)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(to).map(_e))>=0?0:Math.min(...i.filter(Ze).map(Qe)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([0,K]).nice(),It=ie(g,K);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(Ke).map(Je),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Et(0),y:Q/2},whileInView:{x:Et(o.position),y:Q/2,opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:h,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||B)&&(Kt.isEqual(M,o)&&dt?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[at==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(ze).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(Ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{x:-1,width:2,variants:{initial:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(We).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(He).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{x:0,variants:{initial:{opacity:0,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Le).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Te).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},style:{textAnchor:"middle",...b?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",f?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,st,et)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{x:o,y:Q/2+d,style:{textAnchor:c===0?"start":c===It.length-1?"end":"middle",...b?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",f?.xAxis?.labels),dy:"1em",children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,st,et)},c)),t[8]=x.duration,t[9]=f?.graphObjectValues,t[10]=f?.xAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=B,t[16]=J,t[17]=h,t[18]=Q,t[19]=K,t[20]=v,t[21]=O,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=g,t[30]=Y,t[31]=_,t[32]=ct,t[33]=st,t[34]=d,t[35]=dt,t[36]=tt,t[37]=at,t[38]=b?.graphObjectValues,t[39]=b?.xAxis?.labels,t[40]=et,t[41]=C,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(qe).map(Ae),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==f?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==b?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:b?.tooltip,className:f?.tooltip}):null,t[83]=f?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=b?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==f?.modal||t[91]!==B||t[92]!==M?(I=B&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:B,data:M,setData:jt,className:f?.modal}):null,t[90]=f?.modal,t[91]=B,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function Ae(e){return e.layer}function qe(e){return e.position==="after"}function Te(e){return e.color}function Fe(e){return e.color}function Pe(e){return e.color}function Le(e){return e.color}function Ue(e){return e.color}function He(e){return e.color}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.color}function Be(e){return e.color}function ze(e){return e.color}function Je(e){return e.layer}function Ke(e){return e.position==="before"}function Qe(e){return e.position}function Ze(e){return!mt.checkIfNullOrUndefined(e.position)}function _e(e){return e.position}function to(e){return!mt.checkIfNullOrUndefined(e.position)}function eo(e){return e.position}function oo(e){return!mt.checkIfNullOrUndefined(e.position)}function io(e){return e.position}function no(e){return!mt.checkIfNullOrUndefined(e.position)}function ro(e,t){return{...e,id:`${t}`}}function lo(e){const t=l.compilerRuntimeExports.c(92),{data:i,graphTitle:D,colors:v,sources:n,graphDescription:s,height:d,width:E,footNote:gt,colorDomain:rt,colorLegendTitle:Mt,radius:lt,padding:_,backgroundColor:r,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,relativeHeight:et,onSeriesMouseOver:at,showColorScale:O,highlightedDataPoints:h,graphID:dt,minValue:B,maxValue:b,onSeriesMouseClick:f,noOfTicks:C,graphDownload:x,dataDownload:g,prefix:J,suffix:ct,stripType:w,language:yt,highlightColor:xt,dotOpacity:vt,showNAColor:Ot,minHeight:Vt,theme:ut,ariaLabel:$,valueColor:ot,resetSelectionOnDoubleClick:bt,detailsOnClick:M,orientation:jt,styles:p,classNames:a,animate:ft,dimmedOpacity:Ct,precision:pt,customLayers:m}=e,K=lt===void 0?5:lt,Q=r===void 0?!1:r,A=O===void 0?!0:O;let V;t[0]!==h?(V=h===void 0?[]:h,t[0]=h,t[1]=V):V=t[1];const q=V,T=C===void 0?2:C,R=x===void 0?!1:x,k=g===void 0?!1:g,F=J===void 0?"":J,P=ct===void 0?"":ct,L=w===void 0?"dot":w,U=yt===void 0?"en":yt,j=vt===void 0?.3:vt,H=Ot===void 0?!0:Ot,G=Vt===void 0?0:Vt,y=ut===void 0?"light":ut,W=bt===void 0?!0:bt,z=jt===void 0?"vertical":jt,I=ft===void 0?!1:ft,it=Ct===void 0?.3:Ct,Dt=pt===void 0?2:pt;let Z;t[2]!==m?(Z=m===void 0?[]:m,t[2]=m,t[3]=Z):Z=t[3];const Nt=Z,nt=z==="horizontal"?$e:ae,[Rt,ht]=X.useState(0),[kt,Et]=X.useState(0),[It,o]=X.useState(void 0),c=X.useRef(null),Xt=X.useRef(null);let Pt,Lt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>{const Yt=new ResizeObserver(Bt=>{ht(Bt[0].target.clientWidth||620),Et(Bt[0].target.clientHeight||480)});return c.current&&Yt.observe(c.current),()=>Yt.disconnect()},Lt=[],t[4]=Pt,t[5]=Lt):(Pt=t[4],Lt=t[5]),X.useEffect(Pt,Lt);const Gt=a?.graphContainer,Wt=p?.graphContainer;let St;t[6]!==a?.description||t[7]!==a?.title||t[8]!==i||t[9]!==k||t[10]!==s||t[11]!==R||t[12]!==D||t[13]!==p?.description||t[14]!==p?.title||t[15]!==E?(St=D||s||R||k?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:a?.title,description:a?.description},graphTitle:D,graphDescription:s,width:E,graphDownload:R?Xt:void 0,dataDownload:k?i.map(xo).filter(mo).length>0?i.map(po).filter(fo):i.filter(uo):null}):null,t[6]=a?.description,t[7]=a?.title,t[8]=i,t[9]=k,t[10]=s,t[11]=R,t[12]=D,t[13]=p?.description,t[14]=p?.title,t[15]=E,t[16]=St):St=t[16];let $t;t[17]!==a?.colorLegend||t[18]!==rt||t[19]!==Mt||t[20]!==v||t[21]!==i||t[22]!==A||t[23]!==H||t[24]!==y||t[25]!==E?($t=A!==!1&&i.filter(co).length!==0&&i.length>0?l.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:E,colorLegendTitle:Mt,colors:v||u.Colors[y].categoricalColors.colors,colorDomain:rt||zt.uniqBy(i,"color",!0),setSelectedColor:o,showNAColor:H,className:a?.colorLegend}):null,t[17]=a?.colorLegend,t[18]=rt,t[19]=Mt,t[20]=v,t[21]=i,t[22]=A,t[23]=H,t[24]=y,t[25]=E,t[26]=$t):$t=t[26];let At;t[27]!==i.length?(At=i.length===0&&l.jsxRuntimeExports.jsx(ne.EmptyState,{}),t[27]=i.length,t[28]=At):At=t[28];let qt;t[29]!==nt||t[30]!==I||t[31]!==Y||t[32]!==a||t[33]!==rt||t[34]!==v||t[35]!==Nt||t[36]!==i||t[37]!==M||t[38]!==it||t[39]!==j||t[40]!==xt||t[41]!==q||t[42]!==tt||t[43]!==b||t[44]!==B||t[45]!==T||t[46]!==f||t[47]!==at||t[48]!==Dt||t[49]!==F||t[50]!==K||t[51]!==W||t[52]!==N||t[53]!==It||t[54]!==L||t[55]!==p||t[56]!==P||t[57]!==kt||t[58]!==Rt||t[59]!==y||t[60]!==st||t[61]!==S||t[62]!==ot?(qt=Rt&&kt&&i.length>0?l.jsxRuntimeExports.jsx(nt,{data:i,width:Rt,height:kt,colorDomain:i.filter(ao).length===0?[]:rt||zt.uniqBy(i,"color",!0),colors:i.filter(so).length===0?v?[v]:[u.Colors.primaryColors["blue-600"]]:v||u.Colors[y].categoricalColors.colors,selectedColor:It,radius:K,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,onSeriesMouseOver:at,highlightedDataPoints:q,minValue:B,maxValue:b,onSeriesMouseClick:f,prefix:F,suffix:P,stripType:L,highlightColor:xt,dotOpacity:j,resetSelectionOnDoubleClick:W,detailsOnClick:M,styles:p,classNames:a,valueColor:ot,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},noOfTicks:T,dimmedOpacity:it,precision:Dt,customLayers:Nt}):null,t[29]=nt,t[30]=I,t[31]=Y,t[32]=a,t[33]=rt,t[34]=v,t[35]=Nt,t[36]=i,t[37]=M,t[38]=it,t[39]=j,t[40]=xt,t[41]=q,t[42]=tt,t[43]=b,t[44]=B,t[45]=T,t[46]=f,t[47]=at,t[48]=Dt,t[49]=F,t[50]=K,t[51]=W,t[52]=N,t[53]=It,t[54]=L,t[55]=p,t[56]=P,t[57]=kt,t[58]=Rt,t[59]=y,t[60]=st,t[61]=S,t[62]=ot,t[63]=qt):qt=t[63];let Tt;t[64]!==At||t[65]!==qt?(Tt=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:c,children:[At,qt]}),t[64]=At,t[65]=qt,t[66]=Tt):Tt=t[66];let Ft;t[67]!==a?.footnote||t[68]!==a?.source||t[69]!==gt||t[70]!==n||t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==E?(Ft=n||gt?l.jsxRuntimeExports.jsx(le.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:n,footNote:gt,width:E}):null,t[67]=a?.footnote,t[68]=a?.source,t[69]=gt,t[70]=n,t[71]=p?.footnote,t[72]=p?.source,t[73]=E,t[74]=Ft):Ft=t[74];let Ut;return t[75]!==$||t[76]!==Q||t[77]!==dt||t[78]!==d||t[79]!==U||t[80]!==G||t[81]!==_||t[82]!==et||t[83]!==Gt||t[84]!==Wt||t[85]!==St||t[86]!==$t||t[87]!==Tt||t[88]!==Ft||t[89]!==y||t[90]!==E?(Ut=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:Gt,style:Wt,id:dt,ref:Xt,"aria-label":$,backgroundColor:Q,theme:y,language:U,minHeight:G,width:E,height:d,relativeHeight:et,padding:_,children:[St,$t,Tt,Ft]}),t[75]=$,t[76]=Q,t[77]=dt,t[78]=d,t[79]=U,t[80]=G,t[81]=_,t[82]=et,t[83]=Gt,t[84]=Wt,t[85]=St,t[86]=$t,t[87]=Tt,t[88]=Ft,t[89]=y,t[90]=E,t[91]=Ut):Ut=t[91],Ut}function so(e){return e.color}function ao(e){return e.color}function co(e){return e.color}function uo(e){return e!==void 0}function fo(e){return e!==void 0}function po(e){return e.data}function mo(e){return e!==void 0}function xo(e){return e.data}exports.StripChart=lo;
2
2
  //# sourceMappingURL=StripChart.cjs.map