@undp/data-viz 1.5.9 → 2.0.0

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 (670) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2188 -4045
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +1 -0
  22. package/dist/BasicStatCard.js +120 -186
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +5 -0
  27. package/dist/BeeSwarmChart.js +500 -1018
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +1 -0
  32. package/dist/BiVariateChoroplethMap.js +458 -699
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +1 -0
  37. package/dist/BulletChart.js +863 -1414
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +1 -0
  47. package/dist/ChoroplethMap.js +466 -720
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -4
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +3 -3
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +1 -0
  95. package/dist/DotDensityMap.js +387 -574
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-6kjXM6oW.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-36lXXyui.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-B8IpKGcL.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +265 -340
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -379
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -278
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-2IiUDxjR.js → GraphEl-DzRon4cb.js} +181 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +1 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +1 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +1 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +2 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +357 -591
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +1 -0
  353. package/dist/ThreeDGlobe.js +356 -519
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +1 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-x4L4xwLl.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-1G1S78s_.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BHe3wsWF.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-DBWUSD9b.js → index-CHPV5EwG-Curnpaqc.js} +724 -625
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs → index-Cw8sCyo_-BrHiWiRF.cjs} +2 -2
  469. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs.map → index-Cw8sCyo_-BrHiWiRF.cjs.map} +1 -1
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-Dzc_aaI9-BKklH89r.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-Dzc_aaI9-BKklH89r.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-Bw_eHBVN.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +10 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-BYIC9BuT.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-DR-UTB96.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +7 -6
  569. package/dist/Axis-4gUOL8B7.js +0 -43
  570. package/dist/Axis-4gUOL8B7.js.map +0 -1
  571. package/dist/Axis-CkNn1wit.cjs +0 -2
  572. package/dist/Axis-CkNn1wit.cjs.map +0 -1
  573. package/dist/AxisTitle-Wkz-xeQL.cjs +0 -2
  574. package/dist/AxisTitle-Wkz-xeQL.cjs.map +0 -1
  575. package/dist/AxisTitle-v6_xcXZ-.js +0 -20
  576. package/dist/AxisTitle-v6_xcXZ-.js.map +0 -1
  577. package/dist/DropdownSelect-6kjXM6oW.js.map +0 -1
  578. package/dist/DropdownSelect-vt8yiB-g.cjs +0 -29
  579. package/dist/DropdownSelect-vt8yiB-g.cjs.map +0 -1
  580. package/dist/EmptyState-36lXXyui.js +0 -22
  581. package/dist/EmptyState-B8IpKGcL.cjs +0 -2
  582. package/dist/GraphEl-2IiUDxjR.js.map +0 -1
  583. package/dist/GraphEl-qrlfGPe3.cjs +0 -2
  584. package/dist/GraphEl-qrlfGPe3.cjs.map +0 -1
  585. package/dist/Modal-Cg8daIlV.js +0 -1030
  586. package/dist/Modal-Cg8daIlV.js.map +0 -1
  587. package/dist/Modal-CuuJdWkD.cjs +0 -46
  588. package/dist/Modal-CuuJdWkD.cjs.map +0 -1
  589. package/dist/ReferenceLine-CPMaAX0r.js +0 -128
  590. package/dist/ReferenceLine-CPMaAX0r.js.map +0 -1
  591. package/dist/ReferenceLine-D04j-zeV.cjs +0 -2
  592. package/dist/ReferenceLine-D04j-zeV.cjs.map +0 -1
  593. package/dist/RegressionLine-CW7iViH2.js +0 -49
  594. package/dist/RegressionLine-CW7iViH2.js.map +0 -1
  595. package/dist/RegressionLine-D-49RaHa.cjs +0 -2
  596. package/dist/RegressionLine-D-49RaHa.cjs.map +0 -1
  597. package/dist/Spinner-Bpz70q_g.js +0 -30
  598. package/dist/Spinner-Bpz70q_g.js.map +0 -1
  599. package/dist/Spinner-C6wLp85s.cjs +0 -2
  600. package/dist/Spinner-C6wLp85s.cjs.map +0 -1
  601. package/dist/Tooltip-6LIdPQGC.js +0 -46
  602. package/dist/Tooltip-6LIdPQGC.js.map +0 -1
  603. package/dist/Tooltip-Cpv0QohJ.cjs +0 -2
  604. package/dist/Tooltip-Cpv0QohJ.cjs.map +0 -1
  605. package/dist/Typography-BDULiwlF.cjs +0 -2
  606. package/dist/Typography-BDULiwlF.cjs.map +0 -1
  607. package/dist/Typography-LmZ9LEpe.js +0 -140
  608. package/dist/Typography-LmZ9LEpe.js.map +0 -1
  609. package/dist/XAxesLabels-CLZnBgSr.cjs +0 -2
  610. package/dist/XAxesLabels-CLZnBgSr.cjs.map +0 -1
  611. package/dist/XAxesLabels-SOSmso5J.js +0 -57
  612. package/dist/XAxesLabels-SOSmso5J.js.map +0 -1
  613. package/dist/XTicksAndGridLines-DuydSnZ_.js +0 -56
  614. package/dist/XTicksAndGridLines-DuydSnZ_.js.map +0 -1
  615. package/dist/XTicksAndGridLines-RKy7BVCO.cjs +0 -2
  616. package/dist/XTicksAndGridLines-RKy7BVCO.cjs.map +0 -1
  617. package/dist/YAxesLabels-DlDyLvhi.js +0 -52
  618. package/dist/YAxesLabels-DlDyLvhi.js.map +0 -1
  619. package/dist/YAxesLabels-Dqd259-t.cjs +0 -2
  620. package/dist/YAxesLabels-Dqd259-t.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-7t4MKtGw.js +0 -56
  622. package/dist/YTicksAndGridLines-7t4MKtGw.js.map +0 -1
  623. package/dist/YTicksAndGridLines-qGpRo_t1.cjs +0 -2
  624. package/dist/YTicksAndGridLines-qGpRo_t1.cjs.map +0 -1
  625. package/dist/checkIfMultiple-Dko_cBvE.cjs +0 -12
  626. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +0 -1
  627. package/dist/checkIfMultiple-u2SmbiCf.js +0 -912
  628. package/dist/checkIfMultiple-u2SmbiCf.js.map +0 -1
  629. package/dist/customArea-1G1S78s_.cjs +0 -2
  630. package/dist/customArea-x4L4xwLl.js +0 -175
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-CUxPy36E.cjs +0 -6
  634. package/dist/getSliderMarks-CUxPy36E.cjs.map +0 -1
  635. package/dist/getSliderMarks-_pYOWEtO.js +0 -1023
  636. package/dist/getSliderMarks-_pYOWEtO.js.map +0 -1
  637. package/dist/index-9tDEUqOZ.js.map +0 -1
  638. package/dist/index-BHe3wsWF.cjs +0 -2
  639. package/dist/index-Bw_eHBVN.js +0 -77
  640. package/dist/index-C0bpbS4F.cjs +0 -2
  641. package/dist/index-C0bpbS4F.cjs.map +0 -1
  642. package/dist/index-CE9pmfxt.js +0 -430
  643. package/dist/index-CE9pmfxt.js.map +0 -1
  644. package/dist/index-CEJwW3lL.cjs +0 -2
  645. package/dist/index-CEJwW3lL.cjs.map +0 -1
  646. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +0 -1
  647. package/dist/index-CHPV5EwG-DjM48pIC.cjs +0 -44
  648. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +0 -1
  649. package/dist/index-CQ3e6Ewi.cjs +0 -2
  650. package/dist/index-Cm8NIdOO.cjs +0 -10
  651. package/dist/index-Cm8NIdOO.cjs.map +0 -1
  652. package/dist/index-CoZbeNM9.cjs +0 -2
  653. package/dist/index-CoZbeNM9.cjs.map +0 -1
  654. package/dist/index-Cwgh7i7X.js +0 -122
  655. package/dist/index-Cwgh7i7X.js.map +0 -1
  656. package/dist/index-D72cOtq7.cjs +0 -2
  657. package/dist/index-zZjQEHlm.js +0 -342
  658. package/dist/index-zZjQEHlm.js.map +0 -1
  659. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  660. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  661. package/dist/proxy-BYIC9BuT.js.map +0 -1
  662. package/dist/proxy-CKadx4lC.cjs +0 -2
  663. package/dist/proxy-CKadx4lC.cjs.map +0 -1
  664. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  665. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  666. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  667. package/dist/use-in-view-CEwlc_dd.cjs +0 -2
  668. package/dist/use-in-view-CEwlc_dd.cjs.map +0 -1
  669. package/dist/use-in-view-DR-UTB96.js.map +0 -1
  670. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,681 +1,603 @@
