@fluentui/react-charting 5.16.24 → 5.16.26

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 (796) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/config/setup-env.js +1 -0
  4. package/dist/react-charting.js +1 -0
  5. package/dist/react-charting.min.js +1 -0
  6. package/docs/TestPlans/BasicDonutChart.png +0 -0
  7. package/docs/TestPlans/DonutChart/ComponentTests.md +35 -0
  8. package/lib/AreaChart.d.ts +1 -0
  9. package/lib/AreaChart.js +2 -0
  10. package/lib/AreaChart.js.map +1 -0
  11. package/lib/CartesianChart.d.ts +1 -0
  12. package/lib/CartesianChart.js +2 -0
  13. package/lib/CartesianChart.js.map +1 -0
  14. package/lib/DonutChart.d.ts +1 -0
  15. package/lib/DonutChart.js +2 -0
  16. package/lib/DonutChart.js.map +1 -0
  17. package/lib/GroupedVerticalBarChart.d.ts +1 -0
  18. package/lib/GroupedVerticalBarChart.js +2 -0
  19. package/lib/GroupedVerticalBarChart.js.map +1 -0
  20. package/lib/HeatMapChart.d.ts +1 -0
  21. package/lib/HeatMapChart.js +2 -0
  22. package/lib/HeatMapChart.js.map +1 -0
  23. package/lib/HorizontalBarChart.d.ts +1 -0
  24. package/lib/HorizontalBarChart.js +2 -0
  25. package/lib/HorizontalBarChart.js.map +1 -0
  26. package/lib/Legends.d.ts +1 -0
  27. package/lib/Legends.js +2 -0
  28. package/lib/Legends.js.map +1 -0
  29. package/lib/LineChart.d.ts +1 -0
  30. package/lib/LineChart.js +2 -0
  31. package/lib/LineChart.js.map +1 -0
  32. package/lib/PieChart.d.ts +1 -0
  33. package/lib/PieChart.js +2 -0
  34. package/lib/PieChart.js.map +1 -0
  35. package/lib/SankeyChart.d.ts +1 -0
  36. package/lib/SankeyChart.js +2 -0
  37. package/lib/SankeyChart.js.map +1 -0
  38. package/lib/Sparkline.d.ts +1 -0
  39. package/lib/Sparkline.js +2 -0
  40. package/lib/Sparkline.js.map +1 -0
  41. package/lib/StackedBarChart.d.ts +1 -0
  42. package/lib/StackedBarChart.js +2 -0
  43. package/lib/StackedBarChart.js.map +1 -0
  44. package/lib/Styling.d.ts +2 -0
  45. package/lib/Styling.js +8 -0
  46. package/lib/Styling.js.map +1 -0
  47. package/lib/TreeChart.d.ts +1 -0
  48. package/lib/TreeChart.js +2 -0
  49. package/lib/TreeChart.js.map +1 -0
  50. package/lib/Utilities.d.ts +2 -0
  51. package/lib/Utilities.js +20 -0
  52. package/lib/Utilities.js.map +1 -0
  53. package/lib/VerticalBarChart.d.ts +1 -0
  54. package/lib/VerticalBarChart.js +2 -0
  55. package/lib/VerticalBarChart.js.map +1 -0
  56. package/lib/VerticalStackedBarChart.d.ts +1 -0
  57. package/lib/VerticalStackedBarChart.js +2 -0
  58. package/lib/VerticalStackedBarChart.js.map +1 -0
  59. package/lib/components/AreaChart/AreaChart.base.d.ts +92 -0
  60. package/lib/components/AreaChart/AreaChart.base.js +562 -0
  61. package/lib/components/AreaChart/AreaChart.base.js.map +1 -0
  62. package/lib/components/AreaChart/AreaChart.d.ts +3 -0
  63. package/lib/components/AreaChart/AreaChart.js +6 -0
  64. package/lib/components/AreaChart/AreaChart.js.map +1 -0
  65. package/lib/components/AreaChart/AreaChart.styles.d.ts +2 -0
  66. package/lib/components/AreaChart/AreaChart.styles.js +7 -0
  67. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -0
  68. package/lib/components/AreaChart/AreaChart.types.d.ts +37 -0
  69. package/lib/components/AreaChart/AreaChart.types.js +2 -0
  70. package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
  71. package/lib/components/AreaChart/index.d.ts +2 -0
  72. package/lib/components/AreaChart/index.js +3 -0
  73. package/lib/components/AreaChart/index.js.map +1 -0
  74. package/lib/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  75. package/lib/components/CommonComponents/CartesianChart.base.js +331 -0
  76. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -0
  77. package/lib/components/CommonComponents/CartesianChart.d.ts +3 -0
  78. package/lib/components/CommonComponents/CartesianChart.js +5 -0
  79. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  80. package/lib/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  81. package/lib/components/CommonComponents/CartesianChart.styles.js +163 -0
  82. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  83. package/lib/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  84. package/lib/components/CommonComponents/CartesianChart.types.js +2 -0
  85. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  86. package/lib/components/CommonComponents/index.d.ts +2 -0
  87. package/lib/components/CommonComponents/index.js +3 -0
  88. package/lib/components/CommonComponents/index.js.map +1 -0
  89. package/lib/components/DonutChart/Arc/Arc.d.ts +21 -0
  90. package/lib/components/DonutChart/Arc/Arc.js +86 -0
  91. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  92. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  93. package/lib/components/DonutChart/Arc/Arc.styles.js +28 -0
  94. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  95. package/lib/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  96. package/lib/components/DonutChart/Arc/Arc.types.js +2 -0
  97. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  98. package/lib/components/DonutChart/Arc/index.d.ts +2 -0
  99. package/lib/components/DonutChart/Arc/index.js +3 -0
  100. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  101. package/lib/components/DonutChart/DonutChart.base.d.ts +50 -0
  102. package/lib/components/DonutChart/DonutChart.base.js +211 -0
  103. package/lib/components/DonutChart/DonutChart.base.js.map +1 -0
  104. package/lib/components/DonutChart/DonutChart.d.ts +3 -0
  105. package/lib/components/DonutChart/DonutChart.js +6 -0
  106. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  107. package/lib/components/DonutChart/DonutChart.styles.d.ts +2 -0
  108. package/lib/components/DonutChart/DonutChart.styles.js +30 -0
  109. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
  110. package/lib/components/DonutChart/DonutChart.types.d.ts +63 -0
  111. package/lib/components/DonutChart/DonutChart.types.js +2 -0
  112. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  113. package/lib/components/DonutChart/Pie/Pie.d.ts +15 -0
  114. package/lib/components/DonutChart/Pie/Pie.js +71 -0
  115. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  116. package/lib/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  117. package/lib/components/DonutChart/Pie/Pie.styles.js +19 -0
  118. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  119. package/lib/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  120. package/lib/components/DonutChart/Pie/Pie.types.js +2 -0
  121. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  122. package/lib/components/DonutChart/Pie/index.d.ts +2 -0
  123. package/lib/components/DonutChart/Pie/index.js +3 -0
  124. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  125. package/lib/components/DonutChart/index.d.ts +3 -0
  126. package/lib/components/DonutChart/index.js +4 -0
  127. package/lib/components/DonutChart/index.js.map +1 -0
  128. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  129. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +381 -0
  130. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  131. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  132. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +6 -0
  133. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  134. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  135. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +17 -0
  136. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  137. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  138. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +2 -0
  139. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  140. package/lib/components/GroupedVerticalBarChart/index.d.ts +2 -0
  141. package/lib/components/GroupedVerticalBarChart/index.js +3 -0
  142. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
  143. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  144. package/lib/components/HeatMapChart/HeatMapChart.base.js +498 -0
  145. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  146. package/lib/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  147. package/lib/components/HeatMapChart/HeatMapChart.js +5 -0
  148. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
  149. package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  150. package/lib/components/HeatMapChart/HeatMapChart.styles.js +24 -0
  151. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  152. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  153. package/lib/components/HeatMapChart/HeatMapChart.types.js +2 -0
  154. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  155. package/lib/components/HeatMapChart/index.d.ts +2 -0
  156. package/lib/components/HeatMapChart/index.js +3 -0
  157. package/lib/components/HeatMapChart/index.js.map +1 -0
  158. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  159. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +237 -0
  160. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  161. package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  162. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +6 -0
  163. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  164. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  165. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
  166. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  167. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  168. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  169. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  170. package/lib/components/HorizontalBarChart/index.d.ts +3 -0
  171. package/lib/components/HorizontalBarChart/index.js +4 -0
  172. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  173. package/lib/components/Legends/Legends.base.d.ts +44 -0
  174. package/lib/components/Legends/Legends.base.js +293 -0
  175. package/lib/components/Legends/Legends.base.js.map +1 -0
  176. package/lib/components/Legends/Legends.d.ts +3 -0
  177. package/lib/components/Legends/Legends.js +5 -0
  178. package/lib/components/Legends/Legends.js.map +1 -0
  179. package/lib/components/Legends/Legends.styles.d.ts +2 -0
  180. package/lib/components/Legends/Legends.styles.js +103 -0
  181. package/lib/components/Legends/Legends.styles.js.map +1 -0
  182. package/lib/components/Legends/Legends.types.d.ts +169 -0
  183. package/lib/components/Legends/Legends.types.js +2 -0
  184. package/lib/components/Legends/Legends.types.js.map +1 -0
  185. package/lib/components/Legends/index.d.ts +3 -0
  186. package/lib/components/Legends/index.js +4 -0
  187. package/lib/components/Legends/index.js.map +1 -0
  188. package/lib/components/Legends/shape.d.ts +9 -0
  189. package/lib/components/Legends/shape.js +24 -0
  190. package/lib/components/Legends/shape.js.map +1 -0
  191. package/lib/components/LineChart/LineChart.base.d.ts +84 -0
  192. package/lib/components/LineChart/LineChart.base.js +815 -0
  193. package/lib/components/LineChart/LineChart.base.js.map +1 -0
  194. package/lib/components/LineChart/LineChart.d.ts +3 -0
  195. package/lib/components/LineChart/LineChart.js +6 -0
  196. package/lib/components/LineChart/LineChart.js.map +1 -0
  197. package/lib/components/LineChart/LineChart.styles.d.ts +2 -0
  198. package/lib/components/LineChart/LineChart.styles.js +7 -0
  199. package/lib/components/LineChart/LineChart.styles.js.map +1 -0
  200. package/lib/components/LineChart/LineChart.types.d.ts +72 -0
  201. package/lib/components/LineChart/LineChart.types.js +2 -0
  202. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  203. package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  204. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +93 -0
  205. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  206. package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  207. package/lib/components/LineChart/eventAnnotation/LabelLink.js +37 -0
  208. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  209. package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  210. package/lib/components/LineChart/eventAnnotation/Textbox.js +37 -0
  211. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  212. package/lib/components/LineChart/index.d.ts +3 -0
  213. package/lib/components/LineChart/index.js +4 -0
  214. package/lib/components/LineChart/index.js.map +1 -0
  215. package/lib/components/PieChart/Arc/Arc.d.ts +12 -0
  216. package/lib/components/PieChart/Arc/Arc.js +57 -0
  217. package/lib/components/PieChart/Arc/Arc.js.map +1 -0
  218. package/lib/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  219. package/lib/components/PieChart/Arc/Arc.styles.js +8 -0
  220. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -0
  221. package/lib/components/PieChart/Arc/Arc.types.d.ts +60 -0
  222. package/lib/components/PieChart/Arc/Arc.types.js +2 -0
  223. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -0
  224. package/lib/components/PieChart/Arc/index.d.ts +2 -0
  225. package/lib/components/PieChart/Arc/index.js +3 -0
  226. package/lib/components/PieChart/Arc/index.js.map +1 -0
  227. package/lib/components/PieChart/Pie/Pie.d.ts +10 -0
  228. package/lib/components/PieChart/Pie/Pie.js +35 -0
  229. package/lib/components/PieChart/Pie/Pie.js.map +1 -0
  230. package/lib/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  231. package/lib/components/PieChart/Pie/Pie.styles.js +6 -0
  232. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -0
  233. package/lib/components/PieChart/Pie/Pie.types.d.ts +46 -0
  234. package/lib/components/PieChart/Pie/Pie.types.js +2 -0
  235. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -0
  236. package/lib/components/PieChart/Pie/index.d.ts +2 -0
  237. package/lib/components/PieChart/Pie/index.js +3 -0
  238. package/lib/components/PieChart/Pie/index.js.map +1 -0
  239. package/lib/components/PieChart/PieChart.base.d.ts +7 -0
  240. package/lib/components/PieChart/PieChart.base.js +34 -0
  241. package/lib/components/PieChart/PieChart.base.js.map +1 -0
  242. package/lib/components/PieChart/PieChart.d.ts +3 -0
  243. package/lib/components/PieChart/PieChart.js +6 -0
  244. package/lib/components/PieChart/PieChart.js.map +1 -0
  245. package/lib/components/PieChart/PieChart.styles.d.ts +2 -0
  246. package/lib/components/PieChart/PieChart.styles.js +29 -0
  247. package/lib/components/PieChart/PieChart.styles.js.map +1 -0
  248. package/lib/components/PieChart/PieChart.types.d.ts +63 -0
  249. package/lib/components/PieChart/PieChart.types.js +2 -0
  250. package/lib/components/PieChart/PieChart.types.js.map +1 -0
  251. package/lib/components/PieChart/index.d.ts +2 -0
  252. package/lib/components/PieChart/index.js +3 -0
  253. package/lib/components/PieChart/index.js.map +1 -0
  254. package/lib/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  255. package/lib/components/SankeyChart/SankeyChart.base.js +674 -0
  256. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -0
  257. package/lib/components/SankeyChart/SankeyChart.d.ts +3 -0
  258. package/lib/components/SankeyChart/SankeyChart.js +6 -0
  259. package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
  260. package/lib/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  261. package/lib/components/SankeyChart/SankeyChart.styles.js +58 -0
  262. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  263. package/lib/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  264. package/lib/components/SankeyChart/SankeyChart.types.js +2 -0
  265. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
  266. package/lib/components/SankeyChart/index.d.ts +2 -0
  267. package/lib/components/SankeyChart/index.js +3 -0
  268. package/lib/components/SankeyChart/index.js.map +1 -0
  269. package/lib/components/Sparkline/Sparkline.base.d.ts +20 -0
  270. package/lib/components/Sparkline/Sparkline.base.js +76 -0
  271. package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
  272. package/lib/components/Sparkline/Sparkline.d.ts +3 -0
  273. package/lib/components/Sparkline/Sparkline.js +6 -0
  274. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  275. package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
  276. package/lib/components/Sparkline/Sparkline.styles.js +10 -0
  277. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
  278. package/lib/components/Sparkline/Sparkline.types.d.ts +51 -0
  279. package/lib/components/Sparkline/Sparkline.types.js +2 -0
  280. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  281. package/lib/components/Sparkline/index.d.ts +2 -0
  282. package/lib/components/Sparkline/index.js +3 -0
  283. package/lib/components/Sparkline/index.js.map +1 -0
  284. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  285. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +356 -0
  286. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  287. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  288. package/lib/components/StackedBarChart/MultiStackedBarChart.js +6 -0
  289. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  290. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  291. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +90 -0
  292. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  293. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  294. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +6 -0
  295. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  296. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  297. package/lib/components/StackedBarChart/StackedBarChart.base.js +311 -0
  298. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  299. package/lib/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  300. package/lib/components/StackedBarChart/StackedBarChart.js +6 -0
  301. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -0
  302. package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  303. package/lib/components/StackedBarChart/StackedBarChart.styles.js +104 -0
  304. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  305. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  306. package/lib/components/StackedBarChart/StackedBarChart.types.js +2 -0
  307. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  308. package/lib/components/StackedBarChart/index.d.ts +5 -0
  309. package/lib/components/StackedBarChart/index.js +6 -0
  310. package/lib/components/StackedBarChart/index.js.map +1 -0
  311. package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
  312. package/lib/components/TreeChart/TreeChart.base.js +316 -0
  313. package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
  314. package/lib/components/TreeChart/TreeChart.d.ts +3 -0
  315. package/lib/components/TreeChart/TreeChart.js +5 -0
  316. package/lib/components/TreeChart/TreeChart.js.map +1 -0
  317. package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
  318. package/lib/components/TreeChart/TreeChart.styles.js +29 -0
  319. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
  320. package/lib/components/TreeChart/TreeChart.types.d.ts +197 -0
  321. package/lib/components/TreeChart/TreeChart.types.js +23 -0
  322. package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
  323. package/lib/components/TreeChart/index.d.ts +2 -0
  324. package/lib/components/TreeChart/index.js +3 -0
  325. package/lib/components/TreeChart/index.js.map +1 -0
  326. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  327. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +536 -0
  328. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  329. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  330. package/lib/components/VerticalBarChart/VerticalBarChart.js +6 -0
  331. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  332. package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  333. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +28 -0
  334. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  335. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  336. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +2 -0
  337. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  338. package/lib/components/VerticalBarChart/index.d.ts +2 -0
  339. package/lib/components/VerticalBarChart/index.js +3 -0
  340. package/lib/components/VerticalBarChart/index.js.map +1 -0
  341. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  342. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +666 -0
  343. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  344. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  345. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -0
  346. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  347. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  348. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +18 -0
  349. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  350. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  351. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +2 -0
  352. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  353. package/lib/components/VerticalStackedBarChart/index.d.ts +2 -0
  354. package/lib/components/VerticalStackedBarChart/index.js +3 -0
  355. package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
  356. package/lib/index.d.ts +19 -0
  357. package/lib/index.js +20 -0
  358. package/lib/index.js.map +1 -0
  359. package/lib/types/IDataPoint.d.ts +545 -0
  360. package/lib/types/IDataPoint.js +2 -0
  361. package/lib/types/IDataPoint.js.map +1 -0
  362. package/lib/types/IEventAnnotation.d.ts +6 -0
  363. package/lib/types/IEventAnnotation.js +2 -0
  364. package/lib/types/IEventAnnotation.js.map +1 -0
  365. package/lib/types/ILegendDataItem.d.ts +10 -0
  366. package/lib/types/ILegendDataItem.js +2 -0
  367. package/lib/types/ILegendDataItem.js.map +1 -0
  368. package/lib/types/index.d.ts +2 -0
  369. package/lib/types/index.js +3 -0
  370. package/lib/types/index.js.map +1 -0
  371. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  372. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +38 -0
  373. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  374. package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  375. package/lib/utilities/ChartHoverCard/ChartHoverCard.js +6 -0
  376. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  377. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  378. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +82 -0
  379. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  380. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  381. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +2 -0
  382. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  383. package/lib/utilities/ChartHoverCard/index.d.ts +3 -0
  384. package/lib/utilities/ChartHoverCard/index.js +4 -0
  385. package/lib/utilities/ChartHoverCard/index.js.map +1 -0
  386. package/lib/utilities/FocusableTooltipText.d.ts +27 -0
  387. package/lib/utilities/FocusableTooltipText.js +54 -0
  388. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  389. package/lib/utilities/colors.d.ts +51 -0
  390. package/lib/utilities/colors.js +132 -0
  391. package/lib/utilities/colors.js.map +1 -0
  392. package/lib/utilities/index.d.ts +3 -0
  393. package/lib/utilities/index.js +4 -0
  394. package/lib/utilities/index.js.map +1 -0
  395. package/lib/utilities/utilities.d.ts +377 -0
  396. package/lib/utilities/utilities.js +864 -0
  397. package/lib/utilities/utilities.js.map +1 -0
  398. package/lib/version.d.ts +1 -0
  399. package/lib/version.js +5 -0
  400. package/lib/version.js.map +1 -0
  401. package/lib-amd/AreaChart.d.ts +1 -0
  402. package/lib-amd/AreaChart.js +6 -0
  403. package/lib-amd/AreaChart.js.map +1 -0
  404. package/lib-amd/CartesianChart.d.ts +1 -0
  405. package/lib-amd/CartesianChart.js +6 -0
  406. package/lib-amd/CartesianChart.js.map +1 -0
  407. package/lib-amd/DonutChart.d.ts +1 -0
  408. package/lib-amd/DonutChart.js +6 -0
  409. package/lib-amd/DonutChart.js.map +1 -0
  410. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  411. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  412. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  413. package/lib-amd/HeatMapChart.d.ts +1 -0
  414. package/lib-amd/HeatMapChart.js +6 -0
  415. package/lib-amd/HeatMapChart.js.map +1 -0
  416. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  417. package/lib-amd/HorizontalBarChart.js +6 -0
  418. package/lib-amd/HorizontalBarChart.js.map +1 -0
  419. package/lib-amd/Legends.d.ts +1 -0
  420. package/lib-amd/Legends.js +6 -0
  421. package/lib-amd/Legends.js.map +1 -0
  422. package/lib-amd/LineChart.d.ts +1 -0
  423. package/lib-amd/LineChart.js +6 -0
  424. package/lib-amd/LineChart.js.map +1 -0
  425. package/lib-amd/PieChart.d.ts +1 -0
  426. package/lib-amd/PieChart.js +6 -0
  427. package/lib-amd/PieChart.js.map +1 -0
  428. package/lib-amd/SankeyChart.d.ts +1 -0
  429. package/lib-amd/SankeyChart.js +6 -0
  430. package/lib-amd/SankeyChart.js.map +1 -0
  431. package/lib-amd/Sparkline.d.ts +1 -0
  432. package/lib-amd/Sparkline.js +6 -0
  433. package/lib-amd/Sparkline.js.map +1 -0
  434. package/lib-amd/StackedBarChart.d.ts +1 -0
  435. package/lib-amd/StackedBarChart.js +6 -0
  436. package/lib-amd/StackedBarChart.js.map +1 -0
  437. package/lib-amd/Styling.d.ts +2 -0
  438. package/lib-amd/Styling.js +75 -0
  439. package/lib-amd/Styling.js.map +1 -0
  440. package/lib-amd/TreeChart.d.ts +1 -0
  441. package/lib-amd/TreeChart.js +6 -0
  442. package/lib-amd/TreeChart.js.map +1 -0
  443. package/lib-amd/Utilities.d.ts +2 -0
  444. package/lib-amd/Utilities.js +183 -0
  445. package/lib-amd/Utilities.js.map +1 -0
  446. package/lib-amd/VerticalBarChart.d.ts +1 -0
  447. package/lib-amd/VerticalBarChart.js +6 -0
  448. package/lib-amd/VerticalBarChart.js.map +1 -0
  449. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  450. package/lib-amd/VerticalStackedBarChart.js +6 -0
  451. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  452. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +92 -0
  453. package/lib-amd/components/AreaChart/AreaChart.base.js +555 -0
  454. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  455. package/lib-amd/components/AreaChart/AreaChart.d.ts +3 -0
  456. package/lib-amd/components/AreaChart/AreaChart.js +8 -0
  457. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  458. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  459. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  460. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  461. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +37 -0
  462. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  463. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  464. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  465. package/lib-amd/components/AreaChart/index.js +7 -0
  466. package/lib-amd/components/AreaChart/index.js.map +1 -0
  467. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  468. package/lib-amd/components/CommonComponents/CartesianChart.base.js +329 -0
  469. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  470. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +3 -0
  471. package/lib-amd/components/CommonComponents/CartesianChart.js +7 -0
  472. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  473. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  474. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +166 -0
  475. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  476. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  477. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  478. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  479. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  480. package/lib-amd/components/CommonComponents/index.js +7 -0
  481. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  482. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
  483. package/lib-amd/components/DonutChart/Arc/Arc.js +85 -0
  484. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  485. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  486. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
  487. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  488. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  489. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  490. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  491. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  492. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  493. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  494. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +50 -0
  495. package/lib-amd/components/DonutChart/DonutChart.base.js +208 -0
  496. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  497. package/lib-amd/components/DonutChart/DonutChart.d.ts +3 -0
  498. package/lib-amd/components/DonutChart/DonutChart.js +8 -0
  499. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  500. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  501. package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
  502. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  503. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +63 -0
  504. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  505. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  506. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
  507. package/lib-amd/components/DonutChart/Pie/Pie.js +69 -0
  508. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  509. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  510. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
  511. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  512. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  513. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  514. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  515. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  516. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  517. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  518. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  519. package/lib-amd/components/DonutChart/index.js +8 -0
  520. package/lib-amd/components/DonutChart/index.js.map +1 -0
  521. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  522. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +375 -0
  523. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  524. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  525. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -0
  526. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  527. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  528. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
  529. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  530. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  531. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  532. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  533. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  534. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  535. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  536. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  537. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +492 -0
  538. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  539. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  540. package/lib-amd/components/HeatMapChart/HeatMapChart.js +7 -0
  541. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  542. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  543. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
  544. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  545. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  546. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  547. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  548. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  549. package/lib-amd/components/HeatMapChart/index.js +7 -0
  550. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  551. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  552. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +233 -0
  553. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  554. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  555. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +8 -0
  556. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  557. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  558. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +72 -0
  559. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  560. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  561. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +11 -0
  562. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  563. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  564. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  565. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  566. package/lib-amd/components/Legends/Legends.base.d.ts +44 -0
  567. package/lib-amd/components/Legends/Legends.base.js +290 -0
  568. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  569. package/lib-amd/components/Legends/Legends.d.ts +3 -0
  570. package/lib-amd/components/Legends/Legends.js +7 -0
  571. package/lib-amd/components/Legends/Legends.js.map +1 -0
  572. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  573. package/lib-amd/components/Legends/Legends.styles.js +107 -0
  574. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  575. package/lib-amd/components/Legends/Legends.types.d.ts +169 -0
  576. package/lib-amd/components/Legends/Legends.types.js +5 -0
  577. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  578. package/lib-amd/components/Legends/index.d.ts +3 -0
  579. package/lib-amd/components/Legends/index.js +8 -0
  580. package/lib-amd/components/Legends/index.js.map +1 -0
  581. package/lib-amd/components/Legends/shape.d.ts +9 -0
  582. package/lib-amd/components/Legends/shape.js +27 -0
  583. package/lib-amd/components/Legends/shape.js.map +1 -0
  584. package/lib-amd/components/LineChart/LineChart.base.d.ts +84 -0
  585. package/lib-amd/components/LineChart/LineChart.base.js +809 -0
  586. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  587. package/lib-amd/components/LineChart/LineChart.d.ts +3 -0
  588. package/lib-amd/components/LineChart/LineChart.js +8 -0
  589. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  590. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  591. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  592. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  593. package/lib-amd/components/LineChart/LineChart.types.d.ts +72 -0
  594. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  595. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  596. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  597. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +95 -0
  598. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  599. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  600. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +40 -0
  601. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  602. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  603. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  604. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  605. package/lib-amd/components/LineChart/index.d.ts +3 -0
  606. package/lib-amd/components/LineChart/index.js +8 -0
  607. package/lib-amd/components/LineChart/index.js.map +1 -0
  608. package/lib-amd/components/PieChart/Arc/Arc.d.ts +12 -0
  609. package/lib-amd/components/PieChart/Arc/Arc.js +56 -0
  610. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  611. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  612. package/lib-amd/components/PieChart/Arc/Arc.styles.js +13 -0
  613. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  614. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +60 -0
  615. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  616. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  617. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  618. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  619. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  620. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  621. package/lib-amd/components/PieChart/Pie/Pie.js +35 -0
  622. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  623. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  624. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  625. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  626. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +46 -0
  627. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  628. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  629. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  630. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  631. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  632. package/lib-amd/components/PieChart/PieChart.base.d.ts +7 -0
  633. package/lib-amd/components/PieChart/PieChart.base.js +35 -0
  634. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  635. package/lib-amd/components/PieChart/PieChart.d.ts +3 -0
  636. package/lib-amd/components/PieChart/PieChart.js +8 -0
  637. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  638. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  639. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  640. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  641. package/lib-amd/components/PieChart/PieChart.types.d.ts +63 -0
  642. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  643. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  644. package/lib-amd/components/PieChart/index.d.ts +2 -0
  645. package/lib-amd/components/PieChart/index.js +7 -0
  646. package/lib-amd/components/PieChart/index.js.map +1 -0
  647. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  648. package/lib-amd/components/SankeyChart/SankeyChart.base.js +669 -0
  649. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  650. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +3 -0
  651. package/lib-amd/components/SankeyChart/SankeyChart.js +8 -0
  652. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  653. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  654. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +62 -0
  655. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  656. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  657. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  658. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  659. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  660. package/lib-amd/components/SankeyChart/index.js +7 -0
  661. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  662. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +20 -0
  663. package/lib-amd/components/Sparkline/Sparkline.base.js +74 -0
  664. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  665. package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
  666. package/lib-amd/components/Sparkline/Sparkline.js +8 -0
  667. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  668. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  669. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  670. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  671. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +51 -0
  672. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  673. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  674. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  675. package/lib-amd/components/Sparkline/index.js +7 -0
  676. package/lib-amd/components/Sparkline/index.js.map +1 -0
  677. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  678. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +351 -0
  679. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  680. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  681. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +8 -0
  682. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  683. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  684. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +93 -0
  685. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  686. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  687. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +11 -0
  688. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  689. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  690. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +308 -0
  691. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  692. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  693. package/lib-amd/components/StackedBarChart/StackedBarChart.js +8 -0
  694. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  695. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  696. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +108 -0
  697. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  698. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  699. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  700. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  701. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  702. package/lib-amd/components/StackedBarChart/index.js +10 -0
  703. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  704. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  705. package/lib-amd/components/TreeChart/TreeChart.base.js +314 -0
  706. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  707. package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
  708. package/lib-amd/components/TreeChart/TreeChart.js +7 -0
  709. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  710. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  711. package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
  712. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  713. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +197 -0
  714. package/lib-amd/components/TreeChart/TreeChart.types.js +28 -0
  715. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  716. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  717. package/lib-amd/components/TreeChart/index.js +7 -0
  718. package/lib-amd/components/TreeChart/index.js.map +1 -0
  719. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  720. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +529 -0
  721. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  722. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  723. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +8 -0
  724. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  725. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  726. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
  727. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  728. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  729. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  730. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  731. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  732. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  733. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  734. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  735. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +659 -0
  736. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  737. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  738. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -0
  739. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  740. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  741. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
  742. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  743. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  744. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  745. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  746. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  747. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  748. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  749. package/lib-amd/index.d.ts +19 -0
  750. package/lib-amd/index.js +23 -0
  751. package/lib-amd/index.js.map +1 -0
  752. package/lib-amd/types/IDataPoint.d.ts +545 -0
  753. package/lib-amd/types/IDataPoint.js +5 -0
  754. package/lib-amd/types/IDataPoint.js.map +1 -0
  755. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  756. package/lib-amd/types/IEventAnnotation.js +5 -0
  757. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  758. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  759. package/lib-amd/types/ILegendDataItem.js +5 -0
  760. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  761. package/lib-amd/types/index.d.ts +2 -0
  762. package/lib-amd/types/index.js +7 -0
  763. package/lib-amd/types/index.js.map +1 -0
  764. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  765. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  766. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  767. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  768. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  769. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  770. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  771. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +87 -0
  772. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  773. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  774. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  775. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  776. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  777. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  778. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  779. package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
  780. package/lib-amd/utilities/FocusableTooltipText.js +54 -0
  781. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
  782. package/lib-amd/utilities/colors.d.ts +51 -0
  783. package/lib-amd/utilities/colors.js +139 -0
  784. package/lib-amd/utilities/colors.js.map +1 -0
  785. package/lib-amd/utilities/index.d.ts +3 -0
  786. package/lib-amd/utilities/index.js +8 -0
  787. package/lib-amd/utilities/index.js.map +1 -0
  788. package/lib-amd/utilities/utilities.d.ts +377 -0
  789. package/lib-amd/utilities/utilities.js +888 -0
  790. package/lib-amd/utilities/utilities.js.map +1 -0
  791. package/lib-amd/version.d.ts +1 -0
  792. package/lib-amd/version.js +6 -0
  793. package/lib-amd/version.js.map +1 -0
  794. package/lib-commonjs/version.js +1 -1
  795. package/lib-commonjs/version.js.map +1 -1
  796. package/package.json +5 -4
