@undp/data-viz 1.5.7 → 1.5.9

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 (342) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +13 -13
  3. package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
  4. package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
  5. package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
  6. package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
  7. package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
  8. package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
  9. package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
  10. package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
  11. package/dist/BarGraph.cjs +1 -1
  12. package/dist/BarGraph.cjs.map +1 -1
  13. package/dist/BarGraph.js +666 -664
  14. package/dist/BarGraph.js.map +1 -1
  15. package/dist/BasicStatCard.cjs +1 -1
  16. package/dist/BasicStatCard.js +2 -2
  17. package/dist/BeeSwarmChart.cjs +1 -1
  18. package/dist/BeeSwarmChart.js +42 -42
  19. package/dist/BiVariateChoroplethMap.cjs +1 -1
  20. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  21. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  22. package/dist/BiVariateChoroplethMap.js +257 -264
  23. package/dist/BiVariateChoroplethMap.js.map +1 -1
  24. package/dist/BulletChart.cjs +1 -1
  25. package/dist/BulletChart.cjs.map +1 -1
  26. package/dist/BulletChart.js +223 -221
  27. package/dist/BulletChart.js.map +1 -1
  28. package/dist/ButterflyChart.cjs +1 -1
  29. package/dist/ButterflyChart.cjs.map +1 -1
  30. package/dist/ButterflyChart.js +84 -82
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +2 -0
  35. package/dist/ChoroplethMap.js +296 -304
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/CirclePackingGraph.cjs +1 -1
  38. package/dist/CirclePackingGraph.js +3 -3
  39. package/dist/ColorLegend.cjs +1 -1
  40. package/dist/ColorLegend.js +2 -2
  41. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  42. package/dist/ColorLegendWithMouseOver.js +2 -2
  43. package/dist/CopyTextButton.cjs +4 -4
  44. package/dist/CopyTextButton.cjs.map +1 -1
  45. package/dist/CopyTextButton.js +27 -27
  46. package/dist/CopyTextButton.js.map +1 -1
  47. package/dist/CsvDownloadButton.cjs +1 -1
  48. package/dist/CsvDownloadButton.js +2 -2
  49. package/dist/DataCards.cjs +3 -3
  50. package/dist/DataCards.cjs.map +1 -1
  51. package/dist/DataCards.js +16 -16
  52. package/dist/DataCards.js.map +1 -1
  53. package/dist/DataTable.cjs +1 -1
  54. package/dist/DataTable.js +3 -3
  55. package/dist/DifferenceLineChart.cjs +1 -1
  56. package/dist/DifferenceLineChart.cjs.map +1 -1
  57. package/dist/DifferenceLineChart.js +133 -131
  58. package/dist/DifferenceLineChart.js.map +1 -1
  59. package/dist/DonutChart.cjs +1 -1
  60. package/dist/DonutChart.js +20 -20
  61. package/dist/DotDensityMap.cjs +1 -1
  62. package/dist/DotDensityMap.cjs.map +1 -1
  63. package/dist/DotDensityMap.d.ts +2 -0
  64. package/dist/DotDensityMap.js +282 -289
  65. package/dist/DotDensityMap.js.map +1 -1
  66. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
  67. package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
  68. package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
  69. package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
  70. package/dist/DualAxisLineChart.cjs +1 -1
  71. package/dist/DualAxisLineChart.cjs.map +1 -1
  72. package/dist/DualAxisLineChart.js +141 -121
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.js +307 -307
  77. package/dist/DumbbellChart.js.map +1 -1
  78. package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
  79. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
  80. package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
  81. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
  82. package/dist/ExcelDownloadButton.cjs +1 -1
  83. package/dist/ExcelDownloadButton.js +2 -2
  84. package/dist/FootNote.cjs +1 -1
  85. package/dist/FootNote.js +2 -2
  86. package/dist/GeoHubCompareMaps.cjs +1 -1
  87. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  88. package/dist/GeoHubCompareMaps.js +65 -80
  89. package/dist/GeoHubCompareMaps.js.map +1 -1
  90. package/dist/GeoHubMap.cjs +1 -1
  91. package/dist/GeoHubMap.cjs.map +1 -1
  92. package/dist/GeoHubMap.js +95 -125
  93. package/dist/GeoHubMap.js.map +1 -1
  94. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  95. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  96. package/dist/GeoHubMapWithLayerSelection.js +73 -88
  97. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  98. package/dist/GraphDescription.cjs +1 -1
  99. package/dist/GraphDescription.js +2 -2
  100. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
  101. package/dist/GraphEl-2IiUDxjR.js.map +1 -0
  102. package/dist/GraphEl-qrlfGPe3.cjs +2 -0
  103. package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
  104. package/dist/GraphFooter.cjs +1 -1
  105. package/dist/GraphFooter.js +1 -1
  106. package/dist/GraphHeader.cjs +1 -1
  107. package/dist/GraphHeader.js +1 -1
  108. package/dist/GraphTitle.cjs +1 -1
  109. package/dist/GraphTitle.js +2 -2
  110. package/dist/GriddedGraphs.cjs +1 -1
  111. package/dist/GriddedGraphs.d.ts +1 -0
  112. package/dist/GriddedGraphs.js +5 -5
  113. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  114. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  115. package/dist/GriddedGraphsFromConfig.js +2 -2
  116. package/dist/HeatMap.cjs +1 -1
  117. package/dist/HeatMap.js +19 -19
  118. package/dist/Histogram.cjs +1 -1
  119. package/dist/Histogram.js +3 -3
  120. package/dist/ImageDownloadButton.cjs +1 -1
  121. package/dist/ImageDownloadButton.js +2 -2
  122. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  123. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  124. package/dist/LineChartWithConfidenceInterval.js +204 -184
  125. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  126. package/dist/LinearColorLegend.cjs +1 -1
  127. package/dist/LinearColorLegend.js +2 -2
  128. package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
  129. package/dist/Modal-Cg8daIlV.js.map +1 -0
  130. package/dist/Modal-CuuJdWkD.cjs +46 -0
  131. package/dist/Modal-CuuJdWkD.cjs.map +1 -0
  132. package/dist/MultiGraphDashboard.cjs +1 -1
  133. package/dist/MultiGraphDashboard.d.ts +1 -0
  134. package/dist/MultiGraphDashboard.js +3 -3
  135. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  136. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  137. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  138. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  139. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  140. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  141. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  142. package/dist/MultiLineAltChart.cjs +1 -1
  143. package/dist/MultiLineAltChart.cjs.map +1 -1
  144. package/dist/MultiLineAltChart.js +172 -173
  145. package/dist/MultiLineAltChart.js.map +1 -1
  146. package/dist/MultiLineChart.cjs +1 -1
  147. package/dist/MultiLineChart.cjs.map +1 -1
  148. package/dist/MultiLineChart.js +89 -78
  149. package/dist/MultiLineChart.js.map +1 -1
  150. package/dist/ParetoChart.cjs +1 -1
  151. package/dist/ParetoChart.cjs.map +1 -1
  152. package/dist/ParetoChart.js +186 -181
  153. package/dist/ParetoChart.js.map +1 -1
  154. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  155. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  156. package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
  157. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  158. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  159. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  160. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  161. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  162. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  163. package/dist/RadarChart.cjs +1 -1
  164. package/dist/RadarChart.cjs.map +1 -1
  165. package/dist/RadarChart.js +256 -244
  166. package/dist/RadarChart.js.map +1 -1
  167. package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
  168. package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
  169. package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
  170. package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
  171. package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
  172. package/dist/RegressionLine-CW7iViH2.js.map +1 -0
  173. package/dist/RegressionLine-D-49RaHa.cjs +2 -0
  174. package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
  175. package/dist/SVGDownloadButton.cjs +1 -1
  176. package/dist/SVGDownloadButton.js +2 -2
  177. package/dist/SankeyChart.cjs +1 -1
  178. package/dist/SankeyChart.js +27 -27
  179. package/dist/ScatterPlot.cjs +1 -1
  180. package/dist/ScatterPlot.cjs.map +1 -1
  181. package/dist/ScatterPlot.js +145 -144
  182. package/dist/ScatterPlot.js.map +1 -1
  183. package/dist/ScrollStory.cjs +1 -1
  184. package/dist/ScrollStory.d.ts +1 -0
  185. package/dist/ScrollStory.js +3 -3
  186. package/dist/SimpleLineChart.cjs +1 -1
  187. package/dist/SimpleLineChart.cjs.map +1 -1
  188. package/dist/SimpleLineChart.js +53 -48
  189. package/dist/SimpleLineChart.js.map +1 -1
  190. package/dist/SingleGraphDashboard.cjs +1 -1
  191. package/dist/SingleGraphDashboard.d.ts +1 -0
  192. package/dist/SingleGraphDashboard.js +6 -6
  193. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  194. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  195. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  196. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  197. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  198. package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
  199. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  200. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  201. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  202. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  203. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  204. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  205. package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
  206. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  207. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  208. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  209. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  210. package/dist/SlopeChart.cjs +1 -1
  211. package/dist/SlopeChart.cjs.map +1 -1
  212. package/dist/SlopeChart.js +137 -133
  213. package/dist/SlopeChart.js.map +1 -1
  214. package/dist/Source.cjs +1 -1
  215. package/dist/Source.js +2 -2
  216. package/dist/SparkLine.cjs +1 -1
  217. package/dist/SparkLine.js +2 -2
  218. package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
  219. package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
  220. package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
  221. package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
  222. package/dist/StatCardFromData.cjs +1 -1
  223. package/dist/StatCardFromData.js +2 -2
  224. package/dist/StripChart.cjs +1 -1
  225. package/dist/StripChart.cjs.map +1 -1
  226. package/dist/StripChart.js +307 -295
  227. package/dist/StripChart.js.map +1 -1
  228. package/dist/ThreeDGlobe.cjs +1 -1
  229. package/dist/ThreeDGlobe.cjs.map +1 -1
  230. package/dist/ThreeDGlobe.d.ts +2 -0
  231. package/dist/ThreeDGlobe.js +220 -228
  232. package/dist/ThreeDGlobe.js.map +1 -1
  233. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  234. package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
  235. package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
  236. package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
  237. package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
  238. package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
  239. package/dist/TreeMapGraph.cjs +1 -1
  240. package/dist/TreeMapGraph.js +24 -24
  241. package/dist/Types.d.ts +1 -0
  242. package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
  243. package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
  244. package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
  245. package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
  246. package/dist/UnitChart.cjs +1 -1
  247. package/dist/UnitChart.cjs.map +1 -1
  248. package/dist/UnitChart.js +25 -26
  249. package/dist/UnitChart.js.map +1 -1
  250. package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
  251. package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
  252. package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
  253. package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
  254. package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
  255. package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
  256. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
  257. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
  258. package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
  259. package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
  260. package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
  261. package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
  262. package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
  263. package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
  264. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
  265. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
  266. package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
  267. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
  268. package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
  269. package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
  270. package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
  271. package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
  272. package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
  273. package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
  274. package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
  275. package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
  276. package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
  277. package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
  278. package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
  279. package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
  280. package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
  281. package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
  282. package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
  283. package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
  284. package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
  285. package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
  286. package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
  287. package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
  288. package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
  289. package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
  290. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
  291. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
  292. package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
  293. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
  294. package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
  295. package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
  296. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
  297. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
  298. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
  299. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
  300. package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
  301. package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
  302. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
  303. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
  304. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
  305. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
  306. package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
  307. package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
  308. package/dist/index.cjs +1 -1
  309. package/dist/index.d.ts +9 -0
  310. package/dist/index.js +1 -1
  311. package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
  312. package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
  313. package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
  314. package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
  315. package/dist/style.css +1 -1
  316. package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
  317. package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
  318. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
  319. package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
  320. package/package.json +4 -4
  321. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  322. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  323. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  324. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  325. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  326. package/dist/Modal-DVVwpKhP.js.map +0 -1
  327. package/dist/Modal-tXZlLE5s.cjs +0 -46
  328. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  329. package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
  330. package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
  331. package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
  332. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  333. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  334. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  335. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  336. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  337. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  338. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  339. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  340. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  341. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  342. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
