@fluentui/react-charting 5.17.12 → 5.18.0

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