@undp/data-viz 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"RadarChart.cjs","sources":["../node_modules/d3-shape/src/curve/radial.js","../node_modules/d3-shape/src/lineRadial.js","../node_modules/d3-shape/src/noop.js","../node_modules/d3-shape/src/curve/cardinal.js","../node_modules/d3-shape/src/curve/cardinalClosed.js","../node_modules/d3-shape/src/curve/linearClosed.js","../src/Components/Graphs/RadarChart/Graph.tsx","../src/Components/Graphs/RadarChart/index.tsx"],"sourcesContent":["import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport isEqual from 'fast-deep-equal';\r\nimport { lineRadial, curveLinearClosed, curveCardinalClosed } from 'd3-shape';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n RadarChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n radius: number;\r\n lineColors: string[];\r\n axisLabels: (string | number)[];\r\n data: RadarChartDataType[];\r\n\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n selectedColor?: string;\r\n onSeriesMouseOver?: (_d: any) => void;\r\n onSeriesMouseClick?: (_d: any) => void;\r\n colorDomain: string[];\r\n\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n strokeWidth: number;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n showValues: boolean;\r\n showDots: boolean;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n curveType: 'linear' | 'curve';\r\n noOfTicks: number;\r\n maxValue?: number;\r\n minValue?: number;\r\n fillShape: boolean;\r\n resetSelectionOnDoubleClick: boolean;\r\n highlightedLines: (string | number)[];\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n radius,\r\n lineColors,\r\n tooltip,\r\n onSeriesMouseOver,\r\n onSeriesMouseClick,\r\n colorDomain,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n selectedColor,\r\n axisLabels,\r\n strokeWidth,\r\n showValues,\r\n showDots,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n leftMargin,\r\n curveType,\r\n noOfTicks,\r\n minValue,\r\n maxValue,\r\n resetSelectionOnDoubleClick,\r\n fillShape,\r\n highlightedLines,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const curve = curveType === 'linear' ? curveLinearClosed : curveCardinalClosed;\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 radiusWithoutMargin = Math.min(\r\n (2 * radius - leftMargin - rightMargin) / 2,\r\n (2 * radius - topMargin - bottomMargin) / 2,\r\n );\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n\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 angleScale = scaleLinear()\r\n .domain([0, data[0].values.length])\r\n .range([0, 2 * Math.PI]);\r\n\r\n const maxVal = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) < 0\r\n ? 0\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n\r\n const minVal = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) >= 0\r\n ? 0\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n const scale = scaleLinear().domain([minVal, maxVal]).range([0, radiusWithoutMargin]).nice();\r\n const ticksArray = scale.ticks(noOfTicks);\r\n const lineShape = lineRadial<number>()\r\n .radius(d => scale(d))\r\n .angle((_, i) => angleScale(i))\r\n .curve(curve);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${radius * 2}px`}\r\n height={`${radius * 2}px`}\r\n viewBox={`0 0 ${radius * 2} ${radius * 2}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n className='mx-auto'\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g transform={`translate(${radiusWithoutMargin},${radiusWithoutMargin})`}>\r\n {axisLabels.map((d, i) => (\r\n <g key={i}>\r\n <line\r\n x1={0}\r\n y1={0}\r\n x2={Math.cos(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n y2={Math.sin(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n key={i}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.axis,\r\n )}\r\n style={styles?.xAxis?.axis}\r\n />\r\n <text\r\n x={Math.cos(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n y={Math.sin(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n style={{\r\n textAnchor:\r\n Math.cos(angleScale(i) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n ...(styles?.xAxis?.labels || ''),\r\n }}\r\n dy={\r\n Math.sin(angleScale(i) - Math.PI / 2) < 0\r\n ? 0\r\n : Math.sin(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 5\r\n : 10\r\n }\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n >\r\n {d}\r\n </text>\r\n </g>\r\n ))}\r\n {ticksArray.map((d, i) => (\r\n <g key={i}>\r\n <path\r\n d={lineShape(Array(axisLabels.length).fill(d)) || ''}\r\n className={cn(\r\n 'stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.gridLines,\r\n )}\r\n style={{\r\n ...styles?.xAxis?.gridLines,\r\n fill: 'none',\r\n }}\r\n />\r\n <foreignObject\r\n x={-25}\r\n y={\r\n Math.sin(-Math.PI / 2) * scale(d) > -0.0001\r\n ? Math.sin(-Math.PI / 2) * scale(d) - 7\r\n : Math.sin(-Math.PI / 2) * scale(d) - 5\r\n }\r\n width={50}\r\n height={12}\r\n >\r\n <div className='flex justify-center'>\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700',\r\n classNames?.xAxis?.labels,\r\n )}\r\n style={styles?.xAxis?.labels}\r\n >\r\n {numberFormattingFunction(d, 'NA', precision)}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </g>\r\n ))}\r\n <AnimatePresence>\r\n {data.map((d, i) => (\r\n <motion.g\r\n key={d.label || i}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : 0.3\r\n : 0.3\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\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.path\r\n d={lineShape(d.values) || ''}\r\n variants={{\r\n initial: {\r\n d: lineShape(d.values.map(_el => 0)) || '',\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\r\n },\r\n whileInView: {\r\n d: lineShape(d.values) || '',\r\n transition: { duration: animate.duration },\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\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 fillOpacity: 0.1,\r\n }}\r\n />\r\n <g>\r\n {d.values.map((el, j) => (\r\n <g key={j}>\r\n {!checkIfNullOrUndefined(el) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={4}\r\n variants={{\r\n initial: {\r\n cx: 0,\r\n cy: 0,\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n whileInView: {\r\n cx: Math.cos(angleScale(j) - Math.PI / 2) * scale(el),\r\n cy: Math.sin(angleScale(j) - Math.PI / 2) * scale(el),\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n style={{\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n dy={\r\n Math.sin(angleScale(j) - Math.PI / 2) < 0\r\n ? 10\r\n : Math.sin(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 0\r\n : 0\r\n }\r\n className={cn(\r\n 'graph-value text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n {numberFormattingFunction(el, 'NA', precision)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </g>\r\n ))}\r\n </g>\r\n </motion.g>\r\n ))}\r\n </AnimatePresence>\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n RadarChartDataType,\r\n Languages,\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 { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\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: RadarChartDataType[];\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 each line */\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 /** Radius of the radar chart */\r\n radius?: number;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** 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 values */\r\n showValues?: boolean;\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle is the shape is filled or not */\r\n fillShape?: boolean;\r\n /** No. of ticks on the x-axis */\r\n noOfTicks?: number;\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 highlightedLines?: (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 /** Labels for the axes */\r\n axisLabels: (string | number)[];\r\n /** Curve type for the line */\r\n curveType?: 'linear' | 'curve';\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n\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 RadarChart(props: Props) {\r\n const {\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n footNote,\r\n radius,\r\n data,\r\n showColorScale = true,\r\n padding,\r\n backgroundColor = false,\r\n tooltip,\r\n onSeriesMouseOver,\r\n graphID,\r\n onSeriesMouseClick,\r\n topMargin = 75,\r\n bottomMargin = 75,\r\n leftMargin = 75,\r\n rightMargin = 75,\r\n graphDownload = false,\r\n dataDownload = false,\r\n colorDomain,\r\n language = 'en',\r\n theme = 'light',\r\n highlightedLines = [],\r\n width,\r\n height,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n relativeHeight,\r\n ariaLabel,\r\n colorLegendTitle,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n showNAColor = true,\r\n axisLabels,\r\n showDots = true,\r\n showValues = false,\r\n curveType = 'curve',\r\n noOfTicks = 5,\r\n minValue,\r\n maxValue,\r\n fillShape = false,\r\n resetSelectionOnDoubleClick = true,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [graphRadius, setGraphRadius] = 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 setGraphRadius(\r\n (Math.min(\r\n ...[\r\n entries[0].target.clientWidth || 620,\r\n entries[0].target.clientHeight || 480,\r\n radius || Infinity,\r\n ],\r\n ) || 420) / 2,\r\n );\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, [radius]);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {data.length === 0 ? (\r\n <EmptyState />\r\n ) : (\r\n <>\r\n {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 isCenter\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {graphRadius ? (\r\n <Graph\r\n data={data}\r\n lineColors={\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 radius={graphRadius}\r\n tooltip={tooltip}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n styles={styles}\r\n detailsOnClick={detailsOnClick}\r\n selectedColor={selectedColor}\r\n axisLabels={axisLabels}\r\n strokeWidth={strokeWidth}\r\n showValues={showValues}\r\n showDots={showDots}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n curveType={curveType}\r\n noOfTicks={noOfTicks}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n fillShape={fillShape}\r\n highlightedLines={highlightedLines}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\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 precision={precision}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n </>\r\n )}\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["curveRadialLinear","curveRadial","curveLinear","Radial","curve","a","r","radial","context","lineRadial","l","c","_","lineRadial$1","line","noop","point","that","x","y","Cardinal","tension","custom","cardinal","CardinalClosed","curveCardinalClosed","LinearClosed","curveLinearClosed","Graph","props","$","_c","data","radius","lineColors","tooltip","onSeriesMouseOver","onSeriesMouseClick","colorDomain","detailsOnClick","styles","classNames","selectedColor","axisLabels","strokeWidth","showValues","showDots","rightMargin","topMargin","bottomMargin","leftMargin","curveType","noOfTicks","minValue","maxValue","resetSelectionOnDoubleClick","fillShape","highlightedLines","animate","dimmedOpacity","precision","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","radiusWithoutMargin","Math","min","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","T0","T1","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","axis","gridLines","labels","angleScale","scaleLinear","domain","values","length","range","PI","t14","checkIfNullOrUndefined","max","map","_temp2","_temp4","maxVal","t15","_temp6","_temp8","minVal","scale","nice","ticksArray","ticks","lineShape","d_3","d","angle","i","motion","svg","filter","_temp9","_temp0","d_6","i_0","jsx","cos","sin","cn","textAnchor","d_7","i_1","Array","fill","numberFormattingFunction","AnimatePresence","d_8","i_2","jsxs","initial","opacity","label","color","indexOf","whileInView","transition","event","clientY","clientX","event_0","isEqual","_temp1","stroke","_temp10","Colors","gray","_temp11","_temp12","_temp13","fillOpacity","el_3","j","el","Fragment","cx","cy","_temp14","_temp15","t16","_temp16","_temp17","t17","t18","t19","Tooltip","t20","modal","DetailsModal","t21","d_10","layer","d_9","position","el_5","el_4","el_2","el_1","el_0","_el","d_5","d_4","d_1","_temp7","l_1","d_2","_temp5","l_2","_temp3","d_0","_temp","l_0","RadarChart","graphTitle","colors","sources","graphDescription","footNote","showColorScale","padding","backgroundColor","graphID","graphDownload","dataDownload","language","theme","width","height","minHeight","relativeHeight","ariaLabel","colorLegendTitle","showNAColor","graphRadius","setGraphRadius","setSelectedColor","graphDiv","graphParentDiv","useEffect","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","Infinity","current","observe","disconnect","GraphContainer","graphContainer","GraphHeader","title","description","EmptyState","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","primaryColors","GraphFooter","footnote","source"],"mappings":"myBAEO,IAAIA,GAAoBC,GAAYC,cAAW,EAEtD,SAASC,GAAOC,EAAO,CACrB,KAAK,OAASA,CAChB,CAEAD,GAAO,UAAY,CACjB,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,MAAO,SAASE,EAAGC,EAAG,CACpB,KAAK,OAAO,MAAMA,EAAI,KAAK,IAAID,CAAC,EAAGC,EAAI,CAAC,KAAK,IAAID,CAAC,CAAC,CACrD,CACF,EAE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SAAUnO,GAAYmO,SACtBC,OAAQpO,GAAYoO,MAAAA,EAEtB,QAAAhD,EACA,SAAAE,EACA,MAAAS,CAAA,CAAa,EAEb,IAAA,EACN,CAEJ","x_google_ignoreList":[0,1,2,3,4,5]}
1
+ {"version":3,"file":"RadarChart.cjs","sources":["../node_modules/d3-shape/src/curve/radial.js","../node_modules/d3-shape/src/lineRadial.js","../node_modules/d3-shape/src/noop.js","../node_modules/d3-shape/src/curve/cardinal.js","../node_modules/d3-shape/src/curve/cardinalClosed.js","../node_modules/d3-shape/src/curve/linearClosed.js","../src/Components/Graphs/RadarChart/Graph.tsx","../src/Components/Graphs/RadarChart/index.tsx"],"sourcesContent":["import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport isEqual from 'fast-deep-equal';\r\nimport { lineRadial, curveLinearClosed, curveCardinalClosed } from 'd3-shape';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n RadarChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n radius: number;\r\n lineColors: string[];\r\n axisLabels: (string | number)[];\r\n data: RadarChartDataType[];\r\n\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n selectedColor?: string;\r\n onSeriesMouseOver?: (_d: any) => void;\r\n onSeriesMouseClick?: (_d: any) => void;\r\n colorDomain: string[];\r\n\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n strokeWidth: number;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n showValues: boolean;\r\n showDots: boolean;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n curveType: 'linear' | 'curve';\r\n noOfTicks: number;\r\n maxValue?: number;\r\n minValue?: number;\r\n fillShape: boolean;\r\n resetSelectionOnDoubleClick: boolean;\r\n highlightedLines: (string | number)[];\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n radius,\r\n lineColors,\r\n tooltip,\r\n onSeriesMouseOver,\r\n onSeriesMouseClick,\r\n colorDomain,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n selectedColor,\r\n axisLabels,\r\n strokeWidth,\r\n showValues,\r\n showDots,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n leftMargin,\r\n curveType,\r\n noOfTicks,\r\n minValue,\r\n maxValue,\r\n resetSelectionOnDoubleClick,\r\n fillShape,\r\n highlightedLines,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const curve = curveType === 'linear' ? curveLinearClosed : curveCardinalClosed;\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 radiusWithoutMargin = Math.min(\r\n (2 * radius - leftMargin - rightMargin) / 2,\r\n (2 * radius - topMargin - bottomMargin) / 2,\r\n );\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n\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 angleScale = scaleLinear()\r\n .domain([0, data[0].values.length])\r\n .range([0, 2 * Math.PI]);\r\n\r\n const maxVal = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) < 0\r\n ? 0\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n\r\n const minVal = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) >= 0\r\n ? 0\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n const scale = scaleLinear().domain([minVal, maxVal]).range([0, radiusWithoutMargin]).nice();\r\n const ticksArray = scale.ticks(noOfTicks);\r\n const lineShape = lineRadial<number>()\r\n .radius(d => scale(d))\r\n .angle((_, i) => angleScale(i))\r\n .curve(curve);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${radius * 2}px`}\r\n height={`${radius * 2}px`}\r\n viewBox={`0 0 ${radius * 2} ${radius * 2}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n className='mx-auto'\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g transform={`translate(${radiusWithoutMargin},${radiusWithoutMargin})`}>\r\n {axisLabels.map((d, i) => (\r\n <g key={i}>\r\n <line\r\n x1={0}\r\n y1={0}\r\n x2={Math.cos(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n y2={Math.sin(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n key={i}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.axis,\r\n )}\r\n style={styles?.xAxis?.axis}\r\n />\r\n <text\r\n x={Math.cos(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n y={Math.sin(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n style={{\r\n textAnchor:\r\n Math.cos(angleScale(i) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n ...(styles?.xAxis?.labels || ''),\r\n }}\r\n dy={\r\n Math.sin(angleScale(i) - Math.PI / 2) < 0\r\n ? 0\r\n : Math.sin(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 5\r\n : 10\r\n }\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n >\r\n {d}\r\n </text>\r\n </g>\r\n ))}\r\n {ticksArray.map((d, i) => (\r\n <g key={i}>\r\n <path\r\n d={lineShape(Array(axisLabels.length).fill(d)) || ''}\r\n className={cn(\r\n 'stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.gridLines,\r\n )}\r\n style={{\r\n ...styles?.xAxis?.gridLines,\r\n fill: 'none',\r\n }}\r\n />\r\n <foreignObject\r\n x={-25}\r\n y={\r\n Math.sin(-Math.PI / 2) * scale(d) > -0.0001\r\n ? Math.sin(-Math.PI / 2) * scale(d) - 7\r\n : Math.sin(-Math.PI / 2) * scale(d) - 5\r\n }\r\n width={50}\r\n height={12}\r\n >\r\n <div className='flex justify-center'>\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700',\r\n classNames?.xAxis?.labels,\r\n )}\r\n style={styles?.xAxis?.labels}\r\n >\r\n {numberFormattingFunction(d, 'NA', precision)}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </g>\r\n ))}\r\n <AnimatePresence>\r\n {data.map((d, i) => (\r\n <motion.g\r\n key={d.label || i}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : 0.3\r\n : 0.3\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines.length !== 0\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\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.path\r\n d={lineShape(d.values) || ''}\r\n variants={{\r\n initial: {\r\n d: lineShape(d.values.map(_el => 0)) || '',\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\r\n },\r\n whileInView: {\r\n d: lineShape(d.values) || '',\r\n transition: { duration: animate.duration },\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\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 fillOpacity: 0.1,\r\n }}\r\n />\r\n <g>\r\n {d.values.map((el, j) => (\r\n <g key={j}>\r\n {!checkIfNullOrUndefined(el) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={4}\r\n variants={{\r\n initial: {\r\n cx: 0,\r\n cy: 0,\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n whileInView: {\r\n cx: Math.cos(angleScale(j) - Math.PI / 2) * scale(el),\r\n cy: Math.sin(angleScale(j) - Math.PI / 2) * scale(el),\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n />\r\n ) : null}\r\n {showValues ? (\r\n <motion.text\r\n style={{\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n dy={\r\n Math.sin(angleScale(j) - Math.PI / 2) < 0\r\n ? 10\r\n : Math.sin(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 0\r\n : 0\r\n }\r\n className={cn(\r\n 'graph-value text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n {numberFormattingFunction(el, 'NA', precision)}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </g>\r\n ))}\r\n </g>\r\n </motion.g>\r\n ))}\r\n </AnimatePresence>\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n RadarChartDataType,\r\n Languages,\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 { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\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: RadarChartDataType[];\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 each line */\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 /** Radius of the radar chart */\r\n radius?: number;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** 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 values */\r\n showValues?: boolean;\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle is the shape is filled or not */\r\n fillShape?: boolean;\r\n /** No. of ticks on the x-axis */\r\n noOfTicks?: number;\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 highlightedLines?: (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 /** Labels for the axes */\r\n axisLabels: (string | number)[];\r\n /** Curve type for the line */\r\n curveType?: 'linear' | 'curve';\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n\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 RadarChart(props: Props) {\r\n const {\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n footNote,\r\n radius,\r\n data,\r\n showColorScale = true,\r\n padding,\r\n backgroundColor = false,\r\n tooltip,\r\n onSeriesMouseOver,\r\n graphID,\r\n onSeriesMouseClick,\r\n topMargin = 75,\r\n bottomMargin = 75,\r\n leftMargin = 75,\r\n rightMargin = 75,\r\n graphDownload = false,\r\n dataDownload = false,\r\n colorDomain,\r\n language = 'en',\r\n theme = 'light',\r\n highlightedLines = [],\r\n width,\r\n height,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n relativeHeight,\r\n ariaLabel,\r\n colorLegendTitle,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n showNAColor = true,\r\n axisLabels,\r\n showDots = true,\r\n showValues = false,\r\n curveType = 'curve',\r\n noOfTicks = 5,\r\n minValue,\r\n maxValue,\r\n fillShape = false,\r\n resetSelectionOnDoubleClick = true,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [graphRadius, setGraphRadius] = 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 setGraphRadius(\r\n (Math.min(\r\n ...[\r\n entries[0].target.clientWidth || 620,\r\n entries[0].target.clientHeight || 480,\r\n radius || Infinity,\r\n ],\r\n ) || 420) / 2,\r\n );\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, [radius]);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && 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 isCenter\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {graphRadius && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n lineColors={\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 radius={graphRadius}\r\n tooltip={tooltip}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n styles={styles}\r\n detailsOnClick={detailsOnClick}\r\n selectedColor={selectedColor}\r\n axisLabels={axisLabels}\r\n strokeWidth={strokeWidth}\r\n showValues={showValues}\r\n showDots={showDots}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n curveType={curveType}\r\n noOfTicks={noOfTicks}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n fillShape={fillShape}\r\n highlightedLines={highlightedLines}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\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 precision={precision}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["curveRadialLinear","curveRadial","curveLinear","Radial","curve","a","r","radial","context","lineRadial","l","c","_","lineRadial$1","line","noop","point","that","x","y","Cardinal","tension","custom","cardinal","CardinalClosed","curveCardinalClosed","LinearClosed","curveLinearClosed","Graph","props","$","_c","data","radius","lineColors","tooltip","onSeriesMouseOver","onSeriesMouseClick","colorDomain","detailsOnClick","styles","classNames","selectedColor","axisLabels","strokeWidth","showValues","showDots","rightMargin","topMargin","bottomMargin","leftMargin","curveType","noOfTicks","minValue","maxValue","resetSelectionOnDoubleClick","fillShape","highlightedLines","animate","dimmedOpacity","precision","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","radiusWithoutMargin","Math","min","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","T0","T1","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","axis","gridLines","labels","angleScale","scaleLinear","domain","values","length","range","PI","t14","checkIfNullOrUndefined","max","map","_temp2","_temp4","maxVal","t15","_temp6","_temp8","minVal","scale","nice","ticksArray","ticks","lineShape","d_3","d","angle","i","motion","svg","filter","_temp9","_temp0","d_6","i_0","jsx","cos","sin","cn","textAnchor","d_7","i_1","Array","fill","numberFormattingFunction","AnimatePresence","d_8","i_2","jsxs","initial","opacity","label","color","indexOf","whileInView","transition","event","clientY","clientX","event_0","isEqual","_temp1","stroke","_temp10","Colors","gray","_temp11","_temp12","_temp13","fillOpacity","el_3","j","el","Fragment","cx","cy","_temp14","_temp15","t16","_temp16","_temp17","t17","t18","t19","Tooltip","t20","modal","DetailsModal","t21","d_10","layer","d_9","position","el_5","el_4","el_2","el_1","el_0","_el","d_5","d_4","d_1","_temp7","l_1","d_2","_temp5","l_2","_temp3","d_0","_temp","l_0","RadarChart","graphTitle","colors","sources","graphDescription","footNote","showColorScale","padding","backgroundColor","graphID","graphDownload","dataDownload","language","theme","width","height","minHeight","relativeHeight","ariaLabel","colorLegendTitle","showNAColor","graphRadius","setGraphRadius","setSelectedColor","graphDiv","graphParentDiv","useEffect","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","Infinity","current","observe","disconnect","GraphContainer","graphContainer","GraphHeader","title","description","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","EmptyState","primaryColors","GraphFooter","footnote","source"],"mappings":"myBAEO,IAAIA,GAAoBC,GAAYC,cAAW,EAEtD,SAASC,GAAOC,EAAO,CACrB,KAAK,OAASA,CAChB,CAEAD,GAAO,UAAY,CACjB,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,MAAO,SAASE,EAAGC,EAAG,CACpB,KAAK,OAAO,MAAMA,EAAI,KAAK,IAAID,CAAC,EAAGC,EAAI,CAAC,KAAK,IAAID,CAAC,CAAC,CACrD,CACF,EAEe,SAASJ,GAAYG,EAAO,CAEzC,SAASG,EAAOC,EAAS,CACvB,OAAO,IAAIL,GAAOC,EAAMI,CAAO,CAAC,CAClC,CAEA,OAAAD,EAAO,OAASH,EAETG,CACT,CChCO,SAASE,GAAWC,EAAG,CAC5B,IAAIC,EAAID,EAAE,M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j as o, m as bt } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as Nt, useState as ft, useEffect as Yt } from "react";
2
+ import { useRef as Nt, useState as mt, useEffect as Yt } from "react";
3
3
  import { i as zt } from "./index-Bwrro8-q.js";
4
4
  import { T as qt } from "./Tooltip-Dj5eVppQ.js";
5
5
  import { Colors as N } from "./Colors.js";
@@ -13,7 +13,7 @@ import { m as kt } from "./proxy-BxkFHwUw.js";
13
13
  import { A as Qt } from "./index-BqfRwk1n.js";
14
14
  import { GraphFooter as Zt } from "./GraphFooter.js";
15
15
  import { GraphHeader as ti } from "./GraphHeader.js";
16
- import { E as ii } from "./EmptyState-BZo1BbAn.js";
16
+ import { E as ii } from "./EmptyState-C7ZXkZWd.js";
17
17
  import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
18
18
  import { u as Lt } from "./uniqBy-BHy4I8PK.js";
19
19
  import { G as ni, a as oi } from "./GraphContainer-CRqzdKu2.js";
@@ -192,7 +192,7 @@ function hi(i) {
192
192
  lineColors: s,
193
193
  tooltip: H,
194
194
  onSeriesMouseOver: X,
195
- onSeriesMouseClick: f,
195
+ onSeriesMouseClick: m,
196
196
  colorDomain: g,
197
197
  detailsOnClick: C,
198
198
  styles: h,
@@ -231,29 +231,29 @@ function hi(i) {
231
231
  left: z,
232
232
  right: K
233
233
  }, t[3] = Y, t[4] = z, t[5] = K, t[6] = Q, t[7] = it) : it = t[7];
234
- const E = it, v = Math.min((2 * c - z - K) / 2, (2 * c - Q - Y) / 2), [_, yt] = ft(void 0), [O, _t] = ft(void 0), [et, Mt] = ft(void 0), [q, vt] = ft(void 0);
234
+ const E = it, v = Math.min((2 * c - z - K) / 2, (2 * c - Q - Y) / 2), [_, yt] = mt(void 0), [O, _t] = mt(void 0), [et, Mt] = mt(void 0), [q, vt] = mt(void 0);
235
235
  let T, R, P, $, G, F, I, A, a, j, nt, W, ot, at;
236
- if (t[8] !== u.duration || t[9] !== U || t[10] !== r?.graphObjectValues || t[11] !== r?.xAxis?.axis || t[12] !== r?.xAxis?.gridLines || t[13] !== r?.xAxis?.labels || t[14] !== g || t[15] !== gt || t[16] !== w || t[17] !== n || t[18] !== C || t[19] !== y || t[20] !== Z || t[21] !== L || t[22] !== x || t[23] !== s || t[24] !== E.left || t[25] !== E.top || t[26] !== V || t[27] !== k || t[28] !== O || t[29] !== _ || t[30] !== dt || t[31] !== f || t[32] !== X || t[33] !== tt || t[34] !== c || t[35] !== v || t[36] !== D || t[37] !== S || t[38] !== xt || t[39] !== pt || t[40] !== J || t[41] !== h?.graphObjectValues || t[42] !== h?.xAxis?.axis || t[43] !== h?.xAxis?.gridLines || t[44] !== h?.xAxis?.labels) {
236
+ if (t[8] !== u.duration || t[9] !== U || t[10] !== r?.graphObjectValues || t[11] !== r?.xAxis?.axis || t[12] !== r?.xAxis?.gridLines || t[13] !== r?.xAxis?.labels || t[14] !== g || t[15] !== gt || t[16] !== w || t[17] !== n || t[18] !== C || t[19] !== y || t[20] !== Z || t[21] !== L || t[22] !== x || t[23] !== s || t[24] !== E.left || t[25] !== E.top || t[26] !== V || t[27] !== k || t[28] !== O || t[29] !== _ || t[30] !== dt || t[31] !== m || t[32] !== X || t[33] !== tt || t[34] !== c || t[35] !== v || t[36] !== D || t[37] !== S || t[38] !== xt || t[39] !== pt || t[40] !== J || t[41] !== h?.graphObjectValues || t[42] !== h?.xAxis?.axis || t[43] !== h?.xAxis?.gridLines || t[44] !== h?.xAxis?.labels) {
237
237
  const l = Dt().domain([0, n[0].values.length]).range([0, 2 * Math.PI]);
238
238
  let Ot;
239
239
  t[59] !== n || t[60] !== V ? (Ot = B(V) ? Math.max(...n.map(Pi)) < 0 ? 0 : Math.max(...n.map(Ci)) : V, t[59] = n, t[60] = V, t[61] = Ot) : Ot = t[61];
240
240
  const Ft = Ot;
241
241
  let Pt;
242
242
  t[62] !== n || t[63] !== k ? (Pt = B(k) ? Math.min(...n.map(wi)) >= 0 ? 0 : Math.min(...n.map(bi)) : k, t[62] = n, t[63] = k, t[64] = Pt) : Pt = t[64];
243
- const Wt = Pt, b = Dt().domain([Wt, Ft]).range([0, v]).nice(), Ht = b.ticks(dt), At = ri().radius((e) => b(e)).angle((e, m) => l(m)).curve(gt);
244
- R = kt.svg, ot = `${c * 2}px`, at = `${c * 2}px`, P = `0 0 ${c * 2} ${c * 2}`, $ = "ltr", G = It, F = "mx-auto", nt = `translate(${E.left},${E.top})`, t[65] !== w ? (W = w.filter(vi).map(Mi), t[65] = w, t[66] = W) : W = t[66], A = `translate(${v},${v})`, a = U.map((e, m) => /* @__PURE__ */ o.jsxs("g", { children: [
245
- /* @__PURE__ */ o.jsx("line", { x1: 0, y1: 0, x2: Math.cos(l(m) - Math.PI / 2) * v, y2: Math.sin(l(m) - Math.PI / 2) * v, className: bt("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550", r?.xAxis?.axis), style: h?.xAxis?.axis }, m),
246
- /* @__PURE__ */ o.jsx("text", { x: Math.cos(l(m) - Math.PI / 2) * (v + 6), y: Math.sin(l(m) - Math.PI / 2) * (v + 6), style: {
247
- textAnchor: Math.cos(l(m) - Math.PI / 2) < 0 ? "end" : Math.cos(l(m) - Math.PI / 2) < 1e-5 ? "middle" : "start",
243
+ const Wt = Pt, b = Dt().domain([Wt, Ft]).range([0, v]).nice(), Ht = b.ticks(dt), At = ri().radius((e) => b(e)).angle((e, f) => l(f)).curve(gt);
244
+ R = kt.svg, ot = `${c * 2}px`, at = `${c * 2}px`, P = `0 0 ${c * 2} ${c * 2}`, $ = "ltr", G = It, F = "mx-auto", nt = `translate(${E.left},${E.top})`, t[65] !== w ? (W = w.filter(vi).map(Mi), t[65] = w, t[66] = W) : W = t[66], A = `translate(${v},${v})`, a = U.map((e, f) => /* @__PURE__ */ o.jsxs("g", { children: [
245
+ /* @__PURE__ */ o.jsx("line", { x1: 0, y1: 0, x2: Math.cos(l(f) - Math.PI / 2) * v, y2: Math.sin(l(f) - Math.PI / 2) * v, className: bt("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550", r?.xAxis?.axis), style: h?.xAxis?.axis }, f),
246
+ /* @__PURE__ */ o.jsx("text", { x: Math.cos(l(f) - Math.PI / 2) * (v + 6), y: Math.sin(l(f) - Math.PI / 2) * (v + 6), style: {
247
+ textAnchor: Math.cos(l(f) - Math.PI / 2) < 0 ? "end" : Math.cos(l(f) - Math.PI / 2) < 1e-5 ? "middle" : "start",
248
248
  ...h?.xAxis?.labels || ""
249
- }, dy: Math.sin(l(m) - Math.PI / 2) < 0 ? 0 : Math.sin(l(m) - Math.PI / 2) < 1e-5 ? 5 : 10, className: bt("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", r?.xAxis?.labels), children: e })
250
- ] }, m)), j = Ht.map((e, m) => /* @__PURE__ */ o.jsxs("g", { children: [
249
+ }, dy: Math.sin(l(f) - Math.PI / 2) < 0 ? 0 : Math.sin(l(f) - Math.PI / 2) < 1e-5 ? 5 : 10, className: bt("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", r?.xAxis?.labels), children: e })
250
+ ] }, f)), j = Ht.map((e, f) => /* @__PURE__ */ o.jsxs("g", { children: [
251
251
  /* @__PURE__ */ o.jsx("path", { d: At(Array(U.length).fill(e)) || "", className: bt("stroke-primary-gray-500 dark:stroke-primary-gray-550", r?.xAxis?.gridLines), style: {
252
252
  ...h?.xAxis?.gridLines,
253
253
  fill: "none"
254
254
  } }),
255
255
  /* @__PURE__ */ o.jsx("foreignObject", { x: -25, y: Math.sin(-Math.PI / 2) * b(e) > -1e-4 ? Math.sin(-Math.PI / 2) * b(e) - 7 : Math.sin(-Math.PI / 2) * b(e) - 5, width: 50, height: 12, children: /* @__PURE__ */ o.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ o.jsx("p", { className: bt("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700", r?.xAxis?.labels), style: h?.xAxis?.labels, children: Vt(e, "NA", tt) }) }) })
256
- ] }, m)), T = Qt, I = n.map((e, m) => /* @__PURE__ */ o.jsxs(kt.g, { variants: {
256
+ ] }, f)), T = Qt, I = n.map((e, f) => /* @__PURE__ */ o.jsxs(kt.g, { variants: {
257
257
  initial: {
258
258
  opacity: _ ? e.label === _.label ? 1 : y : S ? e.color && s[g.indexOf(e.color)] === S ? 1 : y : L.length !== 0 ? e.label && L.indexOf(e.label) !== -1 ? 1 : 0.3 : 1
259
259
  },
@@ -275,7 +275,7 @@ function hi(i) {
275
275
  }, onMouseLeave: () => {
276
276
  yt(void 0), Mt(void 0), vt(void 0), X?.(void 0);
277
277
  }, onClick: () => {
278
- (f || C) && (zt(O, e) && D ? (_t(void 0), f?.(void 0)) : (_t(e), f?.(e)));
278
+ (m || C) && (zt(O, e) && D ? (_t(void 0), m?.(void 0)) : (_t(e), m?.(e)));
279
279
  }, children: [
280
280
  /* @__PURE__ */ o.jsx(kt.path, { d: At(e.values) || "", variants: {
281
281
  initial: {
@@ -316,7 +316,7 @@ function hi(i) {
316
316
  transition: {
317
317
  duration: u.duration
318
318
  },
319
- fill: n.filter(fi).length === 0 ? s[0] : e.color ? s[g.indexOf(e.color)] : N.gray
319
+ fill: n.filter(mi).length === 0 ? s[0] : e.color ? s[g.indexOf(e.color)] : N.gray
320
320
  }
321
321
  }, initial: "initial", animate: x ? "whileInView" : "initial", exit: {
322
322
  opacity: 0,
@@ -331,14 +331,14 @@ function hi(i) {
331
331
  opacity: 0,
332
332
  x: Math.cos(l(d) - Math.PI / 2) * (b(p) + 6),
333
333
  y: Math.sin(l(d) - Math.PI / 2) * (b(p) + 6),
334
- fill: s[m],
334
+ fill: s[f],
335
335
  textAnchor: Math.cos(l(d) - Math.PI / 2) < 0 ? "end" : Math.cos(l(d) - Math.PI / 2) < 1e-5 ? "middle" : "start"
336
336
  },
337
337
  whileInView: {
338
338
  opacity: 1,
339
339
  x: Math.cos(l(d) - Math.PI / 2) * (b(p) + 6),
340
340
  y: Math.sin(l(d) - Math.PI / 2) * (b(p) + 6),
341
- fill: s[m],
341
+ fill: s[f],
342
342
  textAnchor: Math.cos(l(d) - Math.PI / 2) < 0 ? "end" : Math.cos(l(d) - Math.PI / 2) < 1e-5 ? "middle" : "start",
343
343
  transition: {
344
344
  duration: u.duration
@@ -351,7 +351,7 @@ function hi(i) {
351
351
  }
352
352
  }, children: Vt(p, "NA", tt) }) : null
353
353
  ] }) }, d)) })
354
- ] }, e.label || m)), t[8] = u.duration, t[9] = U, t[10] = r?.graphObjectValues, t[11] = r?.xAxis?.axis, t[12] = r?.xAxis?.gridLines, t[13] = r?.xAxis?.labels, t[14] = g, t[15] = gt, t[16] = w, t[17] = n, t[18] = C, t[19] = y, t[20] = Z, t[21] = L, t[22] = x, t[23] = s, t[24] = E.left, t[25] = E.top, t[26] = V, t[27] = k, t[28] = O, t[29] = _, t[30] = dt, t[31] = f, t[32] = X, t[33] = tt, t[34] = c, t[35] = v, t[36] = D, t[37] = S, t[38] = xt, t[39] = pt, t[40] = J, t[41] = h?.graphObjectValues, t[42] = h?.xAxis?.axis, t[43] = h?.xAxis?.gridLines, t[44] = h?.xAxis?.labels, t[45] = T, t[46] = R, t[47] = P, t[48] = $, t[49] = G, t[50] = F, t[51] = I, t[52] = A, t[53] = a, t[54] = j, t[55] = nt, t[56] = W, t[57] = ot, t[58] = at;
354
+ ] }, e.label || f)), t[8] = u.duration, t[9] = U, t[10] = r?.graphObjectValues, t[11] = r?.xAxis?.axis, t[12] = r?.xAxis?.gridLines, t[13] = r?.xAxis?.labels, t[14] = g, t[15] = gt, t[16] = w, t[17] = n, t[18] = C, t[19] = y, t[20] = Z, t[21] = L, t[22] = x, t[23] = s, t[24] = E.left, t[25] = E.top, t[26] = V, t[27] = k, t[28] = O, t[29] = _, t[30] = dt, t[31] = m, t[32] = X, t[33] = tt, t[34] = c, t[35] = v, t[36] = D, t[37] = S, t[38] = xt, t[39] = pt, t[40] = J, t[41] = h?.graphObjectValues, t[42] = h?.xAxis?.axis, t[43] = h?.xAxis?.gridLines, t[44] = h?.xAxis?.labels, t[45] = T, t[46] = R, t[47] = P, t[48] = $, t[49] = G, t[50] = F, t[51] = I, t[52] = A, t[53] = a, t[54] = j, t[55] = nt, t[56] = W, t[57] = ot, t[58] = at;
355
355
  } else
