@fluentui/react-charts 0.0.0-nightly-20250423-1342.1 → 0.0.0-nightly-20250424-0405.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 (483) hide show
  1. package/CHANGELOG.md +16 -16
  2. package/dist/index.d.ts +3305 -0
  3. package/lib/AreaChart.js +1 -0
  4. package/lib/AreaChart.js.map +1 -0
  5. package/lib/CartesianChart.js +1 -0
  6. package/lib/CartesianChart.js.map +1 -0
  7. package/lib/DeclarativeChart.js +1 -0
  8. package/lib/DeclarativeChart.js.map +1 -0
  9. package/lib/DonutChart.js +1 -0
  10. package/lib/DonutChart.js.map +1 -0
  11. package/lib/GaugeChart.js +1 -0
  12. package/lib/GaugeChart.js.map +1 -0
  13. package/lib/GroupedVerticalBarChart.js +1 -0
  14. package/lib/GroupedVerticalBarChart.js.map +1 -0
  15. package/lib/HeatMapChart.js +1 -0
  16. package/lib/HeatMapChart.js.map +1 -0
  17. package/lib/HorizontalBarChart.js +1 -0
  18. package/lib/HorizontalBarChart.js.map +1 -0
  19. package/lib/HorizontalBarChartWithAxis.js +1 -0
  20. package/lib/HorizontalBarChartWithAxis.js.map +1 -0
  21. package/lib/Legends.js +1 -0
  22. package/lib/Legends.js.map +1 -0
  23. package/lib/LineChart.js +1 -0
  24. package/lib/LineChart.js.map +1 -0
  25. package/lib/Popover.js +1 -0
  26. package/lib/Popover.js.map +1 -0
  27. package/lib/ResponsiveContainer.js +1 -0
  28. package/lib/ResponsiveContainer.js.map +1 -0
  29. package/lib/SankeyChart.js +1 -0
  30. package/lib/SankeyChart.js.map +1 -0
  31. package/lib/ScatterChart.js +1 -0
  32. package/lib/ScatterChart.js.map +1 -0
  33. package/lib/Sparkline.js +1 -0
  34. package/lib/Sparkline.js.map +1 -0
  35. package/lib/VerticalBarChart.js +1 -0
  36. package/lib/VerticalBarChart.js.map +1 -0
  37. package/lib/VerticalStackedBarChart.js +1 -0
  38. package/lib/VerticalStackedBarChart.js.map +1 -0
  39. package/lib/components/AreaChart/AreaChart.js +775 -0
  40. package/lib/components/AreaChart/AreaChart.js.map +1 -0
  41. package/lib/components/AreaChart/AreaChart.types.js +4 -0
  42. package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
  43. package/lib/components/AreaChart/index.js +3 -0
  44. package/lib/components/AreaChart/index.js.map +1 -0
  45. package/lib/components/AreaChart/useAreaChartStyles.styles.js +55 -0
  46. package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -0
  47. package/lib/components/CommonComponents/CartesianChart.js +478 -0
  48. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  49. package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
  50. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  51. package/lib/components/CommonComponents/ChartPopover.js +187 -0
  52. package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
  53. package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
  54. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
  55. package/lib/components/CommonComponents/index.js +4 -0
  56. package/lib/components/CommonComponents/index.js.map +1 -0
  57. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +113 -0
  58. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  59. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +167 -0
  60. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  61. package/lib/components/DeclarativeChart/DeclarativeChart.js +197 -0
  62. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  63. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +811 -0
  64. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  65. package/lib/components/DeclarativeChart/imageExporter.js +221 -0
  66. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
  67. package/lib/components/DeclarativeChart/index.js +1 -0
  68. package/lib/components/DeclarativeChart/index.js.map +1 -0
  69. package/lib/components/DonutChart/Arc/Arc.js +110 -0
  70. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  71. package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
  72. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  73. package/lib/components/DonutChart/Arc/index.js +2 -0
  74. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  75. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
  76. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  77. package/lib/components/DonutChart/DonutChart.js +291 -0
  78. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  79. package/lib/components/DonutChart/DonutChart.types.js +1 -0
  80. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  81. package/lib/components/DonutChart/Pie/Pie.js +72 -0
  82. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  83. package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
  84. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  85. package/lib/components/DonutChart/Pie/index.js +2 -0
  86. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  87. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +40 -0
  88. package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  89. package/lib/components/DonutChart/index.js +3 -0
  90. package/lib/components/DonutChart/index.js.map +1 -0
  91. package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
  92. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  93. package/lib/components/GaugeChart/GaugeChart.js +592 -0
  94. package/lib/components/GaugeChart/GaugeChart.js.map +1 -0
  95. package/lib/components/GaugeChart/GaugeChart.types.js +4 -0
  96. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -0
  97. package/lib/components/GaugeChart/index.js +3 -0
  98. package/lib/components/GaugeChart/index.js.map +1 -0
  99. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +178 -0
  100. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -0
  101. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +501 -0
  102. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  103. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +4 -0
  104. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  105. package/lib/components/GroupedVerticalBarChart/index.js +3 -0
  106. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
  107. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +81 -0
  108. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -0
  109. package/lib/components/HeatMapChart/HeatMapChart.js +588 -0
  110. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
  111. package/lib/components/HeatMapChart/HeatMapChart.types.js +4 -0
  112. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  113. package/lib/components/HeatMapChart/index.js +3 -0
  114. package/lib/components/HeatMapChart/index.js.map +1 -0
  115. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +37 -0
  116. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -0
  117. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
  118. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  119. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  120. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  121. package/lib/components/HorizontalBarChart/index.js +3 -0
  122. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  123. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +156 -0
  124. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  125. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +571 -0
  126. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
  127. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +4 -0
  128. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
  129. package/lib/components/HorizontalBarChartWithAxis/index.js +3 -0
  130. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -0
  131. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +67 -0
  132. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -0
  133. package/lib/components/Legends/Legends.js +303 -0
  134. package/lib/components/Legends/Legends.js.map +1 -0
  135. package/lib/components/Legends/Legends.types.js +1 -0
  136. package/lib/components/Legends/Legends.types.js.map +1 -0
  137. package/lib/components/Legends/OverflowMenu.js +25 -0
  138. package/lib/components/Legends/OverflowMenu.js.map +1 -0
  139. package/lib/components/Legends/index.js +3 -0
  140. package/lib/components/Legends/index.js.map +1 -0
  141. package/lib/components/Legends/shape.js +35 -0
  142. package/lib/components/Legends/shape.js.map +1 -0
  143. package/lib/components/Legends/useLegendsStyles.styles.js +146 -0
  144. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
  145. package/lib/components/LineChart/LineChart.js +1034 -0
  146. package/lib/components/LineChart/LineChart.js.map +1 -0
  147. package/lib/components/LineChart/LineChart.types.js +3 -0
  148. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  149. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
  150. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  151. package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
  152. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  153. package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
  154. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  155. package/lib/components/LineChart/index.js +4 -0
  156. package/lib/components/LineChart/index.js.map +1 -0
  157. package/lib/components/LineChart/useLineChartStyles.styles.js +56 -0
  158. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  159. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
  160. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  161. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
  162. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  163. package/lib/components/ResponsiveContainer/index.js +1 -0
  164. package/lib/components/ResponsiveContainer/index.js.map +1 -0
  165. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
  166. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  167. package/lib/components/SankeyChart/SankeyChart.js +1023 -0
  168. package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
  169. package/lib/components/SankeyChart/SankeyChart.types.js +3 -0
  170. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
  171. package/lib/components/SankeyChart/index.js +3 -0
  172. package/lib/components/SankeyChart/index.js.map +1 -0
  173. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +109 -0
  174. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -0
  175. package/lib/components/ScatterChart/ScatterChart.js +465 -0
  176. package/lib/components/ScatterChart/ScatterChart.js.map +1 -0
  177. package/lib/components/ScatterChart/ScatterChart.types.js +4 -0
  178. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -0
  179. package/lib/components/ScatterChart/index.js +3 -0
  180. package/lib/components/ScatterChart/index.js.map +1 -0
  181. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +56 -0
  182. package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -0
  183. package/lib/components/Sparkline/Sparkline.js +119 -0
  184. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  185. package/lib/components/Sparkline/Sparkline.types.js +4 -0
  186. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  187. package/lib/components/Sparkline/index.js +3 -0
  188. package/lib/components/Sparkline/index.js.map +1 -0
  189. package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
  190. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  191. package/lib/components/VerticalBarChart/VerticalBarChart.js +926 -0
  192. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  193. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
  194. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  195. package/lib/components/VerticalBarChart/index.js +3 -0
  196. package/lib/components/VerticalBarChart/index.js.map +1 -0
  197. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +66 -0
  198. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  199. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +904 -0
  200. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  201. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +1 -0
  202. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  203. package/lib/components/VerticalStackedBarChart/index.js +3 -0
  204. package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
  205. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +65 -0
  206. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -0
  207. package/lib/index.js +20 -0
  208. package/lib/index.js.map +1 -0
  209. package/lib/types/DataPoint.js +1 -0
  210. package/lib/types/DataPoint.js.map +1 -0
  211. package/lib/types/EventAnnotation.js +1 -0
  212. package/lib/types/EventAnnotation.js.map +1 -0
  213. package/lib/types/LegendDataItem.js +1 -0
  214. package/lib/types/LegendDataItem.js.map +1 -0
  215. package/lib/types/index.js +2 -0
  216. package/lib/types/index.js.map +1 -0
  217. package/lib/utilities/FocusableTooltipText.js +65 -0
  218. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  219. package/lib/utilities/KeyCodes.js +8 -0
  220. package/lib/utilities/KeyCodes.js.map +1 -0
  221. package/lib/utilities/SVGTooltipText.js +183 -0
  222. package/lib/utilities/SVGTooltipText.js.map +1 -0
  223. package/lib/utilities/async-utils.js +380 -0
  224. package/lib/utilities/async-utils.js.map +1 -0
  225. package/lib/utilities/colors.js +269 -0
  226. package/lib/utilities/colors.js.map +1 -0
  227. package/lib/utilities/getWindow.js +25 -0
  228. package/lib/utilities/getWindow.js.map +1 -0
  229. package/lib/utilities/index.js +3 -0
  230. package/lib/utilities/index.js.map +1 -0
  231. package/lib/utilities/locale-util.js +15 -0
  232. package/lib/utilities/locale-util.js.map +1 -0
  233. package/lib/utilities/overflow-utils.js +27 -0
  234. package/lib/utilities/overflow-utils.js.map +1 -0
  235. package/lib/utilities/string.js +32 -0
  236. package/lib/utilities/string.js.map +1 -0
  237. package/lib/utilities/test-data.js +329 -0
  238. package/lib/utilities/test-data.js.map +1 -0
  239. package/lib/utilities/utilities.js +1405 -0
  240. package/lib/utilities/utilities.js.map +1 -0
  241. package/lib/utilities/vbc-utils.js +27 -0
  242. package/lib/utilities/vbc-utils.js.map +1 -0
  243. package/lib-commonjs/AreaChart.js +6 -0
  244. package/lib-commonjs/AreaChart.js.map +1 -0
  245. package/lib-commonjs/CartesianChart.js +6 -0
  246. package/lib-commonjs/CartesianChart.js.map +1 -0
  247. package/lib-commonjs/DeclarativeChart.js +6 -0
  248. package/lib-commonjs/DeclarativeChart.js.map +1 -0
  249. package/lib-commonjs/DonutChart.js +6 -0
  250. package/lib-commonjs/DonutChart.js.map +1 -0
  251. package/lib-commonjs/GaugeChart.js +6 -0
  252. package/lib-commonjs/GaugeChart.js.map +1 -0
  253. package/lib-commonjs/GroupedVerticalBarChart.js +6 -0
  254. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -0
  255. package/lib-commonjs/HeatMapChart.js +6 -0
  256. package/lib-commonjs/HeatMapChart.js.map +1 -0
  257. package/lib-commonjs/HorizontalBarChart.js +6 -0
  258. package/lib-commonjs/HorizontalBarChart.js.map +1 -0
  259. package/lib-commonjs/HorizontalBarChartWithAxis.js +6 -0
  260. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -0
  261. package/lib-commonjs/Legends.js +6 -0
  262. package/lib-commonjs/Legends.js.map +1 -0
  263. package/lib-commonjs/LineChart.js +6 -0
  264. package/lib-commonjs/LineChart.js.map +1 -0
  265. package/lib-commonjs/Popover.js +6 -0
  266. package/lib-commonjs/Popover.js.map +1 -0
  267. package/lib-commonjs/ResponsiveContainer.js +6 -0
  268. package/lib-commonjs/ResponsiveContainer.js.map +1 -0
  269. package/lib-commonjs/SankeyChart.js +6 -0
  270. package/lib-commonjs/SankeyChart.js.map +1 -0
  271. package/lib-commonjs/ScatterChart.js +6 -0
  272. package/lib-commonjs/ScatterChart.js.map +1 -0
  273. package/lib-commonjs/Sparkline.js +6 -0
  274. package/lib-commonjs/Sparkline.js.map +1 -0
  275. package/lib-commonjs/VerticalBarChart.js +6 -0
  276. package/lib-commonjs/VerticalBarChart.js.map +1 -0
  277. package/lib-commonjs/VerticalStackedBarChart.js +6 -0
  278. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -0
  279. package/lib-commonjs/components/AreaChart/AreaChart.js +781 -0
  280. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -0
  281. package/lib-commonjs/components/AreaChart/AreaChart.types.js +7 -0
  282. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -0
  283. package/lib-commonjs/components/AreaChart/index.js +8 -0
  284. package/lib-commonjs/components/AreaChart/index.js.map +1 -0
  285. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +95 -0
  286. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -0
  287. package/lib-commonjs/components/CommonComponents/CartesianChart.js +484 -0
  288. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
  289. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
  290. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
  291. package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
  292. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
  293. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
  294. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
  295. package/lib-commonjs/components/CommonComponents/index.js +9 -0
  296. package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
  297. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +166 -0
  298. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  299. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +236 -0
  300. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  301. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +205 -0
  302. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  303. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +859 -0
  304. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  305. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
  306. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
  307. package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
  308. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
  309. package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
  310. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
  311. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
  312. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
  313. package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
  314. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
  315. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
  316. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  317. package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
  318. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
  319. package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
  320. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
  321. package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
  322. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
  323. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
  324. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
  325. package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
  326. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
  327. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +54 -0
  328. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  329. package/lib-commonjs/components/DonutChart/index.js +8 -0
  330. package/lib-commonjs/components/DonutChart/index.js.map +1 -0
  331. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
  332. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  333. package/lib-commonjs/components/GaugeChart/GaugeChart.js +621 -0
  334. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -0
  335. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +7 -0
  336. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -0
  337. package/lib-commonjs/components/GaugeChart/index.js +8 -0
  338. package/lib-commonjs/components/GaugeChart/index.js.map +1 -0
  339. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +258 -0
  340. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -0
  341. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +507 -0
  342. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  343. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +7 -0
  344. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  345. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +8 -0
  346. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -0
  347. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +130 -0
  348. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -0
  349. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +599 -0
  350. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -0
  351. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +7 -0
  352. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  353. package/lib-commonjs/components/HeatMapChart/index.js +8 -0
  354. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -0
  355. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +59 -0
  356. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -0
  357. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
  358. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  359. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
  360. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  361. package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
  362. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
  363. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +237 -0
  364. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  365. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +580 -0
  366. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
  367. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +7 -0
  368. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
  369. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +8 -0
  370. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -0
  371. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +107 -0
  372. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -0
  373. package/lib-commonjs/components/Legends/Legends.js +313 -0
  374. package/lib-commonjs/components/Legends/Legends.js.map +1 -0
  375. package/lib-commonjs/components/Legends/Legends.types.js +6 -0
  376. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
  377. package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
  378. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
  379. package/lib-commonjs/components/Legends/index.js +8 -0
  380. package/lib-commonjs/components/Legends/index.js.map +1 -0
  381. package/lib-commonjs/components/Legends/shape.js +46 -0
  382. package/lib-commonjs/components/Legends/shape.js.map +1 -0
  383. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
  384. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
  385. package/lib-commonjs/components/LineChart/LineChart.js +1040 -0
  386. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
  387. package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
  388. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
  389. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
  390. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  391. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
  392. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  393. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
  394. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  395. package/lib-commonjs/components/LineChart/index.js +9 -0
  396. package/lib-commonjs/components/LineChart/index.js.map +1 -0
  397. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +87 -0
  398. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  399. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
  400. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  401. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
  402. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  403. package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
  404. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
  405. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
  406. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  407. package/lib-commonjs/components/SankeyChart/SankeyChart.js +1039 -0
  408. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -0
  409. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +6 -0
  410. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -0
  411. package/lib-commonjs/components/SankeyChart/index.js +8 -0
  412. package/lib-commonjs/components/SankeyChart/index.js.map +1 -0
  413. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +179 -0
  414. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -0
  415. package/lib-commonjs/components/ScatterChart/ScatterChart.js +471 -0
  416. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -0
  417. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +7 -0
  418. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -0
  419. package/lib-commonjs/components/ScatterChart/index.js +8 -0
  420. package/lib-commonjs/components/ScatterChart/index.js.map +1 -0
  421. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +87 -0
  422. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -0
  423. package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
  424. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
  425. package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
  426. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
  427. package/lib-commonjs/components/Sparkline/index.js +8 -0
  428. package/lib-commonjs/components/Sparkline/index.js.map +1 -0
  429. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
  430. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  431. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +928 -0
  432. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  433. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
  434. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  435. package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
  436. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
  437. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +110 -0
  438. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  439. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +915 -0
  440. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  441. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +6 -0
  442. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  443. package/lib-commonjs/components/VerticalStackedBarChart/index.js +8 -0
  444. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -0
  445. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +113 -0
  446. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -0
  447. package/lib-commonjs/index.js +25 -0
  448. package/lib-commonjs/index.js.map +1 -0
  449. package/lib-commonjs/types/DataPoint.js +4 -0
  450. package/lib-commonjs/types/DataPoint.js.map +1 -0
  451. package/lib-commonjs/types/EventAnnotation.js +6 -0
  452. package/lib-commonjs/types/EventAnnotation.js.map +1 -0
  453. package/lib-commonjs/types/LegendDataItem.js +4 -0
  454. package/lib-commonjs/types/LegendDataItem.js.map +1 -0
  455. package/lib-commonjs/types/index.js +7 -0
  456. package/lib-commonjs/types/index.js.map +1 -0
  457. package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
  458. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
  459. package/lib-commonjs/utilities/KeyCodes.js +18 -0
  460. package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
  461. package/lib-commonjs/utilities/SVGTooltipText.js +193 -0
  462. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
  463. package/lib-commonjs/utilities/async-utils.js +382 -0
  464. package/lib-commonjs/utilities/async-utils.js.map +1 -0
  465. package/lib-commonjs/utilities/colors.js +293 -0
  466. package/lib-commonjs/utilities/colors.js.map +1 -0
  467. package/lib-commonjs/utilities/getWindow.js +28 -0
  468. package/lib-commonjs/utilities/getWindow.js.map +1 -0
  469. package/lib-commonjs/utilities/index.js +8 -0
  470. package/lib-commonjs/utilities/index.js.map +1 -0
  471. package/lib-commonjs/utilities/locale-util.js +25 -0
  472. package/lib-commonjs/utilities/locale-util.js.map +1 -0
  473. package/lib-commonjs/utilities/overflow-utils.js +36 -0
  474. package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
  475. package/lib-commonjs/utilities/string.js +29 -0
  476. package/lib-commonjs/utilities/string.js.map +1 -0
  477. package/lib-commonjs/utilities/test-data.js +383 -0
  478. package/lib-commonjs/utilities/test-data.js.map +1 -0
  479. package/lib-commonjs/utilities/utilities.js +1371 -0
  480. package/lib-commonjs/utilities/utilities.js.map +1 -0
  481. package/lib-commonjs/utilities/vbc-utils.js +45 -0
  482. package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
  483. package/package.json +13 -13