@@ -1,23 +1,23 @@
1
- import { j as n, m as E } from "./index-CHPV5EwG-BPSP-7Jg.js";
1
+ import { j as n, m as L } from "./index-CHPV5EwG-DBWUSD9b.js";
2
2
  import { useRef as ut, useState as j, useEffect as kt } from "react";
3
- import { i as jt } from "./index-Bwrro8-q.js";
4
- import { X as It } from "./Modal-DVVwpKhP.js";
5
- import { T as Ct } from "./Tooltip-CVCGWyzw.js";
6
- import { Colors as L } from "./Colors.js";
7
- import { n as pt } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { s as Nt } from "./string2HTML-oFCROsus.js";
9
- import { c as O } from "./checkIfNullOrUndefined-DmfiKkNw.js";
3
+ import { i as It } from "./index-Bwrro8-q.js";
4
+ import { G as jt } from "./Modal-Cg8daIlV.js";
5
+ import { T as Ct } from "./Tooltip-6LIdPQGC.js";
6
+ import { Colors as v } from "./Colors.js";
7
+ import { n as ft } from "./numberFormattingFunction-14YCbkN2.js";
8
+ import { s as Pt } from "./string2HTML-oFCROsus.js";
9
+ import { c as T } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
10
  import { a as xt } from "./linear-DUdu7l2G.js";
