@undp/data-viz 2.4.1 → 2.5.1

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 (271) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +309 -304
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +314 -311
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.cjs.map +1 -1
  68. package/dist/DotDensityMap.d.ts +1 -1
  69. package/dist/DotDensityMap.js +270 -267
  70. package/dist/DotDensityMap.js.map +1 -1
  71. package/dist/DualAxisLineChart.cjs +1 -1
  72. package/dist/DualAxisLineChart.cjs.map +1 -1
  73. package/dist/DualAxisLineChart.d.ts +13 -9
  74. package/dist/DualAxisLineChart.js +341 -351
  75. package/dist/DualAxisLineChart.js.map +1 -1
  76. package/dist/DumbbellChart.cjs +1 -1
  77. package/dist/DumbbellChart.cjs.map +1 -1
  78. package/dist/DumbbellChart.d.ts +11 -9
  79. package/dist/DumbbellChart.js +592 -593
  80. package/dist/DumbbellChart.js.map +1 -1
  81. package/dist/GeoHubCompareMaps.cjs +1 -1
  82. package/dist/GeoHubCompareMaps.d.ts +1 -1
  83. package/dist/GeoHubCompareMaps.js +1 -1
  84. package/dist/GeoHubMap.cjs +1 -1
  85. package/dist/GeoHubMap.d.ts +1 -1
  86. package/dist/GeoHubMap.js +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  88. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  89. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  90. package/dist/GraphEl-BgkDbq50.cjs +2 -0
  91. package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
  92. package/dist/GraphEl-Ch0uAeZw.js +1830 -0
  93. package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
  94. package/dist/GriddedGraphs.cjs +1 -1
  95. package/dist/GriddedGraphs.d.ts +29 -16
  96. package/dist/GriddedGraphs.js +1 -1
  97. package/dist/GriddedGraphsFromConfig.d.ts +29 -16
  98. package/dist/HeatMap.cjs +1 -1
  99. package/dist/HeatMap.cjs.map +1 -1
  100. package/dist/HeatMap.d.ts +11 -9
  101. package/dist/HeatMap.js +203 -205
  102. package/dist/HeatMap.js.map +1 -1
  103. package/dist/Histogram.cjs +1 -1
  104. package/dist/Histogram.cjs.map +1 -1
  105. package/dist/Histogram.d.ts +11 -5
  106. package/dist/Histogram.js +88 -89
  107. package/dist/Histogram.js.map +1 -1
  108. package/dist/HybridMap.cjs +1 -1
  109. package/dist/HybridMap.cjs.map +1 -1
  110. package/dist/HybridMap.d.ts +11 -3
  111. package/dist/HybridMap.js +339 -336
  112. package/dist/HybridMap.js.map +1 -1
  113. package/dist/ImageDownloadButton.cjs +1 -1
  114. package/dist/ImageDownloadButton.js +1 -1
  115. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  116. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  117. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  118. package/dist/LineChartWithConfidenceInterval.js +393 -395
  119. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  120. package/dist/LinearColorLegend.cjs +1 -1
  121. package/dist/LinearColorLegend.js +1 -1
  122. package/dist/MultiGraphDashboard.d.ts +29 -16
  123. package/dist/MultiGraphDashboardFromConfig.d.ts +29 -16
  124. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  125. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  126. package/dist/MultiLineAltChart.cjs +1 -1
  127. package/dist/MultiLineAltChart.cjs.map +1 -1
  128. package/dist/MultiLineAltChart.d.ts +11 -9
  129. package/dist/MultiLineAltChart.js +411 -413
  130. package/dist/MultiLineAltChart.js.map +1 -1
  131. package/dist/MultiLineChart.cjs +1 -1
  132. package/dist/MultiLineChart.cjs.map +1 -1
  133. package/dist/MultiLineChart.d.ts +11 -9
  134. package/dist/MultiLineChart.js +438 -440
  135. package/dist/MultiLineChart.js.map +1 -1
  136. package/dist/ParetoChart.cjs +1 -1
  137. package/dist/ParetoChart.cjs.map +1 -1
  138. package/dist/ParetoChart.d.ts +13 -13
  139. package/dist/ParetoChart.js +347 -355
  140. package/dist/ParetoChart.js.map +1 -1
  141. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +29 -16
  142. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
  143. package/dist/PerformanceIntensiveScrollStory.d.ts +29 -16
  144. package/dist/RadarChart.cjs +1 -1
  145. package/dist/RadarChart.cjs.map +1 -1
  146. package/dist/RadarChart.d.ts +11 -5
  147. package/dist/RadarChart.js +213 -213
  148. package/dist/RadarChart.js.map +1 -1
  149. package/dist/SankeyChart.cjs +1 -1
  150. package/dist/SankeyChart.cjs.map +1 -1
  151. package/dist/SankeyChart.d.ts +11 -9
  152. package/dist/SankeyChart.js +448 -450
  153. package/dist/SankeyChart.js.map +1 -1
  154. package/dist/ScatterPlot.cjs +1 -1
  155. package/dist/ScatterPlot.cjs.map +1 -1
  156. package/dist/ScatterPlot.d.ts +15 -13
  157. package/dist/ScatterPlot.js +477 -483
  158. package/dist/ScatterPlot.js.map +1 -1
  159. package/dist/ScrollStory.d.ts +29 -16
  160. package/dist/SimpleLineChart.cjs +1 -1
  161. package/dist/SimpleLineChart.cjs.map +1 -1
  162. package/dist/SimpleLineChart.d.ts +11 -9
  163. package/dist/SimpleLineChart.js +362 -364
  164. package/dist/SimpleLineChart.js.map +1 -1
  165. package/dist/SingleGraphDashboard.cjs +1 -1
  166. package/dist/SingleGraphDashboard.d.ts +29 -16
  167. package/dist/SingleGraphDashboard.js +1 -1
  168. package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
  169. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
  170. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
  171. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  173. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
  174. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  175. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  176. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -16
  177. package/dist/SlopeChart.cjs +1 -1
  178. package/dist/SlopeChart.d.ts +1 -1
  179. package/dist/SlopeChart.js +2 -2
  180. package/dist/SparkLine.cjs +1 -1
  181. package/dist/SparkLine.d.ts +1 -1
  182. package/dist/SparkLine.js +1 -1
  183. package/dist/StatCardFromData.cjs +1 -1
  184. package/dist/StatCardFromData.cjs.map +1 -1
  185. package/dist/StatCardFromData.d.ts +11 -9
  186. package/dist/StatCardFromData.js +113 -116
  187. package/dist/StatCardFromData.js.map +1 -1
  188. package/dist/StripChart.cjs +1 -1
  189. package/dist/StripChart.cjs.map +1 -1
  190. package/dist/StripChart.d.ts +11 -9
  191. package/dist/StripChart.js +434 -435
  192. package/dist/StripChart.js.map +1 -1
  193. package/dist/ThreeDGlobe.cjs +1 -1
  194. package/dist/ThreeDGlobe.cjs.map +1 -1
  195. package/dist/ThreeDGlobe.d.ts +11 -3
  196. package/dist/ThreeDGlobe.js +143 -143
  197. package/dist/ThreeDGlobe.js.map +1 -1
  198. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  199. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  200. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  201. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  202. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  203. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  204. package/dist/TreeMapGraph.cjs +1 -1
  205. package/dist/TreeMapGraph.cjs.map +1 -1
  206. package/dist/TreeMapGraph.d.ts +11 -9
  207. package/dist/TreeMapGraph.js +369 -371
  208. package/dist/TreeMapGraph.js.map +1 -1
  209. package/dist/Types.d.ts +29 -16
  210. package/dist/UnitChart.cjs +1 -1
  211. package/dist/UnitChart.cjs.map +1 -1
  212. package/dist/UnitChart.d.ts +11 -5
  213. package/dist/UnitChart.js +118 -119
  214. package/dist/UnitChart.js.map +1 -1
  215. package/dist/WaterfallChart.cjs +1 -1
  216. package/dist/WaterfallChart.cjs.map +1 -1
  217. package/dist/WaterfallChart.d.ts +11 -9
  218. package/dist/WaterfallChart.js +306 -308
  219. package/dist/WaterfallChart.js.map +1 -1
  220. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  221. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  222. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  223. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  224. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  225. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  226. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  227. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  228. package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
  229. package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
  230. package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
  231. package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
  232. package/dist/index-BPyj_6hG.js +375 -0
  233. package/dist/index-BPyj_6hG.js.map +1 -0
  234. package/dist/index-DuLvdHo2.cjs +2 -0
  235. package/dist/index-DuLvdHo2.cjs.map +1 -0
  236. package/dist/index.cjs +1 -1
  237. package/dist/index.d.ts +108 -245
  238. package/dist/index.js +3 -3
  239. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  240. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  241. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  242. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  243. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  244. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  245. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  246. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/utils.cjs +1 -1
  249. package/dist/utils.d.ts +1 -1
  250. package/dist/utils.js +2 -2
  251. package/package.json +2 -2
  252. package/dist/GraphEl-B73N4RIA.js +0 -1906
  253. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  254. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  255. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  256. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  257. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  258. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  259. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  260. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  261. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  262. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  263. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  264. package/dist/index-B0Awa_de.js +0 -377
  265. package/dist/index-B0Awa_de.js.map +0 -1
  266. package/dist/index-CP8cmNzt.cjs +0 -2
  267. package/dist/index-CP8cmNzt.cjs.map +0 -1
  268. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  269. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  270. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  271. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -660,6 +660,9 @@ declare interface DataTableColumnDataType {
660
660
  align?: 'left' | 'right' | 'center';
661
661
  suffix?: string;
662
662
  prefix?: string;
663
+ locale?: string;
664
+ precision?: number;
665
+ padZeros?: boolean;
663
666
  columnWidth?: number;
664
667
  }
