@fluentui/react-charts 1.2.0 → 9.0.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 (364) hide show
  1. package/CHANGELOG.md +193 -15
  2. package/LICENSE +11 -17
  3. package/README.md +174 -23
  4. package/dist/index.d.ts +2143 -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/HorizontalBarChart.js +1 -0
  12. package/lib/HorizontalBarChart.js.map +1 -0
  13. package/lib/Legends.js +1 -0
  14. package/lib/Legends.js.map +1 -0
  15. package/lib/LineChart.js +1 -0
  16. package/lib/LineChart.js.map +1 -0
  17. package/lib/Popover.js +1 -0
  18. package/lib/Popover.js.map +1 -0
  19. package/lib/ResponsiveContainer.js +1 -0
  20. package/lib/ResponsiveContainer.js.map +1 -0
  21. package/lib/Sparkline.js +1 -0
  22. package/lib/Sparkline.js.map +1 -0
  23. package/lib/VerticalBarChart.js +1 -0
  24. package/lib/VerticalBarChart.js.map +1 -0
  25. package/lib/components/CommonComponents/CartesianChart.js +462 -0
  26. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  27. package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
  28. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  29. package/lib/components/CommonComponents/ChartPopover.js +187 -0
  30. package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
  31. package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
  32. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
  33. package/lib/components/CommonComponents/index.js +4 -0
  34. package/lib/components/CommonComponents/index.js.map +1 -0
  35. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +229 -0
  36. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  37. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +178 -0
  38. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  39. package/lib/components/DeclarativeChart/DeclarativeChart.js +150 -0
  40. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  41. package/lib/components/DeclarativeChart/PlotlySchema.js +7 -0
  42. package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  43. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +400 -0
  44. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  45. package/lib/components/DeclarativeChart/imageExporter.js +221 -0
  46. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
  47. package/lib/components/DeclarativeChart/index.js +1 -0
  48. package/lib/components/DeclarativeChart/index.js.map +1 -0
  49. package/lib/components/DonutChart/Arc/Arc.js +110 -0
  50. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  51. package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
  52. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  53. package/lib/components/DonutChart/Arc/index.js +2 -0
  54. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  55. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
  56. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  57. package/lib/components/DonutChart/DonutChart.js +291 -0
  58. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  59. package/lib/components/DonutChart/DonutChart.types.js +1 -0
  60. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  61. package/lib/components/DonutChart/Pie/Pie.js +72 -0
  62. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  63. package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
  64. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  65. package/lib/components/DonutChart/Pie/index.js +2 -0
  66. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  67. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +44 -0
  68. package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  69. package/lib/components/DonutChart/index.js +3 -0
  70. package/lib/components/DonutChart/index.js.map +1 -0
  71. package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
  72. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  73. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
  74. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  75. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  76. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  77. package/lib/components/HorizontalBarChart/index.js +3 -0
  78. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  79. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +163 -0
  80. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  81. package/lib/components/Legends/Legends.js +302 -0
  82. package/lib/components/Legends/Legends.js.map +1 -0
  83. package/lib/components/Legends/Legends.types.js +1 -0
  84. package/lib/components/Legends/Legends.types.js.map +1 -0
  85. package/lib/components/Legends/OverflowMenu.js +25 -0
  86. package/lib/components/Legends/OverflowMenu.js.map +1 -0
  87. package/lib/components/Legends/index.js +3 -0
  88. package/lib/components/Legends/index.js.map +1 -0
  89. package/lib/components/Legends/shape.js +35 -0
  90. package/lib/components/Legends/shape.js.map +1 -0
  91. package/lib/components/Legends/useLegendsStyles.styles.js +147 -0
  92. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
  93. package/lib/components/LineChart/LineChart.js +1026 -0
  94. package/lib/components/LineChart/LineChart.js.map +1 -0
  95. package/lib/components/LineChart/LineChart.types.js +3 -0
  96. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  97. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
  98. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  99. package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
  100. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  101. package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
  102. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  103. package/lib/components/LineChart/index.js +4 -0
  104. package/lib/components/LineChart/index.js.map +1 -0
  105. package/lib/components/LineChart/useLineChartStyles.styles.js +65 -0
  106. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  107. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
  108. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  109. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
  110. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  111. package/lib/components/ResponsiveContainer/index.js +1 -0
  112. package/lib/components/ResponsiveContainer/index.js.map +1 -0
  113. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
  114. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  115. package/lib/components/Sparkline/Sparkline.js +119 -0
  116. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  117. package/lib/components/Sparkline/Sparkline.types.js +4 -0
  118. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  119. package/lib/components/Sparkline/index.js +3 -0
  120. package/lib/components/Sparkline/index.js.map +1 -0
  121. package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
  122. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  123. package/lib/components/VerticalBarChart/VerticalBarChart.js +849 -0
  124. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  125. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
  126. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  127. package/lib/components/VerticalBarChart/index.js +3 -0
  128. package/lib/components/VerticalBarChart/index.js.map +1 -0
  129. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +74 -0
  130. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  131. package/lib/index.js +12 -8
  132. package/lib/index.js.map +1 -1
  133. package/lib/types/DataPoint.js +3 -0
  134. package/lib/types/DataPoint.js.map +1 -0
  135. package/lib/types/EventAnnotation.js +1 -0
  136. package/lib/types/EventAnnotation.js.map +1 -0
  137. package/lib/types/LegendDataItem.js +1 -0
  138. package/lib/types/LegendDataItem.js.map +1 -0
  139. package/lib/types/index.js +2 -2
  140. package/lib/types/index.js.map +1 -1
  141. package/lib/utilities/FocusableTooltipText.js +65 -0
  142. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  143. package/lib/utilities/KeyCodes.js +8 -0
  144. package/lib/utilities/KeyCodes.js.map +1 -0
  145. package/lib/utilities/SVGTooltipText.js +138 -0
  146. package/lib/utilities/SVGTooltipText.js.map +1 -0
  147. package/lib/utilities/async-utils.js +380 -0
  148. package/lib/utilities/async-utils.js.map +1 -0
  149. package/lib/utilities/colors.js +249 -0
  150. package/lib/utilities/colors.js.map +1 -0
  151. package/lib/utilities/getWindow.js +25 -0
  152. package/lib/utilities/getWindow.js.map +1 -0
  153. package/lib/utilities/index.js +3 -0
  154. package/lib/utilities/index.js.map +1 -0
  155. package/lib/utilities/locale-util.js +15 -0
  156. package/lib/utilities/locale-util.js.map +1 -0
  157. package/lib/utilities/overflow-utils.js +27 -0
  158. package/lib/utilities/overflow-utils.js.map +1 -0
  159. package/lib/utilities/test-data.js +276 -0
  160. package/lib/utilities/test-data.js.map +1 -0
  161. package/lib/utilities/utilities.js +1215 -0
  162. package/lib/utilities/utilities.js.map +1 -0
  163. package/lib/utilities/vbc-utils.js +27 -0
  164. package/lib/utilities/vbc-utils.js.map +1 -0
  165. package/lib-commonjs/CartesianChart.js +6 -0
  166. package/lib-commonjs/CartesianChart.js.map +1 -0
  167. package/lib-commonjs/DeclarativeChart.js +6 -0
  168. package/lib-commonjs/DeclarativeChart.js.map +1 -0
  169. package/lib-commonjs/DonutChart.js +6 -0
  170. package/lib-commonjs/DonutChart.js.map +1 -0
  171. package/lib-commonjs/HorizontalBarChart.js +6 -0
  172. package/lib-commonjs/HorizontalBarChart.js.map +1 -0
  173. package/lib-commonjs/Legends.js +6 -0
  174. package/lib-commonjs/Legends.js.map +1 -0
  175. package/lib-commonjs/LineChart.js +6 -0
  176. package/lib-commonjs/LineChart.js.map +1 -0
  177. package/lib-commonjs/Popover.js +6 -0
  178. package/lib-commonjs/Popover.js.map +1 -0
  179. package/lib-commonjs/ResponsiveContainer.js +6 -0
  180. package/lib-commonjs/ResponsiveContainer.js.map +1 -0
  181. package/lib-commonjs/Sparkline.js +6 -0
  182. package/lib-commonjs/Sparkline.js.map +1 -0
  183. package/lib-commonjs/VerticalBarChart.js +6 -0
  184. package/lib-commonjs/VerticalBarChart.js.map +1 -0
  185. package/lib-commonjs/components/CommonComponents/CartesianChart.js +469 -0
  186. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
  187. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
  188. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
  189. package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
  190. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
  191. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
  192. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
  193. package/lib-commonjs/components/CommonComponents/index.js +9 -0
  194. package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
  195. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +356 -0
  196. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  197. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +261 -0
  198. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  199. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +158 -0
  200. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  201. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js +10 -0
  202. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  203. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +445 -0
  204. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  205. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
  206. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
  207. package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
  208. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
  209. package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
  210. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
  211. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
  212. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
  213. package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
  214. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
  215. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
  216. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  217. package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
  218. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
  219. package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
  220. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
  221. package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
  222. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
  223. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
  224. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
  225. package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
  226. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
  227. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +61 -0
  228. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  229. package/lib-commonjs/components/DonutChart/index.js +8 -0
  230. package/lib-commonjs/components/DonutChart/index.js.map +1 -0
  231. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
  232. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  233. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
  234. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  235. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
  236. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  237. package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
  238. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
  239. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +251 -0
  240. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  241. package/lib-commonjs/components/Legends/Legends.js +313 -0
  242. package/lib-commonjs/components/Legends/Legends.js.map +1 -0
  243. package/lib-commonjs/components/Legends/Legends.types.js +6 -0
  244. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
  245. package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
  246. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
  247. package/lib-commonjs/components/Legends/index.js +8 -0
  248. package/lib-commonjs/components/Legends/index.js.map +1 -0
  249. package/lib-commonjs/components/Legends/shape.js +46 -0
  250. package/lib-commonjs/components/Legends/shape.js.map +1 -0
  251. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
  252. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
  253. package/lib-commonjs/components/LineChart/LineChart.js +1032 -0
  254. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
  255. package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
  256. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
  257. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
  258. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  259. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
  260. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  261. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
  262. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  263. package/lib-commonjs/components/LineChart/index.js +9 -0
  264. package/lib-commonjs/components/LineChart/index.js.map +1 -0
  265. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +96 -0
  266. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  267. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
  268. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  269. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
  270. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  271. package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
  272. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
  273. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
  274. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  275. package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
  276. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
  277. package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
  278. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
  279. package/lib-commonjs/components/Sparkline/index.js +8 -0
  280. package/lib-commonjs/components/Sparkline/index.js.map +1 -0
  281. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
  282. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  283. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +851 -0
  284. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  285. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
  286. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  287. package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
  288. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
  289. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +117 -0
  290. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  291. package/lib-commonjs/index.js +17 -0
  292. package/lib-commonjs/index.js.map +1 -0
  293. package/lib-commonjs/types/DataPoint.js +6 -0
  294. package/lib-commonjs/types/DataPoint.js.map +1 -0
  295. package/lib-commonjs/types/EventAnnotation.js +6 -0
  296. package/lib-commonjs/types/EventAnnotation.js.map +1 -0
  297. package/lib-commonjs/types/LegendDataItem.js +4 -0
  298. package/lib-commonjs/types/LegendDataItem.js.map +1 -0
  299. package/lib-commonjs/types/index.js +7 -0
  300. package/lib-commonjs/types/index.js.map +1 -0
  301. package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
  302. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
  303. package/lib-commonjs/utilities/KeyCodes.js +18 -0
  304. package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
  305. package/lib-commonjs/utilities/SVGTooltipText.js +148 -0
  306. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
  307. package/lib-commonjs/utilities/async-utils.js +382 -0
  308. package/lib-commonjs/utilities/async-utils.js.map +1 -0
  309. package/lib-commonjs/utilities/colors.js +270 -0
  310. package/lib-commonjs/utilities/colors.js.map +1 -0
  311. package/lib-commonjs/utilities/getWindow.js +28 -0
  312. package/lib-commonjs/utilities/getWindow.js.map +1 -0
  313. package/lib-commonjs/utilities/index.js +8 -0
  314. package/lib-commonjs/utilities/index.js.map +1 -0
  315. package/lib-commonjs/utilities/locale-util.js +25 -0
  316. package/lib-commonjs/utilities/locale-util.js.map +1 -0
  317. package/lib-commonjs/utilities/overflow-utils.js +36 -0
  318. package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
  319. package/lib-commonjs/utilities/test-data.js +324 -0
  320. package/lib-commonjs/utilities/test-data.js.map +1 -0
  321. package/lib-commonjs/utilities/utilities.js +1184 -0
  322. package/lib-commonjs/utilities/utilities.js.map +1 -0
  323. package/lib-commonjs/utilities/vbc-utils.js +45 -0
  324. package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
  325. package/package.json +80 -72
  326. package/CHANGELOG.json +0 -65
  327. package/lib/chart/chart-legend.d.ts +0 -6
  328. package/lib/chart/chart-legend.js +0 -445
  329. package/lib/chart/chart-legend.js.map +0 -1
  330. package/lib/chart/chart-render.d.ts +0 -3
  331. package/lib/chart/chart-render.js +0 -50
  332. package/lib/chart/chart-render.js.map +0 -1
  333. package/lib/chart/chart.d.ts +0 -3
  334. package/lib/chart/chart.js +0 -10
  335. package/lib/chart/chart.js.map +0 -1
  336. package/lib/chart/index.d.ts +0 -1
  337. package/lib/chart/index.js +0 -2
  338. package/lib/chart/index.js.map +0 -1
  339. package/lib/index.d.ts +0 -7
  340. package/lib/lib/builder.d.ts +0 -89
  341. package/lib/lib/builder.js +0 -379
  342. package/lib/lib/builder.js.map +0 -1
  343. package/lib/lib/datasets.d.ts +0 -123
  344. package/lib/lib/datasets.js +0 -285
  345. package/lib/lib/datasets.js.map +0 -1
  346. package/lib/lib/patterns.d.ts +0 -43
  347. package/lib/lib/patterns.js +0 -433
  348. package/lib/lib/patterns.js.map +0 -1
  349. package/lib/lib/plugins.d.ts +0 -11
  350. package/lib/lib/plugins.js +0 -403
  351. package/lib/lib/plugins.js.map +0 -1
  352. package/lib/lib/settings.d.ts +0 -12
  353. package/lib/lib/settings.js +0 -368
  354. package/lib/lib/settings.js.map +0 -1
  355. package/lib/lib/storybook.d.ts +0 -11
  356. package/lib/lib/storybook.js +0 -13
  357. package/lib/lib/storybook.js.map +0 -1
  358. package/lib/lib/utils.d.ts +0 -34
  359. package/lib/lib/utils.js +0 -253
  360. package/lib/lib/utils.js.map +0 -1
  361. package/lib/types/index.d.ts +0 -1
  362. package/lib/types/types.d.ts +0 -101
  363. package/lib/types/types.js +0 -41
  364. package/lib/types/types.js.map +0 -1
