@undp/data-viz 2.3.17 → 2.4.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 (440) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +2 -0
  4. package/dist/AreaChart.js +356 -354
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/{Axis-Jt_tmhxS.cjs → Axis-BTaS9oPQ.cjs} +2 -2
  7. package/dist/{Axis-Jt_tmhxS.cjs.map → Axis-BTaS9oPQ.cjs.map} +1 -1
  8. package/dist/{Axis-RyGdzLrG.js → Axis-CNZYWzH0.js} +2 -2
  9. package/dist/{Axis-RyGdzLrG.js.map → Axis-CNZYWzH0.js.map} +1 -1
  10. package/dist/{AxisTitle-DGjX1_2v.js → AxisTitle-CyLCqpW6.js} +2 -2
  11. package/dist/{AxisTitle-DGjX1_2v.js.map → AxisTitle-CyLCqpW6.js.map} +1 -1
  12. package/dist/{AxisTitle-DV4n0RxE.cjs → AxisTitle-DP_evhbe.cjs} +2 -2
  13. package/dist/{AxisTitle-DV4n0RxE.cjs.map → AxisTitle-DP_evhbe.cjs.map} +1 -1
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +6 -0
  17. package/dist/BarGraph.js +1735 -1726
  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 +2 -0
  22. package/dist/BasicStatCard.js +46 -45
  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 +2 -0
  27. package/dist/BeeSwarmChart.js +266 -266
  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 +2 -0
  32. package/dist/BiVariateChoroplethMap.js +300 -298
  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 +2 -0
  37. package/dist/BulletChart.js +469 -469
  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 +2 -0
  42. package/dist/ButterflyChart.js +330 -328
  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 +2 -0
  47. package/dist/ChoroplethMap.js +303 -301
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +2 -0
  51. package/dist/CirclePackingGraph.js +4 -4
  52. package/dist/ColorLegend.cjs +1 -1
  53. package/dist/ColorLegend.js +2 -2
  54. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  55. package/dist/ColorLegendWithMouseOver.js +2 -2
  56. package/dist/CopyTextButton.cjs +1 -1
  57. package/dist/CopyTextButton.cjs.map +1 -1
  58. package/dist/CopyTextButton.js +7 -9
  59. package/dist/CopyTextButton.js.map +1 -1
  60. package/dist/CsvDownloadButton.cjs +1 -1
  61. package/dist/CsvDownloadButton.js +2 -2
  62. package/dist/DataCards.cjs +1 -1
  63. package/dist/DataCards.cjs.map +1 -1
  64. package/dist/DataCards.js +10 -12
  65. package/dist/DataCards.js.map +1 -1
  66. package/dist/DataTable.cjs +1 -1
  67. package/dist/DataTable.cjs.map +1 -1
  68. package/dist/DataTable.d.ts +2 -0
  69. package/dist/DataTable.js +103 -102
  70. package/dist/DataTable.js.map +1 -1
  71. package/dist/{DetailsModal-C3qlUyFK.js → DetailsModal-B2XBWR7w.js} +4 -4
  72. package/dist/{DetailsModal-C3qlUyFK.js.map → DetailsModal-B2XBWR7w.js.map} +1 -1
  73. package/dist/{DetailsModal-DIRTulvr.cjs → DetailsModal-jmmKRMRM.cjs} +2 -2
  74. package/dist/{DetailsModal-DIRTulvr.cjs.map → DetailsModal-jmmKRMRM.cjs.map} +1 -1
  75. package/dist/DifferenceLineChart.cjs +1 -1
  76. package/dist/DifferenceLineChart.cjs.map +1 -1
  77. package/dist/DifferenceLineChart.d.ts +4 -0
  78. package/dist/DifferenceLineChart.js +441 -437
  79. package/dist/DifferenceLineChart.js.map +1 -1
  80. package/dist/DonutChart.cjs +1 -1
  81. package/dist/DonutChart.cjs.map +1 -1
  82. package/dist/DonutChart.d.ts +4 -0
  83. package/dist/DonutChart.js +146 -142
  84. package/dist/DonutChart.js.map +1 -1
  85. package/dist/DotDensityMap.cjs +1 -1
  86. package/dist/DotDensityMap.cjs.map +1 -1
  87. package/dist/DotDensityMap.js +265 -268
  88. package/dist/DotDensityMap.js.map +1 -1
  89. package/dist/{DropdownSelect-NNpOs7DX.cjs → DropdownSelect-CX1yMemd.cjs} +2 -2
  90. package/dist/DropdownSelect-CX1yMemd.cjs.map +1 -0
  91. package/dist/{DropdownSelect-B2WTeedJ.js → DropdownSelect-Dz7imdTB.js} +6 -9
  92. package/dist/DropdownSelect-Dz7imdTB.js.map +1 -0
  93. package/dist/DualAxisLineChart.cjs +1 -1
  94. package/dist/DualAxisLineChart.cjs.map +1 -1
  95. package/dist/DualAxisLineChart.d.ts +4 -0
  96. package/dist/DualAxisLineChart.js +336 -332
  97. package/dist/DualAxisLineChart.js.map +1 -1
  98. package/dist/DumbbellChart.cjs +1 -1
  99. package/dist/DumbbellChart.cjs.map +1 -1
  100. package/dist/DumbbellChart.d.ts +2 -0
  101. package/dist/DumbbellChart.js +484 -484
  102. package/dist/DumbbellChart.js.map +1 -1
  103. package/dist/{EmptyState-B4c-CrXs.cjs → EmptyState-CFmiFPHz.cjs} +2 -2
  104. package/dist/{EmptyState-B4c-CrXs.cjs.map → EmptyState-CFmiFPHz.cjs.map} +1 -1
  105. package/dist/{EmptyState-B3fPoH6L.js → EmptyState-CaxXCkiN.js} +4 -4
  106. package/dist/{EmptyState-B3fPoH6L.js.map → EmptyState-CaxXCkiN.js.map} +1 -1
  107. package/dist/ExcelDownloadButton.cjs +1 -1
  108. package/dist/ExcelDownloadButton.js +2 -2
  109. package/dist/FootNote.cjs +1 -1
  110. package/dist/FootNote.js +2 -2
  111. package/dist/GeoHubCompareMaps.cjs +1 -1
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  113. package/dist/GeoHubCompareMaps.js +111 -111
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +1 -1
  116. package/dist/GeoHubMap.cjs.map +1 -1
  117. package/dist/GeoHubMap.js +71 -71
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  121. package/dist/GeoHubMapWithLayerSelection.js +83 -83
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/{GraphContainer-DwMxWRCi.js → GraphContainer-B8ZqOzKI.js} +2 -2
  124. package/dist/{GraphContainer-DwMxWRCi.js.map → GraphContainer-B8ZqOzKI.js.map} +1 -1
  125. package/dist/{GraphContainer-B1EDxJ0S.cjs → GraphContainer-Cul9b74X.cjs} +2 -2
  126. package/dist/{GraphContainer-B1EDxJ0S.cjs.map → GraphContainer-Cul9b74X.cjs.map} +1 -1
  127. package/dist/GraphDescription.cjs +1 -1
  128. package/dist/GraphDescription.js +2 -2
  129. package/dist/{GraphEl-CnJf8b50.js → GraphEl-B73N4RIA.js} +48 -10
  130. package/dist/GraphEl-B73N4RIA.js.map +1 -0
  131. package/dist/GraphEl-Lt1og0C-.cjs +2 -0
  132. package/dist/GraphEl-Lt1og0C-.cjs.map +1 -0
  133. package/dist/GraphFooter.cjs +1 -1
  134. package/dist/GraphFooter.js +2 -2
  135. package/dist/GraphHeader.cjs +1 -1
  136. package/dist/GraphHeader.js +1 -1
  137. package/dist/GraphTitle.cjs +1 -1
  138. package/dist/GraphTitle.js +2 -2
  139. package/dist/GriddedGraphs.cjs +1 -1
  140. package/dist/GriddedGraphs.d.ts +1 -0
  141. package/dist/GriddedGraphs.js +6 -6
  142. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  143. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  144. package/dist/GriddedGraphsFromConfig.js +2 -2
  145. package/dist/HeatMap.cjs +1 -1
  146. package/dist/HeatMap.cjs.map +1 -1
  147. package/dist/HeatMap.d.ts +4 -0
  148. package/dist/HeatMap.js +158 -155
  149. package/dist/HeatMap.js.map +1 -1
  150. package/dist/Histogram.cjs +1 -1
  151. package/dist/Histogram.cjs.map +1 -1
  152. package/dist/Histogram.d.ts +2 -0
  153. package/dist/Histogram.js +81 -80
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/HybridMap.cjs +1 -1
  156. package/dist/HybridMap.cjs.map +1 -1
  157. package/dist/HybridMap.d.ts +2 -0
  158. package/dist/HybridMap.js +314 -315
  159. package/dist/HybridMap.js.map +1 -1
  160. package/dist/ImageDownloadButton.cjs +1 -1
  161. package/dist/ImageDownloadButton.js +2 -2
  162. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  163. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  164. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  165. package/dist/LineChartWithConfidenceInterval.js +367 -365
  166. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  167. package/dist/LinearColorLegend.cjs +1 -1
  168. package/dist/LinearColorLegend.cjs.map +1 -1
  169. package/dist/LinearColorLegend.d.ts +1 -0
  170. package/dist/LinearColorLegend.js +38 -37
  171. package/dist/LinearColorLegend.js.map +1 -1
  172. package/dist/{Modal-ZX55hLH-.cjs → Modal-BIErPPKT.cjs} +5 -5
  173. package/dist/{Modal-ZX55hLH-.cjs.map → Modal-BIErPPKT.cjs.map} +1 -1
  174. package/dist/{Modal-BV4rkoLM.js → Modal-CrUYln5V.js} +4 -4
  175. package/dist/{Modal-BV4rkoLM.js.map → Modal-CrUYln5V.js.map} +1 -1
  176. package/dist/MultiGraphDashboard.cjs +1 -1
  177. package/dist/MultiGraphDashboard.d.ts +1 -0
  178. package/dist/MultiGraphDashboard.js +4 -4
  179. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  180. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  181. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  182. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  186. package/dist/MultiLineAltChart.cjs +1 -1
  187. package/dist/MultiLineAltChart.cjs.map +1 -1
  188. package/dist/MultiLineAltChart.d.ts +2 -0
  189. package/dist/MultiLineAltChart.js +419 -420
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +1 -1
  192. package/dist/MultiLineChart.cjs.map +1 -1
  193. package/dist/MultiLineChart.d.ts +4 -0
  194. package/dist/MultiLineChart.js +410 -409
  195. package/dist/MultiLineChart.js.map +1 -1
  196. package/dist/ParetoChart.cjs +1 -1
  197. package/dist/ParetoChart.cjs.map +1 -1
  198. package/dist/ParetoChart.d.ts +2 -0
  199. package/dist/ParetoChart.js +273 -271
  200. package/dist/ParetoChart.js.map +1 -1
  201. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  202. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  203. package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
  204. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  205. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  206. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  207. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  208. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  209. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  210. package/dist/RadarChart.cjs +1 -1
  211. package/dist/RadarChart.cjs.map +1 -1
  212. package/dist/RadarChart.d.ts +2 -0
  213. package/dist/RadarChart.js +221 -219
  214. package/dist/RadarChart.js.map +1 -1
  215. package/dist/{ReferenceLine-M9aP3dj-.cjs → ReferenceLine-CpU4G01Y.cjs} +2 -2
  216. package/dist/{ReferenceLine-M9aP3dj-.cjs.map → ReferenceLine-CpU4G01Y.cjs.map} +1 -1
  217. package/dist/{ReferenceLine-CNEjAYvv.js → ReferenceLine-D41VuUhE.js} +3 -3
  218. package/dist/{ReferenceLine-CNEjAYvv.js.map → ReferenceLine-D41VuUhE.js.map} +1 -1
  219. package/dist/{RegressionLine-Ci-Dh0w0.cjs → RegressionLine-BFoBiVJk.cjs} +2 -2
  220. package/dist/{RegressionLine-Ci-Dh0w0.cjs.map → RegressionLine-BFoBiVJk.cjs.map} +1 -1
  221. package/dist/{RegressionLine-BDrndQxo.js → RegressionLine-CuwB42I6.js} +4 -4
  222. package/dist/{RegressionLine-BDrndQxo.js.map → RegressionLine-CuwB42I6.js.map} +1 -1
  223. package/dist/SVGDownloadButton.cjs +1 -1
  224. package/dist/SVGDownloadButton.js +2 -2
  225. package/dist/SankeyChart.cjs +1 -1
  226. package/dist/SankeyChart.cjs.map +1 -1
  227. package/dist/SankeyChart.d.ts +2 -0
  228. package/dist/SankeyChart.js +404 -408
  229. package/dist/SankeyChart.js.map +1 -1
  230. package/dist/ScatterPlot.cjs +1 -1
  231. package/dist/ScatterPlot.cjs.map +1 -1
  232. package/dist/ScatterPlot.d.ts +2 -0
  233. package/dist/ScatterPlot.js +444 -445
  234. package/dist/ScatterPlot.js.map +1 -1
  235. package/dist/ScrollStory.cjs +1 -1
  236. package/dist/ScrollStory.d.ts +1 -0
  237. package/dist/ScrollStory.js +3 -3
  238. package/dist/SimpleLineChart.cjs +1 -1
  239. package/dist/SimpleLineChart.cjs.map +1 -1
  240. package/dist/SimpleLineChart.d.ts +2 -0
  241. package/dist/SimpleLineChart.js +360 -358
  242. package/dist/SimpleLineChart.js.map +1 -1
  243. package/dist/SingleGraphDashboard.cjs +1 -1
  244. package/dist/SingleGraphDashboard.d.ts +1 -0
  245. package/dist/SingleGraphDashboard.js +6 -6
  246. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  247. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  248. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  249. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  250. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  251. package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
  252. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  253. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  254. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  255. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  256. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  257. package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
  258. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  259. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  260. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  261. package/dist/SlopeChart.cjs +1 -1
  262. package/dist/SlopeChart.cjs.map +1 -1
  263. package/dist/SlopeChart.js +259 -262
  264. package/dist/SlopeChart.js.map +1 -1
  265. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  266. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  267. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  268. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  269. package/dist/Source.cjs +1 -1
  270. package/dist/Source.js +3 -3
  271. package/dist/SparkLine.cjs +1 -1
  272. package/dist/SparkLine.js +3 -3
  273. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  274. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  275. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  276. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  277. package/dist/StatCardFromData.cjs +1 -1
  278. package/dist/StatCardFromData.cjs.map +1 -1
  279. package/dist/StatCardFromData.d.ts +4 -0
  280. package/dist/StatCardFromData.js +97 -95
  281. package/dist/StatCardFromData.js.map +1 -1
  282. package/dist/StripChart.cjs +1 -1
  283. package/dist/StripChart.cjs.map +1 -1
  284. package/dist/StripChart.d.ts +2 -0
  285. package/dist/StripChart.js +343 -343
  286. package/dist/StripChart.js.map +1 -1
  287. package/dist/ThreeDGlobe.cjs +1 -1
  288. package/dist/ThreeDGlobe.cjs.map +1 -1
  289. package/dist/ThreeDGlobe.d.ts +2 -0
  290. package/dist/ThreeDGlobe.js +198 -196
  291. package/dist/ThreeDGlobe.js.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  293. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  294. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  295. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  296. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  297. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  298. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  299. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  300. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  301. package/dist/TreeMapGraph.cjs +1 -1
  302. package/dist/TreeMapGraph.cjs.map +1 -1
  303. package/dist/TreeMapGraph.d.ts +2 -0
  304. package/dist/TreeMapGraph.js +139 -140
  305. package/dist/TreeMapGraph.js.map +1 -1
  306. package/dist/Types.d.ts +1 -0
  307. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  308. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  309. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  310. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  311. package/dist/UnitChart.cjs +1 -1
  312. package/dist/UnitChart.cjs.map +1 -1
  313. package/dist/UnitChart.d.ts +4 -0
  314. package/dist/UnitChart.js +88 -86
  315. package/dist/UnitChart.js.map +1 -1
  316. package/dist/WaterfallChart.cjs +1 -1
  317. package/dist/WaterfallChart.cjs.map +1 -1
  318. package/dist/WaterfallChart.d.ts +2 -0
  319. package/dist/WaterfallChart.js +257 -258
  320. package/dist/WaterfallChart.js.map +1 -1
  321. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  322. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  323. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  324. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  325. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  326. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  327. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  328. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  329. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  330. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  331. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  332. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  333. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  334. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  335. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  336. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  338. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  339. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  340. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  341. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  342. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  343. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  344. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  345. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  346. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  347. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  348. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  349. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  350. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  351. package/dist/index-B0Awa_de.js +377 -0
  352. package/dist/index-B0Awa_de.js.map +1 -0
  353. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  354. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  355. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  356. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  357. package/dist/{index-CHPV5EwG-BCLAYDCV.js → index-CHPV5EwG-BzibaIRc.js} +5 -9
  358. package/dist/index-CHPV5EwG-BzibaIRc.js.map +1 -0
  359. package/dist/{index-CHPV5EwG-6v2a2njQ.cjs → index-CHPV5EwG-D4pAp7u0.cjs} +3 -3
  360. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +1 -0
  361. package/dist/index-CP8cmNzt.cjs +2 -0
  362. package/dist/index-CP8cmNzt.cjs.map +1 -0
  363. package/dist/{index-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  364. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  365. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  366. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  367. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  368. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  369. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  370. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  371. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  372. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  374. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  375. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  376. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  377. package/dist/index.cjs +1 -1
  378. package/dist/index.d.ts +92 -17
  379. package/dist/index.js +3 -3
  380. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  381. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  382. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  383. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  384. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  385. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  386. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  387. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  388. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  389. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  390. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  391. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  392. package/dist/style.css +1 -1
  393. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  394. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  395. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  396. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  397. package/dist/utils.cjs +1 -1
  398. package/dist/utils.d.ts +9 -18
  399. package/dist/utils.js +1 -1
  400. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  401. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  402. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  403. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  404. package/package.json +2 -2
  405. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  406. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  407. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  408. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  409. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  410. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  411. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  412. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  413. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  414. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  415. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  416. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  417. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  418. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  419. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  420. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  421. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  422. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  423. package/dist/index-C6VwVS8W.js +0 -378
  424. package/dist/index-C6VwVS8W.js.map +0 -1
  425. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  426. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  427. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  428. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  429. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  430. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  431. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  432. package/dist/index-_TlgeI_i.cjs +0 -2
  433. package/dist/index-_TlgeI_i.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  435. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  436. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  437. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  438. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  439. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  440. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1237,6 +1237,7 @@ declare interface GraphSettingsDataType {
1237
1237
  showVoronoiTesselation?: boolean;
1238
1238
  mapOverlay?: MapOverlayDataType;
1239
1239
  useVoronoiInteraction?: boolean;
1240
+ locale?: string;
1240
1241
  }
1241
1242
 
1242
1243
  export declare function GraphTitle(props: Props_68): JSX.Element | null;
@@ -1340,6 +1341,8 @@ declare interface GroupedBarChartProps {
1340
1341
  naLabel?: string;
1341
1342
  /** Specifies the number of decimal places to display in the value. */
1342
1343
  precision?: number;
1344
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1345
+ locale?: string;
1343
1346
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1344
1347
  customLayers?: CustomLayerDataType[];
1345
1348
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -1517,25 +1520,16 @@ declare interface MultiLineChartDataType {
1517
1520
  }
1518
1521
 
1519
1522
  /**
1520
- * Formats a number into a human-readable string, optionally with a prefix and/or suffix.
1523
+ * Formats a number into a human-readable string, optionally with prefix/suffix
1524
+ * and locale-aware formatting.
1521
1525
  *
1522
- * - Adds suffixes like `K`, `M`, `B`, and `T` for large numbers.
1523
- * - If the number is less than 10,000 and an integer, it is returned as-is.
1524
- * - If `value` is `null` or `undefined`, returns `"NA"`.
1525
- *
1526
- * @param value - The number to format.
1527
- * @param precision - Optional no of digits after decimal.
1528
- * @param prefix - Optional string to prepend.
1529
- * @param suffix - Optional string to append.
1530
- * @returns A formatted string.
1531
- *
1532
- * @example
1533
- * numberFormattingFunction(5000); // "5000"
1534
- * numberFormattingFunction(125000); // "125K"
1535
- * numberFormattingFunction(3.14159, '$'); // "$3.14"
1536
- * numberFormattingFunction(null); // "NA"
1526
+ * Supports:
1527
+ * - Compact notation (K, M, B, T)
1528
+ * - Locale formatting via Intl.NumberFormat
1529
+ * - Prefix and suffix
1530
+ * - NA fallback
1537
1531
  */
1538
- export declare function numberFormattingFunction(value: number | string | undefined | null, naLabel?: string, precision?: number, prefix?: string, suffix?: string): string;
1532
+ export declare function numberFormattingFunction(value: number | string | undefined | null, naLabel?: string, precision?: number, prefix?: string, suffix?: string, locale?: string): string;
1539
1533
 
1540
1534
  /**
1541
1535
  * Represents a parameter to be embedded in a URL.
@@ -1694,6 +1688,8 @@ declare interface Props {
1694
1688
  animate?: boolean | AnimateDataType;
1695
1689
  /** Specifies the number of decimal places to display in the value. */
1696
1690
  precision?: number;
1691
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1692
+ locale?: string;
1697
1693
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1698
1694
  customLayers?: CustomLayerDataType[];
1699
1695
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -1817,6 +1813,8 @@ declare interface Props_10 {
1817
1813
  curveType?: CurveTypes;
1818
1814
  /** Specifies the number of decimal places to display in the value. */
1819
1815
  precision?: number;
1816
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1817
+ locale?: string;
1820
1818
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1821
1819
  customLayers?: CustomLayerDataType[];
1822
1820
  /** Enable graph download option as png */
@@ -1922,6 +1920,10 @@ declare interface Props_11 {
1922
1920
  curveType?: CurveTypes;
1923
1921
  /** Specifies the number of decimal places to display in the value. */
1924
1922
  precision?: number;
1923
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1924
+ locale?: string;
1925
+ /** Defines how “NA” values should be displayed/labelled in the graph */
1926
+ naLabel?: string;
1925
1927
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1926
1928
  customLayers?: CustomLayerDataType[];
1927
1929
  /** Enable graph download option as png */
@@ -2094,6 +2096,8 @@ declare interface Props_13 {
2094
2096
  customLayers?: CustomLayerDataType[];
2095
2097
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2096
2098
  timeline?: TimelineDataType;
2099
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2100
+ locale?: string;
2097
2101
  /** Enable graph download option as png */
2098
2102
  graphDownload?: boolean;
2099
2103
  /** Enable data download option as a csv */
@@ -2201,6 +2205,8 @@ declare interface Props_14 {
2201
2205
  customLayers?: CustomLayerDataType[];
2202
2206
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2203
2207
  timeline?: TimelineDataType;
2208
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2209
+ locale?: string;
2204
2210
  /** Enable graph download option as png */
2205
2211
  graphDownload?: boolean;
2206
2212
  /** Enable data download option as a csv */
@@ -2429,6 +2435,8 @@ declare interface Props_16 {
2429
2435
  mapProperty?: string;
2430
2436
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2431
2437
  timeline?: TimelineDataType;
2438
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2439
+ locale?: string;
2432
2440
  /** Enable graph download option as png */
2433
2441
  graphDownload?: boolean;
2434
2442
  /** Enable data download option as a csv */
@@ -2514,6 +2522,8 @@ declare interface Props_17 {
2514
2522
  scaleType?: Exclude<ScaleDataType, 'linear'>;
2515
2523
  /** Toggle visibility of color scale. */
2516
2524
  showColorScale?: boolean;
2525
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2526
+ locale?: string;
2517
2527
  /** Toggle if color scale is collapsed by default. */
2518
2528
  collapseColorScaleByDefault?: boolean;
2519
2529
  /** The max altitude of the atmosphere, in terms of globe radius units. */
@@ -2714,6 +2724,8 @@ declare interface Props_2 {
2714
2724
  dimmedOpacity?: number;
2715
2725
  /** Specifies the number of decimal places to display in the value. */
2716
2726
  precision?: number;
2727
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2728
+ locale?: string;
2717
2729
  /** Enable graph download option as png */
2718
2730
  graphDownload?: boolean;
2719
2731
  /** Enable data download option as a csv */
@@ -2889,6 +2901,8 @@ declare interface Props_21 {
2889
2901
  animate?: boolean | AnimateDataType;
2890
2902
  /** Specifies the number of decimal places to display in the value. */
2891
2903
  precision?: number;
2904
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2905
+ locale?: string;
2892
2906
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
2893
2907
  customLayers?: CustomLayerDataType[];
2894
2908
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -3117,6 +3131,8 @@ declare interface Props_23 {
3117
3131
  timeline?: TimelineDataType;
3118
3132
  /** Specifies the number of decimal places to display in the value. */
3119
3133
  precision?: number;
3134
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3135
+ locale?: string;
3120
3136
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3121
3137
  customLayers?: CustomLayerDataType[];
3122
3138
  /** Enable graph download option as png */
@@ -3214,6 +3230,8 @@ declare interface Props_24 {
3214
3230
  curveType?: CurveTypes;
3215
3231
  /** Specifies the number of decimal places to display in the value. */
3216
3232
  precision?: number;
3233
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3234
+ locale?: string;
3217
3235
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3218
3236
  customLayers?: CustomLayerDataType[];
3219
3237
  /** Toggles if the graph animates in when loaded. */
@@ -3273,6 +3291,8 @@ declare interface Props_25 {
3273
3291
  value: number | string;
3274
3292
  /** Sub text next to main text */
3275
3293
  year?: number | string;
3294
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3295
+ locale?: string;
3276
3296
  /** Language setting */
3277
3297
  language?: Languages;
3278
3298
  /** Color theme */
@@ -3318,6 +3338,10 @@ declare interface Props_26 {
3318
3338
  suffix?: string;
3319
3339
  /** Sub text next to main text */
3320
3340
  year?: number | string;
3341
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3342
+ locale?: string;
3343
+ /** Defines how “NA” values should be displayed/labelled in the graph */
3344
+ naLabel?: string;
3321
3345
  /** Data points that need to counted for aggregation. */
3322
3346
  countOnly?: (string | number)[];
3323
3347
  /** Method for aggregating the data to show as a single number in the card. If the data type of value in data object is string then only count is applicable. */
@@ -3396,6 +3420,8 @@ declare interface Props_27 {
3396
3420
  animate?: boolean | AnimateDataType;
3397
3421
  /** Specifies the number of decimal places to display in the value. */
3398
3422
  precision?: number;
3423
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3424
+ locale?: string;
3399
3425
  /** Enable graph download option as png */
3400
3426
  graphDownload?: boolean;
3401
3427
  /** Enable data download option as a csv */
@@ -3467,10 +3493,14 @@ declare interface Props_28 {
3467
3493
  showColorScale?: boolean;
3468
3494
  /** Specifies the number of decimal places to display in the value. */
3469
3495
  precision?: number;
3496
+ /** Defines how “NA” values should be displayed/labelled in the graph */
3497
+ naLabel?: string;
3470
3498
  /** Enable graph download option as png */
3471
3499
  graphDownload?: boolean;
3472
3500
  /** Enable data download option as a csv */
3473
3501
  dataDownload?: boolean;
3502
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3503
+ locale?: string;
3474
3504
  /** Language setting */
3475
3505
  language?: Languages;
3476
3506
  /** Color theme */
@@ -3549,6 +3579,10 @@ declare interface Props_29 {
3549
3579
  colorDomain: number[] | string[];
3550
3580
  /** Specifies the number of decimal places to display in the value. */
3551
3581
  precision?: number;
3582
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3583
+ locale?: string;
3584
+ /** Defines how “NA” values should be displayed/labelled in the graph */
3585
+ naLabel?: string;
3552
3586
  /** Enable graph download option as png */
3553
3587
  graphDownload?: boolean;
3554
3588
  /** Enable data download option as a csv */
@@ -3638,6 +3672,10 @@ declare interface Props_3 {
3638
3672
  dataDownload?: boolean;
3639
3673
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
3640
3674
  resetSelectionOnDoubleClick?: boolean;
3675
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3676
+ locale?: string;
3677
+ /** Defines how “NA” values should be displayed/labelled in the graph */
3678
+ naLabel?: string;
3641
3679
  /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */
3642
3680
  tooltip?: string | ((_d: any) => React.ReactNode);
3643
3681
  /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */
@@ -3697,6 +3735,8 @@ declare interface Props_30 {
3697
3735
  theme?: 'light' | 'dark';
3698
3736
  /** Unique ID for the graph */
3699
3737
  graphID?: string;
3738
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3739
+ locale?: string;
3700
3740
  }
3701
3741
 
3702
3742
  declare interface Props_31 {
@@ -3841,6 +3881,8 @@ declare interface Props_32 {
3841
3881
  showDataMinMax?: boolean;
3842
3882
  /** Specifies the number of decimal places to display in the value. */
3843
3883
  precision?: number;
3884
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3885
+ locale?: string;
3844
3886
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3845
3887
  customLayers?: CustomLayerDataType[];
3846
3888
  /** Enable graph download option as png */
@@ -3944,6 +3986,8 @@ declare interface Props_33 {
3944
3986
  animate?: boolean | AnimateDataType;
3945
3987
  /** Specifies the number of decimal places to display in the value. */
3946
3988
  precision?: number;
3989
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3990
+ locale?: string;
3947
3991
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3948
3992
  customLayers?: CustomLayerDataType[];
3949
3993
  /** Enable graph download option as png */
@@ -4045,6 +4089,8 @@ declare interface Props_34 {
4045
4089
  animate?: boolean | AnimateDataType;
4046
4090
  /** Specifies the number of decimal places to display in the value. */
4047
4091
  precision?: number;
4092
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4093
+ locale?: string;
4048
4094
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4049
4095
  customLayers?: CustomLayerDataType[];
4050
4096
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -4140,6 +4186,8 @@ declare interface Props_35 {
4140
4186
  hideAxisLine?: boolean;
4141
4187
  /** Specifies the number of decimal places to display in the value. */
4142
4188
  precision?: number;
4189
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4190
+ locale?: string;
4143
4191
  /** Enable graph download option as png */
4144
4192
  graphDownload?: boolean;
4145
4193
  /** Enable data download option as a csv */
@@ -4253,6 +4301,8 @@ declare interface Props_36 {
4253
4301
  animate?: boolean | AnimateDataType;
4254
4302
  /** Specifies the number of decimal places to display in the value. */
4255
4303
  precision?: number;
4304
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4305
+ locale?: string;
4256
4306
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4257
4307
  customLayers?: CustomLayerDataType[];
4258
4308
  /** Enable graph download option as png */
@@ -4352,6 +4402,8 @@ declare interface Props_37 {
4352
4402
  animate?: boolean | AnimateDataType;
4353
4403
  /** Specifies the number of decimal places to display in the value. */
4354
4404
  precision?: number;
4405
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4406
+ locale?: string;
4355
4407
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4356
4408
  customLayers?: CustomLayerDataType[];
4357
4409
  /** Enable graph download option as png */
@@ -4453,6 +4505,8 @@ declare interface Props_38 {
4453
4505
  resetSelectionOnDoubleClick?: boolean;
4454
4506
  /** Specifies the number of decimal places to display in the value. */
4455
4507
  precision?: number;
4508
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4509
+ locale?: string;
4456
4510
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4457
4511
  customLayers?: CustomLayerDataType[];
4458
4512
  /** Enable graph download option as png */
@@ -4597,6 +4651,8 @@ declare interface Props_4 {
4597
4651
  animate?: boolean | AnimateDataType;
4598
4652
  /** Specifies the number of decimal places to display in the value. */
4599
4653
  precision?: number;
4654
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4655
+ locale?: string;
4600
4656
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4601
4657
  customLayers?: CustomLayerDataType[];
4602
4658
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -4856,6 +4912,8 @@ declare interface Props_5 {
4856
4912
  radius?: number;
4857
4913
  /** Specifies the number of decimal places to display in the value. */
4858
4914
  precision?: number;
4915
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4916
+ locale?: string;
4859
4917
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4860
4918
  customLayers?: CustomLayerDataType[];
4861
4919
  /** Enable graph download option as png */
@@ -5026,6 +5084,10 @@ declare interface Props_6 {
5026
5084
  curveType?: CurveTypes;
5027
5085
  /** Specifies the number of decimal places to display in the value. */
5028
5086
  precision?: number;
5087
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5088
+ locale?: string;
5089
+ /** Defines how “NA” values should be displayed/labelled in the graph */
5090
+ naLabel?: string;
5029
5091
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5030
5092
  customLayers?: CustomLayerDataType[];
5031
5093
  /** Enable graph download option as png */
@@ -5073,6 +5135,7 @@ declare interface Props_62 {
5073
5135
  colorLegendTitle?: string;
5074
5136
  width?: number;
5075
5137
  className?: string;
5138
+ locale?: string;
5076
5139
  }
5077
5140
 
5078
5141
  declare interface Props_63 {
@@ -5084,6 +5147,8 @@ declare interface Props_63 {
5084
5147
  naColor?: string;
5085
5148
  className?: string;
5086
5149
  showNAColor: boolean;
5150
+ locale?: string;
5151
+ naLabel: string;
5087
5152
  }
5088
5153
 
5089
5154
  declare interface Props_64 {
@@ -5235,6 +5300,8 @@ declare interface Props_7 {
5235
5300
  curveType?: CurveTypes;
5236
5301
  /** Specifies the number of decimal places to display in the value. */
5237
5302
  precision?: number;
5303
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5304
+ locale?: string;
5238
5305
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5239
5306
  customLayers?: CustomLayerDataType[];
5240
5307
  /** Enable graph download option as png */
@@ -5334,6 +5401,8 @@ declare interface Props_8 {
5334
5401
  curveType?: CurveTypes;
5335
5402
  /** Specifies the number of decimal places to display in the value. */
5336
5403
  precision?: number;
5404
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5405
+ locale?: string;
5337
5406
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5338
5407
  customLayers?: CustomLayerDataType[];
5339
5408
  /** Enable graph download option as png */
@@ -5449,6 +5518,10 @@ declare interface Props_9 {
5449
5518
  curveType?: CurveTypes;
5450
5519
  /** Specifies the number of decimal places to display in the value. */
5451
5520
  precision?: number;
5521
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5522
+ locale?: string;
5523
+ /** Defines how “NA” values should be displayed/labelled in the graph */
5524
+ naLabel?: string;
5452
5525
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5453
5526
  customLayers?: CustomLayerDataType[];
5454
5527
  /** Enable graph download option as png */
@@ -5694,6 +5767,8 @@ declare interface StackedBarChartProps {
5694
5767
  animate?: boolean | AnimateDataType;
5695
5768
  /** Specifies the number of decimal places to display in the value. */
5696
5769
  precision?: number;
5770
+ /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5771
+ locale?: string;
5697
5772
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5698
5773
  customLayers?: CustomLayerDataType[];
5699
5774
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { GroupedBarGraph as e, SimpleBarGraph as t, StackedBarGraph as a } from "./BarGraph.js";
2
- import { C as m } from "./index-C6VwVS8W.js";
2
+ import { C as m } from "./index-B0Awa_de.js";
3
3
  import { DonutChart as x } from "./DonutChart.js";
4
4
  import { DumbbellChart as h } from "./DumbbellChart.js";
5
5
  import { BeeSwarmChart as i } from "./BeeSwarmChart.js";
@@ -67,10 +67,10 @@ import { GraphHeader as To } from "./GraphHeader.js";
67
67
  import { FootNote as Ao } from "./FootNote.js";
68
68
  import { GraphDescription as vo } from "./GraphDescription.js";
69
69
  import { GraphTitle as ko } from "./GraphTitle.js";
70
- import { S as Io } from "./Source-Djkz-7jX.js";
70
+ import { S as Io } from "./Source-QGk8vhkS.js";
71
71
  import { c as Oo } from "./checkIfNullOrUndefined-DmfiKkNw.js";
72
72
  import { g as No, a as Uo, b as Eo, c as Jo, r as qo } from "./removeOutliers-BqW0sPqj.js";
73
- import { n as Ro } from "./numberFormattingFunction-14YCbkN2.js";
73
+ import { n as Ro } from "./numberFormattingFunction-DqMf_v1m.js";
74
74
  import { g as zo } from "./getTextColorBasedOnBgColor-CDY808zi.js";
75
75
  import { g as Xo } from "./getJenks-DTCcQSDi.js";
76
76
  import { i as Zo } from "./imageDownload-Diofs_vY.js";
@@ -0,0 +1,2 @@
1
+ "use strict";const i=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs");function g(n,f,r,m,u,s){if(i.checkIfNullOrUndefined(n))return f||"NA";const o=(e,c)=>new Intl.NumberFormat(s||"en",{minimumFractionDigits:0,maximumFractionDigits:c,useGrouping:!1}).format(e);if(typeof n=="string")return`${m||""}${n}${u||""}`;if(i.checkIfNullOrUndefined(n))return f||"NA";const t=n,d=e=>{const c=["","K","M","B","T"],a=Math.floor(Math.log10(Math.abs(e))/3);if(a===0)return o(e,r===0?0:r||2);const $=e/Math.pow(10,a*3);return o($,r===0?0:r||2)+c[a]};if(t<1e4&&t>-1e4&&Number.isInteger(t))return`${m||""}${o(t,0)}${u||""}`;const h=Math.abs(t)<1e3?o(t,r===0?0:r||2):d(t);return`${m||""}${h}${u||""}`}exports.numberFormattingFunction=g;
2
+ //# sourceMappingURL=numberFormattingFunction-Cn9R7CM9.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberFormattingFunction-Cn9R7CM9.cjs","sources":["../src/Utils/numberFormattingFunction.ts"],"sourcesContent":["import { checkIfNullOrUndefined } from './checkIfNullOrUndefined';\r\n\r\n/**\r\n * Formats a number into a human-readable string, optionally with prefix/suffix\r\n * and locale-aware formatting.\r\n *\r\n * Supports:\r\n * - Compact notation (K, M, B, T)\r\n * - Locale formatting via Intl.NumberFormat\r\n * - Prefix and suffix\r\n * - NA fallback\r\n */\r\nexport function numberFormattingFunction(\r\n value: number | string | undefined | null,\r\n naLabel?: string,\r\n precision?: number,\r\n prefix?: string,\r\n suffix?: string,\r\n locale?: string,\r\n) {\r\n if (checkIfNullOrUndefined(value)) return naLabel || 'NA';\r\n const formatWithLocale = (num: number, precisionValue: number) => {\r\n return new Intl.NumberFormat(locale || 'en', {\r\n minimumFractionDigits: 0,\r\n maximumFractionDigits: precisionValue,\r\n useGrouping: false,\r\n }).format(num);\r\n };\r\n\r\n if (typeof value === 'string') {\r\n return `${prefix || ''}${value}${suffix || ''}`;\r\n }\r\n\r\n if (checkIfNullOrUndefined(value)) {\r\n return naLabel || 'NA';\r\n }\r\n\r\n const num = value as number;\r\n\r\n const formatCompact = (n: number) => {\r\n const suffixes = ['', 'K', 'M', 'B', 'T'];\r\n const tier = Math.floor(Math.log10(Math.abs(n)) / 3);\r\n\r\n if (tier === 0) {\r\n return formatWithLocale(n, precision === 0 ? 0 : precision || 2);\r\n }\r\n\r\n const scaled = n / Math.pow(10, tier * 3);\r\n\r\n const formatted = formatWithLocale(scaled, precision === 0 ? 0 : precision || 2);\r\n\r\n return formatted + suffixes[tier];\r\n };\r\n\r\n // Small numbers (no compacting)\r\n if (num < 10000 && num > -10000 && Number.isInteger(num)) {\r\n return `${prefix || ''}${formatWithLocale(num, 0)}${suffix || ''}`;\r\n }\r\n\r\n const formattedNumber =\r\n Math.abs(num) < 1000\r\n ? formatWithLocale(num, precision === 0 ? 0 : precision || 2)\r\n : formatCompact(num);\r\n\r\n return `${prefix || ''}${formattedNumber}${suffix || ''}`;\r\n}\r\n"],"names":["numberFormattingFunction","value","naLabel","precision","prefix","suffix","locale","checkIfNullOrUndefined","formatWithLocale","num","precisionValue","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","useGrouping","format","formatCompact","n","suffixes","tier","Math","floor","log10","abs","scaled","pow","Number","isInteger","formattedNumber"],"mappings":"sEAYO,SAASA,EACdC,EACAC,EACAC,EACAC,EACAC,EACAC,EACA,CACA,GAAIC,yBAAuBN,CAAK,EAAG,OAAOC,GAAW,KACrD,MAAMM,EAAmBA,CAACC,EAAaC,IAC9B,IAAIC,KAAKC,aAAaN,GAAU,KAAM,CAC3CO,sBAAuB,EACvBC,sBAAuBJ,EACvBK,YAAa,EAAA,CACd,EAAEC,OAAOP,CAAG,EAGf,GAAI,OAAOR,GAAU,SACnB,MAAO,GAAGG,GAAU,EAAE,GAAGH,CAAK,GAAGI,GAAU,EAAE,GAG/C,GAAIE,EAAAA,uBAAuBN,CAAK,EAC9B,OAAOC,GAAW,KAGpB,MAAMO,EAAMR,EAENgB,EAAiBC,GAAc,CACnC,MAAMC,EAAW,CAAC,GAAI,IAAK,IAAK,IAAK,GAAG,EAClCC,EAAOC,KAAKC,MAAMD,KAAKE,MAAMF,KAAKG,IAAIN,CAAC,CAAC,EAAI,CAAC,EAEnD,GAAIE,IAAS,EACX,OAAOZ,EAAiBU,EAAGf,IAAc,EAAI,EAAIA,GAAa,CAAC,EAGjE,MAAMsB,EAASP,EAAIG,KAAKK,IAAI,GAAIN,EAAO,CAAC,EAIxC,OAFkBZ,EAAiBiB,EAAQtB,IAAc,EAAI,EAAIA,GAAa,CAAC,EAE5DgB,EAASC,CAAI,CAClC,EAGA,GAAIX,EAAM,KAASA,EAAM,MAAUkB,OAAOC,UAAUnB,CAAG,EACrD,MAAO,GAAGL,GAAU,EAAE,GAAGI,EAAiBC,EAAK,CAAC,CAAC,GAAGJ,GAAU,EAAE,GAGlE,MAAMwB,EACJR,KAAKG,IAAIf,CAAG,EAAI,IACZD,EAAiBC,EAAKN,IAAc,EAAI,EAAIA,GAAa,CAAC,EAC1Dc,EAAcR,CAAG,EAEvB,MAAO,GAAGL,GAAU,EAAE,GAAGyB,CAAe,GAAGxB,GAAU,EAAE,EACzD"}
@@ -0,0 +1,28 @@
1
+ import { c } from "./checkIfNullOrUndefined-DmfiKkNw.js";
2
+ function N(n, s, r, e, a, i) {
3
+ if (c(n)) return s || "NA";
4
+ const m = (o, u) => new Intl.NumberFormat(i || "en", {
5
+ minimumFractionDigits: 0,
6
+ maximumFractionDigits: u,
7
+ useGrouping: !1
8
+ }).format(o);
9
+ if (typeof n == "string")
10
+ return `${e || ""}${n}${a || ""}`;
11
+ if (c(n))
12
+ return s || "NA";
13
+ const t = n, $ = (o) => {
14
+ const u = ["", "K", "M", "B", "T"], f = Math.floor(Math.log10(Math.abs(o)) / 3);
15
+ if (f === 0)
16
+ return m(o, r === 0 ? 0 : r || 2);
17
+ const h = o / Math.pow(10, f * 3);
18
+ return m(h, r === 0 ? 0 : r || 2) + u[f];
19
+ };
20
+ if (t < 1e4 && t > -1e4 && Number.isInteger(t))
21
+ return `${e || ""}${m(t, 0)}${a || ""}`;
22
+ const g = Math.abs(t) < 1e3 ? m(t, r === 0 ? 0 : r || 2) : $(t);
23
+ return `${e || ""}${g}${a || ""}`;
24
+ }
25
+ export {
26
+ N as n
27
+ };
28
+ //# sourceMappingURL=numberFormattingFunction-DqMf_v1m.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberFormattingFunction-DqMf_v1m.js","sources":["../src/Utils/numberFormattingFunction.ts"],"sourcesContent":["import { checkIfNullOrUndefined } from './checkIfNullOrUndefined';\r\n\r\n/**\r\n * Formats a number into a human-readable string, optionally with prefix/suffix\r\n * and locale-aware formatting.\r\n *\r\n * Supports:\r\n * - Compact notation (K, M, B, T)\r\n * - Locale formatting via Intl.NumberFormat\r\n * - Prefix and suffix\r\n * - NA fallback\r\n */\r\nexport function numberFormattingFunction(\r\n value: number | string | undefined | null,\r\n naLabel?: string,\r\n precision?: number,\r\n prefix?: string,\r\n suffix?: string,\r\n locale?: string,\r\n) {\r\n if (checkIfNullOrUndefined(value)) return naLabel || 'NA';\r\n const formatWithLocale = (num: number, precisionValue: number) => {\r\n return new Intl.NumberFormat(locale || 'en', {\r\n minimumFractionDigits: 0,\r\n maximumFractionDigits: precisionValue,\r\n useGrouping: false,\r\n }).format(num);\r\n };\r\n\r\n if (typeof value === 'string') {\r\n return `${prefix || ''}${value}${suffix || ''}`;\r\n }\r\n\r\n if (checkIfNullOrUndefined(value)) {\r\n return naLabel || 'NA';\r\n }\r\n\r\n const num = value as number;\r\n\r\n const formatCompact = (n: number) => {\r\n const suffixes = ['', 'K', 'M', 'B', 'T'];\r\n const tier = Math.floor(Math.log10(Math.abs(n)) / 3);\r\n\r\n if (tier === 0) {\r\n return formatWithLocale(n, precision === 0 ? 0 : precision || 2);\r\n }\r\n\r\n const scaled = n / Math.pow(10, tier * 3);\r\n\r\n const formatted = formatWithLocale(scaled, precision === 0 ? 0 : precision || 2);\r\n\r\n return formatted + suffixes[tier];\r\n };\r\n\r\n // Small numbers (no compacting)\r\n if (num < 10000 && num > -10000 && Number.isInteger(num)) {\r\n return `${prefix || ''}${formatWithLocale(num, 0)}${suffix || ''}`;\r\n }\r\n\r\n const formattedNumber =\r\n Math.abs(num) < 1000\r\n ? formatWithLocale(num, precision === 0 ? 0 : precision || 2)\r\n : formatCompact(num);\r\n\r\n return `${prefix || ''}${formattedNumber}${suffix || ''}`;\r\n}\r\n"],"names":["numberFormattingFunction","value","naLabel","precision","prefix","suffix","locale","checkIfNullOrUndefined","formatWithLocale","num","precisionValue","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","useGrouping","format","formatCompact","n","suffixes","tier","Math","floor","log10","abs","scaled","pow","Number","isInteger","formattedNumber"],"mappings":";AAYO,SAASA,EACdC,GACAC,GACAC,GACAC,GACAC,GACAC,GACA;AACA,MAAIC,EAAuBN,CAAK,EAAG,QAAOC,KAAW;AACrD,QAAMM,IAAmBA,CAACC,GAAaC,MAC9B,IAAIC,KAAKC,aAAaN,KAAU,MAAM;AAAA,IAC3CO,uBAAuB;AAAA,IACvBC,uBAAuBJ;AAAAA,IACvBK,aAAa;AAAA,EAAA,CACd,EAAEC,OAAOP,CAAG;AAGf,MAAI,OAAOR,KAAU;AACnB,WAAO,GAAGG,KAAU,EAAE,GAAGH,CAAK,GAAGI,KAAU,EAAE;AAG/C,MAAIE,EAAuBN,CAAK;AAC9B,WAAOC,KAAW;AAGpB,QAAMO,IAAMR,GAENgB,IAAgBA,CAACC,MAAc;AACnC,UAAMC,IAAW,CAAC,IAAI,KAAK,KAAK,KAAK,GAAG,GAClCC,IAAOC,KAAKC,MAAMD,KAAKE,MAAMF,KAAKG,IAAIN,CAAC,CAAC,IAAI,CAAC;AAEnD,QAAIE,MAAS;AACX,aAAOZ,EAAiBU,GAAGf,MAAc,IAAI,IAAIA,KAAa,CAAC;AAGjE,UAAMsB,IAASP,IAAIG,KAAKK,IAAI,IAAIN,IAAO,CAAC;AAIxC,WAFkBZ,EAAiBiB,GAAQtB,MAAc,IAAI,IAAIA,KAAa,CAAC,IAE5DgB,EAASC,CAAI;AAAA,EAClC;AAGA,MAAIX,IAAM,OAASA,IAAM,QAAUkB,OAAOC,UAAUnB,CAAG;AACrD,WAAO,GAAGL,KAAU,EAAE,GAAGI,EAAiBC,GAAK,CAAC,CAAC,GAAGJ,KAAU,EAAE;AAGlE,QAAMwB,IACJR,KAAKG,IAAIf,CAAG,IAAI,MACZD,EAAiBC,GAAKN,MAAc,IAAI,IAAIA,KAAa,CAAC,IAC1Dc,EAAcR,CAAG;AAEvB,SAAO,GAAGL,KAAU,EAAE,GAAGyB,CAAe,GAAGxB,KAAU,EAAE;AACzD;"}
@@ -1,5 +1,5 @@
1
1
  import { createContext as yt, useRef as mt, useLayoutEffect as br, useEffect as We, useContext as O, useId as Vr, useCallback as Os, useMemo as Zt, Fragment as js, createElement as Ar, useInsertionEffect as Ns, forwardRef as Dr, Component as Mr } from "react";
2
- import { j as ye } from "./index-CHPV5EwG-BCLAYDCV.js";
2
+ import { j as ye } from "./index-CHPV5EwG-BzibaIRc.js";
3
3
  const Us = yt({});
4
4
  function Cr(t) {
5
5
  const e = mt(null);
@@ -4778,4 +4778,4 @@ export {
4778
4778
  Fa as r,
4779
4779
  Cr as u
4780
4780
  };
4781
- //# sourceMappingURL=proxy--_f6k3NR.js.map
4781
+ //# sourceMappingURL=proxy-BsxtcZKa.js.map