@@ -0,0 +1,562 @@
1
+ import { __assign, __extends } from "tslib";
2
+ import * as React from 'react';
3
+ import { max as d3Max, bisector } from 'd3-array';
4
+ import { clientPoint } from 'd3-selection';
5
+ import { select as d3Select } from 'd3-selection';
6
+ import { area as d3Area, stack as d3Stack, curveMonotoneX as d3CurveBasis, line as d3Line } from 'd3-shape';
7
+ import { classNamesFunction, find, getId, memoizeFunction } from '@fluentui/react/lib/Utilities';
8
+ import { CartesianChart, } from '../../index';
9
+ import { warnDeprecations } from '@fluentui/react/lib/Utilities';
10
+ import { calloutData, getXAxisType, ChartTypes, XAxisTypes, getTypeOfAxis, tooltipOfXAxislabels, getNextColor, getColorFromToken, } from '../../utilities/index';
11
+ import { Legends } from '../Legends/index';
12
+ import { DirectionalHint } from '@fluentui/react/lib/Callout';
13
+ var getClassNames = classNamesFunction();
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ var bisect = bisector(function (d) { return d.x; }).left;
16
+ var COMPONENT_NAME = 'AREA CHART';
17
+ var InterceptVisibility;
18
+ (function (InterceptVisibility) {
19
+ InterceptVisibility["show"] = "visibility";
20
+ InterceptVisibility["hide"] = "hidden";
21
+ })(InterceptVisibility || (InterceptVisibility = {}));
22
+ var AreaChartBase = /** @class */ (function (_super) {
23
+ __extends(AreaChartBase, _super);
24
+ function AreaChartBase(props) {
25
+ var _this = _super.call(this, props) || this;
26
+ _this._getMargins = function (margins) {
27
+ _this.margins = margins;
28
+ };
29
+ _this._onRectMouseMove = function (mouseEvent) {
30
+ mouseEvent.persist();
31
+ var data = _this.props.data;
32
+ var lineChartData = data.lineChartData;
33
+ // This will get the value of the X when mouse is on the chart
34
+ var xOffset = _this._xAxisRectScale.invert(clientPoint(document.getElementById(_this._rectId), mouseEvent)[0]);
35
+ var i = bisect(lineChartData[0].data, xOffset);
36
+ var d0 = lineChartData[0].data[i - 1];
37
+ var d1 = lineChartData[0].data[i];
38
+ var axisType = null;
39
+ var pointToHighlight = null;
40
+ var index = null;
41
+ if (d0 === undefined && d1 !== undefined) {
42
+ pointToHighlight = d1.x;
43
+ index = i;
44
+ }
45
+ else if (d0 !== undefined && d1 === undefined) {
46
+ pointToHighlight = d0.x;
47
+ index = i - 1;
48
+ }
49
+ else {
50
+ axisType = getTypeOfAxis(lineChartData[0].data[0].x, true);
51
+ var x0 = void 0;
52
+ var point0 = void 0;
53
+ var point1 = void 0;
54
+ switch (axisType) {
55
+ case XAxisTypes.DateAxis:
56
+ x0 = new Date(xOffset).getTime();
57
+ point0 = d0.x.getTime();
58
+ point1 = d1.x.getTime();
59
+ pointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
60
+ index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
61
+ break;
62
+ case XAxisTypes.NumericAxis:
63
+ x0 = xOffset;
64
+ point0 = d0.x;
65
+ point1 = d1.x;
66
+ pointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
67
+ index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
68
+ break;
69
+ default:
70
+ break;
71
+ }
72
+ }
73
+ var _a = lineChartData[0].data[index], xAxisCalloutData = _a.xAxisCalloutData, xAxisCalloutAccessibilityData = _a.xAxisCalloutAccessibilityData;
74
+ var formattedDate = pointToHighlight instanceof Date ? pointToHighlight.toLocaleString() : pointToHighlight;
75
+ var modifiedXVal = pointToHighlight instanceof Date ? pointToHighlight.getTime() : pointToHighlight;
76
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
+ var found = find(_this._calloutPoints, function (element) {
78
+ return element.x === modifiedXVal;
79
+ });
80
+ var nearestCircleToHighlight = axisType === XAxisTypes.DateAxis ? pointToHighlight.getTime() : pointToHighlight;
81
+ var pointToHighlightUpdated = _this.state.nearestCircleToHighlight !== nearestCircleToHighlight;
82
+ // if no points need to be called out then don't show vertical line and callout card
83
+ if (found && pointToHighlightUpdated && !_this.state.isShowCalloutPending) {
84
+ _this.setState({
85
+ nearestCircleToHighlight: nearestCircleToHighlight,
86
+ isCalloutVisible: false,
87
+ isShowCalloutPending: true,
88
+ lineXValue: _this._xAxisRectScale(pointToHighlight),
89
+ displayOfLine: InterceptVisibility.show,
90
+ isCircleClicked: false,
91
+ stackCalloutProps: found,
92
+ YValueHover: found.values,
93
+ dataPointCalloutProps: found,
94
+ hoverXValue: xAxisCalloutData ? xAxisCalloutData : formattedDate,
95
+ xAxisCalloutAccessibilityData: xAxisCalloutAccessibilityData,
96
+ activePoint: '',
97
+ });
98
+ }
99
+ else {
100
+ /*
101
+ When above if condition is false but found=true, it means either
102
+
103
+ 1). pointToHighlightUpdated is false.
104
+ For this case we dont need to do anything.
105
+
106
+ 2). isShowCalloutPending is true.
107
+ For this case there will be no callout updation for the event.
108
+ This condition has been added to prevent repeated callout flashing.
109
+ Currently there is a fraction of second delay between hover event and subsequent callout refresh.
110
+ In the meantime if another event is received, the callout continues to flash for the set of
111
+ intermediate hover events.
112
+
113
+ This does not cause any issue as the user interaction takes atleast a fraction of second and the final
114
+ callout state is ultimately achieved.
115
+ If a user performs very swift mouse maneuver, the intermediate events will be lost but the callout experience
116
+ remains smooth.
117
+ */
118
+ }
119
+ if (!found) {
120
+ _this.setState({
121
+ isCalloutVisible: false,
122
+ nearestCircleToHighlight: nearestCircleToHighlight,
123
+ displayOfLine: InterceptVisibility.hide,
124
+ isCircleClicked: false,
125
+ });
126
+ }
127
+ };
128
+ /**
129
+ * just cleaning up the state which we have set in the mouse move event
130
+ */
131
+ _this._onRectMouseOut = function () {
132
+ /**/
133
+ };
134
+ _this._handleChartMouseLeave = function () {
135
+ _this.setState({
136
+ refSelected: null,
137
+ isCalloutVisible: false,
138
+ nearestCircleToHighlight: null,
139
+ lineXValue: 0,
140
+ displayOfLine: InterceptVisibility.hide,
141
+ isCircleClicked: false,
142
+ stackCalloutProps: undefined,
143
+ dataPointCalloutProps: undefined,
144
+ hoverXValue: undefined,
145
+ YValueHover: [],
146
+ });
147
+ };
148
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
+ _this._getStackedData = function (keys, dataSet) {
150
+ var stackedValues = d3Stack().keys(keys)(dataSet);
151
+ var maxOfYVal = d3Max(stackedValues[stackedValues.length - 1], function (dp) { return dp[1]; });
152
+ var stackedData = [];
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
+ stackedValues.forEach(function (layer) {
155
+ var currentStack = [];
156
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
+ layer.forEach(function (d) {
158
+ currentStack.push({
159
+ values: d,
160
+ xVal: d.data.xVal,
161
+ });
162
+ });
163
+ stackedData.push(currentStack);
164
+ });
165
+ _this._isMultiStackChart = stackedData && stackedData.length > 1 ? true : false;
166
+ return {
167
+ stackedData: stackedData,
168
+ maxOfYVal: maxOfYVal,
169
+ };
170
+ };
171
+ _this._createDataSet = function (points) {
172
+ var allChartPoints = [];
173
+ var dataSet = [];
174
+ var colors = [];
175
+ var opacity = [];
176
+ var calloutPoints = calloutData(points);
177
+ points &&
178
+ points.length &&
179
+ points.forEach(function (singleChartPoint) {
180
+ colors.push(singleChartPoint.color);
181
+ opacity.push(singleChartPoint.opacity || 1);
182
+ allChartPoints.push.apply(allChartPoints, singleChartPoint.data);
183
+ });
184
+ var tempArr = allChartPoints;
185
+ var _loop_1 = function () {
186
+ var valToCheck = tempArr[0].x instanceof Date ? tempArr[0].x.toLocaleString() : tempArr[0].x;
187
+ var filteredChartPoints = tempArr.filter(function (point) { return (point.x instanceof Date ? point.x.toLocaleString() : point.x) === valToCheck; });
188
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
189
+ var singleDataset = {};
190
+ filteredChartPoints.forEach(function (singleDataPoint, index) {
191
+ singleDataset.xVal = singleDataPoint.x;
192
+ singleDataset["chart" + index] = singleDataPoint.y;
193
+ });
194
+ dataSet.push(singleDataset);
195
+ // removing compared objects from array
196
+ var val = tempArr[0].x instanceof Date ? tempArr[0].x.toLocaleString() : tempArr[0].x;
197
+ tempArr = tempArr.filter(function (point) { return (point.x instanceof Date ? point.x.toLocaleString() : point.x) !== val; });
198
+ };
199
+ while (tempArr.length) {
200
+ _loop_1();
201
+ }
202
+ // get keys from dataset, used to create stacked data
203
+ var keysLength = dataSet && Object.keys(dataSet[0]).length;
204
+ var keys = [];
205
+ for (var i = 0; i < keysLength - 1; i++) {
206
+ var keyVal = "chart" + i;
207
+ keys.push(keyVal);
208
+ }
209
+ // Stacked Info used to draw graph
210
+ var stackedInfo = _this._getStackedData(keys, dataSet);
211
+ return {
212
+ colors: colors,
213
+ opacity: opacity,
214
+ keys: keys,
215
+ stackedInfo: stackedInfo,
216
+ calloutPoints: calloutPoints,
217
+ };
218
+ };
219
+ _this._getCustomizedCallout = function () {
220
+ return _this.props.onRenderCalloutPerStack
221
+ ? _this.props.onRenderCalloutPerStack(_this.state.stackCalloutProps)
222
+ : _this.props.onRenderCalloutPerDataPoint
223
+ ? _this.props.onRenderCalloutPerDataPoint(_this.state.dataPointCalloutProps)
224
+ : null;
225
+ };
226
+ _this._getGraphData = function (
227
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
+ xAxis,
229
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
230
+ yAxis, containerHeight, containerWidth, xElement) {
231
+ _this._chart = _this._drawGraph(containerHeight, xAxis, yAxis, xElement);
232
+ };
233
+ _this._getLegendData = function (points) {
234
+ var data = points;
235
+ var actions = [];
236
+ data.forEach(function (singleChartData) {
237
+ var color = singleChartData.color;
238
+ var checkSimilarLegends = actions.filter(function (leg) { return leg.title === singleChartData.legend && leg.color === color; });
239
+ if (checkSimilarLegends.length > 0) {
240
+ return;
241
+ }
242
+ var legend = {
243
+ title: singleChartData.legend,
244
+ color: color,
245
+ action: function () {
246
+ _this._onLegendClick(singleChartData.legend);
247
+ },
248
+ hoverAction: function () {
249
+ _this._handleChartMouseLeave();
250
+ _this._onLegendHover(singleChartData.legend);
251
+ },
252
+ onMouseOutAction: function () {
253
+ _this._onLegendLeave();
254
+ },
255
+ };
256
+ actions.push(legend);
257
+ });
258
+ return (React.createElement(Legends, __assign({ legends: actions, overflowProps: _this.props.legendsOverflowProps, enabledWrapLines: _this.props.enabledLegendsWrapLines, focusZonePropsInHoverCard: _this.props.focusZonePropsForLegendsInHoverCard }, _this.props.legendProps)));
259
+ };
260
+ _this._onDataPointClick = function (func) {
261
+ if (func) {
262
+ func();
263
+ }
264
+ _this.setState({ isCircleClicked: true });
265
+ };
266
+ _this._getOpacity = function (legend) {
267
+ if (!_this._isMultiStackChart) {
268
+ return 0.7;
269
+ }
270
+ else {
271
+ var opacity = _this._legendHighlighted(legend) || _this._noLegendHighlighted() ? 0.7 : 0.1;
272
+ return opacity;
273
+ }
274
+ };
275
+ _this._getLineOpacity = function (legend) {
276
+ if (!_this._isMultiStackChart) {
277
+ return 1;
278
+ }
279
+ else {
280
+ var opacity = 0.3;
281
+ if (_this.state.isCalloutVisible) {
282
+ opacity = 1;
283
+ }
284
+ if (!_this._noLegendHighlighted()) {
285
+ opacity = _this._legendHighlighted(legend) ? 0 : 0.1;
286
+ }
287
+ return opacity;
288
+ }
289
+ };
290
+ _this._updateCircleFillColor = function (xDataPoint, lineColor, circleId) {
291
+ var fillColor = lineColor;
292
+ if (_this.state.nearestCircleToHighlight === xDataPoint || _this.state.activePoint === circleId) {
293
+ _this._highlightedCircleId = circleId;
294
+ if (!_this.state.isCircleClicked) {
295
+ fillColor = _this.props.theme.palette.white;
296
+ }
297
+ }
298
+ return fillColor;
299
+ };
300
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
301
+ _this._drawGraph = function (containerHeight, xScale, yScale, xElement) {
302
+ var points = _this._addDefaultColors(_this.props.data.lineChartData);
303
+ var _a = _this.props.data, pointOptions = _a.pointOptions, pointLineOptions = _a.pointLineOptions;
304
+ var area = d3Area()
305
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
306
+ .x(function (d) { return xScale(d.xVal); })
307
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
308
+ .y0(function (d) { return yScale(d.values[0]); })
309
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
310
+ .y1(function (d) { return yScale(d.values[1]); })
311
+ .curve(d3CurveBasis);
312
+ var line = d3Line()
313
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
314
+ .x(function (d) { return xScale(d.xVal); })
315
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
316
+ .y(function (d) { return yScale(d.values[1]); })
317
+ .curve(d3CurveBasis);
318
+ var graph = [];
319
+ var lineColor;
320
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
321
+ _this._stackedData.forEach(function (singleStackedData, index) {
322
+ graph.push(React.createElement(React.Fragment, { key: index + "-graph-" + _this._uniqueIdForGraph },
323
+ React.createElement("path", __assign({ id: index + "-line-" + _this._uniqueIdForGraph, d: line(singleStackedData), fill: 'transparent', strokeWidth: 3, stroke: _this._colors[index], opacity: _this._getLineOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove }, points[index].lineOptions)),
324
+ singleStackedData.length === 1 ? (React.createElement("circle", { id: index + "-graph-" + _this._uniqueIdForGraph, cx: xScale(singleStackedData[0].xVal), cy: yScale(singleStackedData[0].values[1]), r: 6, stroke: _this._colors[index], strokeWidth: 3, fill: _this._colors[index], opacity: _this._opacity[index], fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove })) : (React.createElement("path", __assign({ id: index + "-graph-" + _this._uniqueIdForGraph, d: area(singleStackedData), fill: _this._colors[index], opacity: _this._opacity[index], fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove }, (_this.props.optimizeLargeData && {
325
+ 'data-is-focusable': true,
326
+ role: 'img',
327
+ 'aria-label': points[index].legend + ", series " + (index + 1) + " of " + points.length + " with " + points[index].data.length + " data points.",
328
+ }))))));
329
+ });
330
+ var circleRadius = pointOptions && pointOptions.r ? Number(pointOptions.r) : 8;
331
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
332
+ _this._stackedData.forEach(function (singleStackedData, index) {
333
+ if (points.length === index) {
334
+ return;
335
+ }
336
+ if (!_this.props.optimizeLargeData || singleStackedData.length === 1) {
337
+ // Render circles for all data points
338
+ graph.push(React.createElement("g", { key: index + "-dots-" + _this._uniqueIdForGraph, d: area(singleStackedData), clipPath: "url(#clip)" }, singleStackedData.map(function (singlePoint, pointIndex) {
339
+ var circleId = _this._circleId + "_" + (index * _this._stackedData[0].length + pointIndex);
340
+ var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
341
+ lineColor = points[index].color;
342
+ return (React.createElement("circle", __assign({ key: circleId, id: circleId, "data-is-focusable": true, cx: xScale(singlePoint.xVal), cy: yScale(singlePoint.values[1]), stroke: lineColor, strokeWidth: 3, fill: _this._updateCircleFillColor(xDataPoint, lineColor, circleId), onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove, onClick: _this._onDataPointClick.bind(_this, points[index].data[pointIndex].onDataPointClick), onFocus: function () { return _this._handleFocus(index, pointIndex, circleId); }, onBlur: _this._handleBlur }, pointOptions, { r: _this._getCircleRadius(xDataPoint, circleRadius, circleId), role: "img", "aria-label": _this._getAriaLabel(index, pointIndex) })));
343
+ })));
344
+ }
345
+ else {
346
+ // Render circles for data points close to the mouse pointer only
347
+ singleStackedData.forEach(function (singlePoint, pointIndex) {
348
+ var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
349
+ if (_this.state.nearestCircleToHighlight === xDataPoint) {
350
+ var circleId = _this._circleId + "_" + (index * _this._stackedData[0].length + pointIndex);
351
+ lineColor = points[index].color;
352
+ graph.push(React.createElement("circle", __assign({ key: circleId, id: circleId, cx: xScale(singlePoint.xVal), cy: yScale(singlePoint.values[1]), stroke: lineColor, strokeWidth: 3, fill: _this._updateCircleFillColor(xDataPoint, lineColor, circleId), onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove, onClick: _this._onDataPointClick.bind(_this, points[index].data[pointIndex].onDataPointClick) }, pointOptions, { r: _this._getCircleRadius(xDataPoint, circleRadius, circleId) })));
353
+ }
354
+ });
355
+ }
356
+ });
357
+ graph.push(React.createElement("line", __assign({ id: _this._verticalLineId, key: _this._verticalLineId, x1: _this.state.lineXValue, y1: 0, x2: _this.state.lineXValue, y2: containerHeight, strokeWidth: 1, strokeDasharray: 5.5, stroke: lineColor, opacity: 0.5, visibility: _this.state.displayOfLine }, pointLineOptions)));
358
+ var classNames = getClassNames(_this.props.styles, {
359
+ theme: _this.props.theme,
360
+ });
361
+ // Removing un wanted tooltip div from DOM, when prop not provided.
362
+ if (!_this.props.showXAxisLablesTooltip) {
363
+ try {
364
+ document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
365
+ // eslint-disable-next-line no-empty
366
+ }
367
+ catch (e) { }
368
+ }
369
+ // Used to display tooltip at x axis labels.
370
+ if (!_this.props.wrapXAxisLables && _this.props.showXAxisLablesTooltip) {
371
+ var xAxisElement = d3Select(xElement).call(xScale);
372
+ try {
373
+ document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
374
+ // eslint-disable-next-line no-empty
375
+ }
376
+ catch (e) { }
377
+ var tooltipProps = {
378
+ tooltipCls: classNames.tooltip,
379
+ id: _this._tooltipId,
380
+ xAxis: xAxisElement,
381
+ };
382
+ xAxisElement && tooltipOfXAxislabels(tooltipProps);
383
+ }
384
+ return graph;
385
+ };
386
+ _this._getCircleRadius = function (xDataPoint, circleRadius, circleId) {
387
+ var _a = _this.state, isCircleClicked = _a.isCircleClicked, nearestCircleToHighlight = _a.nearestCircleToHighlight, activePoint = _a.activePoint;
388
+ if (isCircleClicked && nearestCircleToHighlight === xDataPoint) {
389
+ return 1;
390
+ }
391
+ else if (nearestCircleToHighlight === xDataPoint || activePoint === circleId) {
392
+ return circleRadius;
393
+ }
394
+ else {
395
+ return 0;
396
+ }
397
+ };
398
+ _this._closeCallout = function () {
399
+ _this.setState({
400
+ isCalloutVisible: false,
401
+ });
402
+ };
403
+ /**
404
+ * This function checks if the given legend is highlighted or not.
405
+ * A legend can be highlighted in 2 ways:
406
+ * 1. selection: if the user clicks on it
407
+ * 2. hovering: if there is no selected legend and the user hovers over it
408
+ */
409
+ _this._legendHighlighted = function (legend) {
410
+ return (_this.state.selectedLegend === legend || (_this.state.selectedLegend === '' && _this.state.activeLegend === legend));
411
+ };
412
+ /**
413
+ * This function checks if none of the legends is selected or hovered.
414
+ */
415
+ _this._noLegendHighlighted = function () {
416
+ return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
417
+ };
418
+ _this._addDefaultColors = function (lineChartData) {
419
+ return lineChartData
420
+ ? lineChartData.map(function (item, index) {
421
+ var _a, _b;
422
+ var color;
423
+ // isInverted property is applicable to v8 themes only
424
+ if (typeof item.color === 'undefined') {
425
+ color = getNextColor(index, 0, (_a = _this.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
426
+ }
427
+ else {
428
+ color = getColorFromToken(item.color, (_b = _this.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
429
+ }
430
+ return __assign(__assign({}, item), { color: color });
431
+ })
432
+ : [];
433
+ };
434
+ _this._handleFocus = function (lineIndex, pointIndex, circleId) {
435
+ var _a = _this.props.data.lineChartData[lineIndex].data[pointIndex], x = _a.x, y = _a.y, xAxisCalloutData = _a.xAxisCalloutData;
436
+ var formattedDate = x instanceof Date ? x.toLocaleString() : x;
437
+ var modifiedXVal = x instanceof Date ? x.getTime() : x;
438
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
439
+ var found = _this._calloutPoints.find(function (e) { return e.x === modifiedXVal; });
440
+ // Show details in the callout for the focused point only
441
+ found.values = found.values.filter(function (e) { return e.y === y; });
442
+ _this.setState({
443
+ refSelected: "#" + circleId,
444
+ isCalloutVisible: true,
445
+ hoverXValue: xAxisCalloutData ? xAxisCalloutData : formattedDate,
446
+ YValueHover: found.values,
447
+ stackCalloutProps: found,
448
+ dataPointCalloutProps: found,
449
+ activePoint: circleId,
450
+ });
451
+ };
452
+ _this._handleBlur = function () {
453
+ _this.setState({
454
+ refSelected: null,
455
+ isCalloutVisible: false,
456
+ hoverXValue: undefined,
457
+ YValueHover: [],
458
+ stackCalloutProps: undefined,
459
+ dataPointCalloutProps: undefined,
460
+ activePoint: '',
461
+ });
462
+ };
463
+ _this._getAriaLabel = function (lineIndex, pointIndex) {
464
+ var _a;
465
+ var line = _this.props.data.lineChartData[lineIndex];
466
+ var point = line.data[pointIndex];
467
+ var formattedDate = point.x instanceof Date ? point.x.toLocaleString() : point.x;
468
+ var xValue = point.xAxisCalloutData || formattedDate;
469
+ var legend = line.legend;
470
+ var yValue = point.yAxisCalloutData || point.y;
471
+ return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || xValue + ". " + legend + ", " + yValue + ".";
472
+ };
473
+ _this._createSet = memoizeFunction(_this._createDataSet);
474
+ _this.state = {
475
+ selectedLegend: '',
476
+ activeLegend: '',
477
+ hoverXValue: '',
478
+ isCalloutVisible: false,
479
+ refSelected: null,
480
+ YValueHover: [],
481
+ lineXValue: 0,
482
+ displayOfLine: InterceptVisibility.hide,
483
+ isCircleClicked: false,
484
+ nearestCircleToHighlight: null,
485
+ isShowCalloutPending: false,
486
+ activePoint: '',
487
+ };
488
+ warnDeprecations(COMPONENT_NAME, props, {
489
+ showYAxisGridLines: 'Dont use this property. Lines are drawn by default',
490
+ });
491
+ _this._uniqueIdForGraph = getId('areaChart_');
492
+ _this._verticalLineId = getId('verticalLine_');
493
+ _this._circleId = getId('circle');
494
+ _this._rectId = getId('rectangle');
495
+ _this._tooltipId = getId('AreaChartTooltipID');
496
+ return _this;
497
+ }
498
+ AreaChartBase.prototype.componentDidUpdate = function () {
499
+ if (this.state.isShowCalloutPending) {
500
+ this.setState({
501
+ refSelected: "#" + this._highlightedCircleId,
502
+ isCalloutVisible: true,
503
+ isShowCalloutPending: false,
504
+ });
505
+ }
506
+ };
507
+ AreaChartBase.prototype.render = function () {
508
+ var _this = this;
509
+ var _a = this.props.data, lineChartData = _a.lineChartData, chartTitle = _a.chartTitle;
510
+ var points = this._addDefaultColors(lineChartData);
511
+ var _b = this._createSet(points), colors = _b.colors, opacity = _b.opacity, stackedInfo = _b.stackedInfo, calloutPoints = _b.calloutPoints;
512
+ this._calloutPoints = calloutPoints;
513
+ var isXAxisDateType = getXAxisType(points);
514
+ this._colors = colors;
515
+ this._opacity = opacity;
516
+ this._stackedData = stackedInfo.stackedData;
517
+ var legends = this._getLegendData(points);
518
+ var tickParams = {
519
+ tickValues: this.props.tickValues,
520
+ tickFormat: this.props.tickFormat,
521
+ };
522
+ var calloutProps = __assign({ target: this.state.refSelected, isCalloutVisible: this.state.isCalloutVisible, directionalHint: DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip" + this._uniqueCallOutID, gapSpace: 15, isBeakVisible: false, onDismiss: this._closeCallout, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
523
+ return (React.createElement(CartesianChart, __assign({}, this.props, { chartTitle: chartTitle, points: points, chartType: ChartTypes.AreaChart, calloutProps: calloutProps, legendBars: legends, isCalloutForStack: true, xAxisType: isXAxisDateType ? XAxisTypes.DateAxis : XAxisTypes.NumericAxis, tickParams: tickParams, maxOfYVal: stackedInfo.maxOfYVal, getGraphData: this._getGraphData, getmargins: this._getMargins, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave,
524
+ /* eslint-disable react/jsx-no-bind */
525
+ // eslint-disable-next-line react/no-children-prop
526
+ children: function (props) {
527
+ _this._xAxisRectScale = props.xScale;
528
+ var ticks = _this._xAxisRectScale.ticks();
529
+ var width1 = _this._xAxisRectScale(ticks[ticks.length - 1]);
530
+ var rectHeight = props.containerHeight - _this.margins.top;
531
+ return (React.createElement(React.Fragment, null,
532
+ React.createElement("g", null,
533
+ React.createElement("rect", { id: _this._rectId, width: width1, height: rectHeight, fill: 'transparent', onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove })),
534
+ React.createElement("g", null, _this._chart)));
535
+ } })));
536
+ };
537
+ AreaChartBase.prototype._onLegendClick = function (legend) {
538
+ if (this.state.selectedLegend === legend) {
539
+ this.setState({
540
+ selectedLegend: '',
541
+ });
542
+ }
543
+ else {
544
+ this.setState({
545
+ selectedLegend: legend,
546
+ });
547
+ }
548
+ };
549
+ AreaChartBase.prototype._onLegendHover = function (legend) {
550
+ this.setState({
551
+ activeLegend: legend,
552
+ });
553
+ };
554
+ AreaChartBase.prototype._onLegendLeave = function () {
555
+ this.setState({
556
+ activeLegend: '',
557
+ });
558
+ };
559
+ return AreaChartBase;
560
+ }(React.Component));
561
+ export { AreaChartBase };
562
+ //# sourceMappingURL=AreaChart.base.js.map