1
- import { j as t, m as xe } from "./index-CHPV5EwG-DBWUSD9b.js";
2
- import { useRef as ge, useState as G, useEffect as $e } from "react";
3
- import { p as u, f as Ve } from "./parse-DlCRUFh_.js";
4
- import { o as Te } from "./index-DvVprvy6.js";
5
- import { n as Se } from "./numberFormattingFunction-14YCbkN2.js";
6
- import { T as He } from "./Tooltip-6LIdPQGC.js";
7
- import { c as x } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
- import { C as We, g as Ie, A as Re } from "./customArea-x4L4xwLl.js";
9
- import { A as Ye } from "./AxisTitle-v6_xcXZ-.js";
10
- import { A as Fe } from "./Axis-4gUOL8B7.js";
11
- import { X as Xe } from "./XTicksAndGridLines-DuydSnZ_.js";
12
- import { R as Pe } from "./ReferenceLine-CPMaAX0r.js";
13
- import { Y as Ee } from "./YTicksAndGridLines-7t4MKtGw.js";
14
- import { H as Ge } from "./index-Bw_eHBVN.js";
15
- import { Colors as D } from "./Colors.js";
16
- import { u as ue } from "./uniqBy-BHy4I8PK.js";
17
- import { s as Be } from "./sort-DfK1b0F5.js";
18
- import { c as ze, a as qe } from "./init-BhZylTFx.js";
19
- import { t as Ue } from "./time-BzJP5SPC.js";
20
- import { a as Je } from "./linear-DUdu7l2G.js";
21
- import { D as Ke } from "./delaunay-C1uAf38t.js";
22
- import { l as Qe, c as Ze } from "./line-CPfhohvF.js";
23
- import { c as _e, s as et, a as tt, m as it } from "./step-BrDul-H4.js";
24
- import { s as ot } from "./select-DKy99ogv.js";
25
- import { p as at } from "./pointer-CWRWOsrb.js";
26
- import { u as rt } from "./use-in-view-DR-UTB96.js";
27
- import { m as E } from "./proxy-BYIC9BuT.js";
28
- import { GraphFooter as nt } from "./GraphFooter.js";
29
- import { GraphHeader as st } from "./GraphHeader.js";
30
- import { E as lt } from "./EmptyState-36lXXyui.js";
31
- import { ColorLegendWithMouseOver as ct } from "./ColorLegendWithMouseOver.js";
32
- function mt(pe) {
33
- const {
34
- data: r,
35
- width: S,
36
- height: K,
37
- lineColors: a,
38
- dateFormat: f,
39
- noOfXTicks: ye,
1
+ import { c as He, m as ke, j as r } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as De, useState as It, useEffect as Te } from "react";
3
+ import { p as A, f as Xe } from "./parse-DlCRUFh_.js";
4
+ import { o as Ne } from "./index-BZQYSqar.js";
5
+ import { n as Ve } from "./numberFormattingFunction-14YCbkN2.js";
6
+ import { T as Ge } from "./Tooltip-CwWUegPB.js";
7
+ import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
+ import { C as Ee, g as Pe, A as Be } from "./customArea-BUhPiPT6.js";
9
+ import { A as ze } from "./AxisTitle-jeI7am8o.js";
10
+ import { A as qe } from "./Axis-CRyfcLjc.js";
11
+ import { X as Ue } from "./XTicksAndGridLines-CObVFSm4.js";
12
+ import { a as Je } from "./ReferenceLine-2XCwHXQ4.js";
13
+ import { Y as Ke } from "./YTicksAndGridLines-Blepl7XF.js";
14
+ import { H as Qe } from "./index-SKgJALZg.js";
15
+ import { Colors as X } from "./Colors.js";
16
+ import { u as je } from "./uniqBy-BHy4I8PK.js";
17
+ import { s as Ze } from "./sort-BIvMlUH1.js";
18
+ import { t as _e } from "./time-DCCfQk3V.js";
19
+ import { a as to } from "./linear-BwnDd9KF.js";
20
+ import { D as eo } from "./delaunay-C1uAf38t.js";
21
+ import { l as oo, c as io } from "./line-CPfhohvF.js";
22
+ import { c as no, s as ro, a as so, m as ao } from "./step-BrDul-H4.js";
23
+ import { s as lo } from "./select-DKy99ogv.js";
24
+ import { a as co, c as fo } from "./init-BJFW6EwE.js";
25
+ import { p as mo } from "./pointer-CWRWOsrb.js";
26
+ import { u as uo } from "./use-in-view-Cxa7y1TH.js";
27
+ import { m as Ft } from "./proxy-BxkFHwUw.js";
28
+ import { GraphFooter as po } from "./GraphFooter.js";
29
+ import { GraphHeader as ho } from "./GraphHeader.js";
30
+ import { E as go } from "./EmptyState-BZo1BbAn.js";
31
+ import { ColorLegendWithMouseOver as xo } from "./ColorLegendWithMouseOver.js";
32
+ import { a as yo, G as vo } from "./GraphContainer-CRqzdKu2.js";
33
+ function bo(o) {
34
+ const t = He.c(128), {
35
+ data: f,
36
+ width: Z,
37
+ height: Rt,
38
+ lineColors: m,
39
+ dateFormat: n,
40
+ noOfXTicks: pe,
40
41
  rightMargin: _,
41
- topMargin: de,
42
- bottomMargin: B,
43
- suffix: L,
44
- prefix: h,
45
- leftMargin: O,
46
- tooltip: ee,
47
- onSeriesMouseOver: W,
48
- refValues: Q,
49
- highlightAreaSettings: k,
50
- minValue: z,
51
- maxValue: te,
52
- highlightedLines: $,
53
- animate: n,
54
- rtl: ie,
55
- strokeWidth: M,
56
- showDots: q,
57
- annotations: we,
58
- customHighlightAreaSettings: ve,
59
- yAxisTitle: oe,
60
- noOfYTicks: be,
61
- minDate: ae,
62
- maxDate: re,
63
- curveType: U,
64
- styles: C,
65
- colorDomain: p,
66
- selectedColor: I,
67
- classNames: y,
68
- showLabels: R,
69
- dimmedOpacity: j,
70
- precision: N,
71
- naLabel: Ce,
72
- customLayers: ne
73
- } = pe, se = ge(null), d = rt(se, {
74
- once: n.once,
75
- amount: n.amount
76
- }), [A, Oe] = G(!1);
77
- $e(() => {
78
- if (d && !A) {
79
- const e = setTimeout(
80
- () => {
81
- Oe(!0);
82
- },
83
- (n.duration + 0.5) * 1e3
84
- );
42
+ topMargin: Xt,
43
+ bottomMargin: tt,
44
+ suffix: W,
45
+ prefix: x,
46
+ leftMargin: C,
47
+ tooltip: dt,
48
+ onSeriesMouseOver: et,
49
+ refValues: ot,
50
+ highlightAreaSettings: Gt,
51
+ minValue: G,
52
+ maxValue: yt,
53
+ highlightedLines: Y,
54
+ animate: s,
55
+ rtl: E,
56
+ strokeWidth: k,
57
+ showDots: ie,
58
+ annotations: vt,
59
+ customHighlightAreaSettings: Et,
60
+ yAxisTitle: P,
61
+ noOfYTicks: Pt,
62
+ minDate: Bt,
63
+ maxDate: zt,
64
+ curveType: it,
65
+ styles: b,
66
+ colorDomain: L,
67
+ selectedColor: bt,
68
+ classNames: O,
69
+ showLabels: he,
70
+ dimmedOpacity: M,
71
+ precision: B,
72
+ naLabel: ge,
73
+ customLayers: z
74
+ } = o, wt = De(null);
75
+ let q;
76
+ t[0] !== s.amount || t[1] !== s.once ? (q = {
77
+ once: s.once,
78
+ amount: s.amount
79
+ }, t[0] = s.amount, t[1] = s.once, t[2] = q) : q = t[2];
80
+ const u = uo(wt, q), [$, ne] = It(!1);
81
+ let Ct, nt;
82
+ t[3] !== s.duration || t[4] !== $ || t[5] !== u ? (Ct = () => {
83
+ if (u && !$) {
84
+ const e = setTimeout(() => {
85
+ ne(!0);
86
+ }, (s.duration + 0.5) * 1e3);
85
87
  return () => clearTimeout(e);
86
88
  }
87
- }, [d, A, n.duration]);
88
- const je = U === "linear" ? Ze : U === "step" ? _e : U === "stepAfter" ? et : U === "stepBefore" ? tt : it, l = Te(
89
- r.map((e) => ({
90
- ...e,
91
- date: u(`${e.date}`, f, /* @__PURE__ */ new Date())
92
- })),
93
- ["date"],
94
- ["asc"]
95
- ).filter((e) => !x(e.y)), Ae = ue(l, "label", !0), Z = Be(
96
- ue(r, "date", !0).map((e) => u(`${e}`, f, /* @__PURE__ */ new Date())),
97
- (e, i) => ze(e, i)
98
- ), [g, w] = G(void 0), [T, Y] = G(void 0), [le, F] = G(void 0), v = {
99
- top: de,
100
- bottom: B,
101
- left: oe ? O + 30 : O,
102
- right: _
103
- }, X = ge(null), ce = Ae.map(
104
- (e) => Te(
105
- l.filter((i) => i.label == e),
106
- ["date"],
107
- ["asc"]
108
- )
109
- ), me = k.map((e) => ({
110
- ...e,
111
- coordinates: [
112
- e.coordinates[0] === null ? null : u(`${e.coordinates[0]}`, f, /* @__PURE__ */ new Date()),
113
- e.coordinates[1] === null ? null : u(`${e.coordinates[1]}`, f, /* @__PURE__ */ new Date())
114
- ]
115
- })), fe = ve.map((e) => ({
89
+ }, nt = [u, $, s.duration], t[3] = s.duration, t[4] = $, t[5] = u, t[6] = Ct, t[7] = nt) : (Ct = t[6], nt = t[7]), Te(Ct, nt);
90
+ const re = it === "linear" ? io : it === "step" ? no : it === "stepAfter" ? ro : it === "stepBefore" ? so : ao;
91
+ let Ot;
92
+ t[8] !== n ? (Ot = (e) => ({
116
93
  ...e,
117
- coordinates: e.coordinates.map(
118
- (i, m) => m % 2 === 0 ? u(`${i}`, f, /* @__PURE__ */ new Date()) : i
119
- )
120
- })), b = S - v.left - v.right, V = K - v.top - v.bottom, P = ae ? u(`${ae}`, f, /* @__PURE__ */ new Date()) : Z[0], he = re ? u(`${re}`, f, /* @__PURE__ */ new Date()) : Z[Z.length - 1], o = x(z) ? Math.min(...l.map((e) => e.y).filter((e) => !x(e))) ? Math.min(
121
- ...l.map((e) => e.y).filter((e) => !x(e))
122
- ) > 0 ? 0 : Math.min(
123
- ...l.map((e) => e.y).filter((e) => !x(e))
124
- ) : 0 : z, J = Math.max(
125
- ...l.map((e) => e.y).filter((e) => !x(e))
126
- ) ? Math.max(
127
- ...l.map((e) => e.y).filter((e) => !x(e))
128
- ) : 0, s = Ue().domain([P, he]).range([0, b]), c = Je().domain([
129
- x(z) ? o : z,
130
- x(te) ? J > 0 ? J : 0 : te
131
- ]).range([V, 0]).nice(), ke = Ke.from(
132
- l.filter((e) => !x(e.date) && !x(e.y)),
133
- (e) => s(e.date),
134
- (e) => c(e.y)
135
- ).voronoi([0, 0, b < 0 ? 0 : b, V < 0 ? 0 : V]), De = Qe().x((e) => s(e.date)).y((e) => c(e.y)).curve(je), Me = c.ticks(be), Ne = s.ticks(ye);
136
- return $e(() => {
137
- const e = (m) => {
138
- const H = l[qe(
139
- l.map((Le) => Le.date),
140
- s.invert(at(m)[0]),
141
- 0
142
- )];
143
- w(H || l[l.length - 1]), F(m.clientY), Y(m.clientX), W?.(H || l[l.length - 1]);
94
+ date: A(`${e.date}`, n, /* @__PURE__ */ new Date())
95
+ }), t[8] = n, t[9] = Ot) : Ot = t[9];
96
+ const a = Ne(f.map(Ot), ["date"], ["asc"]).filter(Qo), d = je(a, "label", !0);
97
+ let At;
98
+ t[10] !== n ? (At = (e) => A(`${e}`, n, /* @__PURE__ */ new Date()), t[10] = n, t[11] = At) : At = t[11];
99
+ const qt = Ze(je(f, "date", !0).map(At), Ko), [p, rt] = It(void 0), [st, U] = It(void 0), [at, J] = It(void 0), Dt = P ? C + 30 : C;
100
+ let lt;
101
+ t[12] !== tt || t[13] !== _ || t[14] !== Dt || t[15] !== Xt ? (lt = {
102
+ top: Xt,
103
+ bottom: tt,
104
+ left: Dt,
105
+ right: _
106
+ }, t[12] = tt, t[13] = _, t[14] = Dt, t[15] = Xt, t[16] = lt) : lt = t[16];
107
+ const g = lt, se = De(null), ae = d.map((e) => Ne(a.filter((i) => i.label == e), ["date"], ["asc"]));
108
+ let ct;
109
+ if (t[17] !== n || t[18] !== Gt) {
110
+ let e;
111
+ t[20] !== n ? (e = (i) => ({
112
+ ...i,
113
+ coordinates: [i.coordinates[0] === null ? null : A(`${i.coordinates[0]}`, n, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : A(`${i.coordinates[1]}`, n, /* @__PURE__ */ new Date())]
114
+ }), t[20] = n, t[21] = e) : e = t[21], ct = Gt.map(e), t[17] = n, t[18] = Gt, t[19] = ct;
115
+ } else
116
+ ct = t[19];
117
+ const jt = ct;
118
+ let ft;
119
+ if (t[22] !== Et || t[23] !== n) {
120
+ let e;
121
+ t[25] !== n ? (e = (i) => ({
122
+ ...i,
123
+ coordinates: i.coordinates.map((y, Yt) => Yt % 2 === 0 ? A(`${y}`, n, /* @__PURE__ */ new Date()) : y)
124
+ }), t[25] = n, t[26] = e) : e = t[26], ft = Et.map(e), t[22] = Et, t[23] = n, t[24] = ft;
125
+ } else
126
+ ft = t[24];
127
+ const Ut = ft, h = Z - g.left - g.right, D = Rt - g.top - g.bottom, le = Bt ? A(`${Bt}`, n, /* @__PURE__ */ new Date()) : qt[0], Jt = zt ? A(`${zt}`, n, /* @__PURE__ */ new Date()) : qt[qt.length - 1], w = v(G) ? Math.min(...a.map(Jo).filter(Uo)) ? Math.min(...a.map(qo).filter(zo)) > 0 ? 0 : Math.min(...a.map(Bo).filter(Po)) : 0 : G, F = Math.max(...a.map(Eo).filter(Go)) ? Math.max(...a.map(Xo).filter(Ro)) : 0, l = _e().domain([le, Jt]).range([0, h]);
128
+ let K;
129
+ t[27] !== w || t[28] !== G ? (K = v(G) ? w : G, t[27] = w, t[28] = G, t[29] = K) : K = t[29];
130
+ let S;
131
+ t[30] !== F || t[31] !== yt ? (S = v(yt) ? F > 0 ? F : 0 : yt, t[30] = F, t[31] = yt, t[32] = S) : S = t[32];
132
+ const c = to().domain([K, S]).range([D, 0]).nice(), ce = eo.from(a.filter(Io), (e) => l(e.date), (e) => c(e.y)).voronoi([0, 0, h < 0 ? 0 : h, D < 0 ? 0 : D]), Lt = oo().x((e) => l(e.date)).y((e) => c(e.y)).curve(re), Mt = c.ticks(Pt), Kt = l.ticks(pe);
133
+ Te(() => {
134
+ const e = (y) => {
135
+ const Yt = a[fo(a.map(Fo), l.invert(mo(y)[0]), 0)];
136
+ rt(Yt || a[a.length - 1]), J(y.clientY), U(y.clientX), et?.(Yt || a[a.length - 1]);
144
137
  }, i = () => {
145
- w(void 0), Y(void 0), F(void 0);
138
+ rt(void 0), U(void 0), J(void 0);
146
139
  };
147
- ot(X.current).on("mousemove", e).on("mouseout", i), W?.(void 0);
148
- }, [s, l, W]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
149
- /* @__PURE__ */ t.jsx(
150
- E.svg,
151
- {
152
- width: `${S}px`,
153
- height: `${K}px`,
154
- viewBox: `0 0 ${S} ${K}`,
155
- direction: "ltr",
156
- ref: se,
157
- children: /* @__PURE__ */ t.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
158
- /* @__PURE__ */ t.jsx(
159
- Ge,
160
- {
161
- areaSettings: me,
162
- width: b,
163
- height: V,
164
- scale: s,
165
- animate: n,
166
- isInView: d
140
+ lo(se.current).on("mousemove", e).on("mouseout", i), et?.(void 0);
141
+ }, [l, a, et]);
142
+ let Q;
143
+ t[33] !== s || t[34] !== D || t[35] !== h || t[36] !== jt || t[37] !== u || t[38] !== l ? (Q = /* @__PURE__ */ r.jsx(Qe, { areaSettings: jt, width: h, height: D, scale: l, animate: s, isInView: u }), t[33] = s, t[34] = D, t[35] = h, t[36] = jt, t[37] = u, t[38] = l, t[39] = Q) : Q = t[39];
144
+ const $t = b?.yAxis?.gridLines, T = b?.yAxis?.labels;
145
+ let mt;
146
+ t[40] !== $t || t[41] !== T ? (mt = {
147
+ gridLines: $t,
148
+ labels: T
149
+ }, t[40] = $t, t[41] = T, t[42] = mt) : mt = t[42];
150
+ const St = O?.yAxis?.gridLines, kt = O?.yAxis?.labels;
151
+ let ut;
152
+ t[43] !== St || t[44] !== kt ? (ut = {
153
+ gridLines: St,
154
+ labels: kt
155
+ }, t[43] = St, t[44] = kt, t[45] = ut) : ut = t[45];
156
+ const pt = c(w < 0 ? 0 : w), Tt = c(w < 0 ? 0 : w), Nt = 0 - C, ht = h + g.right, fe = w < 0 ? 0 : w;
157
+ let N;
158
+ t[46] !== B || t[47] !== x || t[48] !== W || t[49] !== fe ? (N = Ve(fe, "NA", B, x, W), t[46] = B, t[47] = x, t[48] = W, t[49] = fe, t[50] = N) : N = t[50];
159
+ const me = 0 - C, Vt = c(w < 0 ? 0 : w), ue = F < 0 ? "1em" : -5;
160
+ let I;
161
+ t[51] !== me || t[52] !== Vt || t[53] !== ue ? (I = {
162
+ x: me,
163
+ y: Vt,
164
+ dx: 0,
165
+ dy: ue
166
+ }, t[51] = me, t[52] = Vt, t[53] = ue, t[54] = I) : I = t[54];
167
+ const Qt = O?.xAxis?.axis, gt = O?.yAxis?.labels;
168
+ let V;
169
+ t[55] !== Qt || t[56] !== gt ? (V = {
170
+ axis: Qt,
171
+ label: gt
172
+ }, t[55] = Qt, t[56] = gt, t[57] = V) : V = t[57];
173
+ const Ht = b?.xAxis?.axis, Wt = b?.yAxis?.labels;
174
+ let j;
175
+ t[58] !== Ht || t[59] !== Wt ? (j = {
176
+ axis: Ht,
177
+ label: Wt
178
+ }, t[58] = Ht, t[59] = Wt, t[60] = j) : j = t[60];
179
+ let H;
180
+ t[61] !== pt || t[62] !== Tt || t[63] !== Nt || t[64] !== ht || t[65] !== N || t[66] !== I || t[67] !== V || t[68] !== j ? (H = /* @__PURE__ */ r.jsx(qe, { y1: pt, y2: Tt, x1: Nt, x2: ht, label: N, labelPos: I, classNames: V, styles: j }), t[61] = pt, t[62] = Tt, t[63] = Nt, t[64] = ht, t[65] = N, t[66] = I, t[67] = V, t[68] = j, t[69] = H) : H = t[69];
181
+ const R = 0 - C - 15, xt = D / 2, Zt = b?.yAxis?.title, _t = O?.yAxis?.title;
182
+ let xe;
183
+ t[70] !== R || t[71] !== xt || t[72] !== Zt || t[73] !== _t || t[74] !== P ? (xe = /* @__PURE__ */ r.jsx(ze, { x: R, y: xt, style: Zt, className: _t, text: P, rotate90: !0 }), t[70] = R, t[71] = xt, t[72] = Zt, t[73] = _t, t[74] = P, t[75] = xe) : xe = t[75];
184
+ let de;
185
+ t[76] !== n ? (de = (e) => Xe(e, n), t[76] = n, t[77] = de) : de = t[77];
186
+ const We = Kt.map(de), Ye = Kt.map((e) => l(e)), Le = b?.xAxis?.gridLines, Me = b?.xAxis?.labels;
187
+ let ye;
188
+ t[78] !== Le || t[79] !== Me ? (ye = {
189
+ gridLines: Le,
190
+ labels: Me
191
+ }, t[78] = Le, t[79] = Me, t[80] = ye) : ye = t[80];
192
+ const $e = O?.xAxis?.gridLines;
193
+ let te;
194
+ t[81] !== $e ? (te = ke("opacity-0", $e), t[81] = $e, t[82] = te) : te = t[82];
195
+ const Se = O?.xAxis?.labels;
196
+ let ee;
197
+ t[83] !== Se ? (ee = ke("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Se), t[83] = Se, t[84] = ee) : ee = t[84];
198
+ let ve;
199
+ t[85] !== te || t[86] !== ee ? (ve = {
200
+ gridLines: te,
201
+ labels: ee
202
+ }, t[85] = te, t[86] = ee, t[87] = ve) : ve = t[87];
203
+ let be;
204
+ t[88] !== z ? (be = z.filter(Ho).map(Vo), t[88] = z, t[89] = be) : be = t[89];
205
+ const Fe = a.filter(Oo).map((e, i) => /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx("path", { d: ce.renderCell(a.findIndex((y) => y.label === e.label && y.date === e.date)), opacity: 0, onMouseEnter: (y) => {
206
+ rt(e), J(y.clientY), U(y.clientX), et?.(e);
207
+ }, onMouseMove: (y) => {
208
+ rt(e), J(y.clientY), U(y.clientX);
209
+ }, onMouseLeave: () => {
210
+ rt(void 0), U(void 0), J(void 0), et?.(void 0);
211
+ } }) }, i));
212
+ let we;
213
+ t[90] !== s || t[91] !== h || t[92] !== u || t[93] !== C || t[94] !== g.right || t[95] !== ot || t[96] !== c ? (we = ot ? /* @__PURE__ */ r.jsx(r.Fragment, { children: ot.map((e, i) => /* @__PURE__ */ r.jsx(Je, { text: e.text, color: e.color, y: c(e.value), x1: 0 - C, x2: h + g.right, classNames: e.classNames, styles: e.styles, animate: s, isInView: u }, i)) }) : null, t[90] = s, t[91] = h, t[92] = u, t[93] = C, t[94] = g.right, t[95] = ot, t[96] = c, t[97] = we) : we = t[97];
214
+ let oe;
215
+ if (t[98] !== s || t[99] !== vt || t[100] !== n || t[101] !== h || t[102] !== u || t[103] !== g.right || t[104] !== E || t[105] !== l || t[106] !== c) {
216
+ let e;
217
+ t[108] !== s || t[109] !== n || t[110] !== h || t[111] !== u || t[112] !== g.right || t[113] !== E || t[114] !== l || t[115] !== c ? (e = (i, y) => {
218
+ const Yt = Pe({
219
+ x: i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
220
+ y: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8
221
+ }, {
222
+ x: i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
223
+ y: i.yCoordinate ? c(i.yCoordinate) : 0
224
+ }, v(i.connectorRadius) ? 3.5 : i.connectorRadius), Ie = i.showConnector ? {
225
+ y1: Yt.y,
226
+ x1: Yt.x,
227
+ y2: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) : 0 + (i.yOffset || 0),
228
+ x2: i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
229
+ cy: i.yCoordinate ? c(i.yCoordinate) : 0,
230
+ cx: i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
231
+ circleRadius: v(i.connectorRadius) ? 3.5 : i.connectorRadius,
232
+ strokeWidth: i.showConnector === !0 ? 2 : Math.min(i.showConnector || 0, 1)
233
+ } : void 0, Re = {
234
+ y: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8,
235
+ x: E ? 0 : i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
236
+ width: E ? i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : h + g.right - (i.xCoordinate ? l(A(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
237
+ maxWidth: i.maxWidth,
238
+ fontWeight: i.fontWeight,
239
+ align: i.align
240
+ };
241
+ return /* @__PURE__ */ r.jsx(Be, { color: i.color, connectorsSettings: Ie, labelSettings: Re, text: i.text, classNames: i.classNames, styles: i.styles, animate: s, isInView: u }, y);
242
+ }, t[108] = s, t[109] = n, t[110] = h, t[111] = u, t[112] = g.right, t[113] = E, t[114] = l, t[115] = c, t[116] = e) : e = t[116], oe = vt.map(e), t[98] = s, t[99] = vt, t[100] = n, t[101] = h, t[102] = u, t[103] = g.right, t[104] = E, t[105] = l, t[106] = c, t[107] = oe;
243
+ } else
244
+ oe = t[107];
245
+ let Ce;
246
+ t[117] !== oe ? (Ce = /* @__PURE__ */ r.jsx("g", { children: oe }), t[117] = oe, t[118] = Ce) : Ce = t[118];
247
+ let Oe;
248
+ t[119] !== z ? (Oe = z.filter(Co).map(wo), t[119] = z, t[120] = Oe) : Oe = t[120];
249
+ let Ae;
250
+ return t[121] !== O?.tooltip || t[122] !== st || t[123] !== at || t[124] !== p || t[125] !== b?.tooltip || t[126] !== dt ? (Ae = p && dt && st && at ? /* @__PURE__ */ r.jsx(Ge, { data: p, body: dt, xPos: st, yPos: at, backgroundStyle: b?.tooltip, className: O?.tooltip }) : null, t[121] = O?.tooltip, t[122] = st, t[123] = at, t[124] = p, t[125] = b?.tooltip, t[126] = dt, t[127] = Ae) : Ae = t[127], /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
251
+ /* @__PURE__ */ r.jsx(Ft.svg, { width: `${Z}px`, height: `${Rt}px`, viewBox: `0 0 ${Z} ${Rt}`, direction: "ltr", ref: wt, children: /* @__PURE__ */ r.jsxs("g", { transform: `translate(${g.left},${g.top})`, children: [
252
+ Q,
253
+ /* @__PURE__ */ r.jsx(Ee, { areaSettings: Ut, scaleX: l, scaleY: c, animate: s, isInView: u }),
254
+ /* @__PURE__ */ r.jsxs("g", { children: [
255
+ /* @__PURE__ */ r.jsx(Ke, { values: Mt.filter(Yo), y: Mt.filter(Wo).map((e) => c(e)), x1: 0 - C, x2: h + g.right, styles: mt, classNames: ut, suffix: W, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: B }),
256
+ H,
257
+ xe
258
+ ] }),
259
+ /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx(Ue, { values: We, x: Ye, y1: 0, y2: D, styles: ye, classNames: ve, suffix: W, prefix: x, labelType: "primary", showGridLines: !0, precision: B }) }),
260
+ be,
261
+ /* @__PURE__ */ r.jsxs(Ft.g, { children: [
262
+ ae.map((e) => /* @__PURE__ */ r.jsxs(Ft.g, { exit: {
263
+ opacity: 0,
264
+ transition: {
265
+ duration: s.duration
266
+ }
267
+ }, variants: {
268
+ initial: {
269
+ opacity: p ? e[0].label === p.label ? 1 : M : bt ? e[0].color && m[L.indexOf(e[0].color)] === bt ? 1 : M : Y.length !== 0 ? Y.indexOf(e[0].label) !== -1 ? 1 : M : 1
270
+ },
271
+ whileInView: {
272
+ opacity: p ? e[0].label === p.label ? 1 : M : bt ? e[0].color && m[L.indexOf(e[0].color)] === bt ? 1 : M : Y.length !== 0 ? Y.indexOf(e[0].label) !== -1 ? 1 : M : 1,
273
+ transition: {
274
+ duration: s.duration
167
275
  }
168
- ),
169
- /* @__PURE__ */ t.jsx(
170
- We,
171
- {
172
- areaSettings: fe,
173
- scaleX: s,
174
- scaleY: c,
175
- animate: n,
176
- isInView: d
276
+ }
277
+ }, initial: "initial", animate: u ? "whileInView" : "initial", children: [
278
+ /* @__PURE__ */ r.jsx(Ft.path, { d: Lt(e.filter(No)) || "", style: {
279
+ fill: "none",
280
+ strokeWidth: p ? e[0].label === p.label ? k + Math.max(2, 0.5 * k) : k : Y.length !== 0 && Y.indexOf(e[0].label) !== -1 ? k + Math.max(2, 0.5 * k) : k
281
+ }, exit: {
282
+ opacity: 0,
283
+ transition: {
284
+ duration: s.duration
177
285
  }
178
- ),
179
- /* @__PURE__ */ t.jsxs("g", { children: [
180
- /* @__PURE__ */ t.jsx(
181
- Ee,
182
- {
183
- values: Me.filter((e) => e !== 0),
184
- y: Me.filter((e) => e !== 0).map((e) => c(e)),
185
- x1: 0 - O,
186
- x2: b + v.right,
187
- styles: {
188
- gridLines: C?.yAxis?.gridLines,
189
- labels: C?.yAxis?.labels
190
- },
191
- classNames: {
192
- gridLines: y?.yAxis?.gridLines,
193
- labels: y?.yAxis?.labels
194
- },
195
- suffix: L,
196
- prefix: h,
197
- labelType: "secondary",
198
- showGridLines: !0,
199
- labelPos: "vertical",
200
- precision: N
201
- }
202
- ),
203
- /* @__PURE__ */ t.jsx(
204
- Fe,
205
- {
206
- y1: c(o < 0 ? 0 : o),
207
- y2: c(o < 0 ? 0 : o),
208
- x1: 0 - O,
209
- x2: b + v.right,
210
- label: Se(
211
- o < 0 ? 0 : o,
212
- "NA",
213
- N,
214
- h,
215
- L
216
- ),
217
- labelPos: {
218
- x: 0 - O,
219
- y: c(o < 0 ? 0 : o),
220
- dx: 0,
221
- dy: J < 0 ? "1em" : -5
222
- },
223
- classNames: {
224
- axis: y?.xAxis?.axis,
225
- label: y?.yAxis?.labels
226
- },
227
- styles: {
228
- axis: C?.xAxis?.axis,
229
- label: C?.yAxis?.labels
230
- }
231
- }
232
- ),
233
- /* @__PURE__ */ t.jsx(
234
- Ye,
235
- {
236
- x: 0 - O - 15,
237
- y: V / 2,
238
- style: C?.yAxis?.title,
239
- className: y?.yAxis?.title,
240
- text: oe,
241
- rotate90: !0
286
+ }, variants: {
287
+ initial: {
288
+ pathLength: 0,
289
+ d: Lt(e.filter(To)) || "",
290
+ opacity: 1,
291
+ stroke: f.filter(ko).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray
292
+ },
293
+ whileInView: {
294
+ pathLength: 1,
295
+ d: Lt(e.filter(So)) || "",
296
+ opacity: 1,
297
+ stroke: f.filter($o).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray,
298
+ transition: {
299
+ duration: s.duration
242
300
  }
243
- )
244
- ] }),
245
- /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx(
246
- Xe,
247
- {
248
- values: Ne.map((e) => Ve(e, f)),
249
- x: Ne.map((e) => s(e)),
250
- y1: 0,
251
- y2: V,
252
- styles: {
253
- gridLines: C?.xAxis?.gridLines,
254
- labels: C?.xAxis?.labels
255
- },
256
- classNames: {
257
- gridLines: xe("opacity-0", y?.xAxis?.gridLines),
258
- labels: xe(
259
- "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",
260
- y?.xAxis?.labels
261
- )
262
- },
263
- suffix: L,
264
- prefix: h,
265
- labelType: "primary",
266
- showGridLines: !0,
267
- precision: N
268
301
  }
269
- ) }),
270
- ne.filter((e) => e.position === "before").map((e) => e.layer),
271
- /* @__PURE__ */ t.jsxs(E.g, { children: [
272
- ce.map((e) => /* @__PURE__ */ t.jsxs(
273
- E.g,
274
- {
275
- exit: { opacity: 0, transition: { duration: n.duration } },
276
- variants: {
277
- initial: {
278
- opacity: g ? e[0].label === g.label ? 1 : j : I ? e[0].color && a[p.indexOf(e[0].color)] === I ? 1 : j : $.length !== 0 ? $.indexOf(e[0].label) !== -1 ? 1 : j : 1
279
- },
280
- whileInView: {
281
- opacity: g ? e[0].label === g.label ? 1 : j : I ? e[0].color && a[p.indexOf(e[0].color)] === I ? 1 : j : $.length !== 0 ? $.indexOf(e[0].label) !== -1 ? 1 : j : 1,
282
- transition: { duration: n.duration }
283
- }
284
- },
285
- initial: "initial",
286
- animate: d ? "whileInView" : "initial",
287
- children: [
288
- /* @__PURE__ */ t.jsx(
289
- E.path,
290
- {
291
- d: De(
292
- e.filter((i) => !x(i.y))
293
- ) || "",
294
- style: {
295
- fill: "none",
296
- strokeWidth: g ? e[0].label === g.label ? M + Math.max(2, 0.5 * M) : M : $.length !== 0 && $.indexOf(e[0].label) !== -1 ? M + Math.max(2, 0.5 * M) : M
297
- },
298
- exit: { opacity: 0, transition: { duration: n.duration } },
299
- variants: {
300
- initial: {
301
- pathLength: 0,
302
- d: De(
303
- e.filter((i) => !x(i.y))
304
- ) || "",
305
- opacity: 1,
306
- stroke: r.filter((i) => i.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray
307
- },
308
- whileInView: {
309
- pathLength: 1,
310
- d: De(
311
- e.filter((i) => !x(i.y))
312
- ) || "",
313
- opacity: 1,
314
- stroke: r.filter((i) => i.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray,
315
- transition: { duration: n.duration }
316
- }
317
- },
318
- initial: "initial",
319
- animate: d ? "whileInView" : "initial"
320
- }
321
- ),
322
- e.map((i, m) => /* @__PURE__ */ t.jsx(E.g, { children: x(i.y) ? null : /* @__PURE__ */ t.jsx(t.Fragment, { children: q ? /* @__PURE__ */ t.jsx(
323
- E.circle,
324
- {
325
- r: b / e.length < 5 ? 0 : b / e.length < 20 ? 2 : 4,
326
- exit: { opacity: 0, transition: { duration: n.duration } },
327
- variants: {
328
- initial: {
329
- opacity: 0,
330
- fill: r.filter((H) => H.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray,
331
- cx: s(i.date),
332
- cy: c(i.y)
333
- },
334
- whileInView: {
335
- opacity: 1,
336
- fill: r.filter((H) => H.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray,
337
- transition: {
338
- duration: A ? n.duration : 0.5,
339
- delay: A ? 0 : n.duration
340
- },
341
- cx: s(i.date),
342
- cy: c(i.y)
343
- }
344
- },
345
- initial: "initial",
346
- animate: d ? "whileInView" : "initial"
347
- }
348
- ) : null }) }, m)),
349
- ($.indexOf(e[0].label) !== -1 || g?.label === e[0].label) && R ? /* @__PURE__ */ t.jsx(
350
- E.text,
351
- {
352
- className: "text-sm font-bold",
353
- dx: 5,
354
- dy: 4,
355
- exit: { opacity: 0, transition: { duration: n.duration } },
356
- variants: {
357
- initial: {
358
- opacity: 0,
359
- fill: r.filter((i) => i.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray,
360
- x: s(e[e.length - 1].date),
361
- y: c(e[e.length - 1].y)
362
- },
363
- whileInView: {
364
- opacity: 1,
365
- fill: r.filter((i) => i.color).length === 0 ? a[0] : e[0].color ? a[p.indexOf(e[0].color)] : D.gray,
366
- x: s(e[e.length - 1].date),
367
- y: c(e[e.length - 1].y),
368
- transition: {
369
- duration: A ? n.duration : 0.5,
370
- delay: A ? 0 : n.duration
371
- }
372
- }
373
- },
374
- initial: "initial",
375
- animate: d ? "whileInView" : "initial",
376
- children: e[0].label
377
- }
378
- ) : null
379
- ]
380
- },
381
- e[0].label
382
- )),
383
- g ? /* @__PURE__ */ t.jsx(
384
- "text",
385
- {
386
- y: c(g.y) - 8,
387
- x: s(g.date),
388
- className: xe("graph-value text-sm font-bold", y?.graphObjectValues),
389
- style: {
390
- fill: r.filter((e) => e.color).length === 0 ? a[0] : g.color ? a[p.indexOf(g.color)] : D.gray,
391
- textAnchor: "middle",
392
- ...C?.graphObjectValues || {}
393
- },
394
- children: Se(g.y, Ce, N, h, L)
395
- }
396
- ) : null
397
- ] }),
398
- l.filter((e) => !x(e.y)).map((e, i) => /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx(
399
- "path",
400
- {
401
- d: ke.renderCell(
402
- l.findIndex((m) => m.label === e.label && m.date === e.date)
403
- ),
302
+ }, initial: "initial", animate: u ? "whileInView" : "initial" }),
303
+ e.map((i, y) => /* @__PURE__ */ r.jsx(Ft.g, { children: v(i.y) ? null : /* @__PURE__ */ r.jsx(r.Fragment, { children: ie ? /* @__PURE__ */ r.jsx(Ft.circle, { r: h / e.length < 5 ? 0 : h / e.length < 20 ? 2 : 4, exit: {
304
+ opacity: 0,
305
+ transition: {
306
+ duration: s.duration
307
+ }
308
+ }, variants: {
309
+ initial: {
404
310
  opacity: 0,
405
- onMouseEnter: (m) => {
406
- w(e), F(m.clientY), Y(m.clientX), W?.(e);
407
- },
408
- onMouseMove: (m) => {
409
- w(e), F(m.clientY), Y(m.clientX);
311
+ fill: f.filter(Mo).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray,
312
+ cx: l(i.date),
313
+ cy: c(i.y)
314
+ },
315
+ whileInView: {
316
+ opacity: 1,
317
+ fill: f.filter(Lo).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray,
318
+ transition: {
319
+ duration: $ ? s.duration : 0.5,
320
+ delay: $ ? 0 : s.duration
410
321
  },
411
- onMouseLeave: () => {
412
- w(void 0), Y(void 0), F(void 0), W?.(void 0);
413
- }
322
+ cx: l(i.date),
323
+ cy: c(i.y)
324
+ }
325
+ }, initial: "initial", animate: u ? "whileInView" : "initial" }) : null }) }, y)),
326
+ (Y.indexOf(e[0].label) !== -1 || p?.label === e[0].label) && he ? /* @__PURE__ */ r.jsx(Ft.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
327
+ opacity: 0,
328
+ transition: {
329
+ duration: s.duration
414
330
  }
415
- ) }, i)),
416
- Q ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Q.map((e, i) => /* @__PURE__ */ t.jsx(
417
- Pe,
418
- {
419
- text: e.text,
420
- color: e.color,
421
- y: c(e.value),
422
- x1: 0 - O,
423
- x2: b + v.right,
424
- classNames: e.classNames,
425
- styles: e.styles,
426
- animate: n,
427
- isInView: d
331
+ }, variants: {
332
+ initial: {
333
+ opacity: 0,
334
+ fill: f.filter(jo).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray,
335
+ x: l(e[e.length - 1].date),
336
+ y: c(e[e.length - 1].y)
428
337
  },
429
- i
430
- )) }) : null,
431
- /* @__PURE__ */ t.jsx("g", { children: we.map((e, i) => {
432
- const m = Ie(
433
- {
434
- x: e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
435
- y: e.yCoordinate ? c(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
436
- },
437
- {
438
- x: e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
439
- y: e.yCoordinate ? c(e.yCoordinate) : 0
440
- },
441
- x(e.connectorRadius) ? 3.5 : e.connectorRadius
442
- ), H = e.showConnector ? {
443
- y1: m.y,
444
- x1: m.x,
445
- y2: e.yCoordinate ? c(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
446
- x2: e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
447
- cy: e.yCoordinate ? c(e.yCoordinate) : 0,
448
- cx: e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
449
- circleRadius: x(e.connectorRadius) ? 3.5 : e.connectorRadius,
450
- strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
451
- } : void 0, Le = {
452
- y: e.yCoordinate ? c(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
453
- x: ie ? 0 : e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
454
- width: ie ? e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : b + v.right - (e.xCoordinate ? s(u(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
455
- maxWidth: e.maxWidth,
456
- fontWeight: e.fontWeight,
457
- align: e.align
458
- };
459
- return /* @__PURE__ */ t.jsx(
460
- Re,
461
- {
462
- color: e.color,
463
- connectorsSettings: H,
464
- labelSettings: Le,
465
- text: e.text,
466
- classNames: e.classNames,
467
- styles: e.styles,
468
- animate: n,
469
- isInView: d
470
- },
471
- i
472
- );
473
- }) }),
474
- ne.filter((e) => e.position === "after").map((e) => e.layer)
475
- ] })
476
- }
477
- ),
478
- g && ee && T && le ? /* @__PURE__ */ t.jsx(
479
- He,
480
- {
481
- data: g,
482
- body: ee,
483
- xPos: T,
484
- yPos: le,
485
- backgroundStyle: C?.tooltip,
486
- className: y?.tooltip
487
- }
488
- ) : null
338
+ whileInView: {
339
+ opacity: 1,
340
+ fill: f.filter(Do).length === 0 ? m[0] : e[0].color ? m[L.indexOf(e[0].color)] : X.gray,
341
+ x: l(e[e.length - 1].date),
342
+ y: c(e[e.length - 1].y),
343
+ transition: {
344
+ duration: $ ? s.duration : 0.5,
345
+ delay: $ ? 0 : s.duration
346
+ }
347
+ }
348
+ }, initial: "initial", animate: u ? "whileInView" : "initial", children: e[0].label }) : null
349
+ ] }, e[0].label)),
350
+ p ? /* @__PURE__ */ r.jsx("text", { y: c(p.y) - 8, x: l(p.date), className: ke("graph-value text-sm font-bold", O?.graphObjectValues), style: {
351
+ fill: f.filter(Ao).length === 0 ? m[0] : p.color ? m[L.indexOf(p.color)] : X.gray,
352
+ textAnchor: "middle",
353
+ ...b?.graphObjectValues || {}
354
+ }, children: Ve(p.y, ge, B, x, W) }) : null
355
+ ] }),
356
+ Fe,
357
+ we,
358
+ Ce,
359
+ Oe
360
+ ] }) }),
361
+ Ae
489
362
  ] });
490
363
  }
491
- function Pt(pe) {
492
- const {
493
- data: r,
494
- graphTitle: S,
495
- showNAColor: K = !0,
496
- colors: a,
497
- colorDomain: f,
498
- suffix: ye = "",
364
+ function wo(o) {
365
+ return o.layer;
366
+ }
367
+ function Co(o) {
368
+ return o.position === "after";
369
+ }
370
+ function Oo(o) {
371
+ return !v(o.y);
372
+ }
373
+ function Ao(o) {
374
+ return o.color;
375
+ }
376
+ function Do(o) {
377
+ return o.color;
378
+ }
379
+ function jo(o) {
380
+ return o.color;
381
+ }
382
+ function Lo(o) {
383
+ return o.color;
384
+ }
385
+ function Mo(o) {
386
+ return o.color;
387
+ }
388
+ function $o(o) {
389
+ return o.color;
390
+ }
391
+ function So(o) {
392
+ return !v(o.y);
393
+ }
394
+ function ko(o) {
395
+ return o.color;
396
+ }
397
+ function To(o) {
398
+ return !v(o.y);
399
+ }
400
+ function No(o) {
401
+ return !v(o.y);
402
+ }
403
+ function Vo(o) {
404
+ return o.layer;
405
+ }
406
+ function Ho(o) {
407
+ return o.position === "before";
408
+ }
409
+ function Wo(o) {
410
+ return o !== 0;
411
+ }
412
+ function Yo(o) {
413
+ return o !== 0;
414
+ }
415
+ function Fo(o) {
416
+ return o.date;
417
+ }
418
+ function Io(o) {
419
+ return !v(o.date) && !v(o.y);
420
+ }
421
+ function Ro(o) {
422
+ return !v(o);
423
+ }
424
+ function Xo(o) {
425
+ return o.y;
426
+ }
427
+ function Go(o) {
428
+ return !v(o);
429
+ }
430
+ function Eo(o) {
431
+ return o.y;
432
+ }
433
+ function Po(o) {
434
+ return !v(o);
435
+ }
436
+ function Bo(o) {
437
+ return o.y;
438
+ }
439
+ function zo(o) {
440
+ return !v(o);
441
+ }
442
+ function qo(o) {
443
+ return o.y;
444
+ }
445
+ function Uo(o) {
446
+ return !v(o);
447
+ }
448
+ function Jo(o) {
449
+ return o.y;
450
+ }
451
+ function Ko(o, t) {
452
+ return co(o, t);
453
+ }
454
+ function Qo(o) {
455
+ return !v(o.y);
456
+ }
457
+ function Fi(o) {
458
+ const t = He.c(94), {
459
+ data: f,
460
+ graphTitle: Z,
461
+ showNAColor: Rt,
462
+ colors: m,
463
+ colorDomain: n,
464
+ suffix: pe,
499
465
  sources: _,
500
- prefix: de = "",
501
- graphDescription: B,
502
- height: L,
503
- width: h,
504
- footNote: O,
505
- noOfXTicks: ee = 10,
506
- dateFormat: W = "yyyy",
507
- padding: Q,
508
- backgroundColor: k = !1,
509
- leftMargin: z = 30,
510
- rightMargin: te = 50,
511
- topMargin: $ = 20,
512
- bottomMargin: n = 25,
513
- showColorScale: ie = !0,
514
- tooltip: M,
515
- relativeHeight: q,
516
- onSeriesMouseOver: we,
517
- showLabels: ve = !0,
518
- refValues: oe = [],
519
- highlightAreaSettings: be = [],
520
- graphID: ae,
521
- minValue: re,
522
- maxValue: U,
523
- highlightedLines: C = [],
524
- graphDownload: p = !1,
525
- dataDownload: I = !1,
526
- animate: y = !1,
527
- language: R = "en",
528
- colorLegendTitle: j,
529
- minHeight: N = 0,
530
- strokeWidth: Ce = 2,
531
- showDots: ne = !0,
532
- annotations: se = [],
533
- customHighlightAreaSettings: d = [],
534
- theme: A = "light",
535
- ariaLabel: Oe,
536
- yAxisTitle: je,
537
- noOfYTicks: l = 5,
538
- minDate: Ae,
539
- maxDate: Z,
540
- curveType: g = "curve",
541
- styles: w,
542
- classNames: T,
543
- dimmedOpacity: Y = 0.3,
544
- precision: le = 2,
545
- customLayers: F = [],
546
- naLabel: v = "NA"
547
- } = pe, [X, ce] = G(0), [me, fe] = G(0), [b, V] = G(void 0), P = ge(null), he = ge(null);
548
- return $e(() => {
549
- const o = new ResizeObserver((J) => {
550
- ce(h || J[0].target.clientWidth || 620), fe(L || J[0].target.clientHeight || 480);
466
+ prefix: Xt,
467
+ graphDescription: tt,
468
+ height: W,
469
+ width: x,
470
+ footNote: C,
471
+ noOfXTicks: dt,
472
+ dateFormat: et,
473
+ padding: ot,
474
+ backgroundColor: Gt,
475
+ leftMargin: G,
476
+ rightMargin: yt,
477
+ topMargin: Y,
478
+ bottomMargin: s,
479
+ showColorScale: E,
480
+ tooltip: k,
481
+ relativeHeight: ie,
482
+ onSeriesMouseOver: vt,
483
+ showLabels: Et,
484
+ refValues: P,
485
+ highlightAreaSettings: Pt,
486
+ graphID: Bt,
487
+ minValue: zt,
488
+ maxValue: it,
489
+ highlightedLines: b,
490
+ graphDownload: L,
491
+ dataDownload: bt,
492
+ animate: O,
493
+ language: he,
494
+ colorLegendTitle: M,
495
+ minHeight: B,
496
+ strokeWidth: ge,
497
+ showDots: z,
498
+ annotations: wt,
499
+ customHighlightAreaSettings: q,
500
+ theme: u,
501
+ ariaLabel: $,
502
+ yAxisTitle: ne,
503
+ noOfYTicks: Ct,
504
+ minDate: nt,
505
+ maxDate: re,
506
+ curveType: Ot,
507
+ styles: a,
508
+ classNames: d,
509
+ dimmedOpacity: At,
510
+ precision: qt,
511
+ customLayers: p,
512
+ naLabel: rt
513
+ } = o, st = Rt === void 0 ? !0 : Rt, U = pe === void 0 ? "" : pe, at = Xt === void 0 ? "" : Xt, J = dt === void 0 ? 10 : dt, Dt = et === void 0 ? "yyyy" : et, lt = Gt === void 0 ? !1 : Gt, g = G === void 0 ? 30 : G, se = yt === void 0 ? 50 : yt, ae = Y === void 0 ? 20 : Y, ct = s === void 0 ? 25 : s, jt = E === void 0 ? !0 : E, ft = Et === void 0 ? !0 : Et;
514
+ let Ut;
515
+ t[0] !== P ? (Ut = P === void 0 ? [] : P, t[0] = P, t[1] = Ut) : Ut = t[1];
516
+ const h = Ut;
517
+ let D;
518
+ t[2] !== Pt ? (D = Pt === void 0 ? [] : Pt, t[2] = Pt, t[3] = D) : D = t[3];
519
+ const le = D;
520
+ let Jt;
521
+ t[4] !== b ? (Jt = b === void 0 ? [] : b, t[4] = b, t[5] = Jt) : Jt = t[5];
522
+ const w = Jt, F = L === void 0 ? !1 : L, l = bt === void 0 ? !1 : bt, K = O === void 0 ? !1 : O, S = he === void 0 ? "en" : he, c = B === void 0 ? 0 : B, ce = ge === void 0 ? 2 : ge, Lt = z === void 0 ? !0 : z;
523
+ let Mt;
524
+ t[6] !== wt ? (Mt = wt === void 0 ? [] : wt, t[6] = wt, t[7] = Mt) : Mt = t[7];
525
+ const Kt = Mt;
526
+ let Q;
527
+ t[8] !== q ? (Q = q === void 0 ? [] : q, t[8] = q, t[9] = Q) : Q = t[9];
528
+ const $t = Q, T = u === void 0 ? "light" : u, mt = Ct === void 0 ? 5 : Ct, St = Ot === void 0 ? "curve" : Ot, kt = At === void 0 ? 0.3 : At, ut = qt === void 0 ? 2 : qt;
529
+ let pt;
530
+ t[10] !== p ? (pt = p === void 0 ? [] : p, t[10] = p, t[11] = pt) : pt = t[11];
531
+ const Tt = pt, Nt = rt === void 0 ? "NA" : rt, [ht, fe] = It(0), [N, me] = It(0), [Vt, ue] = It(void 0), I = De(null), Qt = De(null);
532
+ let gt, V;
533
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (gt = () => {
534
+ const Zt = new ResizeObserver((_t) => {
535
+ fe(_t[0].target.clientWidth || 620), me(_t[0].target.clientHeight || 480);
551
536
  });
552
- return P.current && (fe(P.current.clientHeight || 480), ce(P.current.clientWidth || 620), h || o.observe(P.current)), () => o.disconnect();
553
- }, [h, L]), /* @__PURE__ */ t.jsx(
554
- "div",
555
- {
556
- className: `${A || "light"} flex ${h ? "w-fit grow-0" : "w-full grow"}`,
557
- dir: R === "he" || R === "ar" ? "rtl" : void 0,
558
- children: /* @__PURE__ */ t.jsx(
559
- "div",
560
- {
561
- className: xe(
562
- `${k ? k === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${R || "en"}`,
563
- h ? "w-fit" : "w-full",
564
- T?.graphContainer
565
- ),
566
- style: {
567
- ...w?.graphContainer || {},
568
- ...k && k !== !0 ? { backgroundColor: k } : {}
569
- },
570
- id: ae,
571
- ref: he,
572
- "aria-label": Oe || `${S ? `The graph shows ${S}. ` : ""}This is a multi-line chart that shows trends over time.${B ? ` ${B}` : ""}`,
573
- children: /* @__PURE__ */ t.jsx(
574
- "div",
575
- {
576
- className: "flex grow",
577
- style: { padding: k ? Q || "1rem" : Q || 0 },
578
- children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
579
- S || B || p || I ? /* @__PURE__ */ t.jsx(
580
- st,
581
- {
582
- styles: {
583
- title: w?.title,
584
- description: w?.description
585
- },
586
- classNames: {
587
- title: T?.title,
588
- description: T?.description
589
- },
590
- graphTitle: S,
591
- graphDescription: B,
592
- width: h,
593
- graphDownload: p ? he.current : void 0,
594
- dataDownload: I ? r.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? r.map((o) => o.data).filter((o) => o !== void 0) : r.filter((o) => o !== void 0) : null
595
- }
596
- ) : null,
597
- /* @__PURE__ */ t.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: r.length === 0 ? /* @__PURE__ */ t.jsx(lt, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
598
- ie && r.filter((o) => o.color).length !== 0 ? /* @__PURE__ */ t.jsx(
599
- ct,
600
- {
601
- width: h,
602
- colorLegendTitle: j,
603
- colors: a || D[A].categoricalColors.colors,
604
- colorDomain: f || ue(r, "color", !0),
605
- setSelectedColor: V,
606
- showNAColor: K
607
- }
608
- ) : null,
609
- /* @__PURE__ */ t.jsx("div", { className: "w-full grow leading-0", ref: P, "aria-label": "Graph area", children: (h || X) && (L || me) ? /* @__PURE__ */ t.jsx(
610
- mt,
611
- {
612
- data: r,
613
- lineColors: r.filter((o) => o.color).length === 0 ? a ? [a] : [D.primaryColors["blue-600"]] : a || D[A].categoricalColors.colors,
614
- width: h || X,
615
- height: Math.max(
616
- N,
617
- L || (q ? N ? (h || X) * q > N ? (h || X) * q : N : (h || X) * q : me)
618
- ),
619
- dateFormat: W,
620
- noOfXTicks: ee,
621
- leftMargin: z,
622
- rightMargin: te,
623
- topMargin: $,
624
- bottomMargin: n,
625
- tooltip: M,
626
- onSeriesMouseOver: we,
627
- suffix: ye,
628
- prefix: de,
629
- highlightAreaSettings: be,
630
- refValues: oe,
631
- minValue: re,
632
- maxValue: U,
633
- highlightedLines: C,
634
- animate: y === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : y || { duration: 0, once: !0, amount: 0 },
635
- rtl: R === "he" || R === "ar",
636
- strokeWidth: Ce,
637
- showDots: ne,
638
- annotations: se,
639
- customHighlightAreaSettings: d,
640
- yAxisTitle: je,
641
- noOfYTicks: l,
642
- minDate: Ae,
643
- maxDate: Z,
644
- curveType: g,
645
- styles: w,
646
- classNames: T,
647
- selectedColor: b,
648
- showLabels: ve,
649
- colorDomain: r.filter((o) => o.color).length === 0 ? [] : f || ue(r, "color", !0),
650
- dimmedOpacity: Y,
651
- precision: le,
652
- customLayers: F,
653
- naLabel: v
654
- }
655
- ) : null })
656
- ] }) }),
657
- _ || O ? /* @__PURE__ */ t.jsx(
658
- nt,
659
- {
660
- styles: { footnote: w?.footnote, source: w?.source },
661
- classNames: {
662
- footnote: T?.footnote,
663
- source: T?.source
664
- },
665
- sources: _,
666
- footNote: O,
667
- width: h
668
- }
669
- ) : null
670
- ] })
671
- }
672
- )
673
- }
674
- )
675
- }
676
- );
537
+ return I.current && Zt.observe(I.current), () => Zt.disconnect();
538
+ }, V = [], t[12] = gt, t[13] = V) : (gt = t[12], V = t[13]), Te(gt, V);
539
+ const Ht = d?.graphContainer, Wt = a?.graphContainer;
540
+ let j;
541
+ t[14] !== d?.description || t[15] !== d?.title || t[16] !== f || t[17] !== l || t[18] !== tt || t[19] !== F || t[20] !== Z || t[21] !== a?.description || t[22] !== a?.title || t[23] !== x ? (j = Z || tt || F || l ? /* @__PURE__ */ r.jsx(ho, { styles: {
542
+ title: a?.title,
543
+ description: a?.description
544
+ }, classNames: {
545
+ title: d?.title,
546
+ description: d?.description
547
+ }, graphTitle: Z, graphDescription: tt, width: x, graphDownload: F ? Qt : void 0, dataDownload: l ? f.map(ri).filter(ni).length > 0 ? f.map(ii).filter(oi) : f.filter(ei) : null }) : null, t[14] = d?.description, t[15] = d?.title, t[16] = f, t[17] = l, t[18] = tt, t[19] = F, t[20] = Z, t[21] = a?.description, t[22] = a?.title, t[23] = x, t[24] = j) : j = t[24];
548
+ let H;
549
+ t[25] !== K || t[26] !== Kt || t[27] !== ct || t[28] !== d || t[29] !== n || t[30] !== M || t[31] !== m || t[32] !== St || t[33] !== $t || t[34] !== Tt || t[35] !== f || t[36] !== Dt || t[37] !== kt || t[38] !== le || t[39] !== w || t[40] !== S || t[41] !== g || t[42] !== re || t[43] !== it || t[44] !== nt || t[45] !== zt || t[46] !== Nt || t[47] !== J || t[48] !== mt || t[49] !== vt || t[50] !== ut || t[51] !== at || t[52] !== h || t[53] !== se || t[54] !== Vt || t[55] !== jt || t[56] !== Lt || t[57] !== ft || t[58] !== st || t[59] !== ce || t[60] !== a || t[61] !== U || t[62] !== N || t[63] !== ht || t[64] !== T || t[65] !== k || t[66] !== ae || t[67] !== x || t[68] !== ne ? (H = f.length === 0 ? /* @__PURE__ */ r.jsx(go, {}) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
550
+ jt && f.filter(ti).length !== 0 ? /* @__PURE__ */ r.jsx(xo, { width: x, colorLegendTitle: M, colors: m || X[T].categoricalColors.colors, colorDomain: n || je(f, "color", !0), setSelectedColor: ue, showNAColor: st, className: d?.colorLegend }) : null,
551
+ /* @__PURE__ */ r.jsx(yo, { ref: I, children: ht && N ? /* @__PURE__ */ r.jsx(bo, { data: f, lineColors: f.filter(_o).length === 0 ? m ? [m] : [X.primaryColors["blue-600"]] : m || X[T].categoricalColors.colors, width: ht, height: N, dateFormat: Dt, noOfXTicks: J, leftMargin: g, rightMargin: se, topMargin: ae, bottomMargin: ct, tooltip: k, onSeriesMouseOver: vt, suffix: U, prefix: at, highlightAreaSettings: le, refValues: h, minValue: zt, maxValue: it, highlightedLines: w, animate: K === !0 ? {
552
+ duration: 0.5,
553
+ once: !0,
554
+ amount: 0.5
555
+ } : K || {
556
+ duration: 0,
557
+ once: !0,
558
+ amount: 0
559
+ }, rtl: S === "he" || S === "ar", strokeWidth: ce, showDots: Lt, annotations: Kt, customHighlightAreaSettings: $t, yAxisTitle: ne, noOfYTicks: mt, minDate: nt, maxDate: re, curveType: St, styles: a, classNames: d, selectedColor: Vt, showLabels: ft, colorDomain: f.filter(Zo).length === 0 ? [] : n || je(f, "color", !0), dimmedOpacity: kt, precision: ut, customLayers: Tt, naLabel: Nt }) : null })
560
+ ] }), t[25] = K, t[26] = Kt, t[27] = ct, t[28] = d, t[29] = n, t[30] = M, t[31] = m, t[32] = St, t[33] = $t, t[34] = Tt, t[35] = f, t[36] = Dt, t[37] = kt, t[38] = le, t[39] = w, t[40] = S, t[41] = g, t[42] = re, t[43] = it, t[44] = nt, t[45] = zt, t[46] = Nt, t[47] = J, t[48] = mt, t[49] = vt, t[50] = ut, t[51] = at, t[52] = h, t[53] = se, t[54] = Vt, t[55] = jt, t[56] = Lt, t[57] = ft, t[58] = st, t[59] = ce, t[60] = a, t[61] = U, t[62] = N, t[63] = ht, t[64] = T, t[65] = k, t[66] = ae, t[67] = x, t[68] = ne, t[69] = H) : H = t[69];
561
+ let R;
562
+ t[70] !== d?.footnote || t[71] !== d?.source || t[72] !== C || t[73] !== _ || t[74] !== a?.footnote || t[75] !== a?.source || t[76] !== x ? (R = _ || C ? /* @__PURE__ */ r.jsx(po, { styles: {
563
+ footnote: a?.footnote,
564
+ source: a?.source
565
+ }, classNames: {
566
+ footnote: d?.footnote,
567
+ source: d?.source
568
+ }, sources: _, footNote: C, width: x }) : null, t[70] = d?.footnote, t[71] = d?.source, t[72] = C, t[73] = _, t[74] = a?.footnote, t[75] = a?.source, t[76] = x, t[77] = R) : R = t[77];
569
+ let xt;
570
+ return t[78] !== $ || t[79] !== lt || t[80] !== Bt || t[81] !== W || t[82] !== S || t[83] !== c || t[84] !== ot || t[85] !== ie || t[86] !== Ht || t[87] !== Wt || t[88] !== j || t[89] !== H || t[90] !== R || t[91] !== T || t[92] !== x ? (xt = /* @__PURE__ */ r.jsxs(vo, { className: Ht, style: Wt, id: Bt, ref: Qt, "aria-label": $, backgroundColor: lt, theme: T, language: S, minHeight: c, width: x, height: W, relativeHeight: ie, padding: ot, children: [
571
+ j,
572
+ H,
573
+ R
574
+ ] }), t[78] = $, t[79] = lt, t[80] = Bt, t[81] = W, t[82] = S, t[83] = c, t[84] = ot, t[85] = ie, t[86] = Ht, t[87] = Wt, t[88] = j, t[89] = H, t[90] = R, t[91] = T, t[92] = x, t[93] = xt) : xt = t[93], xt;
575
+ }
576
+ function Zo(o) {
577
+ return o.color;
578
+ }
579
+ function _o(o) {
580
+ return o.color;
581
+ }
582
+ function ti(o) {
583
+ return o.color;
584
+ }
585
+ function ei(o) {
586
+ return o !== void 0;
587
+ }
588
+ function oi(o) {
589
+ return o !== void 0;
590
+ }
591
+ function ii(o) {
592
+ return o.data;
593
+ }
594
+ function ni(o) {
595
+ return o !== void 0;
596
+ }
597
+ function ri(o) {
598
+ return o.data;
677
599
  }
678
600
  export {
679
- Pt as MultiLineAltChart
601
+ Fi as MultiLineAltChart
680
602
  };
681
603
  //# sourceMappingURL=MultiLineAltChart.js.map