356
356
  T = t[45], R = t[46], P = t[47], $ = t[48], G = t[49], F = t[50], I = t[51], A = t[52], a = t[53], j = t[54], nt = t[55], W = t[56], ot = t[57], at = t[58];
357
357
  let st;
@@ -363,7 +363,7 @@ function hi(i) {
363
363
  st
364
364
  ] }), t[70] = st, t[71] = A, t[72] = a, t[73] = j, t[74] = rt) : rt = t[74];
365
365
  let lt;
366
- t[75] !== w ? (lt = w.filter(mi).map(ui), t[75] = w, t[76] = lt) : lt = t[76];
366
+ t[75] !== w ? (lt = w.filter(fi).map(ui), t[75] = w, t[76] = lt) : lt = t[76];
367
367
  let ct;
368
368
  t[77] !== rt || t[78] !== lt || t[79] !== nt || t[80] !== W ? (ct = /* @__PURE__ */ o.jsxs("g", { transform: nt, children: [
369
369
  W,
@@ -374,22 +374,22 @@ function hi(i) {
374
374
  t[82] !== R || t[83] !== P || t[84] !== $ || t[85] !== G || t[86] !== F || t[87] !== ct || t[88] !== ot || t[89] !== at ? (ht = /* @__PURE__ */ o.jsx(R, { width: ot, height: at, viewBox: P, direction: $, ref: G, className: F, children: ct }), t[82] = R, t[83] = P, t[84] = $, t[85] = G, t[86] = F, t[87] = ct, t[88] = ot, t[89] = at, t[90] = ht) : ht = t[90];
375
375
  let ut;
376
376
  t[91] !== r?.tooltip || t[92] !== et || t[93] !== q || t[94] !== _ || t[95] !== h?.tooltip || t[96] !== H ? (ut = _ && H && et && q ? /* @__PURE__ */ o.jsx(qt, { data: _, body: H, xPos: et, yPos: q, backgroundStyle: h?.tooltip, className: r?.tooltip }) : null, t[91] = r?.tooltip, t[92] = et, t[93] = q, t[94] = _, t[95] = h?.tooltip, t[96] = H, t[97] = ut) : ut = t[97];
377
- let mt;
378
- t[98] !== r?.modal || t[99] !== C || t[100] !== O ? (mt = C && O !== void 0 ? /* @__PURE__ */ o.jsx(Bt, { body: C, data: O, setData: _t, className: r?.modal }) : null, t[98] = r?.modal, t[99] = C, t[100] = O, t[101] = mt) : mt = t[101];
377
+ let ft;
378
+ t[98] !== r?.modal || t[99] !== C || t[100] !== O ? (ft = C && O !== void 0 ? /* @__PURE__ */ o.jsx(Bt, { body: C, data: O, setData: _t, className: r?.modal }) : null, t[98] = r?.modal, t[99] = C, t[100] = O, t[101] = ft) : ft = t[101];
379
379
  let Ct;
380
- return t[102] !== ht || t[103] !== ut || t[104] !== mt ? (Ct = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
380
+ return t[102] !== ht || t[103] !== ut || t[104] !== ft ? (Ct = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
381
381
  ht,
382
382
  ut,
383
- mt
384
- ] }), t[102] = ht, t[103] = ut, t[104] = mt, t[105] = Ct) : Ct = t[105], Ct;
383
+ ft
384
+ ] }), t[102] = ht, t[103] = ut, t[104] = ft, t[105] = Ct) : Ct = t[105], Ct;
385
385
  }