11
- import { c as Pt, l as St } from "./line-CPfhohvF.js";
12
- import { u as Ot } from "./use-in-view-yS6jzJAp.js";
13
- import { m as X } from "./proxy-CkpFesk1.js";
14
- import { A as Tt } from "./index-CNvov0eg.js";
11
+ import { c as Nt, l as Ot } from "./line-CPfhohvF.js";
12
+ import { u as St } from "./use-in-view-DR-UTB96.js";
13
+ import { m as Y } from "./proxy-BYIC9BuT.js";
14
+ import { A as Tt } from "./index-Cwgh7i7X.js";
15
15
  import { GraphFooter as $t } from "./GraphFooter.js";
16
16
  import { GraphHeader as Dt } from "./GraphHeader.js";
17
- import { E as Vt } from "./EmptyState-DdTp-Mdn.js";
18
- import { ColorLegendWithMouseOver as Et } from "./ColorLegendWithMouseOver.js";
19
- import { u as ft } from "./uniqBy-BHy4I8PK.js";
20
- var Lt = _t(Pt);
17
+ import { E as Vt } from "./EmptyState-36lXXyui.js";
18
+ import { ColorLegendWithMouseOver as At } from "./ColorLegendWithMouseOver.js";
19
+ import { u as pt } from "./uniqBy-BHy4I8PK.js";
20
+ var Et = _t(Nt);
21
21
  function gt(t) {
22
22
  this._curve = t;
23
23
  }
@@ -44,16 +44,16 @@ function _t(t) {
44
44
  }
45
45
  return e._curve = t, e;
46
46
  }