@@ -0,0 +1,2143 @@
1
+ /// <reference types="react" />
2
+
3
+ import * as React_2 from 'react';
4
+ import { SVGProps } from 'react';
5
+ import { TimeLocaleDefinition } from 'd3-time-format';
6
+
7
+ /**
8
+ * {@docCategory ChartProps}
9
+ */
10
+ export declare interface AccessibilityProps {
11
+ /**
12
+ * Accessibility aria-label
13
+ */
14
+ ariaLabel?: string;
15
+ /**
16
+ * Accessibility aria-labelledBy
17
+ */
18
+ ariaLabelledBy?: string;
19
+ /**
20
+ * Accessibility aria-describedBy
21
+ */
22
+ ariaDescribedBy?: string;
23
+ }
24
+
25
+ export declare interface Basestate {
26
+ _width?: number;
27
+ _height?: number;
28
+ activeLegend?: string;
29
+ color?: string;
30
+ dataForHoverCard?: number;
31
+ isCalloutVisible: boolean;
32
+ isLegendSelected?: boolean;
33
+ isLegendHovered?: boolean;
34
+ refSelected?: any;
35
+ YValueHover?: {
36
+ legend?: string;
37
+ y?: number;
38
+ color?: string;
39
+ }[];
40
+ hoverYValue?: string | number | null;
41
+ hoverXValue?: string | number | null;
42
+ xCalloutValue?: string;
43
+ yCalloutValue?: string;
44
+ lineColor?: string;
45
+ hoveredLineColor?: string;
46
+ selectedLegend?: string;
47
+ containerWidth?: number;
48
+ containerHeight?: number;
49
+ }
50
+
51
+ /**
52
+ * Cartesian Chart component
53
+ * {@docCategory CartesianChart}
54
+ */
55
+ export declare const CartesianChart: React_2.FunctionComponent<ModifiedCartesianChartProps>;
56
+
57
+ /**
58
+ * Cartesian Chart properties
59
+ * {@docCategory CartesianChart}
60
+ */
61
+ export declare interface CartesianChartProps {
62
+ /**
63
+ * Below height used for resizing of the chart
64
+ * Wrap chart in your container and send the updated height and width to these props.
65
+ * These values decide wheather chart re render or not. Please check examples for reference
66
+ */
67
+ height?: number;
68
+ /**
69
+ * Below width used for resizing of the chart
70
+ * Wrap chart in your container and send the updated height and width to these props.
71
+ * These values decide wheather chart re render or not. Please check examples for reference
72
+ */
73
+ width?: number;
74
+ /**
75
+ * this prop takes its parent as a HTML element to define the width and height of the chart
76
+ */
77
+ parentRef?: HTMLElement | null;
78
+ /**
79
+ * Additional CSS class(es) to apply to the Chart.
80
+ */
81
+ className?: string;
82
+ /**
83
+ * Margins for the chart
84
+ * @default `{ top: 20, bottom: 35, left: 40, right: 20 }`
85
+ * To avoid edge cuttings to the chart, we recommend you use default values or greater then default values
86
+ */
87
+ margins?: Margins;
88
+ /** decides wether to show/hide legends
89
+ * @defaultvalue false
90
+ */
91
+ hideLegend?: boolean;
92
+ /**
93
+ * Do not show tooltips in chart
94
+ * @default false
95
+ */
96
+ hideTooltip?: boolean;
97
+ /**
98
+ * this prop takes values that you want the chart to render on x-axis
99
+ * This is a optional parameter if not specified D3 will decide which values appear on the x-axis for you
100
+ * 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
101
+ */
102
+ tickValues?: number[] | Date[] | string[] | undefined;
103
+ /**
104
+ * the format for the data on x-axis. For date object this can be specified to your requirement. Eg: '%m/%d', '%d'
105
+ * Please look at https://github.com/d3/d3-time-format for all the formats supported for date axis
106
+ * Only applicable for date axis. For y-axis format use yAxisTickFormat prop.
107
+ */
108
+ tickFormat?: string;
109
+ /**
110
+ * Width of line stroke
111
+ */
112
+ strokeWidth?: number;
113
+ /**
114
+ * x Axis labels tick padding. This defines the gap between tick labels and tick lines.
115
+ * @default 10
116
+ */
117
+ xAxisTickPadding?: number;
118
+ /**
119
+ * the format in for the data on y-axis. For data object this can be specified to your requirement.
120
+ * Eg: d3.format(".0%")(0.123),d3.format("+20")(42);
121
+ * Please look at https://github.com/d3/d3-format for all the formats supported
122
+ */
123
+ yAxisTickFormat?: any;
124
+ /**
125
+ * Secondary y-scale options
126
+ * By default this is not defined, meaning there will be no secondary y-scale.
127
+ */
128
+ secondaryYScaleOptions?: {
129
+ /** Minimum value (0 by default) */
130
+ yMinValue?: number;
131
+ /** Maximum value (100 by default) */
132
+ yMaxValue?: number;
133
+ };
134
+ /**
135
+ * minimum data value point in y-axis
136
+ */
137
+ yMinValue?: number;
138
+ /**
139
+ * maximum data value point in y-axis
140
+ */
141
+ yMaxValue?: number;
142
+ /**
143
+ * maximum data value point in x-axis
144
+ */
145
+ xMaxValue?: number;
146
+ /**
147
+ * Number of ticks on the y-axis.
148
+ * Tick count should be factor of difference between (yMinValue, yMaxValue)?
149
+ * @default 4
150
+ */
151
+ yAxisTickCount?: number;
152
+ /**
153
+ * defines the number of ticks on the x-axis. Tries to match the nearest interval satisfying the count.
154
+ * Does not work for string axis.
155
+ * @default 6
156
+ */
157
+ xAxisTickCount?: number;
158
+ /**
159
+ * define the size of the tick lines on the x-axis
160
+ * @default 10
161
+ */
162
+ xAxistickSize?: number;
163
+ /**
164
+ * defines the space between the tick line and the data label
165
+ * @default 10
166
+ */
167
+ tickPadding?: number;
168
+ /**
169
+ * Url that the data-viz needs to redirect to upon clicking on it
170
+ */
171
+ href?: string;
172
+ legendsOverflowText?: any;
173
+ /**
174
+ * Enable the legends to wrap lines if there is not enough space to show all legends on a single line
175
+ */
176
+ enabledLegendsWrapLines?: boolean;
177
+ legendProps?: Partial<LegendsProps>;
178
+ /**
179
+ *@default false
180
+ *Used for to elipse x axis labes and show tooltip on x axis labels
181
+ */
182
+ showXAxisLablesTooltip?: boolean;
183
+ /**
184
+ * @default 4
185
+ * Used for X axis labels
186
+ * While Giving showXAxisLablesTooltip prop, need to define after how many chars, we need to truncate the word.
187
+ */
188
+ noOfCharsToTruncate?: number;
189
+ /**
190
+ * @default false
191
+ * Used to wrap x axis labels values (whole value)
192
+ */
193
+ wrapXAxisLables?: boolean;
194
+ /**
195
+ * @default false
196
+ * Used to rotate x axis labels by 45 degrees
197
+ */
198
+ rotateXAxisLables?: boolean;
199
+ /**
200
+ * The prop used to define the date time localization options
201
+ */
202
+ dateLocalizeOptions?: Intl.DateTimeFormatOptions;
203
+ /**
204
+ * The prop used to define a custom locale for the date time format.
205
+ */
206
+ timeFormatLocale?: TimeLocaleDefinition;
207
+ /**
208
+ * The prop used to define a custom datetime formatter for date axis.
209
+ */
210
+ customDateTimeFormatter?: (dateTime: Date) => string;
211
+ /**
212
+ * Call to provide customized styling that will layer on top of the variant rules.
213
+ */
214
+ styles?: CartesianChartStyles;
215
+ /**
216
+ * Callout customization props
217
+ */
218
+ calloutProps?: Partial<ChartPopoverProps>;
219
+ /**
220
+ * props for the svg; use this to include aria-* or other attributes on the tag
221
+ */
222
+ svgProps?: React_2.SVGProps<SVGSVGElement>;
223
+ /**
224
+ * Props related to reflow behavior of the chart
225
+ */
226
+ reflowProps?: {
227
+ /**
228
+ * Determines the reflow behavior of the chart.
229
+ * When set to `'min-width'`, the chart will not shrink below a certain width and will enable scrolling if it overflows.
230
+ * @default 'none'
231
+ */
232
+ mode: 'none' | 'min-width';
233
+ };
234
+ /**
235
+ * Prop to set the x axis title
236
+ * @default undefined
237
+ * Minimum bottom margin required for x axis title is 55px
238
+ */
239
+ xAxisTitle?: string;
240
+ /**
241
+ * Prop to set the y axis title
242
+ * @default undefined
243
+ * Minimum left margin required for y axis title is 60px and for RTL is 40px
244
+ * Minimum right margin required for y axis title is 40px and for RTL is 60px
245
+ */
246
+ yAxisTitle?: string;
247
+ /**
248
+ * Prop to set the secondary y axis title
249
+ * @default undefined
250
+ * If RTL is enabled, minimum left and right margins required for secondary y axis title is 60px
251
+ */
252
+ secondaryYAxistitle?: string;
253
+ /**
254
+ * Whether to use UTC time for axis scale, ticks, and the time display in callouts.
255
+ * When set to `true`, time is displayed equally, regardless of the user's timezone settings.
256
+ * @default true
257
+ */
258
+ useUTC?: string | boolean;
259
+ /**
260
+ * Determines whether overlapping x-axis tick labels should be hidden.
261
+ * @default false
262
+ */
263
+ hideTickOverlap?: boolean;
264
+ /**
265
+ * Define a custom callout props override
266
+ */
267
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: any) => ChartPopoverProps;
268
+ /**
269
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
270
+ * the public methods and properties of the component.
271
+ */
272
+ componentRef?: React_2.RefObject<Chart>;
273
+ }
274
+
275
+ /**
276
+ * Cartesian Chart style properties
277
+ * {@docCategory CartesianChart}
278
+ */
279
+ export declare interface CartesianChartStyleProps {
280
+ /**
281
+ * Additional CSS class(es) to apply to the Chart.
282
+ */
283
+ className?: string;
284
+ /**
285
+ * Width of the chart.
286
+ */
287
+ width?: number;
288
+ /**
289
+ * Height of the chart.
290
+ */
291
+ height?: number;
292
+ /**
293
+ * Color of the chart.
294
+ */
295
+ color?: string;
296
+ /**
297
+ * Link to redirect if click action for graph
298
+ */
299
+ href?: string;
300
+ /**
301
+ * prop to check if the chart is selected or hovered upon to determine opacity
302
+ */
303
+ shouldHighlight?: boolean;
304
+ /**
305
+ * prop to check if the Page is in Rtl
306
+ */
307
+ useRtl?: boolean;
308
+ /**
309
+ * color of the line
310
+ */
311
+ lineColor?: string;
312
+ /**
313
+ * boolean flag which determines if shape is drawn in callout
314
+ */
315
+ toDrawShape?: boolean;
316
+ }
317
+
318
+ /**
319
+ * Cartesian Chart styles
320
+ * {@docCategory CartesianChart}
321
+ */
322
+ export declare interface CartesianChartStyles {
323
+ /**
324
+ * Style for the root element.
325
+ */
326
+ root?: string;
327
+ /**
328
+ * Style for the element containing the x-axis.
329
+ */
330
+ xAxis?: string;
331
+ /**
332
+ * Style for the element containing the y-axis.
333
+ */
334
+ yAxis?: string;
335
+ /**
336
+ * Style for legend container
337
+ */
338
+ legendContainer?: string;
339
+ /**
340
+ * line hover box css
341
+ */
342
+ hover?: string;
343
+ /**
344
+ * styles for callout root-content
345
+ */
346
+ calloutContentRoot?: string;
347
+ /**
348
+ * styles for callout x-content
349
+ */
350
+ calloutContentX?: string;
351
+ /**
352
+ * styles for callout y-content
353
+ */
354
+ calloutContentY?: string;
355
+ /**
356
+ * styles for description message
357
+ */
358
+ descriptionMessage?: string;
359
+ /**
360
+ * styles for callout Date time container
361
+ */
362
+ calloutDateTimeContainer?: string;
363
+ /**
364
+ * styles for callout info container
365
+ */
366
+ calloutInfoContainer?: string;
367
+ /**
368
+ * styles for callout block container
369
+ */
370
+ calloutBlockContainer?: string;
371
+ /**
372
+ * Styles for callout block container when toDrawShape is false
373
+ */
374
+ calloutBlockContainertoDrawShapefalse?: string;
375
+ /**
376
+ * Styles for callout block container when toDrawShape is true
377
+ */
378
+ calloutBlockContainertoDrawShapetrue?: string;
379
+ /**
380
+ * styles for callout legend text
381
+ */
382
+ calloutlegendText?: string;
383
+ /**
384
+ * styles for tooltip
385
+ */
386
+ tooltip?: string;
387
+ /**
388
+ * styles for tooltip
389
+ */
390
+ axisTitle?: string;
391
+ /**
392
+ * Style for the chart Title.
393
+ */
394
+ chartTitle?: string;
395
+ /**
396
+ * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
397
+ */
398
+ opacityChangeOnHover?: string;
399
+ /**
400
+ * styles for the shape object in the callout
401
+ */
402
+ shapeStyles?: string;
403
+ /**
404
+ * Styles for the chart wrapper div
405
+ */
406
+ chartWrapper?: string;
407
+ }
408
+
409
+ /**
410
+ * {@docCategory Chart}
411
+ */
412
+ export declare interface Chart {
413
+ chartContainer: HTMLElement | null;
414
+ }
415
+
416
+ /**
417
+ * Chart data mode for chart data text
418
+ * default: show the datapoint.x value
419
+ * fraction: show the fraction of datapoint.x/datapoint.y
420
+ * percentage: show the percentage of (datapoint.x/datapoint.y)%
421
+ * {@docCategory HorizontalBarChart}
422
+ */
423
+ export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
424
+
425
+ /**
426
+ * {@docCategory ChartData}
427
+ */
428
+ export declare interface ChartDataPoint {
429
+ /**
430
+ * Legend text for the datapoint in the chart
431
+ */
432
+ legend?: string;
433
+ /**
434
+ * data the datapoint in the chart
435
+ */
436
+ data?: number;
437
+ /**
438
+ * data the datapoint in the chart
439
+ */
440
+ horizontalBarChartdata?: HorizontalDataPoint;
441
+ /**
442
+ * onClick action for each datapoint in the chart
443
+ */
444
+ onClick?: VoidFunction;
445
+ /**
446
+ * Color for the legend in the chart. If not provided, it will fallback on the default color palette.
447
+ */
448
+ color?: string;
449
+ /**
450
+ * placeholder data point
451
+ */
452
+ placeHolder?: boolean;
453
+ /**
454
+ * Callout data for x axis
455
+ * This is an optional prop, If haven;t given legend will take
456
+ */
457
+ xAxisCalloutData?: string;
458
+ /**
459
+ * Callout data for y axis
460
+ * This is an optional prop, If haven't given data will take
461
+ */
462
+ yAxisCalloutData?: string;
463
+ /**
464
+ * Accessibility data for callout
465
+ */
466
+ callOutAccessibilityData?: AccessibilityProps;
467
+ }
468
+
469
+ export declare const ChartPopover: React_2.FunctionComponent<ChartPopoverProps>;
470
+
471
+ export declare interface ChartPopoverProps {
472
+ clickPosition?: {
473
+ x: number;
474
+ y: number;
475
+ };
476
+ isPopoverOpen?: boolean;
477
+ xCalloutValue?: string;
478
+ legend?: string | number | Date;
479
+ yCalloutValue?: string;
480
+ YValue?: string | number | Date;
481
+ XValue?: string;
482
+ color?: string;
483
+ culture?: string;
484
+ customCallout?: {
485
+ customizedCallout?: JSX.Element;
486
+ customCalloutProps?: ChartPopoverProps;
487
+ };
488
+ isCalloutForStack?: boolean;
489
+ xAxisCalloutAccessibilityData?: {
490
+ ariaLabel?: string;
491
+ data?: string;
492
+ };
493
+ hoverXValue?: string | number;
494
+ YValueHover?: YValueHover[];
495
+ descriptionMessage?: string;
496
+ ratio?: [number, number];
497
+ isCartesian?: boolean;
498
+ }
499
+
500
+ /**
501
+ * {@docCategory ChartProps}
502
+ */
503
+ export declare interface ChartProps {
504
+ /**
505
+ * chart title for the chart
506
+ */
507
+ chartTitle?: string;
508
+ /**
509
+ * Accessibility data for chart title
510
+ */
511
+ chartTitleAccessibilityData?: AccessibilityProps;
512
+ /**
513
+ * data for the points in the chart
514
+ */
515
+ chartData?: ChartDataPoint[];
516
+ /**
517
+ * Accessibility data for chart data
518
+ */
519
+ chartDataAccessibilityData?: AccessibilityProps;
520
+ /**
521
+ * data for the points in the line chart
522
+ */
523
+ lineChartData?: LineChartPoints[];
524
+ /**
525
+ * data for the points in the line chart
526
+ */
527
+ pointOptions?: SVGProps<SVGCircleElement>;
528
+ /**
529
+ * data for the dotted line on hovering the point
530
+ */
531
+ pointLineOptions?: SVGProps<SVGLineElement>;
532
+ }
533
+
534
+ declare enum ChartTypes {
535
+ AreaChart = 0,
536
+ LineChart = 1,
537
+ VerticalBarChart = 2,
538
+ VerticalStackedBarChart = 3,
539
+ GroupedVerticalBarChart = 4,
540
+ HeatMapChart = 5,
541
+ HorizontalBarChartWithAxis = 6
542
+ }
543
+
544
+ export declare interface ChildProps {
545
+ xScale?: any;
546
+ yScale?: any;
547
+ yScaleSecondary?: any;
548
+ containerHeight?: number;
549
+ containerWidth?: number;
550
+ optimizeLargeData?: boolean;
551
+ }
552
+
553
+ /**
554
+ * {@docCategory LineChart}
555
+ */
556
+ export declare interface ColorFillBarData {
557
+ startX: number | Date;
558
+ endX: number | Date;
559
+ }
560
+
561
+ /**
562
+ * {@docCategory LineChart}
563
+ */
564
+ export declare interface ColorFillBarsProps {
565
+ legend: string;
566
+ color: string;
567
+ data: ColorFillBarData[];
568
+ applyPattern?: boolean;
569
+ onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
570
+ }
571
+
572
+ /**
573
+ * Used for custom callout data interface. As Area chart callout data will be prepared from given props.data,
574
+ * Those required data passing to onRenderCalloutPerDataPoint and onRenderCalloutPerStack.
575
+ * {@docCategory ChartData}
576
+ */
577
+ export declare interface CustomizedCalloutData {
578
+ x: number | string | Date;
579
+ values: CustomizedCalloutDataPoint[];
580
+ }
581
+
582
+ /**
583
+ * {@docCategory ChartData}
584
+ */
585
+ export declare interface CustomizedCalloutDataPoint {
586
+ legend: string;
587
+ y: number;
588
+ color: string;
589
+ xAxisCalloutData?: string;
590
+ yAxisCalloutData?: string | {
591
+ [id: string]: number;
592
+ };
593
+ }
594
+
595
+ declare enum CustomPoints {
596
+ dottedLine = 0
597
+ }
598
+
599
+ /**
600
+ * {@docCategory ChartData}
601
+ */
602
+ export declare interface DataPoint {
603
+ /**
604
+ * Independent value of the data point, rendered along the x-axis.
605
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
606
+ * If x is a string, then the data is evenly spaced along the x-axis.
607
+ */
608
+ x: number | string;
609
+ /**
610
+ * Dependent value of the data point, rendered along the y-axis.
611
+ */
612
+ y: number;
613
+ /**
614
+ * onClick action for each datapoint in the chart
615
+ */
616
+ onClick?: VoidFunction;
617
+ }
618
+
619
+ export declare const DataVizPalette: {
620
+ color1: string;
621
+ color2: string;
622
+ color3: string;
623
+ color4: string;
624
+ color5: string;
625
+ color6: string;
626
+ color7: string;
627
+ color8: string;
628
+ color9: string;
629
+ color10: string;
630
+ color11: string;
631
+ color12: string;
632
+ color13: string;
633
+ color14: string;
634
+ color15: string;
635
+ color16: string;
636
+ color17: string;
637
+ color18: string;
638
+ color19: string;
639
+ color20: string;
640
+ color21: string;
641
+ color22: string;
642
+ color23: string;
643
+ color24: string;
644
+ color25: string;
645
+ color26: string;
646
+ color27: string;
647
+ color28: string;
648
+ color29: string;
649
+ color30: string;
650
+ color31: string;
651
+ color32: string;
652
+ color33: string;
653
+ color34: string;
654
+ color35: string;
655
+ color36: string;
656
+ color37: string;
657
+ color38: string;
658
+ color39: string;
659
+ color40: string;
660
+ info: string;
661
+ disabled: string;
662
+ highError: string;
663
+ error: string;
664
+ warning: string;
665
+ success: string;
666
+ highSuccess: string;
667
+ };
668
+
669
+ /**
670
+ * DeclarativeChart component.
671
+ * {@docCategory DeclarativeChart}
672
+ */
673
+ export declare const DeclarativeChart: React_2.FunctionComponent<DeclarativeChartProps>;
674
+
675
+ /**
676
+ * DeclarativeChart props.
677
+ * {@docCategory DeclarativeChart}
678
+ */
679
+ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTMLDivElement> {
680
+ /**
681
+ * The schema representing the chart data, layout and configuration
682
+ */
683
+ chartSchema: Schema;
684
+ /**
685
+ * Callback when an event occurs
686
+ */
687
+ onSchemaChange?: (eventData: Schema) => void;
688
+ /**
689
+ * Optional callback to access the IDeclarativeChart interface. Use this instead of ref for accessing
690
+ * the public methods and properties of the component.
691
+ */
692
+ componentRef?: React_2.RefObject<IDeclarativeChart>;
693
+ }
694
+
695
+ /**
696
+ * Donutchart component.
697
+ * {@docCategory DonutChart}
698
+ */
699
+ export declare const DonutChart: React_2.FunctionComponent<DonutChartProps>;
700
+
701
+ /**
702
+ * Donut Chart properties.
703
+ * {@docCategory DonutChart}
704
+ */
705
+ export declare interface DonutChartProps {
706
+ /**
707
+ * Data to render in the chart.
708
+ */
709
+ data?: ChartProps;
710
+ /**
711
+ * inner radius for donut size
712
+ */
713
+ innerRadius?: number;
714
+ /**
715
+ * Call to provide customized styling that will layer on top of the variant rules.
716
+ */
717
+ styles?: DonutChartStyles;
718
+ /**
719
+ * props for inside donut value
720
+ */
721
+ valueInsideDonut?: string | number;
722
+ /**
723
+ * Define a custom callout renderer for a data point
724
+ */
725
+ onRenderCalloutPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => JSX.Element | undefined;
726
+ /**
727
+ * Define a custom callout props override
728
+ */
729
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
730
+ /**
731
+ * props for the callout in the chart
732
+ */
733
+ calloutProps?: ChartPopoverProps;
734
+ /**
735
+ * The prop used to define the culture to localized the numbers
736
+ */
737
+ culture?: string;
738
+ /**
739
+ * Prop to show the arc labels in percentage format
740
+ * @default false
741
+ */
742
+ showLabelsInPercent?: boolean;
743
+ /**
744
+ * Prop to hide the arc labels
745
+ * @default true
746
+ */
747
+ hideLabels?: boolean;
748
+ /**
749
+ * Below height used for resizing of the chart
750
+ * Wrap chart in your container and send the updated height and width to these props.
751
+ * These values decide wheather chart re render or not. Please check examples for reference
752
+ */
753
+ height?: number;
754
+ /**
755
+ * Below width used for resizing of the chart
756
+ * Wrap chart in your container and send the updated height and width to these props.
757
+ * These values decide wheather chart re render or not. Please check examples for reference
758
+ */
759
+ width?: number;
760
+ /**
761
+ * this prop takes its parent as a HTML element to define the width and height of the chart
762
+ */
763
+ parentRef?: HTMLElement | null;
764
+ /**
765
+ * Additional CSS class(es) to apply to the Chart.
766
+ */
767
+ className?: string;
768
+ legendsOverflowText?: any;
769
+ legendProps?: Partial<LegendsProps>;
770
+ /** decides wether to show/hide legends
771
+ * @defaultvalue false
772
+ */
773
+ hideLegend?: boolean;
774
+ /**
775
+ * Url that the data-viz needs to redirect to upon clicking on it
776
+ */
777
+ href?: string;
778
+ /**
779
+ * Do not show tooltips in chart
780
+ * @default false
781
+ */
782
+ hideTooltip?: boolean;
783
+ /**
784
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
785
+ * the public methods and properties of the component.
786
+ */
787
+ componentRef?: React_2.RefObject<Chart>;
788
+ }
789
+
790
+ /**
791
+ * Donut Chart style properties
792
+ * {@docCategory DonutChart}
793
+ */
794
+ export declare interface DonutChartStyleProps extends CartesianChartStyleProps {
795
+ }
796
+
797
+ /**
798
+ * Donut Chart styles
799
+ * {@docCategory DonutChart}
800
+ */
801
+ export declare interface DonutChartStyles {
802
+ /**
803
+ * Style for the root element.
804
+ */
805
+ root?: string;
806
+ /**
807
+ * Style for the chart.
808
+ */
809
+ chart?: string;
810
+ /**
811
+ * Style for the legend container.
812
+ */
813
+ legendContainer: string;
814
+ /**
815
+ * Styles for the chart wrapper div
816
+ */
817
+ chartWrapper?: string;
818
+ }
819
+
820
+ declare interface EventAnnotation {
821
+ date: Date;
822
+ event: string;
823
+ onRenderCard?: () => React_2.ReactNode;
824
+ }
825
+
826
+ /**
827
+ * {@docCategory LineChart}
828
+ */
829
+ export declare interface EventsAnnotationProps {
830
+ events: EventAnnotation[];
831
+ strokeColor?: string;
832
+ labelColor?: string;
833
+ labelHeight?: number;
834
+ labelWidth?: number;
835
+ mergedLabel: (count: number) => string;
836
+ }
837
+
838
+ export declare const getColorFromToken: (token: string, isDarkTheme?: boolean) => string;
839
+
840
+ export declare const getNextColor: (index: number, offset?: number, isDarkTheme?: boolean) => string;
841
+
842
+ /**
843
+ * {@docCategory ChartData}
844
+ */
845
+ export declare interface GroupedVerticalBarChartData {
846
+ /**
847
+ * Data for X axis label
848
+ */
849
+ name: string;
850
+ /**
851
+ * Data points for Grouped vertical bar chart
852
+ */
853
+ series: GVBarChartSeriesPoint[];
854
+ /**
855
+ * Accessibility data for Group Bars Stack Callout
856
+ */
857
+ stackCallOutAccessibilityData?: AccessibilityProps;
858
+ }
859
+
860
+ /**
861
+ * {@docCategory ChartData}
862
+ */
863
+ export declare interface GVBarChartSeriesPoint {
864
+ /**
865
+ * Text for // need to check use of this
866
+ */
867
+ key: string;
868
+ /**
869
+ * Data for bar height of Grouped vertical bar chart
870
+ */
871
+ data: number;
872
+ /**
873
+ * Color for the legend in the chart
874
+ */
875
+ color: string;
876
+ /**
877
+ * Legend text in the chart
878
+ */
879
+ legend: string;
880
+ /**
881
+ * Callout data for x axis
882
+ * This is an optional prop, If haven;t given legend will take
883
+ */
884
+ xAxisCalloutData?: string;
885
+ /**
886
+ * Callout data for y axis
887
+ * This is an optional prop, If haven't given data will take
888
+ */
889
+ yAxisCalloutData?: string;
890
+ /**
891
+ * onClick action for each datapoint in the chart
892
+ */
893
+ onClick?: VoidFunction;
894
+ /**
895
+ * Accessibility data for callout
896
+ */
897
+ callOutAccessibilityData?: AccessibilityProps;
898
+ }
899
+
900
+ export declare interface GVDataPoint {
901
+ /**
902
+ * This interface used for - While forming datapoints from given prop "data" in code
903
+ * datapoints are used for to draw graph
904
+ */
905
+ [key: string]: number | string;
906
+ }
907
+
908
+ export declare interface GVForBarChart {
909
+ /**
910
+ * While forming datapoints from given prop "data"
911
+ * These datapoints are used for to draw graph.
912
+ */
913
+ [key: string]: GVBarChartSeriesPoint;
914
+ }
915
+
916
+ export declare interface GVSingleDataPoint {
917
+ /**
918
+ * While forming datapoints from given prop "data" in code.
919
+ * These datapoints are used for to draw graph easily.
920
+ */
921
+ [key: string]: GVDataPoint;
922
+ }
923
+
924
+ /**
925
+ * HorizontalBarChart is the context wrapper and container for all HorizontalBarChart content/controls,
926
+ * It has no direct style or slot opinions.
927
+ *
928
+ * HorizontalBarChart also provides API interfaces for callbacks that will occur on navigation events.
929
+ */
930
+ export declare const HorizontalBarChart: React_2.FunctionComponent<HorizontalBarChartProps>;
931
+
932
+ /**
933
+ * Horizontal Bar Chart properties
934
+ * {@docCategory HorizontalBarChart}
935
+ */
936
+ export declare interface HorizontalBarChartProps extends React_2.RefAttributes<HTMLDivElement> {
937
+ /**
938
+ * An array of chart data points for the Horizontal bar chart
939
+ */
940
+ data?: ChartProps[];
941
+ /**
942
+ * Width of bar chart
943
+ */
944
+ width?: number;
945
+ /**
946
+ * Height of bar chart
947
+ * @default 15
948
+ */
949
+ barHeight?: number;
950
+ /**
951
+ * Additional CSS class(es) to apply to the StackedBarChart.
952
+ */
953
+ className?: string;
954
+ /**
955
+ * This property tells whether to show ratio on top of stacked bar chart or not.
956
+ */
957
+ hideRatio?: boolean[];
958
+ /**
959
+ * Do not show tooltips in chart
960
+ *
961
+ * @default false
962
+ */
963
+ hideTooltip?: boolean;
964
+ /**
965
+ * This property tells how to show data text on top right of bar chart.
966
+ * If barChartCustomData props added, then this props will be overrided.
967
+ * @default 'default'
968
+ */
969
+ chartDataMode?: ChartDataMode;
970
+ /**
971
+ * Call to provide customized styling that will layer on top of the variant rules.
972
+ */
973
+ styles?: HorizontalBarChartStyles;
974
+ /**
975
+ * Define a custom callout renderer for a horizontal bar
976
+ */
977
+ /**
978
+ * props for the callout in the chart
979
+ */
980
+ calloutProps?: ChartPopoverProps;
981
+ /**
982
+ * Custom text to the chart (right side of the chart)
983
+ * IChartProps will be available as props to the method prop.
984
+ * If this method not given, default values (IHorizontalDataPoint \{x,y\})
985
+ * will be used to display the data/text based on given chartModeData prop.
986
+ */
987
+ /**
988
+ * The prop used to define the culture to localized the numbers
989
+ */
990
+ culture?: string;
991
+ /**
992
+ * Prop to define the variant of HorizontalBarChart to render
993
+ * @default HorizontalBarChartVariant.PartToWhole
994
+ */
995
+ variant?: HorizontalBarChartVariant;
996
+ /**
997
+ * Prop to hide the bar labels
998
+ * @default false
999
+ */
1000
+ hideLabels?: boolean;
1001
+ /**
1002
+ * line color for callout
1003
+ */
1004
+ color?: string;
1005
+ /**
1006
+ * prop to check if benchmark data is provided
1007
+ */
1008
+ showTriangle?: boolean;
1009
+ legendsOverflowText?: any;
1010
+ legendProps?: Partial<LegendsProps>;
1011
+ /**
1012
+ * prop to render the custom callout
1013
+ */
1014
+ onRenderCalloutPerHorizontalBar?: (props: ChartDataPoint) => JSX.Element | undefined;
1015
+ /**
1016
+ * Define a custom callout props override
1017
+ */
1018
+ calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
1019
+ }
1020
+
1021
+ /**
1022
+ * Horizontal Bar Chart styles
1023
+ * {@docCategory HorizontalBarChart}
1024
+ */
1025
+ export declare interface HorizontalBarChartStyles {
1026
+ /**
1027
+ * Styling for the root container
1028
+ */
1029
+ root: string;
1030
+ /**
1031
+ * Styling for each item in the container
1032
+ */
1033
+ items: string;
1034
+ /**
1035
+ * Style for the chart.
1036
+ */
1037
+ chart: string;
1038
+ /**
1039
+ * Style for the chart Title.
1040
+ */
1041
+ chartTitle: string;
1042
+ /**
1043
+ * Style for the bars.
1044
+ */
1045
+ barWrapper: string;
1046
+ /**
1047
+ * Style for left side text of the chart title
1048
+ */
1049
+ chartTitleLeft: string;
1050
+ /**
1051
+ * Style for right side text of the chart title
1052
+ */
1053
+ chartTitleRight: string;
1054
+ /**
1055
+ * Style for the chart data text denominator.
1056
+ */
1057
+ chartDataTextDenominator: string;
1058
+ /**
1059
+ * Style for the benchmark container
1060
+ */
1061
+ benchmarkContainer: string;
1062
+ /**
1063
+ * Style for the benchmark triangle
1064
+ */
1065
+ triangle: string;
1066
+ /**
1067
+ * Style for the bar labels
1068
+ */
1069
+ barLabel: string;
1070
+ /**
1071
+ * Style for the div containing the chart
1072
+ */
1073
+ chartWrapper: string;
1074
+ /**
1075
+ * Style for the legend container.
1076
+ */
1077
+ legendContainer: string;
1078
+ }
1079
+
1080
+ /**
1081
+ * {@docCategory HorizontalBarChart}
1082
+ */
1083
+ export declare enum HorizontalBarChartVariant {
1084
+ PartToWhole = "part-to-whole",
1085
+ AbsoluteScale = "absolute-scale"
1086
+ }
1087
+
1088
+ /**
1089
+ * {@docCategory ChartData}
1090
+ */
1091
+ export declare interface HorizontalBarChartWithAxisDataPoint {
1092
+ /**
1093
+ * Dependent value of the data point, rendered along the x-axis.
1094
+ */
1095
+ x: number;
1096
+ /**
1097
+ * Independent value of the data point, rendered along the y-axis.
1098
+ * If y is a number, then each y-coordinate is plotted at its y-coordinate.
1099
+ * If y is a string, then the data is evenly spaced along the y-axis.
1100
+ */
1101
+ y: number | string;
1102
+ /**
1103
+ * Legend text for the datapoint in the chart
1104
+ */
1105
+ legend?: string;
1106
+ /**
1107
+ * color for the legend in the chart
1108
+ */
1109
+ color?: string;
1110
+ /**
1111
+ * Callout data for x axis
1112
+ * This is an optional prop, If haven;t given legend will take
1113
+ */
1114
+ xAxisCalloutData?: string;
1115
+ /**
1116
+ * Callout data for y axis
1117
+ * This is an optional prop, If haven't given data will take
1118
+ */
1119
+ yAxisCalloutData?: string;
1120
+ /**
1121
+ * onClick action for each datapoint in the chart
1122
+ */
1123
+ onClick?: VoidFunction;
1124
+ /**
1125
+ * Accessibility data for callout
1126
+ */
1127
+ callOutAccessibilityData?: AccessibilityProps;
1128
+ }
1129
+
1130
+ /**
1131
+ * {@docCategory ChartData}
1132
+ */
1133
+ export declare interface HorizontalDataPoint {
1134
+ /**
1135
+ * Independent value of the data point, rendered along the x-axis.
1136
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
1137
+ * If x is a string, then the data is evenly spaced along the x-axis.
1138
+ */
1139
+ x: number;
1140
+ /**
1141
+ * Total value of a single point bar chart.
1142
+ */
1143
+ total?: number;
1144
+ }
1145
+
1146
+ /**
1147
+ * {@docCategory DeclarativeChart}
1148
+ */
1149
+ export declare interface IDeclarativeChart {
1150
+ exportAsImage: (opts?: ImageExportOptions) => Promise<string>;
1151
+ }
1152
+
1153
+ /**
1154
+ * {@docCategory DeclarativeChart}
1155
+ */
1156
+ export declare interface ImageExportOptions {
1157
+ width?: number;
1158
+ height?: number;
1159
+ scale?: number;
1160
+ background?: string;
1161
+ }
1162
+
1163
+ /**
1164
+ * @public
1165
+ * ILegend interface
1166
+ * {@docCategory Legends}
1167
+ */
1168
+ export declare interface Legend {
1169
+ /**
1170
+ * Defines the title of the legend
1171
+ */
1172
+ title: string;
1173
+ /**
1174
+ * Defines the function that is executed on clicking this legend
1175
+ */
1176
+ action?: VoidFunction;
1177
+ /**
1178
+ * Defines the function that is executed upon hovering over the legend
1179
+ */
1180
+ hoverAction?: VoidFunction;
1181
+ /**
1182
+ * Defines the function that is executed upon moving the mouse away from the legend
1183
+ */
1184
+ onMouseOutAction?: (isLegendFocused?: boolean) => void;
1185
+ /**
1186
+ * The color for the legend
1187
+ */
1188
+ color: string;
1189
+ /**
1190
+ * The opacity of the legend color
1191
+ */
1192
+ opacity?: number;
1193
+ /**
1194
+ * The shape for the legend
1195
+ */
1196
+ shape?: LegendShape;
1197
+ /**
1198
+ * Indicated whether or not to apply stripe pattern
1199
+ */
1200
+ stripePattern?: boolean;
1201
+ /**
1202
+ * Indicates if the legend belongs to a line in the Bar Chart
1203
+ */
1204
+ isLineLegendInBarChart?: boolean;
1205
+ nativeButtonProps?: React_2.ButtonHTMLAttributes<HTMLButtonElement>;
1206
+ }
1207
+
1208
+ export declare interface LegendDataItem {
1209
+ /**
1210
+ * Text to be displayed for legend item.
1211
+ */
1212
+ legendText: string | number;
1213
+ /**
1214
+ * Color for the specific legend
1215
+ */
1216
+ legendColor: string;
1217
+ }
1218
+
1219
+ declare interface LegendMap {
1220
+ [key: string]: boolean;
1221
+ }
1222
+
1223
+ export declare const Legends: React_2.FunctionComponent<LegendsProps>;
1224
+
1225
+ /**
1226
+ * @public
1227
+ * The shape for the legend
1228
+ * default: show the rect legend
1229
+ * triangle: show the triangle legend
1230
+ * {@docCategory Legends}
1231
+ */
1232
+ export declare type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;
1233
+
1234
+ /**
1235
+ * @public
1236
+ * Legend properties
1237
+ * {@docCategory Legends}
1238
+ */
1239
+ export declare interface LegendsProps {
1240
+ /**
1241
+ * Prop that takes list of legends
1242
+ */
1243
+ legends: Legend[];
1244
+ /**
1245
+ * Additional CSS class(es) to apply to the legneds component.
1246
+ */
1247
+ className?: string;
1248
+ /**
1249
+ * Call to provide customized styling that will layer on top of the variant rules.
1250
+ */
1251
+ styles?: LegendsStyles;
1252
+ /**
1253
+ * This prop makes the legends component align itself to the center in the container it is sitting in
1254
+ */
1255
+ centerLegends?: boolean;
1256
+ /**
1257
+ * Enable the legends to wrap lines if there is not enough space to show all legends on a single line
1258
+ */
1259
+ enabledWrapLines?: boolean;
1260
+ /**
1261
+ * style for the overflow component
1262
+ */
1263
+ overflowStyles?: React_2.CSSProperties;
1264
+ /**
1265
+ * text for overflow legends string
1266
+ */
1267
+ overflowText?: string;
1268
+ /**
1269
+ * prop that decides if legends are focusable
1270
+ * @default true
1271
+ */
1272
+ allowFocusOnLegends?: boolean;
1273
+ /**
1274
+ * prop that decide if we can select multiple legends or single legend at a time
1275
+ * @default false
1276
+ */
1277
+ canSelectMultipleLegends?: boolean;
1278
+ /**
1279
+ * Callback issued when the selected option changes.
1280
+ */
1281
+ onChange?: (selectedLegends: string[], event: React_2.MouseEvent<HTMLButtonElement>, currentLegend?: Legend) => void;
1282
+ /**
1283
+ * Keys (title) that will be initially used to set selected items.
1284
+ * This prop is used for multiSelect scenarios.
1285
+ * In other cases, defaultSelectedLegend should be used.
1286
+ */
1287
+ defaultSelectedLegends?: string[];
1288
+ /**
1289
+ * Key that will be initially used to set selected item.
1290
+ * This prop is used for singleSelect scenarios.
1291
+ */
1292
+ defaultSelectedLegend?: string;
1293
+ /**
1294
+ * The shape for the legend.
1295
+ */
1296
+ shape?: LegendShape;
1297
+ }
1298
+
1299
+ /**
1300
+ * @public
1301
+ * Legends styles
1302
+ * {@docCategory Legends}
1303
+ */
1304
+ export declare interface LegendsStyles {
1305
+ /**
1306
+ * Style set for the root of the legend component
1307
+ */
1308
+ root?: string;
1309
+ /**
1310
+ * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend
1311
+ */
1312
+ legend?: string;
1313
+ /**
1314
+ * Style set for the rectangle that represents a legend
1315
+ */
1316
+ rect?: string;
1317
+ /**
1318
+ * styles set for the shape that represents a legend
1319
+ */
1320
+ shape?: string;
1321
+ /**
1322
+ * Style set for the triangle that represents a legend
1323
+ */
1324
+ triangle?: string;
1325
+ /**
1326
+ * Style for the legend text
1327
+ */
1328
+ text?: string;
1329
+ /**
1330
+ * Style for the legend text
1331
+ */
1332
+ hoverChange?: string;
1333
+ /**
1334
+ * Style for the area that is resizable
1335
+ */
1336
+ resizableArea?: string;
1337
+ }
1338
+
1339
+ export declare interface LegendState {
1340
+ activeLegend: string;
1341
+ /** Set of legends selected, both for multiple selection and single selection */
1342
+ selectedLegends: LegendMap;
1343
+ }
1344
+
1345
+ /**
1346
+ * @public
1347
+ * Legend style properties
1348
+ * {@docCategory Legends}
1349
+ */
1350
+ export declare interface LegendStyleProps {
1351
+ className?: string;
1352
+ colorOnSelectedState?: string;
1353
+ borderColor?: string;
1354
+ opacity?: number;
1355
+ overflow?: boolean;
1356
+ stripePattern?: boolean;
1357
+ isLineLegendInBarChart?: boolean;
1358
+ }
1359
+
1360
+ /**
1361
+ * Linechart component
1362
+ * {@docCategory LineChart}
1363
+ */
1364
+ export declare const LineChart: React_2.FunctionComponent<LineChartProps>;
1365
+
1366
+ /**
1367
+ * {@docCategory ChartData}
1368
+ */
1369
+ export declare interface LineChartDataPoint {
1370
+ /**
1371
+ * Independent value of the data point, rendered along the x-axis.
1372
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
1373
+ * If data type on x is Date, then the data is spaced evenly by d3-scale
1374
+ */
1375
+ x: number | Date;
1376
+ /**
1377
+ * Dependent value of the data point, rendered along the y-axis.
1378
+ */
1379
+ y: number;
1380
+ /**
1381
+ * Defines the function that is executed on clicking line
1382
+ */
1383
+ onDataPointClick?: () => void;
1384
+ /**
1385
+ * Callout data for x axis
1386
+ */
1387
+ xAxisCalloutData?: string;
1388
+ /**
1389
+ * Callout data for y axis
1390
+ */
1391
+ yAxisCalloutData?: string | {
1392
+ [id: string]: number;
1393
+ };
1394
+ /**
1395
+ * Whether to hide callout data for the point.
1396
+ */
1397
+ hideCallout?: boolean;
1398
+ /**
1399
+ * Accessibility data for callout
1400
+ */
1401
+ callOutAccessibilityData?: AccessibilityProps;
1402
+ /**
1403
+ * X axis Accessibility data for callout
1404
+ */
1405
+ xAxisCalloutAccessibilityData?: AccessibilityProps;
1406
+ }
1407
+
1408
+ /**
1409
+ * {@docCategory ChartData}
1410
+ */
1411
+ export declare interface LineChartGap {
1412
+ /**
1413
+ * Starting index of the gap.
1414
+ */
1415
+ startIndex: number;
1416
+ /**
1417
+ * Ending index of the gap.
1418
+ */
1419
+ endIndex: number;
1420
+ }
1421
+
1422
+ /**
1423
+ * {@docCategory ChartProps}
1424
+ */
1425
+ export declare interface LineChartLineOptions extends SVGProps<SVGPathElement> {
1426
+ /**
1427
+ * Width of the line/stroke.
1428
+ * Overrides the strokeWidth set on ICartesianChartProps level.
1429
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width
1430
+ */
1431
+ strokeWidth?: number | string;
1432
+ /**
1433
+ * Pattern of dashes and gaps.
1434
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
1435
+ */
1436
+ strokeDasharray?: string | number;
1437
+ /**
1438
+ * Offset on rendering of stroke dash array.
1439
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dashoffset
1440
+ */
1441
+ strokeDashoffset?: string | number;
1442
+ /**
1443
+ * Shape at the end of a subpath.
1444
+ * Default round.
1445
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
1446
+ */
1447
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
1448
+ /**
1449
+ * Width of border around the line. Default no border.
1450
+ */
1451
+ lineBorderWidth?: string | number;
1452
+ /**
1453
+ * Color of border around the line. Default white.
1454
+ */
1455
+ lineBorderColor?: string;
1456
+ }
1457
+
1458
+ /**
1459
+ * {@docCategory ChartData}
1460
+ */
1461
+ export declare interface LineChartPoints {
1462
+ /**
1463
+ * Legend text for the datapoint in the chart
1464
+ */
1465
+ legend: string;
1466
+ /**
1467
+ * The shape for the legend
1468
+ * default: show the rect legend
1469
+ */
1470
+ legendShape?: LegendShape;
1471
+ /**
1472
+ * dataPoints for the line chart
1473
+ */
1474
+ data: LineChartDataPoint[];
1475
+ /**
1476
+ * gaps in the line chart where a line is not drawn
1477
+ */
1478
+ gaps?: LineChartGap[];
1479
+ /**
1480
+ * color for the legend in the chart
1481
+ */
1482
+ color?: string;
1483
+ /**
1484
+ * opacity for chart fill color
1485
+ */
1486
+ opacity?: number;
1487
+ /**
1488
+ * options for the line drawn
1489
+ */
1490
+ lineOptions?: LineChartLineOptions;
1491
+ /**
1492
+ * hide dots for points that are not active
1493
+ */
1494
+ hideNonActiveDots?: boolean;
1495
+ /**
1496
+ * Defines the function that is executed on clicking this legend
1497
+ */
1498
+ onLegendClick?: (selectedLegend: string | null | string[]) => void;
1499
+ /**
1500
+ * Defines the function that is executed on clicking line
1501
+ */
1502
+ onLineClick?: () => void;
1503
+ }
1504
+
1505
+ /**
1506
+ * Line Chart properties
1507
+ * {@docCategory LineChart}
1508
+ */
1509
+ export declare interface LineChartProps extends CartesianChartProps {
1510
+ /**
1511
+ * Data to render in the chart.
1512
+ */
1513
+ data: ChartProps;
1514
+ /**
1515
+ * Call to provide customized styling that will layer on top of the variant rules.
1516
+ */
1517
+ styles?: LineChartStyles;
1518
+ /**
1519
+ * Show event annotation
1520
+ */
1521
+ eventAnnotationProps?: EventsAnnotationProps;
1522
+ /**
1523
+ * Define a custom callout renderer for a data point
1524
+ */
1525
+ onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
1526
+ /**
1527
+ * Define a custom callout renderer for a stack; default is to render per data point
1528
+ */
1529
+ onRenderCalloutPerStack?: RenderFunction<CustomizedCalloutData>;
1530
+ /**
1531
+ * Callback for getting callout description message
1532
+ */
1533
+ getCalloutDescriptionMessage?: (calloutDataProps: CustomizedCalloutData) => string | undefined;
1534
+ colorFillBars?: ColorFillBarsProps[];
1535
+ /**
1536
+ * if this is set to true, then for each line there will be a unique shape assigned to the point,
1537
+ * there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,
1538
+ * hexagon, pentagon and octagon, which will get assigned as respectively, if there are more
1539
+ * than 8 lines in the line chart then it will again start from cicle to octagon.
1540
+ * setting this flag to true will also change the behavior of the points, like for a
1541
+ * line, last point shape and first point shape will be visible all the times, and all
1542
+ * other points will get enlarge only when hovered over them
1543
+ * if set to false default shape will be circle, with the existing behavior
1544
+ * @default false
1545
+ */
1546
+ allowMultipleShapesForPoints?: boolean;
1547
+ optimizeLargeData?: boolean;
1548
+ /**
1549
+ * The prop used to define the culture to localized the numbers
1550
+ */
1551
+ culture?: string;
1552
+ /**
1553
+ * @default false
1554
+ * The prop used to enable the perf optimization
1555
+ */
1556
+ enablePerfOptimization?: boolean;
1557
+ }
1558
+
1559
+ /**
1560
+ * Line Chart style properties
1561
+ * {@docCategory LineChart}
1562
+ */
1563
+ export declare interface LineChartStyleProps extends CartesianChartStyleProps {
1564
+ }
1565
+
1566
+ /**
1567
+ * Line Chart styles
1568
+ * {@docCategory LineChart}
1569
+ */
1570
+ export declare interface LineChartStyles extends CartesianChartStyles {
1571
+ }
1572
+
1573
+ /**
1574
+ * {@docCategory ChartData}
1575
+ */
1576
+ export declare interface LineDataInVerticalBarChart {
1577
+ y: VerticalBarChartDataPoint['y'];
1578
+ yAxisCalloutData?: string | undefined;
1579
+ /**
1580
+ * onClick action for each datapoint in the chart
1581
+ */
1582
+ onClick?: VoidFunction;
1583
+ /**
1584
+ * Whether to use the secondary y scale or not
1585
+ * False by default.
1586
+ */
1587
+ useSecondaryYScale?: boolean;
1588
+ }
1589
+
1590
+ /**
1591
+ * {@docCategory ChartData}
1592
+ */
1593
+ export declare interface LineDataInVerticalStackedBarChart {
1594
+ y: number;
1595
+ color: string;
1596
+ legend: string;
1597
+ /**
1598
+ * Data to show in callout
1599
+ */
1600
+ data?: number;
1601
+ yAxisCalloutData?: string;
1602
+ /**
1603
+ * Whether to use the secondary y scale or not
1604
+ * False by default.
1605
+ */
1606
+ useSecondaryYScale?: boolean;
1607
+ }
1608
+
1609
+ /**
1610
+ * {@docCategory ChartProps}
1611
+ */
1612
+ export declare interface Margins {
1613
+ /**
1614
+ * left margin for the chart.
1615
+ */
1616
+ left?: number;
1617
+ /**
1618
+ * Right margin for the chart.
1619
+ */
1620
+ right?: number;
1621
+ /**
1622
+ * Top margin for the chart.
1623
+ */
1624
+ top?: number;
1625
+ /**
1626
+ * Bottom margin for the chart.
1627
+ */
1628
+ bottom?: number;
1629
+ }
1630
+
1631
+ export declare interface ModifiedCartesianChartProps extends CartesianChartProps {
1632
+ /**
1633
+ * Define the chart title
1634
+ */
1635
+ chartTitle?: string;
1636
+ /**
1637
+ * Only used for Area chart
1638
+ * Value used to draw y axis of that chart.
1639
+ */
1640
+ maxOfYVal?: number;
1641
+ /**
1642
+ * Data of the chart
1643
+ */
1644
+ points: any;
1645
+ /**
1646
+ * Define type of the chart
1647
+ */
1648
+ chartType: ChartTypes;
1649
+ /** X axis type */
1650
+ xAxisType: XAxisTypes;
1651
+ /** Y axis type */
1652
+ yAxisType?: YAxisType;
1653
+ /**
1654
+ * Legends of the chart.
1655
+ */
1656
+ legendBars: JSX.Element | null;
1657
+ /**
1658
+ * Callout props
1659
+ */
1660
+ calloutProps?: ChartPopoverProps;
1661
+ /**
1662
+ * Callback method used for to get margins to the chart.
1663
+ */
1664
+ getmargins?: (margins: Margins) => void;
1665
+ /**
1666
+ * This is a call back method to the chart from cartesian chart.
1667
+ * params are xScale, yScale, containerHeight, containerWidth. These values were used to draw the graph.
1668
+ * It also contians an optional param xAxisElement - defines as x axis scale element.
1669
+ * This param used to enable feature word wrap of Xaxis.
1670
+ */
1671
+ getGraphData?: any;
1672
+ /**
1673
+ * Used for bar chart graphs.
1674
+ * To define width of the bar
1675
+ */
1676
+ barwidth?: number;
1677
+ /**
1678
+ * Used for tick styles of the x axis of the chart
1679
+ * Tick params are applicable for date axis only.
1680
+ */
1681
+ tickParams?: {
1682
+ tickValues?: number[] | Date[] | string[];
1683
+ tickFormat?: string;
1684
+ };
1685
+ /**
1686
+ * it's padding between bar's or lines in the graph
1687
+ */
1688
+ xAxisPadding?: number;
1689
+ /**
1690
+ * it's padding between bar's or lines in the graph
1691
+ */
1692
+ yAxisPadding?: number;
1693
+ /**
1694
+ * Children elements specific to derived chart types.
1695
+ */
1696
+ children(props: ChildProps): React_2.ReactNode;
1697
+ /** dataset values to find out domain of the String axis
1698
+ * Present using for only vertical stacked bar chart and grouped vertical bar chart
1699
+ */
1700
+ datasetForXAxisDomain?: string[];
1701
+ /**
1702
+ * if the data points for the y-axis is of type string, then we need to give this
1703
+ * prop to construct the y-axis
1704
+ */
1705
+ stringDatasetForYAxisDomain?: string[];
1706
+ /**
1707
+ * The prop used to define the culture to localize the numbers and date
1708
+ */
1709
+ culture?: string;
1710
+ getAxisData?: any;
1711
+ /**
1712
+ * Callback method used when mouse leaves the chart boundary.
1713
+ */
1714
+ onChartMouseLeave?: () => void;
1715
+ /** Callback method to get extra margins for domain */
1716
+ getDomainMargins?: (containerWidth: number) => Margins;
1717
+ /** Padding between each bar/line-point */
1718
+ xAxisInnerPadding?: number;
1719
+ /** Padding before first bar/line-point and after last bar/line-point */
1720
+ xAxisOuterPadding?: number;
1721
+ /**
1722
+ *@default false
1723
+ *Used for to elipse y axis labes and show tooltip on x axis labels
1724
+ */
1725
+ showYAxisLablesTooltip?: boolean;
1726
+ /**
1727
+ *@default false
1728
+ *Used for showing complete y axis lables */
1729
+ showYAxisLables?: boolean;
1730
+ /**
1731
+ * @default false
1732
+ * Used to control the first render cycle Performance optimization code.
1733
+ */
1734
+ enableFirstRenderOptimization?: boolean;
1735
+ }
1736
+
1737
+ /**
1738
+ * we need to make sure that if we add any property to this, then
1739
+ * we need to also add that in pointTypes below and vise-versa
1740
+ */
1741
+ declare enum Points {
1742
+ circle = 0,
1743
+ square = 1,
1744
+ triangle = 2,
1745
+ diamond = 3,
1746
+ pyramid = 4,
1747
+ hexagon = 5,
1748
+ pentagon = 6,
1749
+ octagon = 7
1750
+ }
1751
+
1752
+ export declare interface PopoverComponentStyles {
1753
+ calloutContentRoot: string;
1754
+ calloutDateTimeContainer: string;
1755
+ calloutContentX: string;
1756
+ calloutBlockContainer: string;
1757
+ calloutBlockContainertoDrawShapefalse: string;
1758
+ calloutBlockContainertoDrawShapetrue: string;
1759
+ shapeStyles: string;
1760
+ calloutlegendText: string;
1761
+ calloutContentY: string;
1762
+ descriptionMessage: string;
1763
+ ratio: string;
1764
+ numerator: string;
1765
+ denominator: string;
1766
+ calloutInfoContainer: string;
1767
+ calloutContainer: string;
1768
+ }
1769
+
1770
+ export declare interface RefArrayData {
1771
+ index?: string;
1772
+ refElement?: SVGGElement;
1773
+ }
1774
+
1775
+ /**
1776
+ * Render function interface for providing overrideable render callbacks.
1777
+ *
1778
+ * @public
1779
+ */
1780
+ declare interface RenderFunction<P> {
1781
+ (props?: P, defaultRender?: (props?: P) => JSX.Element | null): JSX.Element | null;
1782
+ }
1783
+
1784
+ export declare const ResponsiveContainer: React_2.FC<ResponsiveContainerProps>;
1785
+
1786
+ declare interface ResponsiveContainerProps {
1787
+ children: React_2.ReactElement;
1788
+ onResize?: (width: number, height: number) => void;
1789
+ width?: number | string;
1790
+ height?: number | string;
1791
+ }
1792
+
1793
+ /**
1794
+ * DeclarativeChart schema.
1795
+ * {@docCategory DeclarativeChart}
1796
+ */
1797
+ export declare interface Schema {
1798
+ /**
1799
+ * Plotly schema represented as JSON object
1800
+ */
1801
+ plotlySchema: any;
1802
+ }
1803
+
1804
+ export declare const Shape: React_2.FunctionComponent<ShapeProps>;
1805
+
1806
+ export declare interface ShapeProps {
1807
+ svgProps: React_2.SVGAttributes<SVGElement>;
1808
+ pathProps: React_2.SVGAttributes<SVGPathElement>;
1809
+ shape: LegendShape;
1810
+ classNameForNonSvg?: string;
1811
+ style?: React_2.CSSProperties | undefined;
1812
+ }
1813
+
1814
+ /**
1815
+ * Sparkline is the context wrapper and container for all Sparkline content/controls,
1816
+ * It has no direct style or slot opinions.
1817
+ *
1818
+ * Sparkline also provides API interfaces for callbacks that will occur on navigation events.
1819
+ */
1820
+ export declare const Sparkline: React_2.FunctionComponent<SparklineProps>;
1821
+
1822
+ /**
1823
+ * Sparkline properties
1824
+ * {@docCategory SparklineChart}
1825
+ */
1826
+ export declare interface SparklineProps extends React.RefAttributes<HTMLDivElement> {
1827
+ /**
1828
+ * An array of chart data points for the Sparkline chart
1829
+ */
1830
+ data?: ChartProps;
1831
+ /**
1832
+ * Width of chart
1833
+ * * @default 80
1834
+ */
1835
+ width?: number;
1836
+ /**
1837
+ * Height of chart
1838
+ * @default 20
1839
+ */
1840
+ height?: number;
1841
+ /**
1842
+ * Width of value text
1843
+ * * @default 80
1844
+ */
1845
+ valueTextWidth?: number;
1846
+ /**
1847
+ * Additional CSS class(es) to apply to the SparklineChart.
1848
+ */
1849
+ className?: string;
1850
+ /**
1851
+ * The prop used to define the culture to localized the numbers
1852
+ */
1853
+ culture?: string;
1854
+ /**
1855
+ * Prop used to determine whether to show the legend or not
1856
+ */
1857
+ showLegend?: boolean;
1858
+ /**
1859
+ * Call to provide customized styling that will layer on top of the variant rules.
1860
+ */
1861
+ styles?: SparklineStyles;
1862
+ }
1863
+
1864
+ export declare interface SparklineStyleProps extends CartesianChartStyleProps {
1865
+ }
1866
+
1867
+ /**
1868
+ * Sparkline styles
1869
+ * {@docCategory SparklineChart}
1870
+ */
1871
+ export declare interface SparklineStyles {
1872
+ inlineBlock?: string;
1873
+ valueText?: string;
1874
+ }
1875
+
1876
+ export declare const Textbox: React_2.FunctionComponent<TextboxProps>;
1877
+
1878
+ declare interface TextboxProps {
1879
+ text: string;
1880
+ width: number;
1881
+ x: number;
1882
+ y: number;
1883
+ lineHeight: number;
1884
+ textAnchor?: 'start' | 'middle' | 'end';
1885
+ fontSize?: string;
1886
+ fill?: string;
1887
+ }
1888
+
1889
+ /**
1890
+ * VerticalBarchart component
1891
+ * {@docCategory VerticalBarChart}
1892
+ */
1893
+ export declare const VerticalBarChart: React_2.FunctionComponent<VerticalBarChartProps>;
1894
+
1895
+ /**
1896
+ * {@docCategory ChartData}
1897
+ */
1898
+ export declare interface VerticalBarChartDataPoint {
1899
+ /**
1900
+ * Independent value of the data point, rendered along the x-axis.
1901
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
1902
+ * If x is a string, then the data is evenly spaced along the x-axis.
1903
+ */
1904
+ x: number | string | Date;
1905
+ /**
1906
+ * Dependent value of the data point, rendered along the y-axis.
1907
+ */
1908
+ y: number;
1909
+ /**
1910
+ * Legend text for the datapoint in the chart
1911
+ */
1912
+ legend?: string;
1913
+ /**
1914
+ * color for the legend in the chart
1915
+ */
1916
+ color?: string;
1917
+ /**
1918
+ * Callout data for x axis
1919
+ * This is an optional prop, If haven;t given legend will take
1920
+ */
1921
+ xAxisCalloutData?: string;
1922
+ /**
1923
+ * Callout data for y axis
1924
+ * This is an optional prop, If haven't given data will take
1925
+ */
1926
+ yAxisCalloutData?: string;
1927
+ /**
1928
+ * data to render the line along with bars
1929
+ */
1930
+ lineData?: LineDataInVerticalBarChart;
1931
+ /**
1932
+ * onClick action for each datapoint in the chart
1933
+ */
1934
+ onClick?: VoidFunction;
1935
+ /**
1936
+ * Accessibility data for callout
1937
+ */
1938
+ callOutAccessibilityData?: AccessibilityProps;
1939
+ }
1940
+
1941
+ /**
1942
+ * Vertical Bar Chart properties
1943
+ * {@docCategory VerticalBarChart}
1944
+ */
1945
+ export declare interface VerticalBarChartProps extends CartesianChartProps {
1946
+ /**
1947
+ * Data to render in the chart.
1948
+ */
1949
+ data?: VerticalBarChartDataPoint[];
1950
+ /**
1951
+ * Define a custom callout renderer for a data point.
1952
+ */
1953
+ onRenderCalloutPerDataPoint?: RenderFunction<VerticalBarChartDataPoint>;
1954
+ /**
1955
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
1956
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
1957
+ * @default 16
1958
+ */
1959
+ barWidth?: number | 'default' | 'auto';
1960
+ /**
1961
+ * Colors from which to select the color of each bar.
1962
+ */
1963
+ colors?: string[];
1964
+ /**
1965
+ * chart title for the chart
1966
+ */
1967
+ chartTitle?: string;
1968
+ /**
1969
+ * Legend text for the line datapoint in the chart
1970
+ */
1971
+ lineLegendText?: string;
1972
+ /**
1973
+ * color for the legend of the line in the chart
1974
+ * @default theme.yellow
1975
+ */
1976
+ lineLegendColor?: string;
1977
+ /**
1978
+ * This prop makes sure that all the bars are of same color.
1979
+ * it will take the first color from the array of colors in
1980
+ * prop `colors` or if `colors` prop is not given then default color is palette.blueLight
1981
+ * @default false
1982
+ */
1983
+ useSingleColor?: boolean;
1984
+ /**
1985
+ * Call to provide customized styling that will layer on top of the variant rules.
1986
+ */
1987
+ styles?: VerticalBarChartStyles;
1988
+ /**
1989
+ * The prop used to define the culture to localized the numbers
1990
+ */
1991
+ culture?: string;
1992
+ /**
1993
+ * it's padding between bar's or lines in the graph
1994
+ */
1995
+ xAxisPadding?: number;
1996
+ /**
1997
+ * options for the line drawn
1998
+ */
1999
+ lineOptions?: LineChartLineOptions;
2000
+ /**
2001
+ * Prop to hide the bar labels
2002
+ * @default false
2003
+ */
2004
+ hideLabels?: boolean;
2005
+ /**
2006
+ * Maximum width of a bar, in pixels.
2007
+ * @default 24
2008
+ */
2009
+ maxBarWidth?: number;
2010
+ /**
2011
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
2012
+ * Takes a number in the range [0, 1]. Only applicable to string x-axis.
2013
+ * @default 2/3
2014
+ */
2015
+ xAxisInnerPadding?: number;
2016
+ /**
2017
+ * Padding before the first bar and after the last bar as a fraction of
2018
+ * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
2019
+ * Only applicable to string x-axis.
2020
+ */
2021
+ xAxisOuterPadding?: number;
2022
+ }
2023
+
2024
+ /**
2025
+ * Vertical Bar Chart style properties
2026
+ * {@docCategory VerticalBarChart}
2027
+ */
2028
+ export declare interface VerticalBarChartStyleProps extends CartesianChartStyleProps {
2029
+ /**
2030
+ * color of the datapoint legend
2031
+ */
2032
+ legendColor?: string;
2033
+ }
2034
+
2035
+ /**
2036
+ * Vertical Bar Chart styles
2037
+ * {@docCategory VerticalBarChart}
2038
+ */
2039
+ export declare interface VerticalBarChartStyles extends CartesianChartStyles {
2040
+ /**
2041
+ * Style for the bar labels
2042
+ */
2043
+ barLabel: string;
2044
+ }
2045
+
2046
+ /**
2047
+ * {@docCategory ChartData}
2048
+ */
2049
+ export declare interface VerticalStackedBarDataPoint extends Omit<DataPoint, 'x'> {
2050
+ /**
2051
+ * Independent value of the data point, rendered along the x-axis.
2052
+ * If x is a number, then each y-coordinate is plotted at its x-coordinate.
2053
+ * If x is a string, then the data is evenly spaced along the x-axis.
2054
+ * If data type on x is Date, then the data is spaced evenly by d3-scale.
2055
+ */
2056
+ x: number | string | Date;
2057
+ }
2058
+
2059
+ /**
2060
+ * {@docCategory ChartProps}
2061
+ */
2062
+ export declare interface VerticalStackedChartProps {
2063
+ /**
2064
+ * data for the points in the chart
2065
+ */
2066
+ chartData: VSChartDataPoint[];
2067
+ /**
2068
+ * Data for x axis label for multistacked Vertical bar chart
2069
+ */
2070
+ xAxisPoint: number | string | Date;
2071
+ /**
2072
+ * Callout data for x axis
2073
+ * This is an optional prop, If haven't given, legend will take
2074
+ */
2075
+ xAxisCalloutData?: string;
2076
+ /**
2077
+ * line data to render lines on stacked bar chart
2078
+ */
2079
+ lineData?: LineDataInVerticalStackedBarChart[];
2080
+ /**
2081
+ * Accessibility data for Whole stack callout
2082
+ */
2083
+ stackCallOutAccessibilityData?: AccessibilityProps;
2084
+ }
2085
+
2086
+ /**
2087
+ * {@docCategory ChartData}
2088
+ */
2089
+ export declare interface VSChartDataPoint {
2090
+ /**
2091
+ * data the datapoint in the chart
2092
+ */
2093
+ data: number;
2094
+ /**
2095
+ * Legend text for the datapoint in the chart
2096
+ */
2097
+ legend: string;
2098
+ /**
2099
+ * color for the legend in the chart
2100
+ */
2101
+ color?: string;
2102
+ /**
2103
+ * Callout data for x axis
2104
+ * This is an optional prop, If haven;t given legend will take
2105
+ */
2106
+ xAxisCalloutData?: string;
2107
+ /**
2108
+ * Callout data for y axis
2109
+ * This is an optional prop, If haven't given data will take
2110
+ */
2111
+ yAxisCalloutData?: string;
2112
+ /**
2113
+ * Accessibility data for callout
2114
+ */
2115
+ callOutAccessibilityData?: AccessibilityProps;
2116
+ }
2117
+
2118
+ declare enum XAxisTypes {
2119
+ NumericAxis = 0,
2120
+ DateAxis = 1,
2121
+ StringAxis = 2
2122
+ }
2123
+
2124
+ declare enum YAxisType {
2125
+ NumericAxis = 0,
2126
+ DateAxis = 1,
2127
+ StringAxis = 2
2128
+ }
2129
+
2130
+ export declare interface YValueHover {
2131
+ legend?: string;
2132
+ y?: number;
2133
+ color?: string;
2134
+ data?: string | number;
2135
+ shouldDrawBorderBottom?: boolean;
2136
+ yAxisCalloutData?: string | {
2137
+ [id: string]: number;
2138
+ };
2139
+ index?: number;
2140
+ callOutAccessibilityData?: AccessibilityProps;
2141
+ }
2142
+
2143
+ export { }