386
386
  function ui(i) {
387
387
  return i.layer;
388
388
  }
389
- function mi(i) {
389
+ function fi(i) {
390
390
  return i.position === "after";
391
391
  }
392
- function fi(i) {
392
+ function mi(i) {
393
393
  return i.color;
394
394
  }
395
395
  function pi(i) {
@@ -448,7 +448,7 @@ function Ui(i) {
448
448
  graphDescription: s,
449
449
  footNote: H,
450
450
  radius: X,
451
- data: f,
451
+ data: m,
452
452
  showColorScale: g = !0,
453
453
  padding: C,
454
454
  backgroundColor: h = !1,
@@ -490,7 +490,7 @@ function Ui(i) {
490
490
  dimmedOpacity: vt = 0.3,
491
491
  precision: T = 2,
492
492
  customLayers: R = []
493
- } = i, [P, $] = ft(0), [G, F] = ft(void 0), I = Nt(null), A = Nt(null);
493
+ } = i, [P, $] = mt(0), [G, F] = mt(void 0), I = Nt(null), A = Nt(null);
494
494
  return Yt(() => {
495
495
  const a = new ResizeObserver((j) => {
496
496
  $((Math.min(j[0].target.clientWidth || 620, j[0].target.clientHeight || 480, X || 1 / 0) || 420) / 2);
@@ -503,10 +503,11 @@ function Ui(i) {
503
503
  }, classNames: {
504
504
  title: x?.title,
505
505
  description: x?.description
506
- }, graphTitle: t, graphDescription: s, width: D, graphDownload: Y ? A : void 0, dataDownload: z ? f.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? f.map((a) => a.data).filter((a) => a !== void 0) : f.filter((a) => a !== void 0) : null }) : null,
507
- f.length === 0 ? /* @__PURE__ */ o.jsx(ii, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
508
- g && f.filter((a) => a.color).length !== 0 ? /* @__PURE__ */ o.jsx(ei, { width: D, colorLegendTitle: w, colors: n || N[k].categoricalColors.colors, colorDomain: wt || Lt(f, "color", !0), setSelectedColor: F, showNAColor: gt, className: x?.colorLegend, isCenter: !0 }) : null,
509
- /* @__PURE__ */ o.jsx(oi, { ref: I, children: P ? /* @__PURE__ */ o.jsx(hi, { data: f, lineColors: f.filter((a) => a.color).length === 0 ? n ? [n] : [N.primaryColors["blue-600"]] : n || N[k].categoricalColors.colors, radius: P, tooltip: r, colorDomain: wt || Lt(f, "color", !0), onSeriesMouseOver: S, onSeriesMouseClick: J, styles: M, detailsOnClick: It, selectedColor: G, axisLabels: it, strokeWidth: u, showValues: v, showDots: E, topMargin: pt, bottomMargin: xt, leftMargin: K, rightMargin: Q, curveType: _, noOfTicks: yt, minValue: O, maxValue: _t, fillShape: et, highlightedLines: V, resetSelectionOnDoubleClick: Mt, animate: q === !0 ? {
506
+ }, graphTitle: t, graphDescription: s, width: D, graphDownload: Y ? A : void 0, dataDownload: z ? m.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? m.map((a) => a.data).filter((a) => a !== void 0) : m.filter((a) => a !== void 0) : null }) : null,
507
+ g && m.filter((a) => a.color).length !== 0 && m.length > 0 ? /* @__PURE__ */ o.jsx(ei, { width: D, colorLegendTitle: w, colors: n || N[k].categoricalColors.colors, colorDomain: wt || Lt(m, "color", !0), setSelectedColor: F, showNAColor: gt, className: x?.colorLegend, isCenter: !0 }) : null,
508
+ /* @__PURE__ */ o.jsxs(oi, { ref: I, children: [
509
+ m.length === 0 && /* @__PURE__ */ o.jsx(ii, {}),
510
+ P && m.length > 0 ? /* @__PURE__ */ o.jsx(hi, { data: m, lineColors: m.filter((a) => a.color).length === 0 ? n ? [n] : [N.primaryColors["blue-600"]] : n || N[k].categoricalColors.colors, radius: P, tooltip: r, colorDomain: wt || Lt(m, "color", !0), onSeriesMouseOver: S, onSeriesMouseClick: J, styles: M, detailsOnClick: It, selectedColor: G, axisLabels: it, strokeWidth: u, showValues: v, showDots: E, topMargin: pt, bottomMargin: xt, leftMargin: K, rightMargin: Q, curveType: _, noOfTicks: yt, minValue: O, maxValue: _t, fillShape: et, highlightedLines: V, resetSelectionOnDoubleClick: Mt, animate: q === !0 ? {
510
511
  duration: 0.5,
511
512
  once: !0,
512
513
  amount: 0.5
@@ -514,7 +515,7 @@ function Ui(i) {
514
515
  duration: 0,
515
516
  once: !0,
516
517
  amount: 0
517
- }, dimmedOpacity: vt, precision: T, customLayers: R }) : null })
518
+ }, dimmedOpacity: vt, precision: T, customLayers: R }) : null
518
519
  ] }),
519
520
  c || H ? /* @__PURE__ */ o.jsx(Zt, { styles: {
520
521
  footnote: M?.footnote,