@@ -0,0 +1,3305 @@
1
+ /// <reference types="react" />
2
+
3
+ import { CurveFactory } from 'd3-shape';
4
+ import * as React_2 from 'react';
5
+ import { RefObject } from 'react';
6
+ import { SankeyGraph } from 'd3-sankey';
7
+ import { SankeyLayout } from 'd3-sankey';
8
+ import { SankeyLink } from 'd3-sankey';
9
+ import { SankeyNode } from 'd3-sankey';
10
+ import { SVGProps } from 'react';
11
+ import { TimeLocaleDefinition } from 'd3-time-format';
12
+
13
+ /**
14
+ * {@docCategory ChartProps}
15
+ */
16
+ export declare interface AccessibilityProps {
17
+ /**
18
+ * Accessibility aria-label
19
+ */
20
+ ariaLabel?: string;
21
+ /**
22
+ * Accessibility aria-labelledBy
23
+ */
24
+ ariaLabelledBy?: string;
25
+ /**
26
+ * Accessibility aria-describedBy
27
+ */
28
+ ariaDescribedBy?: string;
29
+ }
30
+
31
+ /**
32
+ * This is used to introduce dynamic padding for cases where the number of nodes in a column is huge
33
+ * so that we maintain a node to space ratio for such columns as if we fail to do so the
34
+ * chart is devoid of nodes and only shows links.
35
+ */
36
+ export declare function adjustPadding(sankey: SankeyLayoutGenerator, height: number, nodesInColumn: NodesInColumns): void;
37
+
38
+ export declare const ARC_PADDING = 2;
39
+
40
+ export declare const AreaChart: React_2.FunctionComponent<AreaChartProps>;
41
+
42
+ export declare interface AreaChartAreaPoint {
43
+ xVal: string | number;
44
+ values: AreaChartDataSetPoint;
45
+ }
46
+
47
+ export declare interface AreaChartDataSetPoint {
48
+ [key: string]: number | string | number[];
49
+ }
50
+
51
+ /**
52
+ * Area Chart properties.
53
+ * {@docCategory AreaChart}
54
+ */
55
+ export declare interface AreaChartProps extends CartesianChartProps {
56
+ /**
57
+ * Data to render in the chart.
58
+ */
59
+ data: ChartProps;
60
+ /**
61
+ * Call to provide customized styling that will layer on top of the variant rules.
62
+ */
63
+ styles?: CartesianChartStyles;
64
+ /**
65
+ * Define a custom callout renderer for a data point
66
+ */
67
+ onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
68
+ /**
69
+ * Define a custom callout renderer for a stack; default is to render per data point
70
+ */
71
+ onRenderCalloutPerStack?: RenderFunction<CustomizedCalloutData>;
72
+ /**
73
+ * The prop used to define the culture to localized the numbers
74
+ */
75
+ culture?: string;
76
+ /**
77
+ * @default false
78
+ * The prop used to enable the perf optimization
79
+ */
80
+ enablePerfOptimization?: boolean;
81
+ optimizeLargeData?: boolean;
82
+ /**
83
+ * @default false
84
+ * The prop used to enable gradient fill color for the chart.
85
+ */
86
+ enableGradient?: boolean;
87
+ /**
88
+ * @default tonexty
89
+ * The prop used to define the Y axis mode (tonexty or tozeroy)
90
+ */
91
+ mode?: 'tozeroy' | 'tonexty';
92
+ }
93
+
94
+ /**
95
+ * Area Chart style properties
96
+ * {@docCategory AreaChart}
97
+ */
98
+ export declare interface AreaChartStyleProps extends CartesianChartStyleProps {
99
+ }
100
+
101
+ /**
102
+ * Area Chart styles
103
+ * {@docCategory AreaChart}
104
+ */
105
+ export declare interface AreaChartStyles extends CartesianChartStyles {
106
+ }
107
+
108
+ /**
109
+ * {@docCategory ChartData}
110
+ */
111
+ declare interface BaseDataPoint {
112
+ /**
113
+ * Defines the function that is executed on clicking line
114
+ */
115
+ onDataPointClick?: () => void;
116
+ /**
117
+ * Callout data for x axis
118
+ */
119
+ xAxisCalloutData?: string;
120
+ /**
121
+ * Callout data for y axis
122
+ */
123
+ yAxisCalloutData?: string | {
124
+ [id: string]: number;
125
+ };
126
+ /**
127
+ * Whether to hide callout data for the point.
128
+ */
129
+ hideCallout?: boolean;
130
+ /**
131
+ * Accessibility data for callout
132
+ */
133
+ callOutAccessibilityData?: AccessibilityProps;
134
+ /**
135
+ * X axis Accessibility data for callout
136
+ */
137
+ xAxisCalloutAccessibilityData?: AccessibilityProps;
138
+ }
139
+
140
+ export declare interface Basestate {
141
+ _width?: number;
142
+ _height?: number;
143
+ activeLegend?: string;
144
+ color?: string;
145
+ dataForHoverCard?: number;
146
+ isCalloutVisible: boolean;
147
+ isLegendSelected?: boolean;
148
+ isLegendHovered?: boolean;
149
+ refSelected?: any;
150
+ YValueHover?: {
151
+ legend?: string;
152
+ y?: number;
153
+ color?: string;
154
+ }[];
155
+ hoverYValue?: string | number | null;
156
+ hoverXValue?: string | number | null;
157
+ xCalloutValue?: string;
158
+ yCalloutValue?: string;
159
+ lineColor?: string;
160
+ hoveredLineColor?: string;
161
+ selectedLegend?: string;
162
+ containerWidth?: number;
163
+ containerHeight?: number;
164
+ }
165
+
166
+ export declare const BREAKPOINTS: {
167
+ minRadius: number;
168
+ arcWidth: number;
169
+ fontSize: number;
170
+ }[];
171
+
172
+ export declare const calcNeedleRotation: (chartValue: number, minValue: number, maxValue: number) => number;
173
+
174
+ /**
175
+ * Cartesian Chart component
176
+ * {@docCategory CartesianChart}
177
+ */
178
+ export declare const CartesianChart: React_2.FunctionComponent<ModifiedCartesianChartProps>;
179
+
180
+ /**
181
+ * Cartesian Chart properties
182
+ * {@docCategory CartesianChart}
183
+ */
184
+ export declare interface CartesianChartProps {
185
+ /**
186
+ * Below height used for resizing of the chart
187
+ * Wrap chart in your container and send the updated height and width to these props.
188
+ * These values decide wheather chart re render or not. Please check examples for reference
189
+ */
190
+ height?: number;
191
+ /**
192
+ * Below width used for resizing of the chart
193
+ * Wrap chart in your container and send the updated height and width to these props.
194
+ * These values decide wheather chart re render or not. Please check examples for reference
195
+ */
196
+ width?: number;
197
+ /**
198
+ * this prop takes its parent as a HTML element to define the width and height of the chart
199
+ */
200
+ parentRef?: HTMLElement | null;
201
+ /**
202
+ * Additional CSS class(es) to apply to the Chart.
203
+ */
204
+ className?: string;
205
+ /**
206
+ * Margins for the chart
207
+ * @default `{ top: 20, bottom: 35, left: 40, right: 20 }`
208
+ * To avoid edge cuttings to the chart, we recommend you use default values or greater then default values
209
+ */
210
+ margins?: Margins;
211
+ /** decides wether to show/hide legends
212
+ * @defaultvalue false
213
+ */
214
+ hideLegend?: boolean;
215
+ /**
216
+ * Do not show tooltips in chart
217
+ * @default false
218
+ */
219
+ hideTooltip?: boolean;
220
+ /**
221
+ * this prop takes values that you want the chart to render on x-axis
222
+ * This is a optional parameter if not specified D3 will decide which values appear on the x-axis for you
223
+ * Please look at https://github.com/d3/d3-scale for more information on how D3 decides what data to appear on the axis of chart
224
+ */
225
+ tickValues?: number[] | Date[] | string[] | undefined;
226
+ /**
227
+ * the format for the data on x-axis. For date object this can be specified to your requirement. Eg: '%m/%d', '%d'
228
+ * Please look at https://github.com/d3/d3-time-format for all the formats supported for date axis
229
+ * Only applicable for date axis. For y-axis format use yAxisTickFormat prop.
230
+ */
231
+ tickFormat?: string;
232
+ /**
233
+ * Width of line stroke
234
+ */
235
+ strokeWidth?: number;
236
+ /**
237
+ * x Axis labels tick padding. This defines the gap between tick labels and tick lines.
238
+ * @default 10
239
+ */
240
+ xAxisTickPadding?: number;
241
+ /**
242
+ * the format in for the data on y-axis. For data object this can be specified to your requirement.
243
+ * Eg: d3.format(".0%")(0.123),d3.format("+20")(42);
244
+ * Please look at https://github.com/d3/d3-format for all the formats supported
245
+ */
246
+ yAxisTickFormat?: any;
247
+ /**
248
+ * Secondary y-scale options
249
+ * By default this is not defined, meaning there will be no secondary y-scale.
250
+ */
251
+ secondaryYScaleOptions?: {
252
+ /** Minimum value (0 by default) */
253
+ yMinValue?: number;
254
+ /** Maximum value (100 by default) */
255
+ yMaxValue?: number;
256
+ };
257
+ /**
258
+ * minimum data value point in y-axis
259
+ */
260
+ yMinValue?: number;
261
+ /**
262
+ * maximum data value point in y-axis
263
+ */
264
+ yMaxValue?: number;
265
+ /**
266
+ * maximum data value point in x-axis
267
+ */
268
+ xMaxValue?: number;
269
+ /**
270
+ * Number of ticks on the y-axis.
271
+ * Tick count should be factor of difference between (yMinValue, yMaxValue)?
272
+ * @default 4
273
+ */
274
+ yAxisTickCount?: number;
275
+ /**
276
+ * defines the number of ticks on the x-axis. Tries to match the nearest interval satisfying the count.
277
+ * Does not work for string axis.
278
+ * @default 6
279
+ */
280
+ xAxisTickCount?: number;
281
+ /**
282
+ * define the size of the tick lines on the x-axis
283
+ * @default 10
284
+ */
285
+ xAxistickSize?: number;
286
+ /**
287
+ * defines the space between the tick line and the data label
288
+ * @default 10
289
+ */
290
+ tickPadding?: number;
291
+ /**
292
+ * Url that the data-viz needs to redirect to upon clicking on it
293
+ */
294
+ href?: string;
295
+ legendsOverflowText?: any;
296
+ /**
297
+ * Enable the legends to wrap lines if there is not enough space to show all legends on a single line
298
+ */
299
+ enabledLegendsWrapLines?: boolean;
300
+ legendProps?: Partial<LegendsProps>;
301
+ /**
302
+ *@default false
303
+ *Used for to elipse x axis labes and show tooltip on x axis labels
304
+ */
305
+ showXAxisLablesTooltip?: boolean;
306
+ /**
307
+ * @default 4
308
+ * Used for X axis labels
309
+ * While Giving showXAxisLablesTooltip prop, need to define after how many chars, we need to truncate the word.
310
+ */
311
+ noOfCharsToTruncate?: number;
312
+ /**
313
+ * @default false
314
+ * Used to wrap x axis labels values (whole value)
315
+ */
316
+ wrapXAxisLables?: boolean;
317
+ /**
318
+ * @default false
319
+ * Used to rotate x axis labels by 45 degrees
320
+ */
321
+ rotateXAxisLables?: boolean;
322
+ /**
323
+ * The prop used to define the date time localization options
324
+ */
325
+ dateLocalizeOptions?: Intl.DateTimeFormatOptions;
326
+ /**
327
+ * The prop used to define a custom locale for the date time format.
328
+ */
329
+ timeFormatLocale?: TimeLocaleDefinition;
330
+ /**
331
+ * The prop used to define a custom datetime formatter for date axis.
332
+ */
333
+ customDateTimeFormatter?: (dateTime: Date) => string;
334
+ /**
335
+ * Call to provide customized styling that will layer on top of the variant rules.
336
+ */
337
+ styles?: CartesianChartStyles;
338
+ /**
339
+ * Callout customization props
340
+ */
341
+ calloutProps?: Partial<ChartPopoverProps>;
342
+ /**
343
+ * props for the svg; use this to include aria-* or other attributes on the tag
344
+ */
345
+ svgProps?: React_2.SVGProps<SVGSVGElement>;
346
+ /**
347
+ * Props related to reflow behavior of the chart
348
+ */
349
+ reflowProps?: {
350
+ /**
351
+ * Determines the reflow behavior of the chart.
352
+ * When set to `'min-width'`, the chart will not shrink below a certain width and will enable scrolling if it overflows.
353
+ * @default 'none'
354
+ */
355
+ mode: 'none' | 'min-width';
356
+ };
357
+ /**
358
+ * Prop to set the x axis title
359
+ * @default undefined
360
+ * Minimum bottom margin required for x axis title is 55px
361
+ */
362
+ xAxisTitle?: string;
363
+ /**
364
+ * Prop to set the y axis title
365
+ * @default undefined
366
+ * Minimum left margin required for y axis title is 60px and for RTL is 40px
367
+ * Minimum right margin required for y axis title is 40px and for RTL is 60px
368
+ */
369
+ yAxisTitle?: string;
370
+ /**
371
+ * Prop to set the secondary y axis title
372
+ * @default undefined
373
+ * If RTL is enabled, minimum left and right margins required for secondary y axis title is 60px
374
+ */
375
+ secondaryYAxistitle?: string;
376
+ /**
377
+ * Whether to use UTC time for axis scale, ticks, and the time display in callouts.
378
+ * When set to `true`, time is displayed equally, regardless of the user's timezone settings.
379
+ * @default true
380
+ */
381
+ useUTC?: string | boolean;
382
+ /**
383
+ * @default false
384
+ * The prop used to decide rounded ticks on y axis
385
+ */
386
+ roundedTicks?: boolean;
387
+ /**
388
+ * Determines whether overlapping x-axis tick labels should be hidden.
389
+ * @default false
390
+ */
391
+ hideTickOverlap?: boolean;
392
+ /**
393
+ * Define a custom callout props override
394
+ */
395
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: any) => ChartPopoverProps;
396
+ /**
397
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
398
+ * the public methods and properties of the component.
399
+ */
400
+ componentRef?: React_2.RefObject<Chart>;
401
+ }
402
+
403
+ /**
404
+ * Cartesian Chart style properties
405
+ * {@docCategory CartesianChart}
406
+ */
407
+ export declare interface CartesianChartStyleProps {
408
+ /**
409
+ * Additional CSS class(es) to apply to the Chart.
410
+ */
411
+ className?: string;
412
+ /**
413
+ * Width of the chart.
414
+ */
415
+ width?: number;
416
+ /**
417
+ * Height of the chart.
418
+ */
419
+ height?: number;
420
+ /**
421
+ * Color of the chart.
422
+ */
423
+ color?: string;
424
+ /**
425
+ * Link to redirect if click action for graph
426
+ */
427
+ href?: string;
428
+ /**
429
+ * prop to check if the chart is selected or hovered upon to determine opacity
430
+ */
431
+ shouldHighlight?: boolean;
432
+ /**
433
+ * prop to check if the Page is in Rtl
434
+ */
435
+ useRtl?: boolean;
436
+ /**
437
+ * color of the line
438
+ */
439
+ lineColor?: string;
440
+ /**
441
+ * boolean flag which determines if shape is drawn in callout
442
+ */
443
+ toDrawShape?: boolean;
444
+ }
445
+
446
+ /**
447
+ * Cartesian Chart styles
448
+ * {@docCategory CartesianChart}
449
+ */
450
+ export declare interface CartesianChartStyles {
451
+ /**
452
+ * Style for the root element.
453
+ */
454
+ root?: string;
455
+ /**
456
+ * Style for the element containing the x-axis.
457
+ */
458
+ xAxis?: string;
459
+ /**
460
+ * Style for the element containing the y-axis.
461
+ */
462
+ yAxis?: string;
463
+ /**
464
+ * Style for legend container
465
+ */
466
+ legendContainer?: string;
467
+ /**
468
+ * line hover box css
469
+ */
470
+ hover?: string;
471
+ /**
472
+ * styles for description message
473
+ */
474
+ descriptionMessage?: string;
475
+ /**
476
+ * styles for tooltip
477
+ */
478
+ tooltip?: string;
479
+ /**
480
+ * styles for tooltip
481
+ */
482
+ axisTitle?: string;
483
+ /**
484
+ * Style for the chart Title.
485
+ */
486
+ chartTitle?: string;
487
+ /**
488
+ * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
489
+ */
490
+ opacityChangeOnHover?: string;
491
+ /**
492
+ * styles for the shape object in the callout
493
+ */
494
+ shapeStyles?: string;
495
+ /**
496
+ * Styles for the chart wrapper div
497
+ */
498
+ chartWrapper?: string;
499
+ }
500
+
501
+ /**
502
+ * {@docCategory Chart}
503
+ */
504
+ export declare interface Chart {
505
+ chartContainer: HTMLElement | null;
506
+ }
507
+
508
+ /**
509
+ * Chart data mode for chart data text
510
+ * default: show the datapoint.x value
511
+ * fraction: show the fraction of datapoint.x/datapoint.y
512
+ * percentage: show the percentage of (datapoint.x/datapoint.y)%
513
+ * {@docCategory HorizontalBarChart}
514
+ */
515
+ export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
516
+
517
+ /**
518
+ * {@docCategory ChartData}
519
+ */
520
+ export declare interface ChartDataPoint {
521
+ /**
522
+ * Legend text for the datapoint in the chart
523
+ */
524
+ legend?: string;
525
+ /**
526
+ * data the datapoint in the chart
527
+ */
528
+ data?: number;
529
+ /**
530
+ * data the datapoint in the chart
531
+ */
532
+ horizontalBarChartdata?: HorizontalDataPoint;
533
+ /**
534
+ * onClick action for each datapoint in the chart
535
+ */
536
+ onClick?: VoidFunction;
537
+ /**
538
+ * Color for the legend in the chart. If not provided, it will fallback on the default color palette.
539
+ */
540
+ color?: string;
541
+ /**
542
+ * placeholder data point
543
+ */
544
+ placeHolder?: boolean;
545
+ /**
546
+ * Callout data for x axis
547
+ * This is an optional prop, If haven;t given legend will take
548
+ */
549
+ xAxisCalloutData?: string;
550
+ /**
551
+ * Callout data for y axis
552
+ * This is an optional prop, If haven't given data will take
553
+ */
554
+ yAxisCalloutData?: string;
555
+ /**
556
+ * Accessibility data for callout
557
+ */
558
+ callOutAccessibilityData?: AccessibilityProps;
559
+ }
560
+
561
+ export declare const ChartPopover: React_2.FunctionComponent<ChartPopoverProps>;
562
+
563
+ export declare interface ChartPopoverProps {
564
+ clickPosition?: {
565
+ x: number;
566
+ y: number;
567
+ };
568
+ isPopoverOpen?: boolean;
569
+ xCalloutValue?: string;
570
+ legend?: string | number | Date;
571
+ yCalloutValue?: string;
572
+ YValue?: string | number | Date;
573
+ XValue?: string;
574
+ color?: string;
575
+ culture?: string;
576
+ customCallout?: {
577
+ customizedCallout?: JSX.Element;
578
+ customCalloutProps?: ChartPopoverProps;
579
+ };
580
+ isCalloutForStack?: boolean;
581
+ xAxisCalloutAccessibilityData?: {
582
+ ariaLabel?: string;
583
+ data?: string;
584
+ };
585
+ hoverXValue?: string | number;
586
+ YValueHover?: YValueHover[];
587
+ descriptionMessage?: string;
588
+ ratio?: [number, number];
589
+ isCartesian?: boolean;
590
+ }
591
+
592
+ /**
593
+ * {@docCategory ChartProps}
594
+ */
595
+ export declare interface ChartProps {
596
+ /**
597
+ * chart title for the chart
598
+ */
599
+ chartTitle?: string;
600
+ /**
601
+ * Accessibility data for chart title
602
+ */
603
+ chartTitleAccessibilityData?: AccessibilityProps;
604
+ /**
605
+ * data for the points in the chart
606
+ */
607
+ chartData?: ChartDataPoint[];
608
+ /**
609
+ * Accessibility data for chart data
610
+ */
611
+ chartDataAccessibilityData?: AccessibilityProps;
612
+ /**
613
+ * data for the points in the line chart
614
+ */
615
+ lineChartData?: LineChartPoints[];
616
+ /**
617
+ * data for the points in the line chart
618
+ */
619
+ SankeyChartData?: SankeyChartData;
620
+ /**
621
+ * data for the points in the line chart
622
+ */
623
+ pointOptions?: SVGProps<SVGCircleElement>;
624
+ /**
625
+ * data for the dotted line on hovering the point
626
+ */
627
+ pointLineOptions?: SVGProps<SVGLineElement>;
628
+ }
629
+
630
+ declare enum ChartTypes {
631
+ AreaChart = 0,
632
+ LineChart = 1,
633
+ VerticalBarChart = 2,
634
+ VerticalStackedBarChart = 3,
635
+ GroupedVerticalBarChart = 4,
636
+ HeatMapChart = 5,
637
+ HorizontalBarChartWithAxis = 6,
638
+ ScatterChart = 7
639
+ }
640
+
641
+ export declare interface ChildProps {
642
+ xScale?: any;
643
+ yScale?: any;
644
+ yScaleSecondary?: any;
645
+ containerHeight?: number;
646
+ containerWidth?: number;
647
+ optimizeLargeData?: boolean;
648
+ }
649
+
650
+ /**
651
+ * {@docCategory LineChart}
652
+ */
653
+ export declare interface ColorFillBarData {
654
+ startX: number | Date;
655
+ endX: number | Date;
656
+ }
657
+
658
+ /**
659
+ * {@docCategory LineChart}
660
+ */
661
+ export declare interface ColorFillBarsProps {
662
+ legend: string;
663
+ color: string;
664
+ data: ColorFillBarData[];
665
+ applyPattern?: boolean;
666
+ onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
667
+ }
668
+
669
+ /**
670
+ * Used for custom callout data interface. As Area chart callout data will be prepared from given props.data,
671
+ * Those required data passing to onRenderCalloutPerDataPoint and onRenderCalloutPerStack.
672
+ * {@docCategory ChartData}
673
+ */
674
+ export declare interface CustomizedCalloutData {
675
+ x: number | string | Date;
676
+ values: CustomizedCalloutDataPoint[];
677
+ }
678
+
679
+ /**
680
+ * {@docCategory ChartData}
681
+ */
682
+ export declare interface CustomizedCalloutDataPoint {
683
+ legend: string;
684
+ y: number;
685
+ color: string;
686
+ xAxisCalloutData?: string;
687
+ yAxisCalloutData?: string | {
688
+ [id: string]: number;
689
+ };
690
+ }
691
+
692
+ declare enum CustomPoints {
693
+ dottedLine = 0
694
+ }
695
+
696
+ /**
697
+ * {@docCategory ChartData}
698
+ */
699
+ export declare interface DataPoint {
700
+ /**
701
+ * Independent value of the data point, rendered along the x-axis.
702
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
703
+ * If x is a string, then the data is evenly spaced along the x-axis.
704
+ */
705
+ x: number | string;
706
+ /**
707
+ * Dependent value of the data point, rendered along the y-axis.
708
+ */
709
+ y: number;
710
+ /**
711
+ * onClick action for each datapoint in the chart
712
+ */
713
+ onClick?: VoidFunction;
714
+ }
715
+
716
+ export declare const DataVizPalette: {
717
+ color1: string;
718
+ color2: string;
719
+ color3: string;
720
+ color4: string;
721
+ color5: string;
722
+ color6: string;
723
+ color7: string;
724
+ color8: string;
725
+ color9: string;
726
+ color10: string;
727
+ color11: string;
728
+ color12: string;
729
+ color13: string;
730
+ color14: string;
731
+ color15: string;
732
+ color16: string;
733
+ color17: string;
734
+ color18: string;
735
+ color19: string;
736
+ color20: string;
737
+ color21: string;
738
+ color22: string;
739
+ color23: string;
740
+ color24: string;
741
+ color25: string;
742
+ color26: string;
743
+ color27: string;
744
+ color28: string;
745
+ color29: string;
746
+ color30: string;
747
+ color31: string;
748
+ color32: string;
749
+ color33: string;
750
+ color34: string;
751
+ color35: string;
752
+ color36: string;
753
+ color37: string;
754
+ color38: string;
755
+ color39: string;
756
+ color40: string;
757
+ info: string;
758
+ disabled: string;
759
+ highError: string;
760
+ error: string;
761
+ warning: string;
762
+ success: string;
763
+ highSuccess: string;
764
+ };
765
+
766
+ /**
767
+ * DeclarativeChart component.
768
+ * {@docCategory DeclarativeChart}
769
+ */
770
+ export declare const DeclarativeChart: React_2.FunctionComponent<DeclarativeChartProps>;
771
+
772
+ /**
773
+ * DeclarativeChart props.
774
+ * {@docCategory DeclarativeChart}
775
+ */
776
+ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTMLDivElement> {
777
+ /**
778
+ * The schema representing the chart data, layout and configuration
779
+ */
780
+ chartSchema: Schema;
781
+ /**
782
+ * Callback when an event occurs
783
+ */
784
+ onSchemaChange?: (eventData: Schema) => void;
785
+ /**
786
+ * Optional callback to access the IDeclarativeChart interface. Use this instead of ref for accessing
787
+ * the public methods and properties of the component.
788
+ */
789
+ componentRef?: React_2.RefObject<IDeclarativeChart>;
790
+ }
791
+
792
+ /**
793
+ * Donutchart component.
794
+ * {@docCategory DonutChart}
795
+ */
796
+ export declare const DonutChart: React_2.FunctionComponent<DonutChartProps>;
797
+
798
+ /**
799
+ * Donut Chart properties.
800
+ * {@docCategory DonutChart}
801
+ */
802
+ export declare interface DonutChartProps {
803
+ /**
804
+ * Data to render in the chart.
805
+ */
806
+ data?: ChartProps;
807
+ /**
808
+ * inner radius for donut size
809
+ */
810
+ innerRadius?: number;
811
+ /**
812
+ * Call to provide customized styling that will layer on top of the variant rules.
813
+ */
814
+ styles?: DonutChartStyles;
815
+ /**
816
+ * props for inside donut value
817
+ */
818
+ valueInsideDonut?: string | number;
819
+ /**
820
+ * Define a custom callout renderer for a data point
821
+ */
822
+ onRenderCalloutPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => JSX.Element | undefined;
823
+ /**
824
+ * Define a custom callout props override
825
+ */
826
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
827
+ /**
828
+ * props for the callout in the chart
829
+ */
830
+ calloutProps?: ChartPopoverProps;
831
+ /**
832
+ * The prop used to define the culture to localized the numbers
833
+ */
834
+ culture?: string;
835
+ /**
836
+ * Prop to show the arc labels in percentage format
837
+ * @default false
838
+ */
839
+ showLabelsInPercent?: boolean;
840
+ /**
841
+ * Prop to hide the arc labels
842
+ * @default true
843
+ */
844
+ hideLabels?: boolean;
845
+ /**
846
+ * Below height used for resizing of the chart
847
+ * Wrap chart in your container and send the updated height and width to these props.
848
+ * These values decide wheather chart re render or not. Please check examples for reference
849
+ */
850
+ height?: number;
851
+ /**
852
+ * Below width used for resizing of the chart
853
+ * Wrap chart in your container and send the updated height and width to these props.
854
+ * These values decide wheather chart re render or not. Please check examples for reference
855
+ */
856
+ width?: number;
857
+ /**
858
+ * this prop takes its parent as a HTML element to define the width and height of the chart
859
+ */
860
+ parentRef?: HTMLElement | null;
861
+ /**
862
+ * Additional CSS class(es) to apply to the Chart.
863
+ */
864
+ className?: string;
865
+ legendsOverflowText?: any;
866
+ legendProps?: Partial<LegendsProps>;
867
+ /** decides wether to show/hide legends
868
+ * @defaultvalue false
869
+ */
870
+ hideLegend?: boolean;
871
+ /**
872
+ * Url that the data-viz needs to redirect to upon clicking on it
873
+ */
874
+ href?: string;
875
+ /**
876
+ * Do not show tooltips in chart
877
+ * @default false
878
+ */
879
+ hideTooltip?: boolean;
880
+ /**
881
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
882
+ * the public methods and properties of the component.
883
+ */
884
+ componentRef?: React_2.RefObject<Chart>;
885
+ }
886
+
887
+ /**
888
+ * Donut Chart style properties
889
+ * {@docCategory DonutChart}
890
+ */
891
+ export declare interface DonutChartStyleProps extends CartesianChartStyleProps {
892
+ }
893
+
894
+ /**
895
+ * Donut Chart styles
896
+ * {@docCategory DonutChart}
897
+ */
898
+ export declare interface DonutChartStyles {
899
+ /**
900
+ * Style for the root element.
901
+ */
902
+ root?: string;
903
+ /**
904
+ * Style for the chart.
905
+ */
906
+ chart?: string;
907
+ /**
908
+ * Style for the legend container.
909
+ */
910
+ legendContainer: string;
911
+ /**
912
+ * Styles for the chart wrapper div
913
+ */
914
+ chartWrapper?: string;
915
+ }
916
+
917
+ export declare interface DPointType {
918
+ values: {
919
+ 0: number;
920
+ 1: number;
921
+ data: {};
922
+ };
923
+ xVal: number | Date;
924
+ }
925
+
926
+ declare interface EventAnnotation {
927
+ date: Date;
928
+ event: string;
929
+ onRenderCard?: () => React_2.ReactNode;
930
+ }
931
+
932
+ /**
933
+ * {@docCategory LineChart}
934
+ */
935
+ export declare interface EventsAnnotationProps {
936
+ events: EventAnnotation[];
937
+ strokeColor?: string;
938
+ labelColor?: string;
939
+ labelHeight?: number;
940
+ labelWidth?: number;
941
+ mergedLabel: (count: number) => string;
942
+ }
943
+
944
+ export declare interface ExtendedSegment extends GaugeChartSegment {
945
+ start: number;
946
+ end: number;
947
+ }
948
+
949
+ export declare const GaugeChart: React_2.FunctionComponent<GaugeChartProps>;
950
+
951
+ /**
952
+ * Gauge Chart properties
953
+ * {@docCategory GaugeChart}
954
+ */
955
+ export declare interface GaugeChartProps {
956
+ /**
957
+ * Width of the chart
958
+ */
959
+ width?: number;
960
+ /**
961
+ * Height of the chart
962
+ */
963
+ height?: number;
964
+ /**
965
+ * Title of the chart
966
+ */
967
+ chartTitle?: string;
968
+ /**
969
+ * Current value of the gauge
970
+ */
971
+ chartValue: number;
972
+ /**
973
+ * Sections of the gauge
974
+ */
975
+ segments: GaugeChartSegment[];
976
+ /**
977
+ * Minimum value of the gauge
978
+ * @defaultvalue 0
979
+ */
980
+ minValue?: number;
981
+ /**
982
+ * Maximum value of the gauge
983
+ */
984
+ maxValue?: number;
985
+ /**
986
+ * Additional text to display below the chart value
987
+ */
988
+ sublabel?: string;
989
+ /**
990
+ * Hide the min and max values of the gauge
991
+ * @defaultvalue false
992
+ */
993
+ hideMinMax?: boolean;
994
+ /**
995
+ * Format of the chart value
996
+ * @defaultvalue GaugeValueFormat.Percentage
997
+ */
998
+ chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string);
999
+ /**
1000
+ * Decides whether to show/hide legends
1001
+ * @defaultvalue false
1002
+ */
1003
+ hideLegend?: boolean;
1004
+ legendProps?: Partial<LegendsProps>;
1005
+ /**
1006
+ * Do not show tooltips in chart
1007
+ * @defaultvalue false
1008
+ */
1009
+ hideTooltip?: boolean;
1010
+ /**
1011
+ * Call to provide customized styling that will layer on top of the variant rules
1012
+ */
1013
+ styles?: GaugeChartStyles;
1014
+ /**
1015
+ * Defines the culture to localize the numbers and dates
1016
+ */
1017
+ culture?: string;
1018
+ /**
1019
+ * Props for the callout in the chart
1020
+ */
1021
+ calloutProps?: Partial<ChartPopoverProps>;
1022
+ /**
1023
+ * Specifies the variant of GaugeChart to be rendered
1024
+ * @defaultvalue GaugeChartVariant.MultipleSegments
1025
+ */
1026
+ variant?: GaugeChartVariant;
1027
+ /**
1028
+ * Prop to enable the gradient in the chart
1029
+ * @default false
1030
+ */
1031
+ enableGradient?: boolean;
1032
+ /**
1033
+ * Prop to enable the round corners in the chart
1034
+ * @default false
1035
+ */
1036
+ roundCorners?: boolean;
1037
+ /**
1038
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
1039
+ * the public methods and properties of the component.
1040
+ */
1041
+ componentRef?: React.RefObject<Chart>;
1042
+ }
1043
+
1044
+ /**
1045
+ * Gauge Chart segment interface.
1046
+ * {@docCategory GaugeChart}
1047
+ */
1048
+ export declare interface GaugeChartSegment {
1049
+ /**
1050
+ * Legend text for a segment
1051
+ */
1052
+ legend: string;
1053
+ /**
1054
+ * Size of the segment
1055
+ */
1056
+ size: number;
1057
+ /**
1058
+ * Color of the segment
1059
+ */
1060
+ color?: string;
1061
+ /**
1062
+ * Gradient color of the segment
1063
+ */
1064
+ gradient?: [string, string];
1065
+ /**
1066
+ * Accessibility data for the segment
1067
+ */
1068
+ accessibilityData?: AccessibilityProps;
1069
+ }
1070
+
1071
+ /**
1072
+ * Gauge Chart styles
1073
+ * {@docCategory GaugeChart}
1074
+ */
1075
+ export declare interface GaugeChartStyles {
1076
+ /**
1077
+ * Styles for the root element
1078
+ */
1079
+ root?: string;
1080
+ /**
1081
+ * Styles for the chart
1082
+ */
1083
+ chart?: string;
1084
+ /**
1085
+ * Styles for the min and max values
1086
+ */
1087
+ limits?: string;
1088
+ /**
1089
+ * Styles for the chart value
1090
+ */
1091
+ chartValue?: string;
1092
+ /**
1093
+ * Styles for the sublabel
1094
+ */
1095
+ sublabel?: string;
1096
+ /**
1097
+ * Styles for the needle
1098
+ */
1099
+ needle?: string;
1100
+ /**
1101
+ * Styles for the chart title
1102
+ */
1103
+ chartTitle?: string;
1104
+ /**
1105
+ * Styles for the segments
1106
+ */
1107
+ segment?: string;
1108
+ /**
1109
+ * Styles for gradient segments
1110
+ */
1111
+ gradientSegment?: string;
1112
+ /**
1113
+ * Styles for the legends container
1114
+ */
1115
+ legendsContainer?: string;
1116
+ /**
1117
+ * Styles for callout root-content
1118
+ */
1119
+ calloutContentRoot?: string;
1120
+ /**
1121
+ * Styles for callout x-content
1122
+ */
1123
+ calloutContentX?: string;
1124
+ /**
1125
+ * Styles for callout y-content
1126
+ */
1127
+ calloutContentY?: string;
1128
+ /**
1129
+ * Styles for description message
1130
+ */
1131
+ descriptionMessage?: string;
1132
+ /**
1133
+ * Styles for callout Date time container
1134
+ */
1135
+ calloutDateTimeContainer?: string;
1136
+ /**
1137
+ * Styles for callout info container
1138
+ */
1139
+ calloutInfoContainer?: string;
1140
+ /**
1141
+ * Styles for callout block container
1142
+ */
1143
+ calloutBlockContainer?: string;
1144
+ /**
1145
+ * Styles for callout legend text
1146
+ */
1147
+ calloutlegendText?: string;
1148
+ /**
1149
+ * Styles for the shape object in the callout
1150
+ */
1151
+ shapeStyles?: string;
1152
+ }
1153
+
1154
+ /**
1155
+ * {@docCategory GaugeChart}
1156
+ */
1157
+ export declare type GaugeChartVariant = 'single-segment' | 'multiple-segments';
1158
+
1159
+ /**
1160
+ * {@docCategory GaugeChart}
1161
+ */
1162
+ export declare type GaugeValueFormat = 'percentage' | 'fraction';
1163
+
1164
+ export declare const getChartValueLabel: (chartValue: number, minValue: number, maxValue: number, chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string) | undefined, forCallout?: boolean) => string;
1165
+
1166
+ export declare const getColorContrast: (c1: string, c2: string) => number;
1167
+
1168
+ export declare const getColorFromToken: (token: string, isDarkTheme?: boolean) => string;
1169
+
1170
+ export declare const getNextColor: (index: number, offset?: number, isDarkTheme?: boolean) => string;
1171
+
1172
+ export declare const getSegmentLabel: (segment: ExtendedSegment, minValue: number, maxValue: number, variant?: GaugeChartVariant, isAriaLabel?: boolean) => string;
1173
+
1174
+ export declare const GroupedVerticalBarChart: React_2.FC<GroupedVerticalBarChartProps>;
1175
+
1176
+ /**
1177
+ * {@docCategory ChartData}
1178
+ */
1179
+ export declare interface GroupedVerticalBarChartData {
1180
+ /**
1181
+ * Data for X axis label
1182
+ */
1183
+ name: string;
1184
+ /**
1185
+ * Data points for Grouped vertical bar chart
1186
+ */
1187
+ series: GVBarChartSeriesPoint[];
1188
+ /**
1189
+ * Accessibility data for Group Bars Stack Callout
1190
+ */
1191
+ stackCallOutAccessibilityData?: AccessibilityProps;
1192
+ }
1193
+
1194
+ /**
1195
+ * Vertical Bar Chart properties
1196
+ * {@docCategory VerticalBarChart}
1197
+ */
1198
+ export declare interface GroupedVerticalBarChartProps extends CartesianChartProps {
1199
+ /**
1200
+ * Data to render in the chart.
1201
+ */
1202
+ data?: GroupedVerticalBarChartData[];
1203
+ /**
1204
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
1205
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
1206
+ * @default 16
1207
+ */
1208
+ barWidth?: number | 'default' | 'auto';
1209
+ /**
1210
+ * Colors from which to select the color of each bar.
1211
+ */
1212
+ colors?: string[];
1213
+ /**
1214
+ * chart title for the chart
1215
+ */
1216
+ chartTitle?: string;
1217
+ /**
1218
+ * This prop makes sure that all the bars are of same color.
1219
+ * it will take the first color from the array of colors in
1220
+ * prop `colors` or if `colors` prop is not given then default color is palette.blueLight
1221
+ * @default false
1222
+ */
1223
+ useSingleColor?: boolean;
1224
+ /**
1225
+ * Call to provide customized styling that will layer on top of the variant rules.
1226
+ */
1227
+ styles?: GroupedVerticalBarChartStyles;
1228
+ /**
1229
+ * The prop used to define the culture to localized the numbers
1230
+ */
1231
+ culture?: string;
1232
+ /**
1233
+ * To display multi stack callout or single callout
1234
+ * @default false
1235
+ */
1236
+ isCalloutForStack?: boolean;
1237
+ /**
1238
+ * Prop to hide the bar labels
1239
+ * @default false
1240
+ */
1241
+ hideLabels?: boolean;
1242
+ /**
1243
+ * Maximum width of a bar, in pixels.
1244
+ * @default 24
1245
+ */
1246
+ maxBarWidth?: number;
1247
+ /**
1248
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
1249
+ * Takes a number in the range [0, 1]. Only applicable to string x-axis.
1250
+ * @default 2/3
1251
+ */
1252
+ xAxisInnerPadding?: number;
1253
+ /**
1254
+ * Padding before the first bar and after the last bar as a fraction of
1255
+ * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
1256
+ * Only applicable to string x-axis.
1257
+ */
1258
+ xAxisOuterPadding?: number;
1259
+ /**
1260
+ * Specifies the mode of the chart.
1261
+ * @default 'default'
1262
+ */
1263
+ mode?: 'default' | 'plotly';
1264
+ }
1265
+
1266
+ /**
1267
+ * Vertical Bar Chart style properties
1268
+ * {@docCategory VerticalBarChart}
1269
+ */
1270
+ export declare interface GroupedVerticalBarChartStyleProps extends CartesianChartStyleProps {
1271
+ }
1272
+
1273
+ /**
1274
+ * Vertical Bar Chart styles
1275
+ * {@docCategory VerticalBarChart}
1276
+ */
1277
+ export declare interface GroupedVerticalBarChartStyles extends CartesianChartStyles {
1278
+ /**
1279
+ * Style for the bar labels
1280
+ */
1281
+ barLabel: string;
1282
+ }
1283
+
1284
+ /**
1285
+ * This is used to group nodes by column index.
1286
+ */
1287
+ export declare function groupNodesByColumn(graph: SankeyChartData): NodesInColumns;
1288
+
1289
+ /**
1290
+ * {@docCategory ChartData}
1291
+ */
1292
+ export declare interface GVBarChartSeriesPoint {
1293
+ /**
1294
+ * Text for // need to check use of this
1295
+ */
1296
+ key: string;
1297
+ /**
1298
+ * Data for bar height of Grouped vertical bar chart
1299
+ */
1300
+ data: number;
1301
+ /**
1302
+ * Color for the legend in the chart
1303
+ */
1304
+ color: string;
1305
+ /**
1306
+ * Legend text in the chart
1307
+ */
1308
+ legend: string;
1309
+ /**
1310
+ * Callout data for x axis
1311
+ * This is an optional prop, If haven;t given legend will take
1312
+ */
1313
+ xAxisCalloutData?: string;
1314
+ /**
1315
+ * Callout data for y axis
1316
+ * This is an optional prop, If haven't given data will take
1317
+ */
1318
+ yAxisCalloutData?: string;
1319
+ /**
1320
+ * onClick action for each datapoint in the chart
1321
+ */
1322
+ onClick?: VoidFunction;
1323
+ /**
1324
+ * Accessibility data for callout
1325
+ */
1326
+ callOutAccessibilityData?: AccessibilityProps;
1327
+ }
1328
+
1329
+ export declare interface GVDataPoint {
1330
+ /**
1331
+ * This interface used for - While forming datapoints from given prop "data" in code
1332
+ * datapoints are used for to draw graph
1333
+ */
1334
+ [key: string]: number | string;
1335
+ }
1336
+
1337
+ export declare interface GVForBarChart {
1338
+ /**
1339
+ * While forming datapoints from given prop "data"
1340
+ * These datapoints are used for to draw graph.
1341
+ */
1342
+ [key: string]: GVBarChartSeriesPoint;
1343
+ }
1344
+
1345
+ export declare interface GVSingleDataPoint {
1346
+ /**
1347
+ * While forming datapoints from given prop "data" in code.
1348
+ * These datapoints are used for to draw graph easily.
1349
+ */
1350
+ [key: string]: GVDataPoint;
1351
+ }
1352
+
1353
+ export declare const HeatMapChart: React_2.FunctionComponent<HeatMapChartProps>;
1354
+
1355
+ /**
1356
+ * {@docCategory ChartData}
1357
+ */
1358
+ export declare interface HeatMapChartData {
1359
+ /**
1360
+ * name of the legend
1361
+ */
1362
+ legend: string;
1363
+ data: HeatMapChartDataPoint[];
1364
+ /**
1365
+ * This number will be used to get the color for the legend
1366
+ */
1367
+ value: number;
1368
+ }
1369
+
1370
+ export declare interface HeatMapChartDataPoint {
1371
+ x: string | Date | number;
1372
+ y: string | Date | number;
1373
+ value: number;
1374
+ /**
1375
+ * The value/ text to be rendered in the rectange
1376
+ */
1377
+ rectText?: string | number;
1378
+ /**
1379
+ * denomination to show in the callout
1380
+ */
1381
+ ratio?: [number, number];
1382
+ /**
1383
+ * description message to the callout
1384
+ */
1385
+ descriptionMessage?: string;
1386
+ /**
1387
+ * onClick action for each datapoint in the chart
1388
+ */
1389
+ onClick?: VoidFunction;
1390
+ /**
1391
+ * Accessibility data for callout
1392
+ */
1393
+ callOutAccessibilityData?: AccessibilityProps;
1394
+ }
1395
+
1396
+ /**
1397
+ * Heat Map Chart properties
1398
+ * {@docCategory HeatMapChart}
1399
+ */
1400
+ export declare interface HeatMapChartProps extends CartesianChartProps {
1401
+ /**
1402
+ * chart title for the chart
1403
+ */
1404
+ chartTitle?: string;
1405
+ /**
1406
+ * data to provide for Heat Map
1407
+ */
1408
+ data: HeatMapChartData[];
1409
+ /**
1410
+ * The domain value for the color scale,
1411
+ *
1412
+ */
1413
+ domainValuesForColorScale: number[];
1414
+ /**
1415
+ * The range values for the color scale,
1416
+ * fill the array with colors in hex format
1417
+ * note:- it should contain values exactly as many as values in the array
1418
+ * `domainValuesForColorScale`
1419
+ */
1420
+ rangeValuesForColorScale: string[];
1421
+ /**
1422
+ * date formatter of x axis,
1423
+ * if the x-axis data point are of date type then user can use this
1424
+ * prop to format the date
1425
+ * refer to https://github.com/d3/d3-time-format for string values
1426
+ * @default '%b/%d'
1427
+ */
1428
+ xAxisDateFormatString?: string;
1429
+ /**
1430
+ * date formatter of y axis,
1431
+ * if the y-axis data point are or date type then user can use this
1432
+ * prop to format the date
1433
+ * refer to https://github.com/d3/d3-time-format for string values
1434
+ * @default '%b/%d'
1435
+ */
1436
+ yAxisDateFormatString?: string;
1437
+ /**
1438
+ * number formatter of x axis
1439
+ * if the x-axis data pints are of number type then user can
1440
+ * use this prop to format the number
1441
+ * refer to https://github.com/d3/d3-format for string values
1442
+ * @default '.2~s'
1443
+ */
1444
+ xAxisNumberFormatString?: string;
1445
+ /**
1446
+ * number formatter of y axis
1447
+ * if the y-axis data pints are of number type then user can
1448
+ * use this prop to format the number
1449
+ * refer to https://github.com/d3/d3-format for string values
1450
+ * @default '.2~s'
1451
+ */
1452
+ yAxisNumberFormatString?: string;
1453
+ /**
1454
+ * string formatter for x-axis.
1455
+ * This prop only applies if the x-axis is of string type
1456
+ *
1457
+ * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending
1458
+ * order and then render in the x-axis. this behaviour would force the order of the data points.
1459
+ * to overcome , user can give x-axis point names as p1 p2...etc and map those p1 and p2 to custom name.
1460
+ * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom
1461
+ * name to that point by using this prop, hence giving the us the flexiblity of the order in which
1462
+ * label should render
1463
+ *
1464
+ * see the example file for the usage of the prop
1465
+ */
1466
+ xAxisStringFormatter?: (point: string) => string;
1467
+ /**
1468
+ * string formatter for y-axis.
1469
+ * This prop only applies if the y-axis is of string type
1470
+ *
1471
+ * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending
1472
+ * order and then render in the y-axis. this behaviour would force the order of the data points.
1473
+ * to overcome , user can give y-axis point names as p1 p2...etc and map those p1 and p2 to custom name.
1474
+ * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom
1475
+ * name to that point by using this prop, hence giving the us the flexiblity of the order in which
1476
+ * label should render
1477
+ *
1478
+ * see the exaple file for the usage of the prop
1479
+ */
1480
+ yAxisStringFormatter?: (point: string) => string;
1481
+ /**
1482
+ * Call to provide customized styling that will layer on top of the variant rules.
1483
+ */
1484
+ styles?: HeatMapChartStyles;
1485
+ /**
1486
+ * The prop used to define the culture to localized the numbers
1487
+ */
1488
+ culture?: string;
1489
+ /**
1490
+ *@default false
1491
+ *Used for showing complete y axis lables */
1492
+ showYAxisLables?: boolean;
1493
+ /**
1494
+ * @default alphabetical
1495
+ * The prop used to decide order of string axis labels */
1496
+ sortOrder?: 'none' | 'alphabetical';
1497
+ }
1498
+
1499
+ /**
1500
+ * Heat Map Chart styles
1501
+ * {@docCategory HeatMapChart}
1502
+ */
1503
+ export declare interface HeatMapChartStyles extends CartesianChartStyles {
1504
+ root?: string;
1505
+ text?: string;
1506
+ }
1507
+
1508
+ /**
1509
+ * HorizontalBarChart is the context wrapper and container for all HorizontalBarChart content/controls,
1510
+ * It has no direct style or slot opinions.
1511
+ *
1512
+ * HorizontalBarChart also provides API interfaces for callbacks that will occur on navigation events.
1513
+ */
1514
+ export declare const HorizontalBarChart: React_2.FunctionComponent<HorizontalBarChartProps>;
1515
+
1516
+ /**
1517
+ * Horizontal Bar Chart properties
1518
+ * {@docCategory HorizontalBarChart}
1519
+ */
1520
+ export declare interface HorizontalBarChartProps extends React_2.RefAttributes<HTMLDivElement> {
1521
+ /**
1522
+ * An array of chart data points for the Horizontal bar chart
1523
+ */
1524
+ data?: ChartProps[];
1525
+ /**
1526
+ * Width of bar chart
1527
+ */
1528
+ width?: number;
1529
+ /**
1530
+ * Height of bar chart
1531
+ * @default 15
1532
+ */
1533
+ barHeight?: number;
1534
+ /**
1535
+ * Additional CSS class(es) to apply to the StackedBarChart.
1536
+ */
1537
+ className?: string;
1538
+ /**
1539
+ * This property tells whether to show ratio on top of stacked bar chart or not.
1540
+ */
1541
+ hideRatio?: boolean[];
1542
+ /**
1543
+ * Do not show tooltips in chart
1544
+ *
1545
+ * @default false
1546
+ */
1547
+ hideTooltip?: boolean;
1548
+ /**
1549
+ * This property tells how to show data text on top right of bar chart.
1550
+ * If barChartCustomData props added, then this props will be overrided.
1551
+ * @default 'default'
1552
+ */
1553
+ chartDataMode?: ChartDataMode;
1554
+ /**
1555
+ * Call to provide customized styling that will layer on top of the variant rules.
1556
+ */
1557
+ styles?: HorizontalBarChartStyles;
1558
+ /**
1559
+ * Define a custom callout renderer for a horizontal bar
1560
+ */
1561
+ /**
1562
+ * props for the callout in the chart
1563
+ */
1564
+ calloutProps?: ChartPopoverProps;
1565
+ /**
1566
+ * Custom text to the chart (right side of the chart)
1567
+ * IChartProps will be available as props to the method prop.
1568
+ * If this method not given, default values (IHorizontalDataPoint \{x,y\})
1569
+ * will be used to display the data/text based on given chartModeData prop.
1570
+ */
1571
+ /**
1572
+ * The prop used to define the culture to localized the numbers
1573
+ */
1574
+ culture?: string;
1575
+ /**
1576
+ * Prop to define the variant of HorizontalBarChart to render
1577
+ * @default HorizontalBarChartVariant.PartToWhole
1578
+ */
1579
+ variant?: HorizontalBarChartVariant;
1580
+ /**
1581
+ * Prop to hide the bar labels
1582
+ * @default false
1583
+ */
1584
+ hideLabels?: boolean;
1585
+ /**
1586
+ * line color for callout
1587
+ */
1588
+ color?: string;
1589
+ /**
1590
+ * prop to check if benchmark data is provided
1591
+ */
1592
+ showTriangle?: boolean;
1593
+ legendsOverflowText?: any;
1594
+ legendProps?: Partial<LegendsProps>;
1595
+ /**
1596
+ * prop to render the custom callout
1597
+ */
1598
+ onRenderCalloutPerHorizontalBar?: (props: ChartDataPoint) => JSX.Element | undefined;
1599
+ /**
1600
+ * Define a custom callout props override
1601
+ */
1602
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
1603
+ }
1604
+
1605
+ /**
1606
+ * Horizontal Bar Chart styles
1607
+ * {@docCategory HorizontalBarChart}
1608
+ */
1609
+ export declare interface HorizontalBarChartStyles {
1610
+ /**
1611
+ * Styling for the root container
1612
+ */
1613
+ root: string;
1614
+ /**
1615
+ * Styling for each item in the container
1616
+ */
1617
+ items: string;
1618
+ /**
1619
+ * Style for the chart.
1620
+ */
1621
+ chart: string;
1622
+ /**
1623
+ * Style for the chart Title.
1624
+ */
1625
+ chartTitle: string;
1626
+ /**
1627
+ * Style for the bars.
1628
+ */
1629
+ barWrapper: string;
1630
+ /**
1631
+ * Style for left side text of the chart title
1632
+ */
1633
+ chartTitleLeft: string;
1634
+ /**
1635
+ * Style for right side text of the chart title
1636
+ */
1637
+ chartTitleRight: string;
1638
+ /**
1639
+ * Style for the chart data text denominator.
1640
+ */
1641
+ chartDataTextDenominator: string;
1642
+ /**
1643
+ * Style for the benchmark container
1644
+ */
1645
+ benchmarkContainer: string;
1646
+ /**
1647
+ * Style for the benchmark triangle
1648
+ */
1649
+ triangle: string;
1650
+ /**
1651
+ * Style for the bar labels
1652
+ */
1653
+ barLabel: string;
1654
+ /**
1655
+ * Style for the div containing the chart
1656
+ */
1657
+ chartWrapper: string;
1658
+ /**
1659
+ * Style for the legend container.
1660
+ */
1661
+ legendContainer: string;
1662
+ }
1663
+
1664
+ /**
1665
+ * {@docCategory HorizontalBarChart}
1666
+ */
1667
+ export declare enum HorizontalBarChartVariant {
1668
+ PartToWhole = "part-to-whole",
1669
+ AbsoluteScale = "absolute-scale"
1670
+ }
1671
+
1672
+ export declare const HorizontalBarChartWithAxis: React_2.FunctionComponent<HorizontalBarChartWithAxisProps>;
1673
+
1674
+ /**
1675
+ * {@docCategory ChartData}
1676
+ */
1677
+ export declare interface HorizontalBarChartWithAxisDataPoint {
1678
+ /**
1679
+ * Dependent value of the data point, rendered along the x-axis.
1680
+ */
1681
+ x: number;
1682
+ /**
1683
+ * Independent value of the data point, rendered along the y-axis.
1684
+ * If y is a number, then each y-coordinate is plotted at its y-coordinate.
1685
+ * If y is a string, then the data is evenly spaced along the y-axis.
1686
+ */
1687
+ y: number | string;
1688
+ /**
1689
+ * Legend text for the datapoint in the chart
1690
+ */
1691
+ legend?: string;
1692
+ /**
1693
+ * color for the legend in the chart
1694
+ */
1695
+ color?: string;
1696
+ /**
1697
+ * Callout data for x axis
1698
+ * This is an optional prop, If haven;t given legend will take
1699
+ */
1700
+ xAxisCalloutData?: string;
1701
+ /**
1702
+ * Callout data for y axis
1703
+ * This is an optional prop, If haven't given data will take
1704
+ */
1705
+ yAxisCalloutData?: string;
1706
+ /**
1707
+ * onClick action for each datapoint in the chart
1708
+ */
1709
+ onClick?: VoidFunction;
1710
+ /**
1711
+ * Accessibility data for callout
1712
+ */
1713
+ callOutAccessibilityData?: AccessibilityProps;
1714
+ }
1715
+
1716
+ /**
1717
+ * Horizontal Bar Chart with Axis properties
1718
+ * {@docCategory HorizontalBarChartWithAxis}
1719
+ */
1720
+ export declare interface HorizontalBarChartWithAxisProps extends CartesianChartProps {
1721
+ /**
1722
+ * Data to render in the chart.
1723
+ */
1724
+ data?: HorizontalBarChartWithAxisDataPoint[];
1725
+ /**
1726
+ * Define a custom callout renderer for a data point.
1727
+ */
1728
+ onRenderCalloutPerDataPoint?: RenderFunction<HorizontalBarChartWithAxisDataPoint>;
1729
+ /**
1730
+ * Width of each bar in the chart.
1731
+ */
1732
+ barHeight?: number;
1733
+ /**
1734
+ * Colors from which to select the color of each bar.
1735
+ */
1736
+ colors?: string[];
1737
+ /**
1738
+ * chart title for the chart
1739
+ */
1740
+ chartTitle?: string;
1741
+ /**
1742
+ * This prop makes sure that all the bars are of same color.
1743
+ * it will take the first color from the array of colors in
1744
+ * prop `colors` or if `colors` prop is not given then default color is palette.blueLight
1745
+ * @default false
1746
+ */
1747
+ useSingleColor?: boolean;
1748
+ /**
1749
+ * Call to provide customized styling that will layer on top of the variant rules.
1750
+ */
1751
+ styles?: HorizontalBarChartWithAxisStyles;
1752
+ /**
1753
+ * The prop used to define the culture to localized the numbers
1754
+ */
1755
+ culture?: string;
1756
+ /**
1757
+ * it's padding between bar's or lines in the graph
1758
+ */
1759
+ yAxisPadding?: number;
1760
+ /**
1761
+ *@default false
1762
+ *Used for to elipse y axis labes and show tooltip on x axis labels
1763
+ */
1764
+ showYAxisLablesTooltip?: boolean;
1765
+ /**
1766
+ *@default false
1767
+ *Used for showing complete y axis lables */
1768
+ showYAxisLables?: boolean;
1769
+ /**
1770
+ * @default false
1771
+ * The prop used to enable gradient fill color for the chart.
1772
+ */
1773
+ enableGradient?: boolean;
1774
+ /**
1775
+ * @default false
1776
+ * The prop used to enable rounded corners for the bars.
1777
+ */
1778
+ roundCorners?: boolean;
1779
+ }
1780
+
1781
+ /**
1782
+ * Horizontal Bar Chart with Axis style properties
1783
+ * {@docCategory HorizontalBarChartWithAxis}
1784
+ */
1785
+ export declare interface HorizontalBarChartWithAxisStyleProps extends CartesianChartStyleProps {
1786
+ /**
1787
+ * color of the datapoint legend
1788
+ */
1789
+ legendColor?: string;
1790
+ }
1791
+
1792
+ /**
1793
+ * Horizontal Bar Chart with Axis styles
1794
+ * {@docCategory HorizontalBarChartWithAxis}
1795
+ */
1796
+ export declare interface HorizontalBarChartWithAxisStyles extends CartesianChartStyles {
1797
+ /**
1798
+ * Style for the chart label.
1799
+ *
1800
+ */
1801
+ chartLabel?: string;
1802
+ /**
1803
+ * Style for the line representing the domain of the x-axis.
1804
+ *
1805
+ */
1806
+ xAxisDomain?: string;
1807
+ /**
1808
+ * Style for the lines representing the ticks along the x-axis.
1809
+ *
1810
+ */
1811
+ xAxisTicks?: string;
1812
+ /**
1813
+ * Style for the text labeling each tick along the x-axis.
1814
+ *
1815
+ */
1816
+ xAxisText?: string;
1817
+ /**
1818
+ * Style for the line representing the domain of the y-axis.
1819
+ *
1820
+ */
1821
+ yAxisDomain?: string;
1822
+ /**
1823
+ * Style for the lines representing the ticks along the y-axis.
1824
+ *
1825
+ */
1826
+ yAxisTicks?: string;
1827
+ /**
1828
+ * Style for the text labeling each tick along the y-axis.
1829
+ *
1830
+ */
1831
+ yAxisText?: string;
1832
+ /**
1833
+ * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
1834
+ */
1835
+ opacityChangeOnHover: string;
1836
+ }
1837
+
1838
+ /**
1839
+ * {@docCategory ChartData}
1840
+ */
1841
+ export declare interface HorizontalDataPoint {
1842
+ /**
1843
+ * Independent value of the data point, rendered along the x-axis.
1844
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
1845
+ * If x is a string, then the data is evenly spaced along the x-axis.
1846
+ */
1847
+ x: number;
1848
+ /**
1849
+ * Total value of a single point bar chart.
1850
+ */
1851
+ total?: number;
1852
+ }
1853
+
1854
+ /**
1855
+ * {@docCategory DeclarativeChart}
1856
+ */
1857
+ export declare interface IDeclarativeChart {
1858
+ exportAsImage: (opts?: ImageExportOptions) => Promise<string>;
1859
+ }
1860
+
1861
+ /**
1862
+ * {@docCategory DeclarativeChart}
1863
+ */
1864
+ export declare interface ImageExportOptions {
1865
+ width?: number;
1866
+ height?: number;
1867
+ scale?: number;
1868
+ background?: string;
1869
+ }
1870
+
1871
+ /**
1872
+ * @public
1873
+ * ILegend interface
1874
+ * {@docCategory Legends}
1875
+ */
1876
+ export declare interface Legend {
1877
+ /**
1878
+ * Defines the title of the legend
1879
+ */
1880
+ title: string;
1881
+ /**
1882
+ * Defines the function that is executed on clicking this legend
1883
+ */
1884
+ action?: VoidFunction;
1885
+ /**
1886
+ * Defines the function that is executed upon hovering over the legend
1887
+ */
1888
+ hoverAction?: VoidFunction;
1889
+ /**
1890
+ * Defines the function that is executed upon moving the mouse away from the legend
1891
+ */
1892
+ onMouseOutAction?: (isLegendFocused?: boolean) => void;
1893
+ /**
1894
+ * The color for the legend
1895
+ */
1896
+ color: string;
1897
+ /**
1898
+ * The opacity of the legend color
1899
+ */
1900
+ opacity?: number;
1901
+ /**
1902
+ * The shape for the legend
1903
+ */
1904
+ shape?: LegendShape;
1905
+ /**
1906
+ * Indicated whether or not to apply stripe pattern
1907
+ */
1908
+ stripePattern?: boolean;
1909
+ /**
1910
+ * Indicates if the legend belongs to a line in the Bar Chart
1911
+ */
1912
+ isLineLegendInBarChart?: boolean;
1913
+ nativeButtonProps?: React_2.ButtonHTMLAttributes<HTMLButtonElement>;
1914
+ }
1915
+
1916
+ export declare interface LegendDataItem {
1917
+ /**
1918
+ * Text to be displayed for legend item.
1919
+ */
1920
+ legendText: string | number;
1921
+ /**
1922
+ * Color for the specific legend
1923
+ */
1924
+ legendColor: string;
1925
+ }
1926
+
1927
+ declare interface LegendMap {
1928
+ [key: string]: boolean;
1929
+ }
1930
+
1931
+ export declare const Legends: React_2.FunctionComponent<LegendsProps>;
1932
+
1933
+ /**
1934
+ * @public
1935
+ * The shape for the legend
1936
+ * default: show the rect legend
1937
+ * triangle: show the triangle legend
1938
+ * {@docCategory Legends}
1939
+ */
1940
+ export declare type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;
1941
+
1942
+ /**
1943
+ * @public
1944
+ * Legend properties
1945
+ * {@docCategory Legends}
1946
+ */
1947
+ export declare interface LegendsProps {
1948
+ /**
1949
+ * Prop that takes list of legends
1950
+ */
1951
+ legends: Legend[];
1952
+ /**
1953
+ * Additional CSS class(es) to apply to the legneds component.
1954
+ */
1955
+ className?: string;
1956
+ /**
1957
+ * Call to provide customized styling that will layer on top of the variant rules.
1958
+ */
1959
+ styles?: LegendsStyles;
1960
+ /**
1961
+ * This prop makes the legends component align itself to the center in the container it is sitting in
1962
+ */
1963
+ centerLegends?: boolean;
1964
+ /**
1965
+ * Enable the legends to wrap lines if there is not enough space to show all legends on a single line
1966
+ */
1967
+ enabledWrapLines?: boolean;
1968
+ /**
1969
+ * style for the overflow component
1970
+ */
1971
+ overflowStyles?: React_2.CSSProperties;
1972
+ /**
1973
+ * text for overflow legends string
1974
+ */
1975
+ overflowText?: string;
1976
+ /**
1977
+ * prop that decides if legends are focusable
1978
+ * @default true
1979
+ */
1980
+ allowFocusOnLegends?: boolean;
1981
+ /**
1982
+ * prop that decide if we can select multiple legends or single legend at a time
1983
+ * @default false
1984
+ */
1985
+ canSelectMultipleLegends?: boolean;
1986
+ /**
1987
+ * Callback issued when the selected option changes.
1988
+ */
1989
+ onChange?: (selectedLegends: string[], event: React_2.MouseEvent<HTMLButtonElement>, currentLegend?: Legend) => void;
1990
+ /**
1991
+ * Keys (title) that will be initially used to set selected items. This prop is used for multi-select scenarios when
1992
+ * canSelectMultipleLegends is true; for single-select, use defaultSelectedLegend.
1993
+ *
1994
+ * Updating this prop does not change the selection after the component has been initialized. For controlled
1995
+ * selections, use selectedLegends instead.
1996
+ *
1997
+ * @see selectedLegends for setting the selected legends in controlled mode.
1998
+ * @see defaultSelectedLegend for setting the initially selected legend when canSelectMultipleLegends is false.
1999
+ */
2000
+ defaultSelectedLegends?: string[];
2001
+ /**
2002
+ * Key that will be initially used to set selected item. This prop is used for single-select scenarios when
2003
+ * canSelectMultipleLegends is false or unspecified; for multi-select, use defaultSelectedLegends.
2004
+ *
2005
+ * Updating this prop does not change the selection after the component has been initialized. For controlled
2006
+ * selections, use selectedLegend instead.
2007
+ *
2008
+ * @see selectedLegend for setting the selected legend in controlled mode.
2009
+ * @see defaultSelectedLegends for setting the initially selected legends when canSelectMultipleLegends is true.
2010
+ */
2011
+ defaultSelectedLegend?: string;
2012
+ /**
2013
+ * Keys (title) that will be used to set selected items in multi-select scenarios when canSelectMultipleLegends is
2014
+ * true. For single-select, use selectedLegend.
2015
+ *
2016
+ * When this prop is provided, the component is controlled and does not automatically update the selection based on
2017
+ * user interactions; the parent component must update the value passed to this property by handling the onChange
2018
+ * event.
2019
+ *
2020
+ * @see defaultSelectedLegends for setting the initially-selected legends in uncontrolled mode.
2021
+ * @see selectedLegends for setting the selected legends when `canSelectMultipleLegends` is `true`.
2022
+ */
2023
+ selectedLegends?: string[];
2024
+ /**
2025
+ * Key (title) that will be used to set the selected item in single-select scenarios when canSelectMultipleLegends is
2026
+ * false or unspecified. For multi-select, use selectedLegends.
2027
+ *
2028
+ * When this prop is provided, the component is controlled and does not automatically update the selection based on
2029
+ * user interactions; the parent component must update the value passed to this property by handling the onChange
2030
+ * event.
2031
+ *
2032
+ * @see defaultSelectedLegend for setting the initially-selected legend in uncontrolled mode.
2033
+ * @see selectedLegend for setting the selected legend when `canSelectMultipleLegends` is `false`.
2034
+ */
2035
+ selectedLegend?: string;
2036
+ /**
2037
+ * The shape for the legend.
2038
+ */
2039
+ shape?: LegendShape;
2040
+ }
2041
+
2042
+ /**
2043
+ * @public
2044
+ * Legends styles
2045
+ * {@docCategory Legends}
2046
+ */
2047
+ export declare interface LegendsStyles {
2048
+ /**
2049
+ * Style set for the root of the legend component
2050
+ */
2051
+ root?: string;
2052
+ /**
2053
+ * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend
2054
+ */
2055
+ legend?: string;
2056
+ /**
2057
+ * Style set for the rectangle that represents a legend
2058
+ */
2059
+ rect?: string;
2060
+ /**
2061
+ * styles set for the shape that represents a legend
2062
+ */
2063
+ shape?: string;
2064
+ /**
2065
+ * Style set for the triangle that represents a legend
2066
+ */
2067
+ triangle?: string;
2068
+ /**
2069
+ * Style for the legend text
2070
+ */
2071
+ text?: string;
2072
+ /**
2073
+ * Style for the legend text
2074
+ */
2075
+ hoverChange?: string;
2076
+ /**
2077
+ * Style for the area that is resizable
2078
+ */
2079
+ resizableArea?: string;
2080
+ }
2081
+
2082
+ export declare interface LegendState {
2083
+ activeLegend: string;
2084
+ /** Set of legends selected, both for multiple selection and single selection */
2085
+ selectedLegends: LegendMap;
2086
+ }
2087
+
2088
+ /**
2089
+ * @public
2090
+ * Legend style properties
2091
+ * {@docCategory Legends}
2092
+ */
2093
+ export declare interface LegendStyleProps {
2094
+ className?: string;
2095
+ colorOnSelectedState?: string;
2096
+ borderColor?: string;
2097
+ opacity?: number;
2098
+ overflow?: boolean;
2099
+ stripePattern?: boolean;
2100
+ isLineLegendInBarChart?: boolean;
2101
+ }
2102
+
2103
+ /**
2104
+ * Linechart component
2105
+ * {@docCategory LineChart}
2106
+ */
2107
+ export declare const LineChart: React_2.FunctionComponent<LineChartProps>;
2108
+
2109
+ /**
2110
+ * {@docCategory ChartData}
2111
+ */
2112
+ export declare interface LineChartDataPoint extends BaseDataPoint {
2113
+ /**
2114
+ * Independent value of the data point, rendered along the x-axis.
2115
+ */
2116
+ x: number | Date;
2117
+ /**
2118
+ * Dependent value of the data point, rendered along the y-axis.
2119
+ */
2120
+ y: number;
2121
+ }
2122
+
2123
+ /**
2124
+ * {@docCategory ChartData}
2125
+ */
2126
+ export declare interface LineChartGap {
2127
+ /**
2128
+ * Starting index of the gap.
2129
+ */
2130
+ startIndex: number;
2131
+ /**
2132
+ * Ending index of the gap.
2133
+ */
2134
+ endIndex: number;
2135
+ }
2136
+
2137
+ /**
2138
+ * {@docCategory ChartProps}
2139
+ */
2140
+ export declare interface LineChartLineOptions extends SVGProps<SVGPathElement> {
2141
+ /**
2142
+ * Width of the line/stroke.
2143
+ * Overrides the strokeWidth set on ICartesianChartProps level.
2144
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width
2145
+ */
2146
+ strokeWidth?: number | string;
2147
+ /**
2148
+ * Pattern of dashes and gaps.
2149
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
2150
+ */
2151
+ strokeDasharray?: string | number;
2152
+ /**
2153
+ * Offset on rendering of stroke dash array.
2154
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dashoffset
2155
+ */
2156
+ strokeDashoffset?: string | number;
2157
+ /**
2158
+ * Shape at the end of a subpath.
2159
+ * Default round.
2160
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
2161
+ */
2162
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
2163
+ /**
2164
+ * Width of border around the line. Default no border.
2165
+ */
2166
+ lineBorderWidth?: string | number;
2167
+ /**
2168
+ * Color of border around the line. Default white.
2169
+ */
2170
+ lineBorderColor?: string;
2171
+ /**
2172
+ * Defines the type of interpolation used to render the line.
2173
+ * @default 'linear'
2174
+ */
2175
+ curve?: 'linear' | 'natural' | 'step' | 'stepAfter' | 'stepBefore' | CurveFactory;
2176
+ }
2177
+
2178
+ /**
2179
+ * {@docCategory ChartData}
2180
+ */
2181
+ export declare interface LineChartPoints {
2182
+ /**
2183
+ * Legend text for the datapoint in the chart
2184
+ */
2185
+ legend: string;
2186
+ /**
2187
+ * The shape for the legend
2188
+ * default: show the rect legend
2189
+ */
2190
+ legendShape?: LegendShape;
2191
+ /**
2192
+ * dataPoints for the line chart
2193
+ */
2194
+ data: LineChartDataPoint[] | ScatterChartDataPoint[];
2195
+ /**
2196
+ * gaps in the line chart where a line is not drawn
2197
+ */
2198
+ gaps?: LineChartGap[];
2199
+ /**
2200
+ * color for the legend in the chart
2201
+ */
2202
+ color?: string;
2203
+ /**
2204
+ * opacity for chart fill color
2205
+ */
2206
+ opacity?: number;
2207
+ /**
2208
+ * options for the line drawn
2209
+ */
2210
+ lineOptions?: LineChartLineOptions;
2211
+ /**
2212
+ * hide dots for points that are not active
2213
+ */
2214
+ hideNonActiveDots?: boolean;
2215
+ /**
2216
+ * Defines the function that is executed on clicking this legend
2217
+ */
2218
+ onLegendClick?: (selectedLegend: string | null | string[]) => void;
2219
+ /**
2220
+ * Defines the function that is executed on clicking line
2221
+ */
2222
+ onLineClick?: () => void;
2223
+ }
2224
+
2225
+ /**
2226
+ * Line Chart properties
2227
+ * {@docCategory LineChart}
2228
+ */
2229
+ export declare interface LineChartProps extends CartesianChartProps {
2230
+ /**
2231
+ * Data to render in the chart.
2232
+ */
2233
+ data: ChartProps;
2234
+ /**
2235
+ * Call to provide customized styling that will layer on top of the variant rules.
2236
+ */
2237
+ styles?: LineChartStyles;
2238
+ /**
2239
+ * Show event annotation
2240
+ */
2241
+ eventAnnotationProps?: EventsAnnotationProps;
2242
+ /**
2243
+ * Define a custom callout renderer for a data point
2244
+ */
2245
+ onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
2246
+ /**
2247
+ * Define a custom callout renderer for a stack; default is to render per data point
2248
+ */
2249
+ onRenderCalloutPerStack?: RenderFunction<CustomizedCalloutData>;
2250
+ /**
2251
+ * Callback for getting callout description message
2252
+ */
2253
+ getCalloutDescriptionMessage?: (calloutDataProps: CustomizedCalloutData) => string | undefined;
2254
+ colorFillBars?: ColorFillBarsProps[];
2255
+ /**
2256
+ * if this is set to true, then for each line there will be a unique shape assigned to the point,
2257
+ * there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,
2258
+ * hexagon, pentagon and octagon, which will get assigned as respectively, if there are more
2259
+ * than 8 lines in the line chart then it will again start from cicle to octagon.
2260
+ * setting this flag to true will also change the behavior of the points, like for a
2261
+ * line, last point shape and first point shape will be visible all the times, and all
2262
+ * other points will get enlarge only when hovered over them
2263
+ * if set to false default shape will be circle, with the existing behavior
2264
+ * @default false
2265
+ */
2266
+ allowMultipleShapesForPoints?: boolean;
2267
+ optimizeLargeData?: boolean;
2268
+ /**
2269
+ * The prop used to define the culture to localized the numbers
2270
+ */
2271
+ culture?: string;
2272
+ /**
2273
+ * @default false
2274
+ * The prop used to enable the perf optimization
2275
+ */
2276
+ enablePerfOptimization?: boolean;
2277
+ }
2278
+
2279
+ /**
2280
+ * Line Chart style properties
2281
+ * {@docCategory LineChart}
2282
+ */
2283
+ export declare interface LineChartStyleProps extends CartesianChartStyleProps {
2284
+ }
2285
+
2286
+ /**
2287
+ * Line Chart styles
2288
+ * {@docCategory LineChart}
2289
+ */
2290
+ export declare interface LineChartStyles extends CartesianChartStyles {
2291
+ }
2292
+
2293
+ /**
2294
+ * {@docCategory ChartData}
2295
+ */
2296
+ export declare interface LineDataInVerticalBarChart {
2297
+ y: VerticalBarChartDataPoint['y'];
2298
+ yAxisCalloutData?: string | undefined;
2299
+ /**
2300
+ * onClick action for each datapoint in the chart
2301
+ */
2302
+ onClick?: VoidFunction;
2303
+ /**
2304
+ * Whether to use the secondary y scale or not
2305
+ * False by default.
2306
+ */
2307
+ useSecondaryYScale?: boolean;
2308
+ }
2309
+
2310
+ /**
2311
+ * {@docCategory ChartData}
2312
+ */
2313
+ export declare interface LineDataInVerticalStackedBarChart {
2314
+ y: number;
2315
+ color: string;
2316
+ legend: string;
2317
+ /**
2318
+ * Data to show in callout
2319
+ */
2320
+ data?: number;
2321
+ yAxisCalloutData?: string;
2322
+ /**
2323
+ * Whether to use the secondary y scale or not
2324
+ * False by default.
2325
+ */
2326
+ useSecondaryYScale?: boolean;
2327
+ /**
2328
+ * options for the line drawn
2329
+ */
2330
+ lineOptions?: LineChartLineOptions;
2331
+ }
2332
+
2333
+ export declare interface MapXToDataSet {
2334
+ [key: string]: LineChartDataPoint[];
2335
+ [key: number]: LineChartDataPoint[];
2336
+ }
2337
+
2338
+ /**
2339
+ * {@docCategory ChartProps}
2340
+ */
2341
+ export declare interface Margins {
2342
+ /**
2343
+ * left margin for the chart.
2344
+ */
2345
+ left?: number;
2346
+ /**
2347
+ * Right margin for the chart.
2348
+ */
2349
+ right?: number;
2350
+ /**
2351
+ * Top margin for the chart.
2352
+ */
2353
+ top?: number;
2354
+ /**
2355
+ * Bottom margin for the chart.
2356
+ */
2357
+ bottom?: number;
2358
+ }
2359
+
2360
+ export declare interface ModifiedCartesianChartProps extends CartesianChartProps {
2361
+ /**
2362
+ * Define the chart title
2363
+ */
2364
+ chartTitle?: string;
2365
+ /**
2366
+ * Only used for Area chart
2367
+ * Value used to draw y axis of that chart.
2368
+ */
2369
+ maxOfYVal?: number;
2370
+ /**
2371
+ * Data of the chart
2372
+ */
2373
+ points: any;
2374
+ /**
2375
+ * Define type of the chart
2376
+ */
2377
+ chartType: ChartTypes;
2378
+ /** X axis type */
2379
+ xAxisType: XAxisTypes;
2380
+ /** Y axis type */
2381
+ yAxisType?: YAxisType;
2382
+ /**
2383
+ * Legends of the chart.
2384
+ */
2385
+ legendBars: JSX.Element | null;
2386
+ /**
2387
+ * Callout props
2388
+ */
2389
+ calloutProps?: ChartPopoverProps;
2390
+ /**
2391
+ * Callback method used for to get margins to the chart.
2392
+ */
2393
+ getmargins?: (margins: Margins) => void;
2394
+ /**
2395
+ * This is a call back method to the chart from cartesian chart.
2396
+ * params are xScale, yScale, containerHeight, containerWidth. These values were used to draw the graph.
2397
+ * It also contians an optional param xAxisElement - defines as x axis scale element.
2398
+ * This param used to enable feature word wrap of Xaxis.
2399
+ */
2400
+ getGraphData?: any;
2401
+ /**
2402
+ * Used for bar chart graphs.
2403
+ * To define width of the bar
2404
+ */
2405
+ barwidth?: number;
2406
+ /**
2407
+ * Used for tick styles of the x axis of the chart
2408
+ * Tick params are applicable for date axis only.
2409
+ */
2410
+ tickParams?: {
2411
+ tickValues?: number[] | Date[] | string[];
2412
+ tickFormat?: string;
2413
+ };
2414
+ /**
2415
+ * it's padding between bar's or lines in the graph
2416
+ */
2417
+ xAxisPadding?: number;
2418
+ /**
2419
+ * it's padding between bar's or lines in the graph
2420
+ */
2421
+ yAxisPadding?: number;
2422
+ /**
2423
+ * Children elements specific to derived chart types.
2424
+ */
2425
+ children(props: ChildProps): React_2.ReactNode;
2426
+ /**
2427
+ * To enable callout for individual bar or complete stack. Using for only Vertical stacked bar chart.
2428
+ * @default false
2429
+ * @type \{boolean \}
2430
+ */
2431
+ isCalloutForStack?: boolean;
2432
+ /** dataset values to find out domain of the String axis
2433
+ * Present using for only vertical stacked bar chart and grouped vertical bar chart
2434
+ */
2435
+ datasetForXAxisDomain?: string[];
2436
+ /** Own callout design */
2437
+ customizedCallout?: any;
2438
+ /**
2439
+ * if the data points for the y-axis is of type string, then we need to give this
2440
+ * prop to construct the y-axis
2441
+ */
2442
+ stringDatasetForYAxisDomain?: string[];
2443
+ /**
2444
+ * The prop used to define the culture to localize the numbers and date
2445
+ */
2446
+ culture?: string;
2447
+ getAxisData?: any;
2448
+ /**
2449
+ * Callback method used when mouse leaves the chart boundary.
2450
+ */
2451
+ onChartMouseLeave?: () => void;
2452
+ /** Callback method to get extra margins for domain */
2453
+ getDomainMargins?: (containerWidth: number) => Margins;
2454
+ /** Padding between each bar/line-point */
2455
+ xAxisInnerPadding?: number;
2456
+ /** Padding before first bar/line-point and after last bar/line-point */
2457
+ xAxisOuterPadding?: number;
2458
+ /**
2459
+ *@default false
2460
+ *Used for to elipse y axis labes and show tooltip on x axis labels
2461
+ */
2462
+ showYAxisLablesTooltip?: boolean;
2463
+ /**
2464
+ *@default false
2465
+ *Used for showing complete y axis lables */
2466
+ showYAxisLables?: boolean;
2467
+ /**
2468
+ * @default false
2469
+ * Used to control the first render cycle Performance optimization code.
2470
+ */
2471
+ enableFirstRenderOptimization?: boolean;
2472
+ }
2473
+
2474
+ declare type NodesInColumns = {
2475
+ [key: number]: SNode[];
2476
+ };
2477
+
2478
+ /**
2479
+ * we need to make sure that if we add any property to this, then
2480
+ * we need to also add that in pointTypes below and vise-versa
2481
+ */
2482
+ declare enum Points {
2483
+ circle = 0,
2484
+ square = 1,
2485
+ triangle = 2,
2486
+ diamond = 3,
2487
+ pyramid = 4,
2488
+ hexagon = 5,
2489
+ pentagon = 6,
2490
+ octagon = 7
2491
+ }
2492
+
2493
+ export declare interface PopoverComponentStyles {
2494
+ calloutContentRoot: string;
2495
+ calloutDateTimeContainer: string;
2496
+ calloutContentX: string;
2497
+ calloutBlockContainer: string;
2498
+ calloutBlockContainertoDrawShapefalse: string;
2499
+ calloutBlockContainertoDrawShapetrue: string;
2500
+ shapeStyles: string;
2501
+ calloutlegendText: string;
2502
+ calloutContentY: string;
2503
+ descriptionMessage: string;
2504
+ ratio: string;
2505
+ numerator: string;
2506
+ denominator: string;
2507
+ calloutInfoContainer: string;
2508
+ calloutContainer: string;
2509
+ }
2510
+
2511
+ export declare function preRenderLayout(margins: Margins, containerWidth: number, containerHeight: number, isRtl: boolean): {
2512
+ sankey: SankeyLayoutGenerator;
2513
+ height: number;
2514
+ width: number;
2515
+ };
2516
+
2517
+ export declare interface RefArrayData {
2518
+ index?: string;
2519
+ refElement?: SVGGElement;
2520
+ }
2521
+
2522
+ /**
2523
+ * Render function interface for providing overrideable render callbacks.
2524
+ *
2525
+ * @public
2526
+ */
2527
+ declare interface RenderFunction<P> {
2528
+ (props?: P, defaultRender?: (props?: P) => JSX.Element | null): JSX.Element | null;
2529
+ }
2530
+
2531
+ export declare const ResponsiveContainer: React_2.FC<ResponsiveContainerProps>;
2532
+
2533
+ declare interface ResponsiveContainerProps {
2534
+ children: React_2.ReactElement;
2535
+ onResize?: (width: number, height: number) => void;
2536
+ width?: number | string;
2537
+ height?: number | string;
2538
+ }
2539
+
2540
+ export declare const SankeyChart: React_2.FunctionComponent<SankeyChartProps>;
2541
+
2542
+ /**
2543
+ * Set of strings which are used when rendering accessibility information within the chart.
2544
+ */
2545
+ export declare interface SankeyChartAccessibilityProps {
2546
+ /**
2547
+ * Aria label for when the chart is empty.
2548
+ */
2549
+ emptyAriaLabel?: string;
2550
+ /**
2551
+ * A value similar to "node \{0\} with weight \{1\}".
2552
+ * \{0\} is the name of the node.
2553
+ * \{1\} is the weight of the node (as computed by the sankey layout engine via the links to or from this node).
2554
+ */
2555
+ nodeAriaLabel?: string;
2556
+ /**
2557
+ * A value similar to "link from \{0\} to $\{1\} with weight $\{2\}".
2558
+ * \{0\} is the source node, \{1\} is the target node, and \{2\} is the value of the link.
2559
+ */
2560
+ linkAriaLabel?: string;
2561
+ }
2562
+
2563
+ /**
2564
+ * {@docCategory ChartData}
2565
+ */
2566
+ export declare interface SankeyChartData {
2567
+ nodes: SNode[];
2568
+ links: SLink[];
2569
+ }
2570
+
2571
+ /**
2572
+ * Sankey Chart properties
2573
+ * {@docCategory SankeyChart}
2574
+ */
2575
+ export declare interface SankeyChartProps {
2576
+ /**
2577
+ * Data to render in the chart.
2578
+ */
2579
+ data: ChartProps;
2580
+ /**
2581
+ * Width of the chart.
2582
+ */
2583
+ width?: number;
2584
+ /**
2585
+ * Height of the chart.
2586
+ */
2587
+ height?: number;
2588
+ /**
2589
+ * Additional CSS class(es) to apply to the SankeyChart.
2590
+ */
2591
+ className?: string;
2592
+ /**
2593
+ * Call to provide customized styling that will layer on top of the variant rules.
2594
+ */
2595
+ styles?: SankeyChartStyles;
2596
+ /**
2597
+ * this prop takes its parent as a HTML element to define the width and height of the Sankey chart
2598
+ */
2599
+ parentRef?: HTMLElement | null;
2600
+ /**
2601
+ * should chart resize when parent resize.
2602
+ */
2603
+ shouldResize?: number;
2604
+ /**
2605
+ * Color for path
2606
+ */
2607
+ pathColor?: string;
2608
+ /**
2609
+ * Colors for nodes
2610
+ */
2611
+ colorsForNodes?: string[];
2612
+ /**
2613
+ * Colors for nodes border
2614
+ */
2615
+ borderColorsForNodes?: string[];
2616
+ /**
2617
+ * Localized strings to show in the UX.
2618
+ */
2619
+ strings?: SankeyChartStrings;
2620
+ /**
2621
+ * Localized strings to use for the chart's accessibility features.
2622
+ */
2623
+ accessibility?: SankeyChartAccessibilityProps;
2624
+ /**
2625
+ * Format node and link values.
2626
+ */
2627
+ formatNumberOptions?: Intl.NumberFormatOptions;
2628
+ /**
2629
+ * Prop to disable shrinking of the chart beyond a certain limit and enable scrolling when the chart overflows
2630
+ * @default true
2631
+ */
2632
+ enableReflow?: boolean;
2633
+ /**
2634
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
2635
+ * the public methods and properties of the component.
2636
+ */
2637
+ componentRef?: RefObject<Chart>;
2638
+ /**
2639
+ * props for the callout in the chart
2640
+ */
2641
+ calloutProps?: ChartPopoverProps;
2642
+ /**
2643
+ * The prop used to define the culture to localize the numbers and date
2644
+ */
2645
+ culture?: string;
2646
+ }
2647
+
2648
+ /**
2649
+ * Set of strings which are used when rendering the chart.
2650
+ */
2651
+ export declare interface SankeyChartStrings {
2652
+ /**
2653
+ * A value similar to "from \{0\}" where \{0\} is the name of the source node for a link.
2654
+ * This is shown in the `ChartHoverCard` when the user hovers the mouse over a link.
2655
+ */
2656
+ linkFrom?: string;
2657
+ }
2658
+
2659
+ /**
2660
+ * Sankey Chart styles
2661
+ * {@docCategory SankeyChart}
2662
+ */
2663
+ export declare interface SankeyChartStyles {
2664
+ /**
2665
+ * Style for the root element.
2666
+ */
2667
+ root?: string;
2668
+ /**
2669
+ * Style for the nodes.
2670
+ */
2671
+ nodes?: string;
2672
+ /**
2673
+ * Style for the links.
2674
+ */
2675
+ links?: string;
2676
+ /**
2677
+ * Style for the text inside node.
2678
+ */
2679
+ nodeTextContainer?: string;
2680
+ /**
2681
+ * Style for the tooltip ,when user hover over the truncated node detail.
2682
+ */
2683
+ toolTip?: string;
2684
+ /**
2685
+ * Styles for the chart wrapper div
2686
+ */
2687
+ chartWrapper?: string;
2688
+ }
2689
+
2690
+ declare type SankeyLayoutGenerator = SankeyLayout<SankeyGraph<{}, {}>, {}, {}>;
2691
+
2692
+ /**
2693
+ * ScatterChart component
2694
+ * {@docCategory ScatterChart}
2695
+ */
2696
+ export declare const ScatterChart: React_2.FunctionComponent<ScatterChartProps>;
2697
+
2698
+ /**
2699
+ * {@docCategory ChartData}
2700
+ * ScatterChartDataPoint interface.
2701
+ */
2702
+ export declare interface ScatterChartDataPoint extends BaseDataPoint {
2703
+ /**
2704
+ * Independent value of the data point, rendered along the x-axis.
2705
+ */
2706
+ x: number | Date | string;
2707
+ /**
2708
+ * Dependent value of the data point, rendered along the y-axis.
2709
+ */
2710
+ y: number;
2711
+ /**
2712
+ * Marker size of the points
2713
+ */
2714
+ markerSize?: number;
2715
+ }
2716
+
2717
+ /**
2718
+ * Line Chart properties
2719
+ * {@docCategory LineChart}
2720
+ */
2721
+ export declare interface ScatterChartProps extends CartesianChartProps {
2722
+ /**
2723
+ * Data to render in the chart.
2724
+ */
2725
+ data: ChartProps;
2726
+ /**
2727
+ * Call to provide customized styling that will layer on top of the variant rules.
2728
+ */
2729
+ styles?: ScatterChartStyles;
2730
+ /**
2731
+ * Define a custom callout renderer for a data point
2732
+ */
2733
+ onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
2734
+ /**
2735
+ * Callback for getting callout description message
2736
+ */
2737
+ getCalloutDescriptionMessage?: (calloutDataProps: CustomizedCalloutData) => string | undefined;
2738
+ /**
2739
+ * The prop used to define the culture to localized the numbers
2740
+ */
2741
+ culture?: string;
2742
+ }
2743
+
2744
+ /**
2745
+ * Scatter Chart style properties
2746
+ * {@docCategory ScatterChart}
2747
+ */
2748
+ export declare interface ScatterChartStyleProps extends CartesianChartStyleProps {
2749
+ }
2750
+
2751
+ /**
2752
+ * Scatter Chart styles
2753
+ * {@docCategory ScatterChart}
2754
+ */
2755
+ export declare interface ScatterChartStyles extends CartesianChartStyles {
2756
+ }
2757
+
2758
+ /**
2759
+ * DeclarativeChart schema.
2760
+ * {@docCategory DeclarativeChart}
2761
+ */
2762
+ export declare interface Schema {
2763
+ /**
2764
+ * Plotly schema represented as JSON object
2765
+ */
2766
+ plotlySchema: any;
2767
+ }
2768
+
2769
+ export declare const Shape: React_2.FunctionComponent<ShapeProps>;
2770
+
2771
+ export declare interface ShapeProps {
2772
+ svgProps: React_2.SVGAttributes<SVGElement>;
2773
+ pathProps: React_2.SVGAttributes<SVGPathElement>;
2774
+ shape: LegendShape;
2775
+ classNameForNonSvg?: string;
2776
+ style?: React_2.CSSProperties | undefined;
2777
+ }
2778
+
2779
+ export declare type SLink = SankeyLink<SNodeExtra, SLinkExtra>;
2780
+
2781
+ declare interface SLinkExtra {
2782
+ /**
2783
+ * The index within `ISankeyChartData.nodes` of the source node.
2784
+ */
2785
+ source: number;
2786
+ /**
2787
+ * The index within `ISankeyChartData.nodes` of the target node.
2788
+ */
2789
+ target: number;
2790
+ /**
2791
+ * The weight of this link between the two nodes.
2792
+ */
2793
+ value: number;
2794
+ unnormalizedValue?: number;
2795
+ }
2796
+
2797
+ export declare type SNode = SankeyNode<SNodeExtra, SLinkExtra>;
2798
+
2799
+ declare interface SNodeExtra {
2800
+ /**
2801
+ * A unique identifier for this node.
2802
+ */
2803
+ nodeId: number | string;
2804
+ /**
2805
+ * The display name for this node in the UX.
2806
+ */
2807
+ name: string;
2808
+ color?: string;
2809
+ borderColor?: string;
2810
+ actualValue?: number;
2811
+ layer?: number;
2812
+ }
2813
+
2814
+ /**
2815
+ * Sparkline is the context wrapper and container for all Sparkline content/controls,
2816
+ * It has no direct style or slot opinions.
2817
+ *
2818
+ * Sparkline also provides API interfaces for callbacks that will occur on navigation events.
2819
+ */
2820
+ export declare const Sparkline: React_2.FunctionComponent<SparklineProps>;
2821
+
2822
+ /**
2823
+ * Sparkline properties
2824
+ * {@docCategory SparklineChart}
2825
+ */
2826
+ export declare interface SparklineProps extends React.RefAttributes<HTMLDivElement> {
2827
+ /**
2828
+ * An array of chart data points for the Sparkline chart
2829
+ */
2830
+ data?: ChartProps;
2831
+ /**
2832
+ * Width of chart
2833
+ * * @default 80
2834
+ */
2835
+ width?: number;
2836
+ /**
2837
+ * Height of chart
2838
+ * @default 20
2839
+ */
2840
+ height?: number;
2841
+ /**
2842
+ * Width of value text
2843
+ * * @default 80
2844
+ */
2845
+ valueTextWidth?: number;
2846
+ /**
2847
+ * Additional CSS class(es) to apply to the SparklineChart.
2848
+ */
2849
+ className?: string;
2850
+ /**
2851
+ * The prop used to define the culture to localized the numbers
2852
+ */
2853
+ culture?: string;
2854
+ /**
2855
+ * Prop used to determine whether to show the legend or not
2856
+ */
2857
+ showLegend?: boolean;
2858
+ /**
2859
+ * Call to provide customized styling that will layer on top of the variant rules.
2860
+ */
2861
+ styles?: SparklineStyles;
2862
+ }
2863
+
2864
+ export declare interface SparklineStyleProps extends CartesianChartStyleProps {
2865
+ }
2866
+
2867
+ /**
2868
+ * Sparkline styles
2869
+ * {@docCategory SparklineChart}
2870
+ */
2871
+ export declare interface SparklineStyles {
2872
+ inlineBlock?: string;
2873
+ valueText?: string;
2874
+ }
2875
+
2876
+ export declare const Textbox: React_2.FunctionComponent<TextboxProps>;
2877
+
2878
+ declare interface TextboxProps {
2879
+ text: string;
2880
+ width: number;
2881
+ x: number;
2882
+ y: number;
2883
+ lineHeight: number;
2884
+ textAnchor?: 'start' | 'middle' | 'end';
2885
+ fontSize?: string;
2886
+ fill?: string;
2887
+ }
2888
+
2889
+ /**
2890
+ * VerticalBarchart component
2891
+ * {@docCategory VerticalBarChart}
2892
+ */
2893
+ export declare const VerticalBarChart: React_2.FunctionComponent<VerticalBarChartProps>;
2894
+
2895
+ /**
2896
+ * {@docCategory ChartData}
2897
+ */
2898
+ export declare interface VerticalBarChartDataPoint {
2899
+ /**
2900
+ * Independent value of the data point, rendered along the x-axis.
2901
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
2902
+ * If x is a string, then the data is evenly spaced along the x-axis.
2903
+ */
2904
+ x: number | string | Date;
2905
+ /**
2906
+ * Dependent value of the data point, rendered along the y-axis.
2907
+ */
2908
+ y: number;
2909
+ /**
2910
+ * Legend text for the datapoint in the chart
2911
+ */
2912
+ legend?: string;
2913
+ /**
2914
+ * color for the legend in the chart
2915
+ */
2916
+ color?: string;
2917
+ /**
2918
+ * Callout data for x axis
2919
+ * This is an optional prop, If haven;t given legend will take
2920
+ */
2921
+ xAxisCalloutData?: string;
2922
+ /**
2923
+ * Callout data for y axis
2924
+ * This is an optional prop, If haven't given data will take
2925
+ */
2926
+ yAxisCalloutData?: string;
2927
+ /**
2928
+ * data to render the line along with bars
2929
+ */
2930
+ lineData?: LineDataInVerticalBarChart;
2931
+ /**
2932
+ * onClick action for each datapoint in the chart
2933
+ */
2934
+ onClick?: VoidFunction;
2935
+ /**
2936
+ * Accessibility data for callout
2937
+ */
2938
+ callOutAccessibilityData?: AccessibilityProps;
2939
+ }
2940
+
2941
+ /**
2942
+ * Vertical Bar Chart properties
2943
+ * {@docCategory VerticalBarChart}
2944
+ */
2945
+ export declare interface VerticalBarChartProps extends CartesianChartProps {
2946
+ /**
2947
+ * Data to render in the chart.
2948
+ */
2949
+ data?: VerticalBarChartDataPoint[];
2950
+ /**
2951
+ * Define a custom callout renderer for a data point.
2952
+ */
2953
+ onRenderCalloutPerDataPoint?: RenderFunction<VerticalBarChartDataPoint>;
2954
+ /**
2955
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
2956
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
2957
+ * @default 16
2958
+ */
2959
+ barWidth?: number | 'default' | 'auto';
2960
+ /**
2961
+ * Colors from which to select the color of each bar.
2962
+ */
2963
+ colors?: string[];
2964
+ /**
2965
+ * chart title for the chart
2966
+ */
2967
+ chartTitle?: string;
2968
+ /**
2969
+ * Legend text for the line datapoint in the chart
2970
+ */
2971
+ lineLegendText?: string;
2972
+ /**
2973
+ * color for the legend of the line in the chart
2974
+ * @default theme.yellow
2975
+ */
2976
+ lineLegendColor?: string;
2977
+ /**
2978
+ * This prop makes sure that all the bars are of same color.
2979
+ * it will take the first color from the array of colors in
2980
+ * prop `colors` or if `colors` prop is not given then default color is palette.blueLight
2981
+ * @default false
2982
+ */
2983
+ useSingleColor?: boolean;
2984
+ /**
2985
+ * Call to provide customized styling that will layer on top of the variant rules.
2986
+ */
2987
+ styles?: VerticalBarChartStyles;
2988
+ /**
2989
+ * The prop used to define the culture to localized the numbers
2990
+ */
2991
+ culture?: string;
2992
+ /**
2993
+ * it's padding between bar's or lines in the graph
2994
+ */
2995
+ xAxisPadding?: number;
2996
+ /**
2997
+ * options for the line drawn
2998
+ */
2999
+ lineOptions?: LineChartLineOptions;
3000
+ /**
3001
+ * Prop to hide the bar labels
3002
+ * @default false
3003
+ */
3004
+ hideLabels?: boolean;
3005
+ /**
3006
+ * Maximum width of a bar, in pixels.
3007
+ * @default 24
3008
+ */
3009
+ maxBarWidth?: number;
3010
+ /**
3011
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
3012
+ * Takes a number in the range [0, 1]. Only applicable to string x-axis.
3013
+ * @default 2/3
3014
+ */
3015
+ xAxisInnerPadding?: number;
3016
+ /**
3017
+ * Padding before the first bar and after the last bar as a fraction of
3018
+ * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
3019
+ * Only applicable to string x-axis.
3020
+ */
3021
+ xAxisOuterPadding?: number;
3022
+ /**
3023
+ * @default false
3024
+ * The prop used to enable gradient fill color for the chart.
3025
+ */
3026
+ enableGradient?: boolean;
3027
+ /**
3028
+ * @default false
3029
+ * The prop used to enable rounded corners for the chart.
3030
+ */
3031
+ roundCorners?: boolean;
3032
+ /**
3033
+ * Specifies the mode of the chart.
3034
+ * @default 'default'
3035
+ */
3036
+ mode?: 'default' | 'plotly';
3037
+ }
3038
+
3039
+ /**
3040
+ * Vertical Bar Chart style properties
3041
+ * {@docCategory VerticalBarChart}
3042
+ */
3043
+ export declare interface VerticalBarChartStyleProps extends CartesianChartStyleProps {
3044
+ /**
3045
+ * color of the datapoint legend
3046
+ */
3047
+ legendColor?: string;
3048
+ }
3049
+
3050
+ /**
3051
+ * Vertical Bar Chart styles
3052
+ * {@docCategory VerticalBarChart}
3053
+ */
3054
+ export declare interface VerticalBarChartStyles extends CartesianChartStyles {
3055
+ /**
3056
+ * Style for the bar labels
3057
+ */
3058
+ barLabel: string;
3059
+ }
3060
+
3061
+ export declare const VerticalStackedBarChart: React_2.FunctionComponent<VerticalStackedBarChartProps>;
3062
+
3063
+ /**
3064
+ * Vertical Stacked Bar Chart properties
3065
+ * {@docCategory VerticalStackedBarChart}
3066
+ */
3067
+ export declare interface VerticalStackedBarChartProps extends CartesianChartProps {
3068
+ /**
3069
+ * Data to render in the chart.
3070
+ */
3071
+ data: VerticalStackedChartProps[];
3072
+ /**
3073
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
3074
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
3075
+ */
3076
+ barWidth?: number | 'default' | 'auto';
3077
+ /**
3078
+ * Gap (max) between bars in a stack. When non-zero, the bars in a stack will
3079
+ * be separated by gaps. The actual size of each gap is calculated as 20% of
3080
+ * the height of that stack, with a minimum size of 1px and a maximum given by
3081
+ * this prop.
3082
+ * @default 0
3083
+ */
3084
+ barGapMax?: number;
3085
+ /**
3086
+ * Corner radius of the bars
3087
+ * @default 0
3088
+ */
3089
+ barCornerRadius?: number;
3090
+ /**
3091
+ * The minimum height of a bar; bars below this height will be displayed at
3092
+ * this height. Note that this setting will result in the height of these data
3093
+ * points not being to scale.
3094
+ * @default 0
3095
+ */
3096
+ barMinimumHeight?: number;
3097
+ /**
3098
+ * chart title for the chart
3099
+ */
3100
+ chartTitle?: string;
3101
+ /**
3102
+ * To display multi stack callout or single callout
3103
+ * @default flase
3104
+ */
3105
+ isCalloutForStack?: boolean;
3106
+ /**
3107
+ * Call to provide customized styling that will layer on top of the variant rules.
3108
+ */
3109
+ styles?: VerticalStackedBarChartStyles;
3110
+ /**
3111
+ * Define a custom callout renderer for a stack; default is to render per data point
3112
+ */
3113
+ onRenderCalloutPerStack?: RenderFunction<VerticalStackedChartProps>;
3114
+ /**
3115
+ * Define a custom callout renderer for a data point
3116
+ */
3117
+ onRenderCalloutPerDataPoint?: RenderFunction<VSChartDataPoint>;
3118
+ /**
3119
+ * yMinValue is not supported for bar charts, so only allow "undefined"
3120
+ */
3121
+ yMinValue?: undefined;
3122
+ /**
3123
+ * Allow hover actions on the legend
3124
+ * @default true
3125
+ */
3126
+ allowHoverOnLegend?: boolean;
3127
+ /**
3128
+ * Click handler for bars; type of data is dependant on isCalloutForStack
3129
+ */
3130
+ onBarClick?: (event: React_2.MouseEvent<SVGElement>, data: VerticalStackedChartProps | VSChartDataPoint) => void;
3131
+ /**
3132
+ * The prop used to define the culture to localized the numbers
3133
+ */
3134
+ culture?: string;
3135
+ /**
3136
+ * it's padding between bar's or lines in the graph
3137
+ */
3138
+ xAxisPadding?: number;
3139
+ /**
3140
+ * options for the line drawn
3141
+ */
3142
+ lineOptions?: LineChartLineOptions;
3143
+ /**
3144
+ * Prop to hide the bar labels
3145
+ * @default false
3146
+ */
3147
+ hideLabels?: boolean;
3148
+ /**
3149
+ * Maximum width of a bar, in pixels.
3150
+ * @default 24
3151
+ */
3152
+ maxBarWidth?: number;
3153
+ /**
3154
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
3155
+ * Takes a number in the range [0, 1]. Only applicable to string x-axis.
3156
+ * @default 2/3
3157
+ */
3158
+ xAxisInnerPadding?: number;
3159
+ /**
3160
+ * Padding before the first bar and after the last bar as a fraction of
3161
+ * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
3162
+ * Only applicable to string x-axis.
3163
+ */
3164
+ xAxisOuterPadding?: number;
3165
+ /**
3166
+ * @default false
3167
+ * The prop used to enable gradient fill color for the chart.
3168
+ */
3169
+ enableGradient?: boolean;
3170
+ /**
3171
+ * @default false
3172
+ * The prop used to enable rounded corners for the chart.
3173
+ */
3174
+ roundCorners?: boolean;
3175
+ /**
3176
+ * Specifies the mode of the chart.
3177
+ * @default 'default'
3178
+ */
3179
+ mode?: 'default' | 'plotly';
3180
+ }
3181
+
3182
+ /**
3183
+ * Vertical Stacked Bar Chart style properties
3184
+ * {@docCategory VerticalStackedBarChart}
3185
+ */
3186
+ export declare interface VerticalStackedBarChartStyleProps extends CartesianChartStyleProps {
3187
+ }
3188
+
3189
+ /**
3190
+ * Vertical Stacked Bar Chart styles
3191
+ * {@docCategory VerticalStackedBarChart}
3192
+ */
3193
+ export declare interface VerticalStackedBarChartStyles extends CartesianChartStyles {
3194
+ /**
3195
+ * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
3196
+ */
3197
+ opacityChangeOnHover?: string;
3198
+ /**
3199
+ * Style for the bar labels
3200
+ */
3201
+ barLabel: string;
3202
+ }
3203
+
3204
+ /**
3205
+ * {@docCategory ChartData}
3206
+ */
3207
+ export declare interface VerticalStackedBarDataPoint extends Omit<DataPoint, 'x'> {
3208
+ /**
3209
+ * Independent value of the data point, rendered along the x-axis.
3210
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
3211
+ * If x is a string, then the data is evenly spaced along the x-axis.
3212
+ * If data type on x is Date, then the data is spaced evenly by d3-scale.
3213
+ */
3214
+ x: number | string | Date;
3215
+ }
3216
+
3217
+ /**
3218
+ * {@docCategory ChartProps}
3219
+ */
3220
+ export declare interface VerticalStackedChartProps {
3221
+ /**
3222
+ * data for the points in the chart
3223
+ */
3224
+ chartData: VSChartDataPoint[];
3225
+ /**
3226
+ * Data for x axis label for multistacked Vertical bar chart
3227
+ */
3228
+ xAxisPoint: number | string | Date;
3229
+ /**
3230
+ * Callout data for x axis
3231
+ * This is an optional prop, If haven't given, legend will take
3232
+ */
3233
+ xAxisCalloutData?: string;
3234
+ /**
3235
+ * line data to render lines on stacked bar chart
3236
+ */
3237
+ lineData?: LineDataInVerticalStackedBarChart[];
3238
+ /**
3239
+ * Accessibility data for Whole stack callout
3240
+ */
3241
+ stackCallOutAccessibilityData?: AccessibilityProps;
3242
+ }
3243
+
3244
+ /**
3245
+ * {@docCategory ChartData}
3246
+ */
3247
+ export declare interface VSChartDataPoint {
3248
+ /**
3249
+ * data the datapoint in the chart
3250
+ */
3251
+ data: number;
3252
+ /**
3253
+ * Legend text for the datapoint in the chart
3254
+ */
3255
+ legend: string;
3256
+ /**
3257
+ * color for the legend in the chart
3258
+ */
3259
+ color?: string;
3260
+ /**
3261
+ * Callout data for x axis
3262
+ * This is an optional prop, If haven;t given legend will take
3263
+ */
3264
+ xAxisCalloutData?: string;
3265
+ /**
3266
+ * Callout data for y axis
3267
+ * This is an optional prop, If haven't given data will take
3268
+ */
3269
+ yAxisCalloutData?: string;
3270
+ /**
3271
+ * Accessibility data for callout
3272
+ */
3273
+ callOutAccessibilityData?: AccessibilityProps;
3274
+ /**
3275
+ * The prop used to define the culture to localized the numbers
3276
+ */
3277
+ culture?: string;
3278
+ }
3279
+
3280
+ declare enum XAxisTypes {
3281
+ NumericAxis = 0,
3282
+ DateAxis = 1,
3283
+ StringAxis = 2
3284
+ }
3285
+
3286
+ declare enum YAxisType {
3287
+ NumericAxis = 0,
3288
+ DateAxis = 1,
3289
+ StringAxis = 2
3290
+ }
3291
+
3292
+ export declare interface YValueHover {
3293
+ legend?: string;
3294
+ y?: number;
3295
+ color?: string;
3296
+ data?: string | number;
3297
+ shouldDrawBorderBottom?: boolean;
3298
+ yAxisCalloutData?: string | {
3299
+ [id: string]: number;
3300
+ };
3301
+ index?: number;
3302
+ callOutAccessibilityData?: AccessibilityProps;
3303
+ }
3304
+
3305
+ export { }