665
668
 
@@ -984,8 +987,6 @@ declare interface GraphSettingsDataType {
984
987
  footNote?: string | React.ReactNode;
985
988
  height?: number;
986
989
  width?: number;
987
- suffix?: string;
988
- prefix?: string;
989
990
  sources?: SourcesDataType[];
990
991
  barPadding?: number;
991
992
  showTicks?: boolean;
@@ -1015,7 +1016,14 @@ declare interface GraphSettingsDataType {
1015
1016
  barColors?: [string, string];
1016
1017
  centerGap?: number;
1017
1018
  columnData?: DataTableColumnDataType[];
1018
- mainText?: string;
1019
+ mainText?: string | {
1020
+ label: string;
1021
+ suffix?: string;
1022
+ prefix?: string;
1023
+ locale?: string;
1024
+ padZeros?: boolean;
1025
+ precision?: number;
1026
+ } | ReactElement;
1019
1027
  subNote?: string;
1020
1028
  radius?: number;
1021
1029
  strokeWidth?: number;
@@ -1171,16 +1179,6 @@ declare interface GraphSettingsDataType {
1171
1179
  colorLegendColors?: string[];
1172
1180
  colorLegendDomain?: string[];
1173
1181
  barAxisTitle?: string;
1174
- barSuffix?: string;
1175
- barPrefix?: string;
1176
- lineSuffix?: string;
1177
- linePrefix?: string;
1178
- xSuffix?: string;
1179
- xPrefix?: string;
1180
- ySuffix?: string;
1181
- yPrefix?: string;
1182
- lineSuffixes?: [string, string];
1183
- linePrefixes?: [string, string];
1184
1182
  allowDataDownloadOnDetail?: string | boolean;
1185
1183
  noOfItemsInAPage?: number;
1186
1184
  curveType?: CurveTypes;
@@ -1200,7 +1198,6 @@ declare interface GraphSettingsDataType {
1200
1198
  measureBarWidthFactor?: number;
1201
1199
  mapLegend?: string | React.ReactNode | MapLegendDataType[];
1202
1200
  dimmedOpacity?: number;
1203
- precision?: number;
1204
1201
  customLayers?: CustomLayerDataType[];
1205
1202
  dashedLines?: (string | number)[];
1206
1203
  dashSettings?: string[];
@@ -1237,7 +1234,14 @@ declare interface GraphSettingsDataType {
1237
1234
  showVoronoiTesselation?: boolean;
1238
1235
  mapOverlay?: MapOverlayDataType;
1239
1236
  useVoronoiInteraction?: boolean;
1240
- locale?: string;
1237
+ numberDisplayOptions?: NumberFormatOptions;
1238
+ leftLineNumberDisplayOptions?: NumberFormatOptions;
1239
+ rightLineNumberDisplayOptions?: NumberFormatOptions;
1240
+ barNumberDisplayOptions?: NumberFormatOptions;
1241
+ lineNumberDisplayOptions?: NumberFormatOptions;
1242
+ xNumberDisplayOptions?: NumberFormatOptions;
1243
+ yNumberDisplayOptions?: NumberFormatOptions;
1244
+ defaultColor?: string;
1241
1245
  }
1242
1246
 
1243
1247
  export declare function GraphTitle(props: Props_68): JSX.Element | null;
@@ -1301,10 +1305,6 @@ declare interface GroupedBarChartProps {
1301
1305
  barPadding?: number;
1302
1306
  /** Maximum thickness of bars */
1303
1307
  maxBarThickness?: number;
1304
- /** Prefix for values */
1305
- prefix?: string;
1306
- /** Suffix for values */
1307
- suffix?: string;
1308
1308
  /** Maximum value for the chart */
1309
1309
  maxValue?: number;
1310
1310
  /** Minimum value for the chart */
@@ -1339,10 +1339,8 @@ declare interface GroupedBarChartProps {
1339
1339
  barAxisTitle?: string;
1340
1340
  /** Defines how “NA” values should be displayed/labelled in the graph */
1341
1341
  naLabel?: string;
1342
- /** Specifies the number of decimal places to display in the value. */
1343
- precision?: number;
1344
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1345
- locale?: string;
1342
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
1343
+ numberDisplayOptions?: NumberFormatOptions;
1346
1344
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1347
1345
  customLayers?: CustomLayerDataType[];
1348
1346
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -1458,7 +1456,7 @@ declare interface InfoBoxDataType {
1458
1456
  description?: string | React.ReactNode;
1459
1457
  }
1460
1458
 
1461
- declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'jp' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
1459
+ declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'ja' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
1462
1460
 
1463
1461
  declare type LightConfig = AmbientLightConfig | DirectionalLightConfig | PointLightConfig | SpotLightConfig;
1464
1462
 
@@ -1519,6 +1517,14 @@ declare interface MultiLineChartDataType {
1519
1517
  data?: object;
1520
1518
  }
1521
1519
 
1520
+ declare interface NumberFormatOptions {
1521
+ locale?: string;
1522
+ precision?: number;
1523
+ prefix?: string;
1524
+ suffix?: string;
1525
+ padZeros?: boolean;
1526
+ }
1527
+
1522
1528
  /**
1523
1529
  * Formats a number into a human-readable string, optionally with prefix/suffix
1524
1530
  * and locale-aware formatting.
@@ -1529,7 +1535,7 @@ declare interface MultiLineChartDataType {
1529
1535
  * - Prefix and suffix
1530
1536
  * - NA fallback
1531
1537
  */
1532
- export declare function numberFormattingFunction(value: number | string | undefined | null, naLabel?: string, precision?: number, prefix?: string, suffix?: string, locale?: string): string;
1538
+ export declare function numberFormattingFunction(value: number | string | undefined | null, naLabel?: string, precision?: number, prefix?: string, suffix?: string, locale?: string, padZeros?: boolean): string;
1533
1539
 
1534
1540
  /**
1535
1541
  * Represents a parameter to be embedded in a URL.
@@ -1642,10 +1648,6 @@ declare interface Props {
1642
1648
  minBarThickness?: number;
1643
1649
  /** Maximum number of bars shown in the graph */
1644
1650
  maxNumberOfBars?: number;
1645
- /** Prefix for values */
1646
- prefix?: string;
1647
- /** Suffix for values */
1648
- suffix?: string;
1649
1651
  /** Maximum value for the chart */
1650
1652
  maxValue?: number;
1651
1653
  /** Minimum value for the chart */
@@ -1684,12 +1686,10 @@ declare interface Props {
1684
1686
  trackColor?: string;
1685
1687
  /** Toggles if data point which are undefined or has value null are filtered out. */
1686
1688
  filterNA?: boolean;
1689
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
1690
+ numberDisplayOptions?: NumberFormatOptions;
1687
1691
  /** Toggles if the graph animates in when loaded. */
1688
1692
  animate?: boolean | AnimateDataType;
1689
- /** Specifies the number of decimal places to display in the value. */
1690
- precision?: number;
1691
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1692
- locale?: string;
1693
1693
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1694
1694
  customLayers?: CustomLayerDataType[];
1695
1695
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -1761,10 +1761,6 @@ declare interface Props_10 {
1761
1761
  topMargin?: number;
1762
1762
  /** Bottom margin of the graph */
1763
1763
  bottomMargin?: number;
1764
- /** Prefix for values */
1765
- prefix?: string;
1766
- /** Suffix for values */
1767
- suffix?: string;
1768
1764
  /** Maximum value for the chart */
1769
1765
  maxValue?: number;
1770
1766
  /** Minimum value for the chart */
@@ -1811,10 +1807,8 @@ declare interface Props_10 {
1811
1807
  customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];
1812
1808
  /** Curve type for the line */
1813
1809
  curveType?: CurveTypes;
1814
- /** Specifies the number of decimal places to display in the value. */
1815
- precision?: number;
1816
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1817
- locale?: string;
1810
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
1811
+ numberDisplayOptions?: NumberFormatOptions;
1818
1812
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
1819
1813
  customLayers?: CustomLayerDataType[];
1820
1814
  /** Enable graph download option as png */
@@ -1878,10 +1872,6 @@ declare interface Props_11 {
1878
1872
  topMargin?: number;
1879
1873
  /** Bottom margin of the graph */
1880
1874
  bottomMargin?: number;
1881
- /** Prefix for values */
1882
- prefix?: string;
1883
- /** Suffix for values */
1884
- suffix?: string;
1885
1875
  /** Maximum value for the chart */
1886
1876
  maxValue?: number;
1887
1877
  /** Minimum value for the chart */
@@ -1918,10 +1908,8 @@ declare interface Props_11 {
1918
1908
  customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];
1919
1909
  /** Curve type for the line */
1920
1910
  curveType?: CurveTypes;
1921
- /** Specifies the number of decimal places to display in the value. */
1922
- precision?: number;
1923
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
1924
- locale?: string;
1911
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
1912
+ numberDisplayOptions?: NumberFormatOptions;
1925
1913
  /** Defines how “NA” values should be displayed/labelled in the graph */
1926
1914
  naLabel?: string;
1927
1915
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
@@ -2096,8 +2084,10 @@ declare interface Props_13 {
2096
2084
  customLayers?: CustomLayerDataType[];
2097
2085
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2098
2086
  timeline?: TimelineDataType;
2099
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2100
- locale?: string;
2087
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
2088
+ xNumberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
2089
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
2090
+ yNumberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
2101
2091
  /** Enable graph download option as png */
2102
2092
  graphDownload?: boolean;
2103
2093
  /** Enable data download option as a csv */
@@ -2205,8 +2195,8 @@ declare interface Props_14 {
2205
2195
  customLayers?: CustomLayerDataType[];
2206
2196
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2207
2197
  timeline?: TimelineDataType;
2208
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2209
- locale?: string;
2198
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
2199
+ numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
2210
2200
  /** Enable graph download option as png */
2211
2201
  graphDownload?: boolean;
2212
2202
  /** Enable data download option as a csv */
@@ -2435,8 +2425,8 @@ declare interface Props_16 {
2435
2425
  mapProperty?: string;
2436
2426
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
2437
2427
  timeline?: TimelineDataType;
2438
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2439
- locale?: string;
2428
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
2429
+ numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
2440
2430
  /** Enable graph download option as png */
2441
2431
  graphDownload?: boolean;
2442
2432
  /** Enable data download option as a csv */
@@ -2522,8 +2512,8 @@ declare interface Props_17 {
2522
2512
  scaleType?: Exclude<ScaleDataType, 'linear'>;
2523
2513
  /** Toggle visibility of color scale. */
2524
2514
  showColorScale?: boolean;
2525
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2526
- locale?: string;
2515
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
2516
+ numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
2527
2517
  /** Toggle if color scale is collapsed by default. */
2528
2518
  collapseColorScaleByDefault?: boolean;
2529
2519
  /** The max altitude of the atmosphere, in terms of globe radius units. */
@@ -2700,10 +2690,6 @@ declare interface Props_2 {
2700
2690
  topMargin?: number;
2701
2691
  /** Bottom margin of the graph */
2702
2692
  bottomMargin?: number;
2703
- /** Prefix for values */
2704
- prefix?: string;
2705
- /** Suffix for values */
2706
- suffix?: string;
2707
2693
  /** Maximum value mapped to the radius chart */
2708
2694
  maxRadiusValue?: number;
2709
2695
  /** If true, the graph will be rendered in a circle layout */
@@ -2722,10 +2708,8 @@ declare interface Props_2 {
2722
2708
  highlightedDataPoints?: (string | number)[];
2723
2709
  /** Defines the opacity of the non-highlighted data */
2724
2710
  dimmedOpacity?: number;
2725
- /** Specifies the number of decimal places to display in the value. */
2726
- precision?: number;
2727
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2728
- locale?: string;
2711
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
2712
+ numberDisplayOptions?: NumberFormatOptions;
2729
2713
  /** Enable graph download option as png */
2730
2714
  graphDownload?: boolean;
2731
2715
  /** Enable data download option as a csv */
@@ -2817,6 +2801,8 @@ declare interface Props_21 {
2817
2801
  colors?: string | string[];
2818
2802
  /** Domain of colors for the graph */
2819
2803
  colorDomain?: string[];
2804
+ /** Color for circle if the label doesn't exist in `colorDomain`. */
2805
+ defaultColor?: string;
2820
2806
  /** Title for the color legend */
2821
2807
  colorLegendTitle?: string;
2822
2808
  /** Background color of the graph */
@@ -2843,14 +2829,6 @@ declare interface Props_21 {
2843
2829
  topMargin?: number;
2844
2830
  /** Bottom margin of the graph */
2845
2831
  bottomMargin?: number;
2846
- /** Prefix for values on x-axis */
2847
- xPrefix?: string;
2848
- /** Suffix for values on x-axis */
2849
- xSuffix?: string;
2850
- /** Prefix for values on y-axis */
2851
- yPrefix?: string;
2852
- /** Suffix for values on y-axis */
2853
- ySuffix?: string;
2854
2832
  /** Maximum value for the x-axis */
2855
2833
  maxXValue?: number;
2856
2834
  /** Minimum value for the x-axis */
@@ -2899,10 +2877,10 @@ declare interface Props_21 {
2899
2877
  labelColor?: string;
2900
2878
  /** Toggles if the graph animates in when loaded. */
2901
2879
  animate?: boolean | AnimateDataType;
2902
- /** Specifies the number of decimal places to display in the value. */
2903
- precision?: number;
2904
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
2905
- locale?: string;
2880
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
2881
+ xNumberDisplayOptions?: NumberFormatOptions;
2882
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
2883
+ yNumberDisplayOptions?: NumberFormatOptions;
2906
2884
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
2907
2885
  customLayers?: CustomLayerDataType[];
2908
2886
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -3113,6 +3091,8 @@ declare interface Props_23 {
3113
3091
  hideAxisLine?: boolean;
3114
3092
  /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */
3115
3093
  showColorScale?: boolean;
3094
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3095
+ numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
3116
3096
  /** Data points to highlight. Use the label value from data to highlight the data point */
3117
3097
  highlightedDataPoints?: (string | number)[];
3118
3098
  /** Defines the opacity of the non-highlighted data */
@@ -3129,10 +3109,6 @@ declare interface Props_23 {
3129
3109
  animate?: boolean | AnimateDataType;
3130
3110
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
3131
3111
  timeline?: TimelineDataType;
3132
- /** Specifies the number of decimal places to display in the value. */
3133
- precision?: number;
3134
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3135
- locale?: string;
3136
3112
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3137
3113
  customLayers?: CustomLayerDataType[];
3138
3114
  /** Enable graph download option as png */
@@ -3200,10 +3176,6 @@ declare interface Props_24 {
3200
3176
  topMargin?: number;
3201
3177
  /** Bottom margin of the graph */
3202
3178
  bottomMargin?: number;
3203
- /** Prefix for values */
3204
- prefix?: string;
3205
- /** Suffix for values */
3206
- suffix?: string;
3207
3179
  /** Maximum value for the chart */
3208
3180
  maxValue?: number;
3209
3181
  /** Minimum value for the chart */
@@ -3228,10 +3200,8 @@ declare interface Props_24 {
3228
3200
  customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];
3229
3201
  /** Curve type for the line */
3230
3202
  curveType?: CurveTypes;
3231
- /** Specifies the number of decimal places to display in the value. */
3232
- precision?: number;
3233
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3234
- locale?: string;
3203
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3204
+ numberDisplayOptions?: NumberFormatOptions;
3235
3205
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3236
3206
  customLayers?: CustomLayerDataType[];
3237
3207
  /** Toggles if the graph animates in when loaded. */
@@ -3281,18 +3251,14 @@ declare interface Props_25 {
3281
3251
  styles?: StyleObject;
3282
3252
  /** Custom class names */
3283
3253
  classNames?: ClassNameObject;
3284
- /** Prefix for values */
3285
- prefix?: string;
3286
- /** Suffix for values */
3287
- suffix?: string;
3288
- /** Specifies the number of decimal places to display in the value. */
3289
- precision?: number;
3254
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3255
+ numberDisplayOptions?: NumberFormatOptions;
3256
+ /** Defines how “NA” values should be displayed/labelled in the graph */
3257
+ naLabel?: string;
3290
3258
  /** Main text */
3291
3259
  value: number | string;
3292
3260
  /** Sub text next to main text */
3293
3261
  year?: number | string;
3294
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3295
- locale?: string;
3296
3262
  /** Language setting */
3297
3263
  language?: Languages;
3298
3264
  /** Color theme */
@@ -3332,22 +3298,16 @@ declare interface Props_26 {
3332
3298
  styles?: StyleObject;
3333
3299
  /** Custom class names */
3334
3300
  classNames?: ClassNameObject;
3335
- /** Prefix for values */
3336
- prefix?: string;
3337
- /** Suffix for values */
3338
- suffix?: string;
3339
3301
  /** Sub text next to main text */
3340
3302
  year?: number | string;
3341
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3342
- locale?: string;
3303
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3304
+ numberDisplayOptions?: NumberFormatOptions;
3343
3305
  /** Defines how “NA” values should be displayed/labelled in the graph */
3344
3306
  naLabel?: string;
3345
3307
  /** Data points that need to counted for aggregation. */
3346
3308
  countOnly?: (string | number)[];
3347
3309
  /** 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. */
3348
3310
  aggregationMethod?: 'count' | 'max' | 'min' | 'average' | 'sum';
3349
- /** Specifies the number of decimal places to display in the value. */
3350
- precision?: number;
3351
3311
  /** Language setting */
3352
3312
  language?: Languages;
3353
3313
  /** Color theme */
@@ -3400,10 +3360,6 @@ declare interface Props_27 {
3400
3360
  /** Bottom margin of the graph */
3401
3361
  bottomMargin?: number;
3402
3362
  /** Maximum radius of the circle */
3403
- /** Prefix for values */
3404
- prefix?: string;
3405
- /** Suffix for values */
3406
- suffix?: string;
3407
3363
  /** Toggle visibility of labels */
3408
3364
  showLabels?: boolean;
3409
3365
  /** Toggle visibility of values */
@@ -3418,10 +3374,8 @@ declare interface Props_27 {
3418
3374
  dimmedOpacity?: number;
3419
3375
  /** Toggles if the graph animates in when loaded. */
3420
3376
  animate?: boolean | AnimateDataType;
3421
- /** Specifies the number of decimal places to display in the value. */
3422
- precision?: number;
3423
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3424
- locale?: string;
3377
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3378
+ numberDisplayOptions?: NumberFormatOptions;
3425
3379
  /** Enable graph download option as png */
3426
3380
  graphDownload?: boolean;
3427
3381
  /** Enable data download option as a csv */
@@ -3491,16 +3445,14 @@ declare interface Props_28 {
3491
3445
  animate?: boolean | AnimateDataType;
3492
3446
  /** Toggle visibility of color scale */
3493
3447
  showColorScale?: boolean;
3494
- /** Specifies the number of decimal places to display in the value. */
3495
- precision?: number;
3448
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3449
+ numberDisplayOptions?: NumberFormatOptions;
3496
3450
  /** Defines how “NA” values should be displayed/labelled in the graph */
3497
3451
  naLabel?: string;
3498
3452
  /** Enable graph download option as png */
3499
3453
  graphDownload?: boolean;
3500
3454
  /** Enable data download option as a csv */
3501
3455
  dataDownload?: boolean;
3502
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3503
- locale?: string;
3504
3456
  /** Language setting */
3505
3457
  language?: Languages;
3506
3458
  /** Color theme */
@@ -3554,10 +3506,6 @@ declare interface Props_29 {
3554
3506
  bottomMargin?: number;
3555
3507
  /** Toggles the background to fill the container. This only works if the width of the graph is defined. */
3556
3508
  fillContainer?: boolean;
3557
- /** Prefix for values */
3558
- prefix?: string;
3559
- /** Suffix for values */
3560
- suffix?: string;
3561
3509
  /** Maximum value for the chart */
3562
3510
  truncateBy?: number;
3563
3511
  /** Reference values for comparison */
@@ -3577,10 +3525,8 @@ declare interface Props_29 {
3577
3525
  animate?: boolean | AnimateDataType;
3578
3526
  /** Domain for the colors in the cell. */
3579
3527
  colorDomain: number[] | string[];
3580
- /** Specifies the number of decimal places to display in the value. */
3581
- precision?: number;
3582
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3583
- locale?: string;
3528
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3529
+ numberDisplayOptions?: NumberFormatOptions;
3584
3530
  /** Defines how “NA” values should be displayed/labelled in the graph */
3585
3531
  naLabel?: string;
3586
3532
  /** Enable graph download option as png */
@@ -3640,10 +3586,6 @@ declare interface Props_3 {
3640
3586
  padding?: string;
3641
3587
  /** Radius of the donut chart */
3642
3588
  radius?: number;
3643
- /** Prefix for values */
3644
- prefix?: string;
3645
- /** Suffix for values */
3646
- suffix?: string;
3647
3589
  /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */
3648
3590
  showColorScale?: boolean;
3649
3591
  /** Max width of the color scale as a css property */
@@ -3659,11 +3601,12 @@ declare interface Props_3 {
3659
3601
  label: string;
3660
3602
  suffix?: string;
3661
3603
  prefix?: string;
3604
+ locale?: string;
3605
+ padZeros?: boolean;
3606
+ precision?: number;
3662
3607
  } | ReactElement;
3663
3608
  /** Small text at the center of the donut chart */
3664
3609
  subNote?: string;
3665
- /** Specifies the number of decimal places to display in the value. */
3666
- precision?: number;
3667
3610
  /** Track color (i.e. the color of the donut chart's background) of the donut chart */
3668
3611
  trackColor?: string;
3669
3612
  /** Enable graph download option as png */
@@ -3672,8 +3615,8 @@ declare interface Props_3 {
3672
3615
  dataDownload?: boolean;
3673
3616
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
3674
3617
  resetSelectionOnDoubleClick?: boolean;
3675
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3676
- locale?: string;
3618
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3619
+ numberDisplayOptions?: NumberFormatOptions;
3677
3620
  /** Defines how “NA” values should be displayed/labelled in the graph */
3678
3621
  naLabel?: string;
3679
3622
  /** 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 */
@@ -3721,8 +3664,6 @@ declare interface Props_30 {
3721
3664
  padding?: string;
3722
3665
  /** Column settings for each column shown in the table. */
3723
3666
  columnData: DataTableColumnDataType[];
3724
- /** Specifies the number of decimal places to display in the value. */
3725
- precision?: number;
3726
3667
  /** Defines how “NA” values should be displayed/labelled in the graph */
3727
3668
  naLabel?: string;
3728
3669
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
@@ -3735,8 +3676,6 @@ declare interface Props_30 {
3735
3676
  theme?: 'light' | 'dark';
3736
3677
  /** Unique ID for the graph */
3737
3678
  graphID?: string;
3738
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3739
- locale?: string;
3740
3679
  }
3741
3680
 
3742
3681
  declare interface Props_31 {
@@ -3851,10 +3790,6 @@ declare interface Props_32 {
3851
3790
  topMargin?: number;
3852
3791
  /** Bottom margin of the graph */
3853
3792
  bottomMargin?: number;
3854
- /** Prefix for values */
3855
- prefix?: string;
3856
- /** Suffix for values */
3857
- suffix?: string;
3858
3793
  /** Maximum value for the chart */
3859
3794
  maxValue?: number;
3860
3795
  /** Minimum value for the chart */
@@ -3879,10 +3814,8 @@ declare interface Props_32 {
3879
3814
  animate?: boolean | AnimateDataType;
3880
3815
  /** Toggles if the graph show the min and max value of the data. */
3881
3816
  showDataMinMax?: boolean;
3882
- /** Specifies the number of decimal places to display in the value. */
3883
- precision?: number;
3884
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3885
- locale?: string;
3817
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3818
+ numberDisplayOptions?: NumberFormatOptions;
3886
3819
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3887
3820
  customLayers?: CustomLayerDataType[];
3888
3821
  /** Enable graph download option as png */
@@ -3952,14 +3885,6 @@ declare interface Props_33 {
3952
3885
  bottomMargin?: number;
3953
3886
  /** Padding between bars */
3954
3887
  barPadding?: number;
3955
- /** Suffix for values of the lines */
3956
- lineSuffix?: string;
3957
- /** Suffix for values of the bars */
3958
- barSuffix?: string;
3959
- /** Prefix for values of the lines */
3960
- linePrefix?: string;
3961
- /** Prefix for values of the bars */
3962
- barPrefix?: string;
3963
3888
  /** Truncate labels by specified length */
3964
3889
  truncateBy?: number;
3965
3890
  /** Number of ticks on the axis */
@@ -3984,10 +3909,10 @@ declare interface Props_33 {
3984
3909
  naLabel?: string;
3985
3910
  /** Toggles if the graph animates in when loaded. */
3986
3911
  animate?: boolean | AnimateDataType;
3987
- /** Specifies the number of decimal places to display in the value. */
3988
- precision?: number;
3989
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
3990
- locale?: string;
3912
+ /** Configuration options for lines controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3913
+ lineNumberDisplayOptions?: NumberFormatOptions;
3914
+ /** Configuration options for bars controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
3915
+ barNumberDisplayOptions?: NumberFormatOptions;
3991
3916
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
3992
3917
  customLayers?: CustomLayerDataType[];
3993
3918
  /** Enable graph download option as png */
@@ -4057,10 +3982,6 @@ declare interface Props_34 {
4057
3982
  barPadding?: number;
4058
3983
  /** Spacing between the left and right bars */
4059
3984
  centerGap?: number;
4060
- /** Prefix for values */
4061
- prefix?: string;
4062
- /** Suffix for values */
4063
- suffix?: string;
4064
3985
  /** Maximum value for the chart */
4065
3986
  maxValue?: number;
4066
3987
  /** Minimum value for the chart */
@@ -4087,10 +4008,8 @@ declare interface Props_34 {
4087
4008
  naLabel?: string;
4088
4009
  /** Toggles if the graph animates in when loaded. */
4089
4010
  animate?: boolean | AnimateDataType;
4090
- /** Specifies the number of decimal places to display in the value. */
4091
- precision?: number;
4092
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4093
- locale?: string;
4011
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4012
+ numberDisplayOptions?: NumberFormatOptions;
4094
4013
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4095
4014
  customLayers?: CustomLayerDataType[];
4096
4015
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -4184,10 +4103,8 @@ declare interface Props_35 {
4184
4103
  showTicks?: boolean;
4185
4104
  /** Toggle visibility of axis line for the main axis. Only applicable if `graphType` is `barGraph`. */
4186
4105
  hideAxisLine?: boolean;
4187
- /** Specifies the number of decimal places to display in the value. */
4188
- precision?: number;
4189
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4190
- locale?: string;
4106
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4107
+ numberDisplayOptions?: NumberFormatOptions;
4191
4108
  /** Enable graph download option as png */
4192
4109
  graphDownload?: boolean;
4193
4110
  /** Enable data download option as a csv */
@@ -4259,10 +4176,6 @@ declare interface Props_36 {
4259
4176
  minBarThickness?: number;
4260
4177
  /** Maximum number of bars shown in the graph */
4261
4178
  maxNumberOfBars?: number;
4262
- /** Prefix for values */
4263
- prefix?: string;
4264
- /** Suffix for values */
4265
- suffix?: string;
4266
4179
  /** Maximum value for the chart */
4267
4180
  maxValue?: number;
4268
4181
  /** Minimum value for the chart */
@@ -4299,10 +4212,8 @@ declare interface Props_36 {
4299
4212
  filterNA?: boolean;
4300
4213
  /** Toggles if the graph animates in when loaded. */
4301
4214
  animate?: boolean | AnimateDataType;
4302
- /** Specifies the number of decimal places to display in the value. */
4303
- precision?: number;
4304
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4305
- locale?: string;
4215
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4216
+ numberDisplayOptions?: NumberFormatOptions;
4306
4217
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4307
4218
  customLayers?: CustomLayerDataType[];
4308
4219
  /** Enable graph download option as png */
@@ -4376,10 +4287,6 @@ declare interface Props_37 {
4376
4287
  nodePadding?: number;
4377
4288
  /** Thickness of each node */
4378
4289
  nodeWidth?: number;
4379
- /** Prefix for values */
4380
- prefix?: string;
4381
- /** Suffix for values */
4382
- suffix?: string;
4383
4290
  /** Truncate labels by specified length */
4384
4291
  truncateBy?: number;
4385
4292
  /** Title of the source */
@@ -4400,10 +4307,8 @@ declare interface Props_37 {
4400
4307
  sortNodes?: 'asc' | 'desc' | 'mostReadable' | 'none';
4401
4308
  /** Toggles if the graph animates in when loaded. */
4402
4309
  animate?: boolean | AnimateDataType;
4403
- /** Specifies the number of decimal places to display in the value. */
4404
- precision?: number;
4405
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4406
- locale?: string;
4310
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4311
+ numberDisplayOptions?: NumberFormatOptions;
4407
4312
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4408
4313
  customLayers?: CustomLayerDataType[];
4409
4314
  /** Enable graph download option as png */
@@ -4503,10 +4408,8 @@ declare interface Props_38 {
4503
4408
  curveType?: 'linear' | 'curve';
4504
4409
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
4505
4410
  resetSelectionOnDoubleClick?: boolean;
4506
- /** Specifies the number of decimal places to display in the value. */
4507
- precision?: number;
4508
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4509
- locale?: string;
4411
+ /** Configuration options for controlling number formatting, localization, precision, and zero padding. */
4412
+ numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
4510
4413
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4511
4414
  customLayers?: CustomLayerDataType[];
4512
4415
  /** Enable graph download option as png */
@@ -4605,10 +4508,6 @@ declare interface Props_4 {
4605
4508
  maxNumberOfBars?: number;
4606
4509
  /** Radius of the dots */
4607
4510
  radius?: number;
4608
- /** Prefix for values */
4609
- prefix?: string;
4610
- /** Suffix for values */
4611
- suffix?: string;
4612
4511
  /** Maximum value for the chart */
4613
4512
  maxValue?: number;
4614
4513
  /** Minimum value for the chart */
@@ -4649,10 +4548,8 @@ declare interface Props_4 {
4649
4548
  filterNA?: boolean;
4650
4549
  /** Toggles if the graph animates in when loaded. */
4651
4550
  animate?: boolean | AnimateDataType;
4652
- /** Specifies the number of decimal places to display in the value. */
4653
- precision?: number;
4654
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4655
- locale?: string;
4551
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4552
+ numberDisplayOptions?: NumberFormatOptions;
4656
4553
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4657
4554
  customLayers?: CustomLayerDataType[];
4658
4555
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */
@@ -4880,10 +4777,6 @@ declare interface Props_5 {
4880
4777
  topMargin?: number;
4881
4778
  /** Bottom margin of the graph */
4882
4779
  bottomMargin?: number;
4883
- /** Prefix for values */
4884
- prefix?: string;
4885
- /** Suffix for values */
4886
- suffix?: string;
4887
4780
  /** Maximum value for the radius of the circle */
4888
4781
  maxRadiusValue?: number;
4889
4782
  /** Minimum value for position of the circle */
@@ -4910,10 +4803,8 @@ declare interface Props_5 {
4910
4803
  dimmedOpacity?: number;
4911
4804
  /** Maximum radius of the circles */
4912
4805
  radius?: number;
4913
- /** Specifies the number of decimal places to display in the value. */
4914
- precision?: number;
4915
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
4916
- locale?: string;
4806
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
4807
+ numberDisplayOptions?: NumberFormatOptions;
4917
4808
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
4918
4809
  customLayers?: CustomLayerDataType[];
4919
4810
  /** Enable graph download option as png */
@@ -5048,10 +4939,6 @@ declare interface Props_6 {
5048
4939
  topMargin?: number;
5049
4940
  /** Bottom margin of the graph */
5050
4941
  bottomMargin?: number;
5051
- /** Prefix for values of the lines */
5052
- linePrefixes?: [string, string];
5053
- /** Suffix for values of the lines */
5054
- lineSuffixes?: [string, string];
5055
4942
  /** Maximum value of the date for the chart */
5056
4943
  maxDate?: string | number;
5057
4944
  /** Minimum value of the date for the chart */
@@ -5082,10 +4969,10 @@ declare interface Props_6 {
5082
4969
  highlightAreaSettings?: HighlightAreaSettingsDataType[];
5083
4970
  /** Curve type for the line */
5084
4971
  curveType?: CurveTypes;
5085
- /** Specifies the number of decimal places to display in the value. */
5086
- precision?: number;
5087
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5088
- locale?: string;
4972
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding for left line. */
4973
+ leftLineNumberDisplayOptions?: NumberFormatOptions;
4974
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding for right line. */
4975
+ rightLineNumberDisplayOptions?: NumberFormatOptions;
5089
4976
  /** Defines how “NA” values should be displayed/labelled in the graph */
5090
4977
  naLabel?: string;
5091
4978
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
@@ -5250,10 +5137,6 @@ declare interface Props_7 {
5250
5137
  topMargin?: number;
5251
5138
  /** Bottom margin of the graph */
5252
5139
  bottomMargin?: number;
5253
- /** Prefix for values */
5254
- prefix?: string;
5255
- /** Suffix for values */
5256
- suffix?: string;
5257
5140
  /** Maximum value for the chart */
5258
5141
  maxValue?: number;
5259
5142
  /** Minimum value for the chart */
@@ -5298,10 +5181,8 @@ declare interface Props_7 {
5298
5181
  regressionLine?: boolean | string;
5299
5182
  /** Curve type for the line */
5300
5183
  curveType?: CurveTypes;
5301
- /** Specifies the number of decimal places to display in the value. */
5302
- precision?: number;
5303
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5304
- locale?: string;
5184
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
5185
+ numberDisplayOptions?: NumberFormatOptions;
5305
5186
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5306
5187
  customLayers?: CustomLayerDataType[];
5307
5188
  /** Enable graph download option as png */
@@ -5359,10 +5240,6 @@ declare interface Props_8 {
5359
5240
  topMargin?: number;
5360
5241
  /** Bottom margin of the graph */
5361
5242
  bottomMargin?: number;
5362
- /** Prefix for values */
5363
- prefix?: string;
5364
- /** Suffix for values */
5365
- suffix?: string;
5366
5243
  /** Maximum value for the chart */
5367
5244
  maxValue?: number;
5368
5245
  /** Minimum value for the chart */
@@ -5399,10 +5276,8 @@ declare interface Props_8 {
5399
5276
  regressionLine?: boolean | string;
5400
5277
  /** Curve type for the line */
5401
5278
  curveType?: CurveTypes;
5402
- /** Specifies the number of decimal places to display in the value. */
5403
- precision?: number;
5404
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5405
- locale?: string;
5279
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
5280
+ numberDisplayOptions?: NumberFormatOptions;
5406
5281
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5407
5282
  customLayers?: CustomLayerDataType[];
5408
5283
  /** Enable graph download option as png */
@@ -5470,10 +5345,6 @@ declare interface Props_9 {
5470
5345
  topMargin?: number;
5471
5346
  /** Bottom margin of the graph */
5472
5347
  bottomMargin?: number;
5473
- /** Prefix for values */
5474
- prefix?: string;
5475
- /** Suffix for values */
5476
- suffix?: string;
5477
5348
  /** Maximum value for the chart */
5478
5349
  maxValue?: number;
5479
5350
  /** Minimum value for the chart */
@@ -5516,10 +5387,8 @@ declare interface Props_9 {
5516
5387
  customHighlightAreaSettings?: CustomHighlightAreaSettingsDataType[];
5517
5388
  /** Curve type for the line */
5518
5389
  curveType?: CurveTypes;
5519
- /** Specifies the number of decimal places to display in the value. */
5520
- precision?: number;
5521
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5522
- locale?: string;
5390
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
5391
+ numberDisplayOptions?: NumberFormatOptions;
5523
5392
  /** Defines how “NA” values should be displayed/labelled in the graph */
5524
5393
  naLabel?: string;
5525
5394
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
@@ -5729,10 +5598,6 @@ declare interface StackedBarChartProps {
5729
5598
  minBarThickness?: number;
5730
5599
  /** Maximum number of bars shown in the graph */
5731
5600
  maxNumberOfBars?: number;
5732
- /** Prefix for values */
5733
- prefix?: string;
5734
- /** Suffix for values */
5735
- suffix?: string;
5736
5601
  /** Maximum value for the chart */
5737
5602
  maxValue?: number;
5738
5603
  /** Minimum value for the chart */
@@ -5757,6 +5622,8 @@ declare interface StackedBarChartProps {
5757
5622
  barAxisTitle?: string;
5758
5623
  /** Defines how “NA” values should be displayed/labelled in the graph */
5759
5624
  naLabel?: string;
5625
+ /** Configuration options for controlling number formatting, localization, prefixes/suffixes, precision, and zero padding. */
5626
+ numberDisplayOptions?: NumberFormatOptions;
5760
5627
  /** Parameter to sort the data. If a number is provided, it refers to the index of the size array to determine which value to sort by. If set to total, it sorts by the sum of all the values. */
5761
5628
  sortParameter?: number | 'total';
5762
5629
  /** Sorting order for data. This is overwritten by labelOrder prop. */
@@ -5765,10 +5632,6 @@ declare interface StackedBarChartProps {
5765
5632
  filterNA?: boolean;
5766
5633
  /** Toggles if the graph animates in when loaded. */
5767
5634
  animate?: boolean | AnimateDataType;
5768
- /** Specifies the number of decimal places to display in the value. */
5769
- precision?: number;
5770
- /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
5771
- locale?: string;
5772
5635
  /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
5773
5636
  customLayers?: CustomLayerDataType[];
5774
5637
  /** Configures playback and slider controls for animating the chart over time. The data must have a key date for it to work properly. */