47
- function At(t) {
47
+ function Lt(t) {
48
48
  var e = t.curve;
49
49
  return t.angle = t.x, delete t.x, t.radius = t.y, delete t.y, t.curve = function(s) {
50
50
  return arguments.length ? e(_t(s)) : e()._curve;
51
51
  }, t;
52
52
  }
53
53
  function Ht() {
54
- return At(St().curve(Lt));
54
+ return Lt(Ot().curve(Et));
55
55
  }
56
- function et() {
56
+ function nt() {
57
57
  }
58
58
  function dt(t, e, s) {
59
59
  t._context.bezierCurveTo(
@@ -108,19 +108,19 @@ yt.prototype = {
108
108
  }
109
109
  };
110
110
  (function t(e) {
111
- function s(l) {
112
- return new yt(l, e);
111
+ function s(o) {
112
+ return new yt(o, e);
113
113
  }
114
- return s.tension = function(l) {
115
- return t(+l);
114
+ return s.tension = function(o) {
115
+ return t(+o);
116
116
  }, s;
117
117
  })(0);
118
118
  function vt(t, e) {
119
119
  this._context = t, this._k = (1 - e) / 6;
120
120
  }
121
121
  vt.prototype = {
122
- areaStart: et,
123
- areaEnd: et,
122
+ areaStart: nt,
123
+ areaEnd: nt,
124
124
  lineStart: function() {
125
125
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
126
126
  },
@@ -159,19 +159,19 @@ vt.prototype = {
159
159
  }
160
160
  };
161
161
  const Rt = function t(e) {
162
- function s(l) {
163
- return new vt(l, e);
162
+ function s(o) {
163
+ return new vt(o, e);
164
164
  }
165
- return s.tension = function(l) {
166
- return t(+l);
165
+ return s.tension = function(o) {
166
+ return t(+o);
167
167
  }, s;
168
168
  }(0);
169
169
  function Mt(t) {
170
170
  this._context = t;
171
171
  }
172
172
  Mt.prototype = {
173
- areaStart: et,
174
- areaEnd: et,
173
+ areaStart: nt,
174
+ areaEnd: nt,
175
175
  lineStart: function() {
176
176
  this._point = 0;
177
177
  },
@@ -189,83 +189,83 @@ function Ft(t) {
189
189
  const {
190
190
  data: e,
191
191
  radius: s,
192
- lineColors: l,
193
- tooltip: I,
194
- onSeriesMouseOver: A,
195
- onSeriesMouseClick: v,
196
- colorDomain: u,
197
- detailsOnClick: M,
192
+ lineColors: o,
193
+ tooltip: C,
194
+ onSeriesMouseOver: H,
195
+ onSeriesMouseClick: M,
196
+ colorDomain: h,
197
+ detailsOnClick: w,
198
198
  styles: _,
199
- classNames: m,
200
- selectedColor: T,
201
- axisLabels: Y,
202
- strokeWidth: nt,
199
+ classNames: f,
200
+ selectedColor: $,
201
+ axisLabels: z,
202
+ strokeWidth: q,
203
203
  showValues: at,
204
- showDots: st,
205
- rightMargin: ot,
206
- topMargin: z,
207
- bottomMargin: rt,
208
- leftMargin: H,
209
- curveType: q,
210
- noOfTicks: B,
211
- minValue: $,
212
- maxValue: D,
204
+ showDots: ot,
205
+ rightMargin: rt,
206
+ topMargin: B,
207
+ bottomMargin: st,
208
+ leftMargin: R,
209
+ curveType: U,
210
+ noOfTicks: J,
211
+ minValue: D,
212
+ maxValue: V,
213
213
  resetSelectionOnDoubleClick: lt,
214
214
  fillShape: c,
215
- highlightedLines: f,
215
+ highlightedLines: p,
216
216
  animate: d,
217
217
  dimmedOpacity: g,
218
- precision: C,
219
- customLayers: U
220
- } = t, J = ut(null), V = Ot(J, {
218
+ precision: P,
219
+ customLayers: K
220
+ } = t, Q = ut(null), A = St(Q, {
221
221
  once: d.once,
222
222
  amount: d.amount
223
- }), w = q === "linear" ? Wt : Rt, b = {
224
- top: z,
225
- left: H
223
+ }), b = U === "linear" ? Wt : Rt, k = {
224
+ top: B,
225
+ left: R
226
226
  }, y = Math.min(
227
- (2 * s - H - ot) / 2,
228
- (2 * s - z - rt) / 2
229
- ), [k, R] = j(void 0), [N, W] = j(void 0), [K, F] = j(void 0), [Q, G] = j(void 0), r = xt().domain([0, e[0].values.length]).range([0, 2 * Math.PI]), Z = O(D) ? Math.max(
227
+ (2 * s - R - rt) / 2,
228
+ (2 * s - B - st) / 2
229
+ ), [I, W] = j(void 0), [N, F] = j(void 0), [Z, G] = j(void 0), [tt, X] = j(void 0), l = xt().domain([0, e[0].values.length]).range([0, 2 * Math.PI]), it = T(V) ? Math.max(
230
230
  ...e.map(
231
- (i) => Math.max(...i.values.filter((a) => !O(a)))
231
+ (i) => Math.max(...i.values.filter((a) => !T(a)))
232
232
  )
233
233
  ) < 0 ? 0 : Math.max(
234
234
  ...e.map(
235
- (i) => Math.max(...i.values.filter((a) => !O(a)))
235
+ (i) => Math.max(...i.values.filter((a) => !T(a)))
236
236
  )
237
- ) : D, ct = O($) ? Math.min(
237
+ ) : V, ct = T(D) ? Math.min(
238
238
  ...e.map(
239
- (i) => Math.min(...i.values.filter((a) => !O(a)))
239
+ (i) => Math.min(...i.values.filter((a) => !T(a)))
240
240
  )
241
241
  ) >= 0 ? 0 : Math.min(
242
242
  ...e.map(
243
- (i) => Math.min(...i.values.filter((a) => !O(a)))
243
+ (i) => Math.min(...i.values.filter((a) => !T(a)))
244
244
  )
245
- ) : $, p = xt().domain([ct, Z]).range([0, y]).nice(), ht = p.ticks(B), P = Ht().radius((i) => p(i)).angle((i, a) => r(a)).curve(w);
245
+ ) : D, x = xt().domain([ct, it]).range([0, y]).nice(), ht = x.ticks(J), O = Ht().radius((i) => x(i)).angle((i, a) => l(a)).curve(b);
246
246
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
247
247
  /* @__PURE__ */ n.jsx(
248
- X.svg,
248
+ Y.svg,
249
249
  {
250
250
  width: `${s * 2}px`,
251
251
  height: `${s * 2}px`,
252
252
  viewBox: `0 0 ${s * 2} ${s * 2}`,
253
253
  direction: "ltr",
254
- ref: J,
255
- children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${b.left},${b.top})`, children: [
256
- U.filter((i) => i.position === "before").map((i) => i.layer),
254
+ ref: Q,
255
+ children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${k.left},${k.top})`, children: [
256
+ K.filter((i) => i.position === "before").map((i) => i.layer),
257
257
  /* @__PURE__ */ n.jsxs("g", { transform: `translate(${y},${y})`, children: [
258
- Y.map((i, a) => /* @__PURE__ */ n.jsxs("g", { children: [
258
+ z.map((i, a) => /* @__PURE__ */ n.jsxs("g", { children: [
259
259
  /* @__PURE__ */ n.jsx(
260
260
  "line",
261
261
  {
262
262
  x1: 0,
263
263
  y1: 0,
264
- x2: Math.cos(r(a) - Math.PI / 2) * y,
265
- y2: Math.sin(r(a) - Math.PI / 2) * y,
266
- className: E(
264
+ x2: Math.cos(l(a) - Math.PI / 2) * y,
265
+ y2: Math.sin(l(a) - Math.PI / 2) * y,
266
+ className: L(
267
267
  "stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",
268
- m?.xAxis?.axis
268
+ f?.xAxis?.axis
269
269
  ),
270
270
  style: _?.xAxis?.axis
271
271
  },
@@ -274,16 +274,16 @@ function Ft(t) {
274
274
  /* @__PURE__ */ n.jsx(
275
275
  "text",
276
276
  {
277
- x: Math.cos(r(a) - Math.PI / 2) * (y + 6),
278
- y: Math.sin(r(a) - Math.PI / 2) * (y + 6),
277
+ x: Math.cos(l(a) - Math.PI / 2) * (y + 6),
278
+ y: Math.sin(l(a) - Math.PI / 2) * (y + 6),
279
279
  style: {
280
- textAnchor: Math.cos(r(a) - Math.PI / 2) < 0 ? "end" : Math.cos(r(a) - Math.PI / 2) < 1e-5 ? "middle" : "start",
280
+ textAnchor: Math.cos(l(a) - Math.PI / 2) < 0 ? "end" : Math.cos(l(a) - Math.PI / 2) < 1e-5 ? "middle" : "start",
281
281
  ..._?.xAxis?.labels || ""
282
282
  },
283
- dy: Math.sin(r(a) - Math.PI / 2) < 0 ? 0 : Math.sin(r(a) - Math.PI / 2) < 1e-5 ? 5 : 10,
284
- className: E(
283
+ dy: Math.sin(l(a) - Math.PI / 2) < 0 ? 0 : Math.sin(l(a) - Math.PI / 2) < 1e-5 ? 5 : 10,
284
+ className: L(
285
285
  "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
286
- m?.xAxis?.labels
286
+ f?.xAxis?.labels
287
287
  ),
288
288
  children: i
289
289
  }
@@ -293,10 +293,10 @@ function Ft(t) {
293
293
  /* @__PURE__ */ n.jsx(
294
294
  "path",
295
295
  {
296
- d: P(Array(Y.length).fill(i)) || "",
297
- className: E(
296
+ d: O(Array(z.length).fill(i)) || "",
297
+ className: L(
298
298
  "stroke-primary-gray-500 dark:stroke-primary-gray-550",
299
- m?.xAxis?.gridLines
299
+ f?.xAxis?.gridLines
300
300
  ),
301
301
  style: {
302
302
  ..._?.xAxis?.gridLines,
@@ -308,159 +308,171 @@ function Ft(t) {
308
308
  "foreignObject",
309
309
  {
310
310
  x: -25,
311
- y: Math.sin(-Math.PI / 2) * p(i) > -1e-4 ? Math.sin(-Math.PI / 2) * p(i) - 7 : Math.sin(-Math.PI / 2) * p(i) - 5,
311
+ y: Math.sin(-Math.PI / 2) * x(i) > -1e-4 ? Math.sin(-Math.PI / 2) * x(i) - 7 : Math.sin(-Math.PI / 2) * x(i) - 5,
312
312
  width: 50,
313
313
  height: 12,
314
314
  children: /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
315
315
  "p",
316
316
  {
317
- className: E(
317
+ className: L(
318
318
  "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",
319
- m?.xAxis?.labels
319
+ f?.xAxis?.labels
320
320
  ),
321
321
  style: _?.xAxis?.labels,
322
- children: pt(i, "NA", C)
322
+ children: ft(i, "NA", P)
323
323
  }
324
324
  ) })
325
325
  }
326
326
  )
327
327
  ] }, a)),
328
328
  /* @__PURE__ */ n.jsx(Tt, { children: e.map((i, a) => /* @__PURE__ */ n.jsxs(
329
- X.g,
329
+ Y.g,
330
330
  {
331
331
  variants: {
332
332
  initial: {
333
- opacity: k ? i.label === k.label ? 1 : g : T ? i.color && l[u.indexOf(i.color)] === T ? 1 : g : f.length !== 0 ? i.label && f.indexOf(i.label) !== -1 ? 1 : 0.3 : 1
333
+ opacity: I ? i.label === I.label ? 1 : g : $ ? i.color && o[h.indexOf(i.color)] === $ ? 1 : g : p.length !== 0 ? i.label && p.indexOf(i.label) !== -1 ? 1 : 0.3 : 1
334
334
  },
335
335
  whileInView: {
336
- opacity: k ? i.label === k.label ? 1 : g : T ? i.color && l[u.indexOf(i.color)] === T ? 1 : g : f.length !== 0 ? i.label && f.indexOf(i.label) !== -1 ? 1 : g : 1,
336
+ opacity: I ? i.label === I.label ? 1 : g : $ ? i.color && o[h.indexOf(i.color)] === $ ? 1 : g : p.length !== 0 ? i.label && p.indexOf(i.label) !== -1 ? 1 : g : 1,
337
337
  transition: { duration: d.duration }
338
338
  }
339
339
  },
340
340
  initial: "initial",
341
- animate: V ? "whileInView" : "initial",
341
+ animate: A ? "whileInView" : "initial",
342
342
  exit: { opacity: 0, transition: { duration: d.duration } },
343
- onMouseEnter: (o) => {
344
- R(i), G(o.clientY), F(o.clientX), A?.(i);
343
+ onMouseEnter: (r) => {
344
+ W(i), X(r.clientY), G(r.clientX), H?.(i);
345
345
  },
346
- onMouseMove: (o) => {
347
- R(i), G(o.clientY), F(o.clientX);
346
+ onMouseMove: (r) => {
347
+ W(i), X(r.clientY), G(r.clientX);
348
348
  },
349
349
  onMouseLeave: () => {
350
- R(void 0), F(void 0), G(void 0), A?.(void 0);
350
+ W(void 0), G(void 0), X(void 0), H?.(void 0);
351
351
  },
352
352
  onClick: () => {
353
- (v || M) && (jt(N, i) && lt ? (W(void 0), v?.(void 0)) : (W(i), v?.(i)));
353
+ (M || w) && (It(N, i) && lt ? (F(void 0), M?.(void 0)) : (F(i), M?.(i)));
354
354
  },
355
355
  children: [
356
356
  /* @__PURE__ */ n.jsx(
357
- X.path,
357
+ Y.path,
358
358
  {
359
- d: P(i.values) || "",
359
+ d: O(i.values) || "",
360
360
  variants: {
361
- initial: { d: P(i.values.map((o) => 0)) || "" },
361
+ initial: {
362
+ d: O(i.values.map((r) => 0)) || "",
363
+ stroke: e.filter((r) => r.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray,
364
+ fill: c ? e.filter((r) => r.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray : "none",
365
+ strokeWidth: q
366
+ },
362
367
  whileInView: {
363
- d: P(i.values) || "",
364
- transition: { duration: d.duration }
368
+ d: O(i.values) || "",
369
+ transition: { duration: d.duration },
370
+ stroke: e.filter((r) => r.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray,
371
+ fill: c ? e.filter((r) => r.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray : "none",
372
+ strokeWidth: q
365
373
  }
366
374
  },
367
375
  initial: "initial",
368
- animate: V ? "whileInView" : "initial",
376
+ animate: A ? "whileInView" : "initial",
369
377
  exit: { opacity: 0, transition: { duration: d.duration } },
370
378
  style: {
371
- stroke: e.filter((o) => o.color).length === 0 ? l[0] : i.color ? l[u.indexOf(i.color)] : L.gray,
372
- fill: c ? e.filter((o) => o.color).length === 0 ? l[0] : i.color ? l[u.indexOf(i.color)] : L.gray : "none",
373
- fillOpacity: 0.1,
374
- strokeWidth: nt
379
+ fillOpacity: 0.1
375
380
  }
376
381
  }
377
382
  ),
378
- /* @__PURE__ */ n.jsx("g", { children: i.values.map((o, x) => /* @__PURE__ */ n.jsx("g", { children: O(o) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
379
- st ? /* @__PURE__ */ n.jsx(
380
- X.circle,
383
+ /* @__PURE__ */ n.jsx("g", { children: i.values.map((r, m) => /* @__PURE__ */ n.jsx("g", { children: T(r) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
384
+ ot ? /* @__PURE__ */ n.jsx(
385
+ Y.circle,
381
386
  {
382
- cx: Math.cos(r(x) - Math.PI / 2) * p(o),
383
- cy: Math.sin(r(x) - Math.PI / 2) * p(o),
384
387
  r: 4,
385
- style: {
386
- fill: e.filter((tt) => tt.color).length === 0 ? l[0] : i.color ? l[u.indexOf(i.color)] : L.gray
387
- },
388
388
  variants: {
389
- initial: { cx: 0, cy: 0, opacity: 0 },
389
+ initial: {
390
+ cx: 0,
391
+ cy: 0,
392
+ opacity: 0,
393
+ fill: e.filter((E) => E.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray
394
+ },
390
395
  whileInView: {
391
- cx: Math.cos(r(x) - Math.PI / 2) * p(o),
392
- cy: Math.sin(r(x) - Math.PI / 2) * p(o),
396
+ cx: Math.cos(l(m) - Math.PI / 2) * x(r),
397
+ cy: Math.sin(l(m) - Math.PI / 2) * x(r),
393
398
  opacity: 1,
394
- transition: { duration: d.duration }
399
+ transition: { duration: d.duration },
400
+ fill: e.filter((E) => E.color).length === 0 ? o[0] : i.color ? o[h.indexOf(i.color)] : v.gray
395
401
  }
396
402
  },
397
403
  initial: "initial",
398
- animate: V ? "whileInView" : "initial",
404
+ animate: A ? "whileInView" : "initial",
399
405
  exit: { opacity: 0, transition: { duration: d.duration } }
400
406
  }
401
407
  ) : null,
402
408
  at ? /* @__PURE__ */ n.jsx(
403
- X.text,
409
+ Y.text,
404
410
  {
405
- x: Math.cos(r(x) - Math.PI / 2) * (p(o) + 6),
406
- y: Math.sin(r(x) - Math.PI / 2) * (p(o) + 6),
407
411
  style: {
408
- fill: l[a],
409
- textAnchor: Math.cos(r(x) - Math.PI / 2) < 0 ? "end" : Math.cos(r(x) - Math.PI / 2) < 1e-5 ? "middle" : "start",
410
412
  ..._?.graphObjectValues || {}
411
413
  },
412
- dy: Math.sin(r(x) - Math.PI / 2) < 0 ? 10 : (Math.sin(r(x) - Math.PI / 2) < 1e-5, 0),
413
- className: E(
414
+ dy: Math.sin(l(m) - Math.PI / 2) < 0 ? 10 : (Math.sin(l(m) - Math.PI / 2) < 1e-5, 0),
415
+ className: L(
414
416
  "graph-value text-xs font-bold",
415
- m?.graphObjectValues
417
+ f?.graphObjectValues
416
418
  ),
417
419
  variants: {
418
- initial: { opacity: 0 },
420
+ initial: {
421
+ opacity: 0,
422
+ x: Math.cos(l(m) - Math.PI / 2) * (x(r) + 6),
423
+ y: Math.sin(l(m) - Math.PI / 2) * (x(r) + 6),
424
+ fill: o[a],
425
+ textAnchor: Math.cos(l(m) - Math.PI / 2) < 0 ? "end" : Math.cos(l(m) - Math.PI / 2) < 1e-5 ? "middle" : "start"
426
+ },
419
427
  whileInView: {
420
428
  opacity: 1,
429
+ x: Math.cos(l(m) - Math.PI / 2) * (x(r) + 6),
430
+ y: Math.sin(l(m) - Math.PI / 2) * (x(r) + 6),
431
+ fill: o[a],
432
+ textAnchor: Math.cos(l(m) - Math.PI / 2) < 0 ? "end" : Math.cos(l(m) - Math.PI / 2) < 1e-5 ? "middle" : "start",
421
433
  transition: { duration: d.duration }
422
434
  }
423
435
  },
424
436
  initial: "initial",
425
- animate: V ? "whileInView" : "initial",
437
+ animate: A ? "whileInView" : "initial",
426
438
  exit: { opacity: 0, transition: { duration: d.duration } },
427
- children: pt(o, "NA", C)
439
+ children: ft(r, "NA", P)
428
440
  }
429
441
  ) : null
430
- ] }) }, x)) })
442
+ ] }) }, m)) })
431
443
  ]
432
444
  },
433
445
  i.label || a
434
446
  )) })
435
447
  ] }),
436
- U.filter((i) => i.position === "after").map((i) => i.layer)
448
+ K.filter((i) => i.position === "after").map((i) => i.layer)
437
449
  ] })
438
450
  }
439
451
  ),
440
- k && I && K && Q ? /* @__PURE__ */ n.jsx(
452
+ I && C && Z && tt ? /* @__PURE__ */ n.jsx(
441
453
  Ct,
442
454
  {
443
- data: k,
444
- body: I,
445
- xPos: K,
446
- yPos: Q,
455
+ data: I,
456
+ body: C,
457
+ xPos: Z,
458
+ yPos: tt,
447
459
  backgroundStyle: _?.tooltip,
448
- className: m?.tooltip
460
+ className: f?.tooltip
449
461
  }
450
462
  ) : null,
451
- M && N !== void 0 ? /* @__PURE__ */ n.jsx(
452
- It,
463
+ w && N !== void 0 ? /* @__PURE__ */ n.jsx(
464
+ jt,
453
465
  {
454
466
  open: N !== void 0,
455
467
  onClose: () => {
456
- W(void 0);
468
+ F(void 0);
457
469
  },
458
470
  children: /* @__PURE__ */ n.jsx(
459
471
  "div",
460
472
  {
461
473
  className: "graph-modal-content m-0",
462
- dangerouslySetInnerHTML: typeof M == "string" ? { __html: Nt(M, N) } : void 0,
463
- children: typeof M == "function" ? M(N) : null
474
+ dangerouslySetInnerHTML: typeof w == "string" ? { __html: Pt(w, N) } : void 0,
475
+ children: typeof w == "function" ? w(N) : null
464
476
  }
465
477
  )
466
478
  }
@@ -471,108 +483,108 @@ function li(t) {
471
483
  const {
472
484
  graphTitle: e,
473
485
  colors: s,
474
- sources: l,
475
- graphDescription: I,
476
- footNote: A,
477
- radius: v,
478
- data: u,
479
- showColorScale: M = !0,
486
+ sources: o,
487
+ graphDescription: C,
488
+ footNote: H,
489
+ radius: M,
490
+ data: h,
491
+ showColorScale: w = !0,
480
492
  padding: _,
481
- backgroundColor: m = !1,
482
- tooltip: T,
483
- onSeriesMouseOver: Y,
484
- graphID: nt,
493
+ backgroundColor: f = !1,
494
+ tooltip: $,
495
+ onSeriesMouseOver: z,
496
+ graphID: q,
485
497
  onSeriesMouseClick: at,
486
- topMargin: st = 75,
487
- bottomMargin: ot = 75,
488
- leftMargin: z = 75,
489
- rightMargin: rt = 75,
490
- graphDownload: H = !1,
491
- dataDownload: q = !1,
492
- colorDomain: B,
493
- language: $ = "en",
494
- theme: D = "light",
498
+ topMargin: ot = 75,
499
+ bottomMargin: rt = 75,
500
+ leftMargin: B = 75,
501
+ rightMargin: st = 75,
502
+ graphDownload: R = !1,
503
+ dataDownload: U = !1,
504
+ colorDomain: J,
505
+ language: D = "en",
506
+ theme: V = "light",
495
507
  highlightedLines: lt = [],
496
508
  width: c,
497
- height: f,
509
+ height: p,
498
510
  minHeight: d = 0,
499
511
  strokeWidth: g = 2,
500
- relativeHeight: C,
501
- ariaLabel: U,
502
- colorLegendTitle: J,
503
- detailsOnClick: V,
504
- styles: w,
505
- classNames: b,
512
+ relativeHeight: P,
513
+ ariaLabel: K,
514
+ colorLegendTitle: Q,
515
+ detailsOnClick: A,
516
+ styles: b,
517
+ classNames: k,
506
518
  showNAColor: y = !0,
507
- axisLabels: k,
508
- showDots: R = !0,
519
+ axisLabels: I,
520
+ showDots: W = !0,
509
521
  showValues: N = !1,
510
- curveType: W = "curve",
511
- noOfTicks: K = 5,
512
- minValue: F,
513
- maxValue: Q,
514
- fillShape: G = !1,
515
- resetSelectionOnDoubleClick: r = !0,
516
- animate: Z = !1,
522
+ curveType: F = "curve",
523
+ noOfTicks: Z = 5,
524
+ minValue: G,
525
+ maxValue: tt,
526
+ fillShape: X = !1,
527
+ resetSelectionOnDoubleClick: l = !0,
528
+ animate: it = !1,
517
529
  dimmedOpacity: ct = 0.3,
518
- precision: p = 2,
530
+ precision: x = 2,
519
531
  customLayers: ht = []
520
- } = t, [P, i] = j(0), [a, o] = j(0), [x, tt] = j(0), [wt, bt] = j(void 0), S = ut(null), mt = ut(null);
532
+ } = t, [O, i] = j(0), [a, r] = j(0), [m, E] = j(0), [wt, bt] = j(void 0), S = ut(null), mt = ut(null);
521
533
  return kt(() => {
522
- const h = new ResizeObserver((it) => {
523
- o(c || it[0].target.clientWidth || 420), tt(f || it[0].target.clientHeight || 420), i(
534
+ const u = new ResizeObserver((et) => {
535
+ r(c || et[0].target.clientWidth || 420), E(p || et[0].target.clientHeight || 420), i(
524
536
  (Math.min(
525
- c || it[0].target.clientWidth || 620,
526
- f || it[0].target.clientHeight || 480
537
+ c || et[0].target.clientWidth || 620,
538
+ p || et[0].target.clientHeight || 480
527
539
  ) || 420) / 2
528
540
  );
529
541
  });
530
- return S.current && (tt(S.current.clientHeight || 420), o(S.current.clientWidth || 420), i(
542
+ return S.current && (E(S.current.clientHeight || 420), r(S.current.clientWidth || 420), i(
531
543
  (Math.min(S.current.clientWidth, S.current.clientHeight) || 420) / 2
532
- ), (!c || !v) && h.observe(S.current)), () => h.disconnect();
533
- }, [c, f, v]), /* @__PURE__ */ n.jsx(
544
+ ), (!c || !M) && u.observe(S.current)), () => u.disconnect();
545
+ }, [c, p, M]), /* @__PURE__ */ n.jsx(
534
546
  "div",
535
547
  {
536
- className: `${D || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
537
- dir: $ === "he" || $ === "ar" ? "rtl" : void 0,
548
+ className: `${V || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
549
+ dir: D === "he" || D === "ar" ? "rtl" : void 0,
538
550
  children: /* @__PURE__ */ n.jsx(
539
551
  "div",
540
552
  {
541
- className: E(
542
- `${m ? m === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${$ || "en"}`,
553
+ className: L(
554
+ `${f ? f === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${D || "en"}`,
543
555
  c ? "w-fit" : "w-full",
544
- b?.graphContainer
556
+ k?.graphContainer
545
557
  ),
546
558
  style: {
547
- ...w?.graphContainer || {},
559
+ ...b?.graphContainer || {},
548
560
  minHeight: "inherit",
549
- ...m && m !== !0 ? { backgroundColor: m } : {}
561
+ ...f && f !== !0 ? { backgroundColor: f } : {}
550
562
  },
551
- id: nt,
563
+ id: q,
552
564
  ref: mt,
553
- "aria-label": U || `${e ? `The graph shows ${e}. ` : ""}This is a donut or pie chart chart. ${I ? ` ${I}` : ""}`,
565
+ "aria-label": K || `${e ? `The graph shows ${e}. ` : ""}This is a donut or pie chart chart. ${C ? ` ${C}` : ""}`,
554
566
  children: /* @__PURE__ */ n.jsx(
555
567
  "div",
556
568
  {
557
569
  className: "flex grow",
558
- style: { padding: m ? _ || "1rem" : _ || 0 },
570
+ style: { padding: f ? _ || "1rem" : _ || 0 },
559
571
  children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 w-full grow justify-between", children: [
560
- e || I || H || q ? /* @__PURE__ */ n.jsx(
572
+ e || C || R || U ? /* @__PURE__ */ n.jsx(
561
573
  Dt,
562
574
  {
563
575
  styles: {
564
- title: w?.title,
565
- description: w?.description
566
- },
567
- classNames: {
568
576
  title: b?.title,
569
577
  description: b?.description
570
578
  },
579
+ classNames: {
580
+ title: k?.title,
581
+ description: k?.description
582
+ },
571
583
  graphTitle: e,
572
- graphDescription: I,
584
+ graphDescription: C,
573
585
  width: c,
574
- graphDownload: H ? mt.current : void 0,
575
- dataDownload: q ? u.map((h) => h.data).filter((h) => h !== void 0).length > 0 ? u.map((h) => h.data).filter((h) => h !== void 0) : u.filter((h) => h !== void 0) : null
586
+ graphDownload: R ? mt.current : void 0,
587
+ dataDownload: U ? h.map((u) => u.data).filter((u) => u !== void 0).length > 0 ? h.map((u) => u.data).filter((u) => u !== void 0) : h.filter((u) => u !== void 0) : null
576
588
  }
577
589
  ) : null,
578
590
  /* @__PURE__ */ n.jsx(
@@ -582,14 +594,14 @@ function li(t) {
582
594
  style: {
583
595
  width: c ? `${c}px` : "100%"
584
596
  },
585
- children: u.length === 0 ? /* @__PURE__ */ n.jsx(Vt, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
586
- M && u.filter((h) => h.color).length !== 0 ? /* @__PURE__ */ n.jsx(
587
- Et,
597
+ children: h.length === 0 ? /* @__PURE__ */ n.jsx(Vt, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
598
+ w && h.filter((u) => u.color).length !== 0 ? /* @__PURE__ */ n.jsx(
599
+ At,
588
600
  {
589
601
  width: c,
590
- colorLegendTitle: J,
591
- colors: s || L[D].categoricalColors.colors,
592
- colorDomain: B || ft(u, "color", !0),
602
+ colorLegendTitle: Q,
603
+ colors: s || v[V].categoricalColors.colors,
604
+ colorDomain: J || pt(h, "color", !0),
593
605
  setSelectedColor: bt,
594
606
  showNAColor: y
595
607
  }
@@ -600,44 +612,44 @@ function li(t) {
600
612
  className: `flex ${c ? "grow-0" : "grow"} items-center justify-center leading-0`,
601
613
  style: {
602
614
  width: c ? `${c}px` : "100%",
603
- height: f ? `${Math.max(
615
+ height: p ? `${Math.max(
604
616
  d,
605
- f || (C ? d ? (c || a) * C > d ? (c || a) * C : d : (c || a) * C : x)
617
+ p || (P ? d ? (c || a) * P > d ? (c || a) * P : d : (c || a) * P : m)
606
618
  )}px` : "auto"
607
619
  },
608
620
  ref: S,
609
621
  "aria-label": "Graph area",
610
- children: /* @__PURE__ */ n.jsx("div", { className: "w-full flex justify-center leading-0", children: v || P ? /* @__PURE__ */ n.jsx(
622
+ children: /* @__PURE__ */ n.jsx("div", { className: "w-full flex justify-center leading-0", children: M || O ? /* @__PURE__ */ n.jsx(
611
623
  Ft,
612
624
  {
613
- data: u,
614
- lineColors: u.filter((h) => h.color).length === 0 ? s ? [s] : [L.primaryColors["blue-600"]] : s || L[D].categoricalColors.colors,
615
- radius: v || P,
616
- tooltip: T,
617
- colorDomain: B || ft(u, "color", !0),
618
- onSeriesMouseOver: Y,
625
+ data: h,
626
+ lineColors: h.filter((u) => u.color).length === 0 ? s ? [s] : [v.primaryColors["blue-600"]] : s || v[V].categoricalColors.colors,
627
+ radius: M || O,
628
+ tooltip: $,
629
+ colorDomain: J || pt(h, "color", !0),
630
+ onSeriesMouseOver: z,
619
631
  onSeriesMouseClick: at,
620
- styles: w,
621
- detailsOnClick: V,
632
+ styles: b,
633
+ detailsOnClick: A,
622
634
  selectedColor: wt,
623
- axisLabels: k,
635
+ axisLabels: I,
624
636
  strokeWidth: g,
625
637
  showValues: N,
626
- showDots: R,
627
- topMargin: st,
628
- bottomMargin: ot,
629
- leftMargin: z,
630
- rightMargin: rt,
631
- curveType: W,
632
- noOfTicks: K,
633
- minValue: F,
634
- maxValue: Q,
635
- fillShape: G,
638
+ showDots: W,
639
+ topMargin: ot,
640
+ bottomMargin: rt,
641
+ leftMargin: B,
642
+ rightMargin: st,
643
+ curveType: F,
644
+ noOfTicks: Z,
645
+ minValue: G,
646
+ maxValue: tt,
647
+ fillShape: X,
636
648
  highlightedLines: lt,
637
- resetSelectionOnDoubleClick: r,
638
- animate: Z === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : Z || { duration: 0, once: !0, amount: 0 },
649
+ resetSelectionOnDoubleClick: l,
650
+ animate: it === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : it || { duration: 0, once: !0, amount: 0 },
639
651
  dimmedOpacity: ct,
640
- precision: p,
652
+ precision: x,
641
653
  customLayers: ht
642
654
  }
643
655
  ) : null })
@@ -646,16 +658,16 @@ function li(t) {
646
658
  ] })
647
659
  }
648
660
  ),
649
- l || A ? /* @__PURE__ */ n.jsx(
661
+ o || H ? /* @__PURE__ */ n.jsx(
650
662
  $t,
651
663
  {
652
- styles: { footnote: w?.footnote, source: w?.source },
664
+ styles: { footnote: b?.footnote, source: b?.source },
653
665
  classNames: {
654
- footnote: b?.footnote,
655
- source: b?.source
666
+ footnote: k?.footnote,
667
+ source: k?.source
656
668
  },
657
- sources: l,
658
- footNote: A,
669
+ sources: o,
670
+ footNote: H,
659
671
  width: c
660
672
  }
661
673
  ) : /* @__PURE__ */ n.jsx("div", {})