@fluentui/react-charting 5.16.21 → 5.16.23

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 (798) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +4 -5
  4. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  5. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +5 -6
  6. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  7. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +4 -5
  8. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  9. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  10. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  11. package/lib-commonjs/utilities/FocusableTooltipText.d.ts +27 -0
  12. package/lib-commonjs/utilities/FocusableTooltipText.js +57 -0
  13. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
  14. package/lib-commonjs/version.js +1 -1
  15. package/lib-commonjs/version.js.map +1 -1
  16. package/package.json +6 -6
  17. package/dist/react-charting.js +0 -1
  18. package/dist/react-charting.min.js +0 -1
  19. package/lib/AreaChart.d.ts +0 -1
  20. package/lib/AreaChart.js +0 -2
  21. package/lib/AreaChart.js.map +0 -1
  22. package/lib/CartesianChart.d.ts +0 -1
  23. package/lib/CartesianChart.js +0 -2
  24. package/lib/CartesianChart.js.map +0 -1
  25. package/lib/DonutChart.d.ts +0 -1
  26. package/lib/DonutChart.js +0 -2
  27. package/lib/DonutChart.js.map +0 -1
  28. package/lib/GroupedVerticalBarChart.d.ts +0 -1
  29. package/lib/GroupedVerticalBarChart.js +0 -2
  30. package/lib/GroupedVerticalBarChart.js.map +0 -1
  31. package/lib/HeatMapChart.d.ts +0 -1
  32. package/lib/HeatMapChart.js +0 -2
  33. package/lib/HeatMapChart.js.map +0 -1
  34. package/lib/HorizontalBarChart.d.ts +0 -1
  35. package/lib/HorizontalBarChart.js +0 -2
  36. package/lib/HorizontalBarChart.js.map +0 -1
  37. package/lib/Legends.d.ts +0 -1
  38. package/lib/Legends.js +0 -2
  39. package/lib/Legends.js.map +0 -1
  40. package/lib/LineChart.d.ts +0 -1
  41. package/lib/LineChart.js +0 -2
  42. package/lib/LineChart.js.map +0 -1
  43. package/lib/PieChart.d.ts +0 -1
  44. package/lib/PieChart.js +0 -2
  45. package/lib/PieChart.js.map +0 -1
  46. package/lib/SankeyChart.d.ts +0 -1
  47. package/lib/SankeyChart.js +0 -2
  48. package/lib/SankeyChart.js.map +0 -1
  49. package/lib/Sparkline.d.ts +0 -1
  50. package/lib/Sparkline.js +0 -2
  51. package/lib/Sparkline.js.map +0 -1
  52. package/lib/StackedBarChart.d.ts +0 -1
  53. package/lib/StackedBarChart.js +0 -2
  54. package/lib/StackedBarChart.js.map +0 -1
  55. package/lib/Styling.d.ts +0 -2
  56. package/lib/Styling.js +0 -8
  57. package/lib/Styling.js.map +0 -1
  58. package/lib/TreeChart.d.ts +0 -1
  59. package/lib/TreeChart.js +0 -2
  60. package/lib/TreeChart.js.map +0 -1
  61. package/lib/Utilities.d.ts +0 -2
  62. package/lib/Utilities.js +0 -20
  63. package/lib/Utilities.js.map +0 -1
  64. package/lib/VerticalBarChart.d.ts +0 -1
  65. package/lib/VerticalBarChart.js +0 -2
  66. package/lib/VerticalBarChart.js.map +0 -1
  67. package/lib/VerticalStackedBarChart.d.ts +0 -1
  68. package/lib/VerticalStackedBarChart.js +0 -2
  69. package/lib/VerticalStackedBarChart.js.map +0 -1
  70. package/lib/components/AreaChart/AreaChart.base.d.ts +0 -92
  71. package/lib/components/AreaChart/AreaChart.base.js +0 -562
  72. package/lib/components/AreaChart/AreaChart.base.js.map +0 -1
  73. package/lib/components/AreaChart/AreaChart.d.ts +0 -3
  74. package/lib/components/AreaChart/AreaChart.js +0 -6
  75. package/lib/components/AreaChart/AreaChart.js.map +0 -1
  76. package/lib/components/AreaChart/AreaChart.styles.d.ts +0 -2
  77. package/lib/components/AreaChart/AreaChart.styles.js +0 -7
  78. package/lib/components/AreaChart/AreaChart.styles.js.map +0 -1
  79. package/lib/components/AreaChart/AreaChart.types.d.ts +0 -37
  80. package/lib/components/AreaChart/AreaChart.types.js +0 -2
  81. package/lib/components/AreaChart/AreaChart.types.js.map +0 -1
  82. package/lib/components/AreaChart/index.d.ts +0 -2
  83. package/lib/components/AreaChart/index.js +0 -3
  84. package/lib/components/AreaChart/index.js.map +0 -1
  85. package/lib/components/CommonComponents/CartesianChart.base.d.ts +0 -43
  86. package/lib/components/CommonComponents/CartesianChart.base.js +0 -331
  87. package/lib/components/CommonComponents/CartesianChart.base.js.map +0 -1
  88. package/lib/components/CommonComponents/CartesianChart.d.ts +0 -3
  89. package/lib/components/CommonComponents/CartesianChart.js +0 -5
  90. package/lib/components/CommonComponents/CartesianChart.js.map +0 -1
  91. package/lib/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
  92. package/lib/components/CommonComponents/CartesianChart.styles.js +0 -163
  93. package/lib/components/CommonComponents/CartesianChart.styles.js.map +0 -1
  94. package/lib/components/CommonComponents/CartesianChart.types.d.ts +0 -428
  95. package/lib/components/CommonComponents/CartesianChart.types.js +0 -2
  96. package/lib/components/CommonComponents/CartesianChart.types.js.map +0 -1
  97. package/lib/components/CommonComponents/index.d.ts +0 -2
  98. package/lib/components/CommonComponents/index.js +0 -3
  99. package/lib/components/CommonComponents/index.js.map +0 -1
  100. package/lib/components/DonutChart/Arc/Arc.d.ts +0 -21
  101. package/lib/components/DonutChart/Arc/Arc.js +0 -86
  102. package/lib/components/DonutChart/Arc/Arc.js.map +0 -1
  103. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
  104. package/lib/components/DonutChart/Arc/Arc.styles.js +0 -28
  105. package/lib/components/DonutChart/Arc/Arc.styles.js.map +0 -1
  106. package/lib/components/DonutChart/Arc/Arc.types.d.ts +0 -124
  107. package/lib/components/DonutChart/Arc/Arc.types.js +0 -2
  108. package/lib/components/DonutChart/Arc/Arc.types.js.map +0 -1
  109. package/lib/components/DonutChart/Arc/index.d.ts +0 -2
  110. package/lib/components/DonutChart/Arc/index.js +0 -3
  111. package/lib/components/DonutChart/Arc/index.js.map +0 -1
  112. package/lib/components/DonutChart/DonutChart.base.d.ts +0 -50
  113. package/lib/components/DonutChart/DonutChart.base.js +0 -211
  114. package/lib/components/DonutChart/DonutChart.base.js.map +0 -1
  115. package/lib/components/DonutChart/DonutChart.d.ts +0 -3
  116. package/lib/components/DonutChart/DonutChart.js +0 -6
  117. package/lib/components/DonutChart/DonutChart.js.map +0 -1
  118. package/lib/components/DonutChart/DonutChart.styles.d.ts +0 -2
  119. package/lib/components/DonutChart/DonutChart.styles.js +0 -30
  120. package/lib/components/DonutChart/DonutChart.styles.js.map +0 -1
  121. package/lib/components/DonutChart/DonutChart.types.d.ts +0 -63
  122. package/lib/components/DonutChart/DonutChart.types.js +0 -2
  123. package/lib/components/DonutChart/DonutChart.types.js.map +0 -1
  124. package/lib/components/DonutChart/Pie/Pie.d.ts +0 -15
  125. package/lib/components/DonutChart/Pie/Pie.js +0 -71
  126. package/lib/components/DonutChart/Pie/Pie.js.map +0 -1
  127. package/lib/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
  128. package/lib/components/DonutChart/Pie/Pie.styles.js +0 -19
  129. package/lib/components/DonutChart/Pie/Pie.styles.js.map +0 -1
  130. package/lib/components/DonutChart/Pie/Pie.types.d.ts +0 -96
  131. package/lib/components/DonutChart/Pie/Pie.types.js +0 -2
  132. package/lib/components/DonutChart/Pie/Pie.types.js.map +0 -1
  133. package/lib/components/DonutChart/Pie/index.d.ts +0 -2
  134. package/lib/components/DonutChart/Pie/index.js +0 -3
  135. package/lib/components/DonutChart/Pie/index.js.map +0 -1
  136. package/lib/components/DonutChart/index.d.ts +0 -3
  137. package/lib/components/DonutChart/index.js +0 -4
  138. package/lib/components/DonutChart/index.js.map +0 -1
  139. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -62
  140. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -381
  141. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
  142. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -3
  143. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -6
  144. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
  145. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
  146. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -17
  147. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
  148. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -83
  149. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -2
  150. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
  151. package/lib/components/GroupedVerticalBarChart/index.d.ts +0 -2
  152. package/lib/components/GroupedVerticalBarChart/index.js +0 -3
  153. package/lib/components/GroupedVerticalBarChart/index.js.map +0 -1
  154. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +0 -147
  155. package/lib/components/HeatMapChart/HeatMapChart.base.js +0 -498
  156. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
  157. package/lib/components/HeatMapChart/HeatMapChart.d.ts +0 -3
  158. package/lib/components/HeatMapChart/HeatMapChart.js +0 -5
  159. package/lib/components/HeatMapChart/HeatMapChart.js.map +0 -1
  160. package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
  161. package/lib/components/HeatMapChart/HeatMapChart.styles.js +0 -24
  162. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
  163. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +0 -110
  164. package/lib/components/HeatMapChart/HeatMapChart.types.js +0 -2
  165. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
  166. package/lib/components/HeatMapChart/index.d.ts +0 -2
  167. package/lib/components/HeatMapChart/index.js +0 -3
  168. package/lib/components/HeatMapChart/index.js.map +0 -1
  169. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -36
  170. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -238
  171. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
  172. package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -3
  173. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +0 -6
  174. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
  175. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
  176. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -69
  177. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
  178. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -172
  179. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -6
  180. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
  181. package/lib/components/HorizontalBarChart/index.d.ts +0 -3
  182. package/lib/components/HorizontalBarChart/index.js +0 -4
  183. package/lib/components/HorizontalBarChart/index.js.map +0 -1
  184. package/lib/components/Legends/Legends.base.d.ts +0 -44
  185. package/lib/components/Legends/Legends.base.js +0 -293
  186. package/lib/components/Legends/Legends.base.js.map +0 -1
  187. package/lib/components/Legends/Legends.d.ts +0 -3
  188. package/lib/components/Legends/Legends.js +0 -5
  189. package/lib/components/Legends/Legends.js.map +0 -1
  190. package/lib/components/Legends/Legends.styles.d.ts +0 -2
  191. package/lib/components/Legends/Legends.styles.js +0 -103
  192. package/lib/components/Legends/Legends.styles.js.map +0 -1
  193. package/lib/components/Legends/Legends.types.d.ts +0 -169
  194. package/lib/components/Legends/Legends.types.js +0 -2
  195. package/lib/components/Legends/Legends.types.js.map +0 -1
  196. package/lib/components/Legends/index.d.ts +0 -3
  197. package/lib/components/Legends/index.js +0 -4
  198. package/lib/components/Legends/index.js.map +0 -1
  199. package/lib/components/Legends/shape.d.ts +0 -9
  200. package/lib/components/Legends/shape.js +0 -24
  201. package/lib/components/Legends/shape.js.map +0 -1
  202. package/lib/components/LineChart/LineChart.base.d.ts +0 -84
  203. package/lib/components/LineChart/LineChart.base.js +0 -815
  204. package/lib/components/LineChart/LineChart.base.js.map +0 -1
  205. package/lib/components/LineChart/LineChart.d.ts +0 -3
  206. package/lib/components/LineChart/LineChart.js +0 -6
  207. package/lib/components/LineChart/LineChart.js.map +0 -1
  208. package/lib/components/LineChart/LineChart.styles.d.ts +0 -2
  209. package/lib/components/LineChart/LineChart.styles.js +0 -7
  210. package/lib/components/LineChart/LineChart.styles.js.map +0 -1
  211. package/lib/components/LineChart/LineChart.types.d.ts +0 -72
  212. package/lib/components/LineChart/LineChart.types.js +0 -2
  213. package/lib/components/LineChart/LineChart.types.js.map +0 -1
  214. package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -10
  215. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +0 -93
  216. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
  217. package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -22
  218. package/lib/components/LineChart/eventAnnotation/LabelLink.js +0 -37
  219. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
  220. package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
  221. package/lib/components/LineChart/eventAnnotation/Textbox.js +0 -37
  222. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
  223. package/lib/components/LineChart/index.d.ts +0 -3
  224. package/lib/components/LineChart/index.js +0 -4
  225. package/lib/components/LineChart/index.js.map +0 -1
  226. package/lib/components/PieChart/Arc/Arc.d.ts +0 -12
  227. package/lib/components/PieChart/Arc/Arc.js +0 -57
  228. package/lib/components/PieChart/Arc/Arc.js.map +0 -1
  229. package/lib/components/PieChart/Arc/Arc.styles.d.ts +0 -2
  230. package/lib/components/PieChart/Arc/Arc.styles.js +0 -8
  231. package/lib/components/PieChart/Arc/Arc.styles.js.map +0 -1
  232. package/lib/components/PieChart/Arc/Arc.types.d.ts +0 -60
  233. package/lib/components/PieChart/Arc/Arc.types.js +0 -2
  234. package/lib/components/PieChart/Arc/Arc.types.js.map +0 -1
  235. package/lib/components/PieChart/Arc/index.d.ts +0 -2
  236. package/lib/components/PieChart/Arc/index.js +0 -3
  237. package/lib/components/PieChart/Arc/index.js.map +0 -1
  238. package/lib/components/PieChart/Pie/Pie.d.ts +0 -10
  239. package/lib/components/PieChart/Pie/Pie.js +0 -35
  240. package/lib/components/PieChart/Pie/Pie.js.map +0 -1
  241. package/lib/components/PieChart/Pie/Pie.styles.d.ts +0 -2
  242. package/lib/components/PieChart/Pie/Pie.styles.js +0 -6
  243. package/lib/components/PieChart/Pie/Pie.styles.js.map +0 -1
  244. package/lib/components/PieChart/Pie/Pie.types.d.ts +0 -46
  245. package/lib/components/PieChart/Pie/Pie.types.js +0 -2
  246. package/lib/components/PieChart/Pie/Pie.types.js.map +0 -1
  247. package/lib/components/PieChart/Pie/index.d.ts +0 -2
  248. package/lib/components/PieChart/Pie/index.js +0 -3
  249. package/lib/components/PieChart/Pie/index.js.map +0 -1
  250. package/lib/components/PieChart/PieChart.base.d.ts +0 -7
  251. package/lib/components/PieChart/PieChart.base.js +0 -34
  252. package/lib/components/PieChart/PieChart.base.js.map +0 -1
  253. package/lib/components/PieChart/PieChart.d.ts +0 -3
  254. package/lib/components/PieChart/PieChart.js +0 -6
  255. package/lib/components/PieChart/PieChart.js.map +0 -1
  256. package/lib/components/PieChart/PieChart.styles.d.ts +0 -2
  257. package/lib/components/PieChart/PieChart.styles.js +0 -29
  258. package/lib/components/PieChart/PieChart.styles.js.map +0 -1
  259. package/lib/components/PieChart/PieChart.types.d.ts +0 -63
  260. package/lib/components/PieChart/PieChart.types.js +0 -2
  261. package/lib/components/PieChart/PieChart.types.js.map +0 -1
  262. package/lib/components/PieChart/index.d.ts +0 -2
  263. package/lib/components/PieChart/index.js +0 -3
  264. package/lib/components/PieChart/index.js.map +0 -1
  265. package/lib/components/SankeyChart/SankeyChart.base.d.ts +0 -95
  266. package/lib/components/SankeyChart/SankeyChart.base.js +0 -674
  267. package/lib/components/SankeyChart/SankeyChart.base.js.map +0 -1
  268. package/lib/components/SankeyChart/SankeyChart.d.ts +0 -3
  269. package/lib/components/SankeyChart/SankeyChart.js +0 -6
  270. package/lib/components/SankeyChart/SankeyChart.js.map +0 -1
  271. package/lib/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
  272. package/lib/components/SankeyChart/SankeyChart.styles.js +0 -58
  273. package/lib/components/SankeyChart/SankeyChart.styles.js.map +0 -1
  274. package/lib/components/SankeyChart/SankeyChart.types.d.ts +0 -83
  275. package/lib/components/SankeyChart/SankeyChart.types.js +0 -2
  276. package/lib/components/SankeyChart/SankeyChart.types.js.map +0 -1
  277. package/lib/components/SankeyChart/index.d.ts +0 -2
  278. package/lib/components/SankeyChart/index.js +0 -3
  279. package/lib/components/SankeyChart/index.js.map +0 -1
  280. package/lib/components/Sparkline/Sparkline.base.d.ts +0 -20
  281. package/lib/components/Sparkline/Sparkline.base.js +0 -76
  282. package/lib/components/Sparkline/Sparkline.base.js.map +0 -1
  283. package/lib/components/Sparkline/Sparkline.d.ts +0 -3
  284. package/lib/components/Sparkline/Sparkline.js +0 -6
  285. package/lib/components/Sparkline/Sparkline.js.map +0 -1
  286. package/lib/components/Sparkline/Sparkline.styles.d.ts +0 -2
  287. package/lib/components/Sparkline/Sparkline.styles.js +0 -10
  288. package/lib/components/Sparkline/Sparkline.styles.js.map +0 -1
  289. package/lib/components/Sparkline/Sparkline.types.d.ts +0 -51
  290. package/lib/components/Sparkline/Sparkline.types.js +0 -2
  291. package/lib/components/Sparkline/Sparkline.types.js.map +0 -1
  292. package/lib/components/Sparkline/index.d.ts +0 -2
  293. package/lib/components/Sparkline/index.js +0 -3
  294. package/lib/components/Sparkline/index.js.map +0 -1
  295. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -56
  296. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +0 -357
  297. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
  298. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -3
  299. package/lib/components/StackedBarChart/MultiStackedBarChart.js +0 -6
  300. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
  301. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
  302. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -90
  303. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
  304. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -198
  305. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +0 -6
  306. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
  307. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +0 -51
  308. package/lib/components/StackedBarChart/StackedBarChart.base.js +0 -312
  309. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
  310. package/lib/components/StackedBarChart/StackedBarChart.d.ts +0 -3
  311. package/lib/components/StackedBarChart/StackedBarChart.js +0 -6
  312. package/lib/components/StackedBarChart/StackedBarChart.js.map +0 -1
  313. package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
  314. package/lib/components/StackedBarChart/StackedBarChart.styles.js +0 -104
  315. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
  316. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +0 -210
  317. package/lib/components/StackedBarChart/StackedBarChart.types.js +0 -2
  318. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
  319. package/lib/components/StackedBarChart/index.d.ts +0 -5
  320. package/lib/components/StackedBarChart/index.js +0 -6
  321. package/lib/components/StackedBarChart/index.js.map +0 -1
  322. package/lib/components/TreeChart/TreeChart.base.d.ts +0 -18
  323. package/lib/components/TreeChart/TreeChart.base.js +0 -316
  324. package/lib/components/TreeChart/TreeChart.base.js.map +0 -1
  325. package/lib/components/TreeChart/TreeChart.d.ts +0 -3
  326. package/lib/components/TreeChart/TreeChart.js +0 -5
  327. package/lib/components/TreeChart/TreeChart.js.map +0 -1
  328. package/lib/components/TreeChart/TreeChart.styles.d.ts +0 -2
  329. package/lib/components/TreeChart/TreeChart.styles.js +0 -29
  330. package/lib/components/TreeChart/TreeChart.styles.js.map +0 -1
  331. package/lib/components/TreeChart/TreeChart.types.d.ts +0 -197
  332. package/lib/components/TreeChart/TreeChart.types.js +0 -23
  333. package/lib/components/TreeChart/TreeChart.types.js.map +0 -1
  334. package/lib/components/TreeChart/index.d.ts +0 -2
  335. package/lib/components/TreeChart/index.js +0 -3
  336. package/lib/components/TreeChart/index.js.map +0 -1
  337. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -74
  338. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +0 -536
  339. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
  340. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +0 -3
  341. package/lib/components/VerticalBarChart/VerticalBarChart.js +0 -6
  342. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  343. package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
  344. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +0 -28
  345. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
  346. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -114
  347. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +0 -2
  348. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
  349. package/lib/components/VerticalBarChart/index.d.ts +0 -2
  350. package/lib/components/VerticalBarChart/index.js +0 -3
  351. package/lib/components/VerticalBarChart/index.js.map +0 -1
  352. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -85
  353. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -666
  354. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
  355. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -3
  356. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -6
  357. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
  358. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
  359. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -18
  360. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
  361. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -142
  362. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -2
  363. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
  364. package/lib/components/VerticalStackedBarChart/index.d.ts +0 -2
  365. package/lib/components/VerticalStackedBarChart/index.js +0 -3
  366. package/lib/components/VerticalStackedBarChart/index.js.map +0 -1
  367. package/lib/index.d.ts +0 -19
  368. package/lib/index.js +0 -20
  369. package/lib/index.js.map +0 -1
  370. package/lib/types/IDataPoint.d.ts +0 -545
  371. package/lib/types/IDataPoint.js +0 -2
  372. package/lib/types/IDataPoint.js.map +0 -1
  373. package/lib/types/IEventAnnotation.d.ts +0 -6
  374. package/lib/types/IEventAnnotation.js +0 -2
  375. package/lib/types/IEventAnnotation.js.map +0 -1
  376. package/lib/types/ILegendDataItem.d.ts +0 -10
  377. package/lib/types/ILegendDataItem.js +0 -2
  378. package/lib/types/ILegendDataItem.js.map +0 -1
  379. package/lib/types/index.d.ts +0 -2
  380. package/lib/types/index.js +0 -3
  381. package/lib/types/index.js.map +0 -1
  382. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
  383. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -38
  384. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
  385. package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
  386. package/lib/utilities/ChartHoverCard/ChartHoverCard.js +0 -6
  387. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
  388. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
  389. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -82
  390. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
  391. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
  392. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -2
  393. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
  394. package/lib/utilities/ChartHoverCard/index.d.ts +0 -3
  395. package/lib/utilities/ChartHoverCard/index.js +0 -4
  396. package/lib/utilities/ChartHoverCard/index.js.map +0 -1
  397. package/lib/utilities/colors.d.ts +0 -51
  398. package/lib/utilities/colors.js +0 -132
  399. package/lib/utilities/colors.js.map +0 -1
  400. package/lib/utilities/index.d.ts +0 -3
  401. package/lib/utilities/index.js +0 -4
  402. package/lib/utilities/index.js.map +0 -1
  403. package/lib/utilities/utilities.d.ts +0 -377
  404. package/lib/utilities/utilities.js +0 -864
  405. package/lib/utilities/utilities.js.map +0 -1
  406. package/lib/version.d.ts +0 -1
  407. package/lib/version.js +0 -5
  408. package/lib/version.js.map +0 -1
  409. package/lib-amd/AreaChart.d.ts +0 -1
  410. package/lib-amd/AreaChart.js +0 -6
  411. package/lib-amd/AreaChart.js.map +0 -1
  412. package/lib-amd/CartesianChart.d.ts +0 -1
  413. package/lib-amd/CartesianChart.js +0 -6
  414. package/lib-amd/CartesianChart.js.map +0 -1
  415. package/lib-amd/DonutChart.d.ts +0 -1
  416. package/lib-amd/DonutChart.js +0 -6
  417. package/lib-amd/DonutChart.js.map +0 -1
  418. package/lib-amd/GroupedVerticalBarChart.d.ts +0 -1
  419. package/lib-amd/GroupedVerticalBarChart.js +0 -6
  420. package/lib-amd/GroupedVerticalBarChart.js.map +0 -1
  421. package/lib-amd/HeatMapChart.d.ts +0 -1
  422. package/lib-amd/HeatMapChart.js +0 -6
  423. package/lib-amd/HeatMapChart.js.map +0 -1
  424. package/lib-amd/HorizontalBarChart.d.ts +0 -1
  425. package/lib-amd/HorizontalBarChart.js +0 -6
  426. package/lib-amd/HorizontalBarChart.js.map +0 -1
  427. package/lib-amd/Legends.d.ts +0 -1
  428. package/lib-amd/Legends.js +0 -6
  429. package/lib-amd/Legends.js.map +0 -1
  430. package/lib-amd/LineChart.d.ts +0 -1
  431. package/lib-amd/LineChart.js +0 -6
  432. package/lib-amd/LineChart.js.map +0 -1
  433. package/lib-amd/PieChart.d.ts +0 -1
  434. package/lib-amd/PieChart.js +0 -6
  435. package/lib-amd/PieChart.js.map +0 -1
  436. package/lib-amd/SankeyChart.d.ts +0 -1
  437. package/lib-amd/SankeyChart.js +0 -6
  438. package/lib-amd/SankeyChart.js.map +0 -1
  439. package/lib-amd/Sparkline.d.ts +0 -1
  440. package/lib-amd/Sparkline.js +0 -6
  441. package/lib-amd/Sparkline.js.map +0 -1
  442. package/lib-amd/StackedBarChart.d.ts +0 -1
  443. package/lib-amd/StackedBarChart.js +0 -6
  444. package/lib-amd/StackedBarChart.js.map +0 -1
  445. package/lib-amd/Styling.d.ts +0 -2
  446. package/lib-amd/Styling.js +0 -75
  447. package/lib-amd/Styling.js.map +0 -1
  448. package/lib-amd/TreeChart.d.ts +0 -1
  449. package/lib-amd/TreeChart.js +0 -6
  450. package/lib-amd/TreeChart.js.map +0 -1
  451. package/lib-amd/Utilities.d.ts +0 -2
  452. package/lib-amd/Utilities.js +0 -183
  453. package/lib-amd/Utilities.js.map +0 -1
  454. package/lib-amd/VerticalBarChart.d.ts +0 -1
  455. package/lib-amd/VerticalBarChart.js +0 -6
  456. package/lib-amd/VerticalBarChart.js.map +0 -1
  457. package/lib-amd/VerticalStackedBarChart.d.ts +0 -1
  458. package/lib-amd/VerticalStackedBarChart.js +0 -6
  459. package/lib-amd/VerticalStackedBarChart.js.map +0 -1
  460. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -92
  461. package/lib-amd/components/AreaChart/AreaChart.base.js +0 -555
  462. package/lib-amd/components/AreaChart/AreaChart.base.js.map +0 -1
  463. package/lib-amd/components/AreaChart/AreaChart.d.ts +0 -3
  464. package/lib-amd/components/AreaChart/AreaChart.js +0 -8
  465. package/lib-amd/components/AreaChart/AreaChart.js.map +0 -1
  466. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +0 -2
  467. package/lib-amd/components/AreaChart/AreaChart.styles.js +0 -12
  468. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +0 -1
  469. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +0 -37
  470. package/lib-amd/components/AreaChart/AreaChart.types.js +0 -5
  471. package/lib-amd/components/AreaChart/AreaChart.types.js.map +0 -1
  472. package/lib-amd/components/AreaChart/index.d.ts +0 -2
  473. package/lib-amd/components/AreaChart/index.js +0 -7
  474. package/lib-amd/components/AreaChart/index.js.map +0 -1
  475. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +0 -43
  476. package/lib-amd/components/CommonComponents/CartesianChart.base.js +0 -329
  477. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +0 -1
  478. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +0 -3
  479. package/lib-amd/components/CommonComponents/CartesianChart.js +0 -7
  480. package/lib-amd/components/CommonComponents/CartesianChart.js.map +0 -1
  481. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
  482. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +0 -166
  483. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +0 -1
  484. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +0 -428
  485. package/lib-amd/components/CommonComponents/CartesianChart.types.js +0 -5
  486. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +0 -1
  487. package/lib-amd/components/CommonComponents/index.d.ts +0 -2
  488. package/lib-amd/components/CommonComponents/index.js +0 -7
  489. package/lib-amd/components/CommonComponents/index.js.map +0 -1
  490. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +0 -21
  491. package/lib-amd/components/DonutChart/Arc/Arc.js +0 -85
  492. package/lib-amd/components/DonutChart/Arc/Arc.js.map +0 -1
  493. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
  494. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +0 -33
  495. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +0 -1
  496. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +0 -124
  497. package/lib-amd/components/DonutChart/Arc/Arc.types.js +0 -5
  498. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +0 -1
  499. package/lib-amd/components/DonutChart/Arc/index.d.ts +0 -2
  500. package/lib-amd/components/DonutChart/Arc/index.js +0 -7
  501. package/lib-amd/components/DonutChart/Arc/index.js.map +0 -1
  502. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +0 -50
  503. package/lib-amd/components/DonutChart/DonutChart.base.js +0 -208
  504. package/lib-amd/components/DonutChart/DonutChart.base.js.map +0 -1
  505. package/lib-amd/components/DonutChart/DonutChart.d.ts +0 -3
  506. package/lib-amd/components/DonutChart/DonutChart.js +0 -8
  507. package/lib-amd/components/DonutChart/DonutChart.js.map +0 -1
  508. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +0 -2
  509. package/lib-amd/components/DonutChart/DonutChart.styles.js +0 -36
  510. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +0 -1
  511. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +0 -63
  512. package/lib-amd/components/DonutChart/DonutChart.types.js +0 -5
  513. package/lib-amd/components/DonutChart/DonutChart.types.js.map +0 -1
  514. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +0 -15
  515. package/lib-amd/components/DonutChart/Pie/Pie.js +0 -69
  516. package/lib-amd/components/DonutChart/Pie/Pie.js.map +0 -1
  517. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
  518. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +0 -24
  519. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +0 -1
  520. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +0 -96
  521. package/lib-amd/components/DonutChart/Pie/Pie.types.js +0 -5
  522. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +0 -1
  523. package/lib-amd/components/DonutChart/Pie/index.d.ts +0 -2
  524. package/lib-amd/components/DonutChart/Pie/index.js +0 -7
  525. package/lib-amd/components/DonutChart/Pie/index.js.map +0 -1
  526. package/lib-amd/components/DonutChart/index.d.ts +0 -3
  527. package/lib-amd/components/DonutChart/index.js +0 -8
  528. package/lib-amd/components/DonutChart/index.js.map +0 -1
  529. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -62
  530. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -375
  531. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
  532. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -3
  533. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -8
  534. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
  535. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
  536. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -21
  537. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
  538. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -83
  539. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -5
  540. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
  541. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +0 -2
  542. package/lib-amd/components/GroupedVerticalBarChart/index.js +0 -7
  543. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +0 -1
  544. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +0 -147
  545. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +0 -492
  546. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
  547. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +0 -3
  548. package/lib-amd/components/HeatMapChart/HeatMapChart.js +0 -7
  549. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +0 -1
  550. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
  551. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +0 -29
  552. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
  553. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +0 -110
  554. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +0 -5
  555. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
  556. package/lib-amd/components/HeatMapChart/index.d.ts +0 -2
  557. package/lib-amd/components/HeatMapChart/index.js +0 -7
  558. package/lib-amd/components/HeatMapChart/index.js.map +0 -1
  559. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -36
  560. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -234
  561. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
  562. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -3
  563. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +0 -8
  564. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
  565. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
  566. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -72
  567. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
  568. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -172
  569. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -11
  570. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
  571. package/lib-amd/components/HorizontalBarChart/index.d.ts +0 -3
  572. package/lib-amd/components/HorizontalBarChart/index.js +0 -8
  573. package/lib-amd/components/HorizontalBarChart/index.js.map +0 -1
  574. package/lib-amd/components/Legends/Legends.base.d.ts +0 -44
  575. package/lib-amd/components/Legends/Legends.base.js +0 -290
  576. package/lib-amd/components/Legends/Legends.base.js.map +0 -1
  577. package/lib-amd/components/Legends/Legends.d.ts +0 -3
  578. package/lib-amd/components/Legends/Legends.js +0 -7
  579. package/lib-amd/components/Legends/Legends.js.map +0 -1
  580. package/lib-amd/components/Legends/Legends.styles.d.ts +0 -2
  581. package/lib-amd/components/Legends/Legends.styles.js +0 -107
  582. package/lib-amd/components/Legends/Legends.styles.js.map +0 -1
  583. package/lib-amd/components/Legends/Legends.types.d.ts +0 -169
  584. package/lib-amd/components/Legends/Legends.types.js +0 -5
  585. package/lib-amd/components/Legends/Legends.types.js.map +0 -1
  586. package/lib-amd/components/Legends/index.d.ts +0 -3
  587. package/lib-amd/components/Legends/index.js +0 -8
  588. package/lib-amd/components/Legends/index.js.map +0 -1
  589. package/lib-amd/components/Legends/shape.d.ts +0 -9
  590. package/lib-amd/components/Legends/shape.js +0 -27
  591. package/lib-amd/components/Legends/shape.js.map +0 -1
  592. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -84
  593. package/lib-amd/components/LineChart/LineChart.base.js +0 -809
  594. package/lib-amd/components/LineChart/LineChart.base.js.map +0 -1
  595. package/lib-amd/components/LineChart/LineChart.d.ts +0 -3
  596. package/lib-amd/components/LineChart/LineChart.js +0 -8
  597. package/lib-amd/components/LineChart/LineChart.js.map +0 -1
  598. package/lib-amd/components/LineChart/LineChart.styles.d.ts +0 -2
  599. package/lib-amd/components/LineChart/LineChart.styles.js +0 -12
  600. package/lib-amd/components/LineChart/LineChart.styles.js.map +0 -1
  601. package/lib-amd/components/LineChart/LineChart.types.d.ts +0 -72
  602. package/lib-amd/components/LineChart/LineChart.types.js +0 -5
  603. package/lib-amd/components/LineChart/LineChart.types.js.map +0 -1
  604. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -10
  605. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +0 -95
  606. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
  607. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -22
  608. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +0 -40
  609. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
  610. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
  611. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +0 -40
  612. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
  613. package/lib-amd/components/LineChart/index.d.ts +0 -3
  614. package/lib-amd/components/LineChart/index.js +0 -8
  615. package/lib-amd/components/LineChart/index.js.map +0 -1
  616. package/lib-amd/components/PieChart/Arc/Arc.d.ts +0 -12
  617. package/lib-amd/components/PieChart/Arc/Arc.js +0 -56
  618. package/lib-amd/components/PieChart/Arc/Arc.js.map +0 -1
  619. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +0 -2
  620. package/lib-amd/components/PieChart/Arc/Arc.styles.js +0 -13
  621. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +0 -1
  622. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +0 -60
  623. package/lib-amd/components/PieChart/Arc/Arc.types.js +0 -5
  624. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +0 -1
  625. package/lib-amd/components/PieChart/Arc/index.d.ts +0 -2
  626. package/lib-amd/components/PieChart/Arc/index.js +0 -7
  627. package/lib-amd/components/PieChart/Arc/index.js.map +0 -1
  628. package/lib-amd/components/PieChart/Pie/Pie.d.ts +0 -10
  629. package/lib-amd/components/PieChart/Pie/Pie.js +0 -35
  630. package/lib-amd/components/PieChart/Pie/Pie.js.map +0 -1
  631. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +0 -2
  632. package/lib-amd/components/PieChart/Pie/Pie.styles.js +0 -12
  633. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +0 -1
  634. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +0 -46
  635. package/lib-amd/components/PieChart/Pie/Pie.types.js +0 -5
  636. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +0 -1
  637. package/lib-amd/components/PieChart/Pie/index.d.ts +0 -2
  638. package/lib-amd/components/PieChart/Pie/index.js +0 -7
  639. package/lib-amd/components/PieChart/Pie/index.js.map +0 -1
  640. package/lib-amd/components/PieChart/PieChart.base.d.ts +0 -7
  641. package/lib-amd/components/PieChart/PieChart.base.js +0 -35
  642. package/lib-amd/components/PieChart/PieChart.base.js.map +0 -1
  643. package/lib-amd/components/PieChart/PieChart.d.ts +0 -3
  644. package/lib-amd/components/PieChart/PieChart.js +0 -8
  645. package/lib-amd/components/PieChart/PieChart.js.map +0 -1
  646. package/lib-amd/components/PieChart/PieChart.styles.d.ts +0 -2
  647. package/lib-amd/components/PieChart/PieChart.styles.js +0 -34
  648. package/lib-amd/components/PieChart/PieChart.styles.js.map +0 -1
  649. package/lib-amd/components/PieChart/PieChart.types.d.ts +0 -63
  650. package/lib-amd/components/PieChart/PieChart.types.js +0 -5
  651. package/lib-amd/components/PieChart/PieChart.types.js.map +0 -1
  652. package/lib-amd/components/PieChart/index.d.ts +0 -2
  653. package/lib-amd/components/PieChart/index.js +0 -7
  654. package/lib-amd/components/PieChart/index.js.map +0 -1
  655. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +0 -95
  656. package/lib-amd/components/SankeyChart/SankeyChart.base.js +0 -669
  657. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +0 -1
  658. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +0 -3
  659. package/lib-amd/components/SankeyChart/SankeyChart.js +0 -8
  660. package/lib-amd/components/SankeyChart/SankeyChart.js.map +0 -1
  661. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
  662. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +0 -62
  663. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +0 -1
  664. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +0 -83
  665. package/lib-amd/components/SankeyChart/SankeyChart.types.js +0 -5
  666. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +0 -1
  667. package/lib-amd/components/SankeyChart/index.d.ts +0 -2
  668. package/lib-amd/components/SankeyChart/index.js +0 -7
  669. package/lib-amd/components/SankeyChart/index.js.map +0 -1
  670. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +0 -20
  671. package/lib-amd/components/Sparkline/Sparkline.base.js +0 -74
  672. package/lib-amd/components/Sparkline/Sparkline.base.js.map +0 -1
  673. package/lib-amd/components/Sparkline/Sparkline.d.ts +0 -3
  674. package/lib-amd/components/Sparkline/Sparkline.js +0 -8
  675. package/lib-amd/components/Sparkline/Sparkline.js.map +0 -1
  676. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +0 -2
  677. package/lib-amd/components/Sparkline/Sparkline.styles.js +0 -15
  678. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +0 -1
  679. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +0 -51
  680. package/lib-amd/components/Sparkline/Sparkline.types.js +0 -5
  681. package/lib-amd/components/Sparkline/Sparkline.types.js.map +0 -1
  682. package/lib-amd/components/Sparkline/index.d.ts +0 -2
  683. package/lib-amd/components/Sparkline/index.js +0 -7
  684. package/lib-amd/components/Sparkline/index.js.map +0 -1
  685. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -56
  686. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +0 -352
  687. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
  688. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -3
  689. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +0 -8
  690. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
  691. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
  692. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -93
  693. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
  694. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -198
  695. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +0 -11
  696. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
  697. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +0 -51
  698. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +0 -309
  699. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
  700. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +0 -3
  701. package/lib-amd/components/StackedBarChart/StackedBarChart.js +0 -8
  702. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +0 -1
  703. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
  704. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +0 -108
  705. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
  706. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +0 -210
  707. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +0 -5
  708. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
  709. package/lib-amd/components/StackedBarChart/index.d.ts +0 -5
  710. package/lib-amd/components/StackedBarChart/index.js +0 -10
  711. package/lib-amd/components/StackedBarChart/index.js.map +0 -1
  712. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +0 -18
  713. package/lib-amd/components/TreeChart/TreeChart.base.js +0 -314
  714. package/lib-amd/components/TreeChart/TreeChart.base.js.map +0 -1
  715. package/lib-amd/components/TreeChart/TreeChart.d.ts +0 -3
  716. package/lib-amd/components/TreeChart/TreeChart.js +0 -7
  717. package/lib-amd/components/TreeChart/TreeChart.js.map +0 -1
  718. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +0 -2
  719. package/lib-amd/components/TreeChart/TreeChart.styles.js +0 -34
  720. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +0 -1
  721. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +0 -197
  722. package/lib-amd/components/TreeChart/TreeChart.types.js +0 -28
  723. package/lib-amd/components/TreeChart/TreeChart.types.js.map +0 -1
  724. package/lib-amd/components/TreeChart/index.d.ts +0 -2
  725. package/lib-amd/components/TreeChart/index.js +0 -7
  726. package/lib-amd/components/TreeChart/index.js.map +0 -1
  727. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -74
  728. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +0 -529
  729. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
  730. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +0 -3
  731. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +0 -8
  732. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  733. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
  734. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +0 -32
  735. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
  736. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -114
  737. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +0 -5
  738. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
  739. package/lib-amd/components/VerticalBarChart/index.d.ts +0 -2
  740. package/lib-amd/components/VerticalBarChart/index.js +0 -7
  741. package/lib-amd/components/VerticalBarChart/index.js.map +0 -1
  742. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -85
  743. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -659
  744. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
  745. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -3
  746. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -8
  747. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
  748. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
  749. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -22
  750. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
  751. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -142
  752. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -5
  753. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
  754. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +0 -2
  755. package/lib-amd/components/VerticalStackedBarChart/index.js +0 -7
  756. package/lib-amd/components/VerticalStackedBarChart/index.js.map +0 -1
  757. package/lib-amd/index.d.ts +0 -19
  758. package/lib-amd/index.js +0 -23
  759. package/lib-amd/index.js.map +0 -1
  760. package/lib-amd/types/IDataPoint.d.ts +0 -545
  761. package/lib-amd/types/IDataPoint.js +0 -5
  762. package/lib-amd/types/IDataPoint.js.map +0 -1
  763. package/lib-amd/types/IEventAnnotation.d.ts +0 -6
  764. package/lib-amd/types/IEventAnnotation.js +0 -5
  765. package/lib-amd/types/IEventAnnotation.js.map +0 -1
  766. package/lib-amd/types/ILegendDataItem.d.ts +0 -10
  767. package/lib-amd/types/ILegendDataItem.js +0 -5
  768. package/lib-amd/types/ILegendDataItem.js.map +0 -1
  769. package/lib-amd/types/index.d.ts +0 -2
  770. package/lib-amd/types/index.js +0 -7
  771. package/lib-amd/types/index.js.map +0 -1
  772. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
  773. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -39
  774. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
  775. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
  776. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +0 -8
  777. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
  778. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
  779. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -87
  780. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
  781. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
  782. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -5
  783. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
  784. package/lib-amd/utilities/ChartHoverCard/index.d.ts +0 -3
  785. package/lib-amd/utilities/ChartHoverCard/index.js +0 -8
  786. package/lib-amd/utilities/ChartHoverCard/index.js.map +0 -1
  787. package/lib-amd/utilities/colors.d.ts +0 -51
  788. package/lib-amd/utilities/colors.js +0 -139
  789. package/lib-amd/utilities/colors.js.map +0 -1
  790. package/lib-amd/utilities/index.d.ts +0 -3
  791. package/lib-amd/utilities/index.js +0 -8
  792. package/lib-amd/utilities/index.js.map +0 -1
  793. package/lib-amd/utilities/utilities.d.ts +0 -377
  794. package/lib-amd/utilities/utilities.js +0 -888
  795. package/lib-amd/utilities/utilities.js.map +0 -1
  796. package/lib-amd/version.d.ts +0 -1
  797. package/lib-amd/version.js +0 -6
  798. package/lib-amd/version.js.map +0 -1
@@ -1,659 +0,0 @@
1
- define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-scale", "@fluentui/react/lib/Utilities", "@fluentui/react/lib/Callout", "../Legends/index", "../../index", "@fluentui/react-focus", "../../utilities/index", "d3-format"], function (require, exports, tslib_1, React, d3_array_1, d3_selection_1, d3_scale_1, Utilities_1, Callout_1, index_1, index_2, react_focus_1, index_3, d3_format_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VerticalStackedBarChartBase = void 0;
5
- var getClassNames = Utilities_1.classNamesFunction();
6
- var COMPONENT_NAME = 'VERTICAL STACKED BAR CHART';
7
- // When displaying gaps between bars, the max height of the gap is given in the
8
- // props. The actual gap is calculated with this multiplier, with a minimum gap
9
- // of 1 pixel. (If these values are changed, update the comment for barGapMax.)
10
- var barGapMultiplier = 0.2;
11
- var barGapMin = 1;
12
- var MIN_DOMAIN_MARGIN = 8;
13
- var CircleVisbility;
14
- (function (CircleVisbility) {
15
- CircleVisbility["show"] = "visibility";
16
- CircleVisbility["hide"] = "hidden";
17
- })(CircleVisbility || (CircleVisbility = {}));
18
- var VerticalStackedBarChartBase = /** @class */ (function (_super) {
19
- tslib_1.__extends(VerticalStackedBarChartBase, _super);
20
- function VerticalStackedBarChartBase(props) {
21
- var _this = _super.call(this, props) || this;
22
- _this._isRtl = Utilities_1.getRTL();
23
- /**
24
- * This function tells us what to focus either the whole stack as focusable item.
25
- * or each individual item in the stack as focusable item. basically it depends
26
- * on the prop `isCalloutForStack` if it's false user can focus each individual bar
27
- * within the bar if it's true then user can focus whole bar as item.
28
- * but if we have lines in the chart then we force the user to focus only the whole
29
- * bar, even if isCalloutForStack is false
30
- */
31
- _this._toFocusWholeStack = function (_isHavingLines) {
32
- var _a = _this.props.isCalloutForStack, isCalloutForStack = _a === void 0 ? false : _a;
33
- var shouldFocusStackOnly = false;
34
- if (_isHavingLines) {
35
- if (_this.state.selectedLegend !== '') {
36
- shouldFocusStackOnly = false;
37
- }
38
- else {
39
- shouldFocusStackOnly = true;
40
- }
41
- }
42
- else {
43
- shouldFocusStackOnly = isCalloutForStack;
44
- }
45
- return shouldFocusStackOnly;
46
- };
47
- _this._getFormattedLineData = function (data) {
48
- var linesData = [];
49
- var formattedLineData = {};
50
- data.forEach(function (item, index) {
51
- if (item.lineData) {
52
- // injecting corresponding x data point in each of the line data
53
- // we inject index also , it will be helpful to draw lines when x axis is
54
- // of string type
55
- item.lineData.forEach(function (line) {
56
- linesData.push(tslib_1.__assign(tslib_1.__assign({}, line), { index: index, xItem: item }));
57
- });
58
- }
59
- });
60
- linesData.forEach(function (item) {
61
- if (formattedLineData[item.legend]) {
62
- formattedLineData[item.legend].push(item);
63
- }
64
- else {
65
- formattedLineData[item.legend] = [item];
66
- }
67
- });
68
- return formattedLineData;
69
- };
70
- _this._getLineLegends = function (data) {
71
- var lineObject = _this._lineObject;
72
- var lineLegends = [];
73
- Object.keys(lineObject).forEach(function (item) {
74
- lineLegends.push({
75
- title: item,
76
- color: lineObject[item][0].color,
77
- });
78
- });
79
- return lineLegends;
80
- };
81
- _this._createLines = function (xScale, yScale, containerHeight, containerWidth) {
82
- var _a;
83
- var isNumeric = _this._xAxisType === index_3.XAxisTypes.NumericAxis;
84
- var xBarScale = _this._getScales(containerHeight, containerWidth, isNumeric).xBarScale;
85
- var lineObject = _this._getFormattedLineData(_this.props.data);
86
- var lines = [];
87
- var borderForLines = [];
88
- var dots = [];
89
- var theme = _this.props.theme;
90
- var lineBorderWidth = ((_a = _this.props.lineOptions) === null || _a === void 0 ? void 0 : _a.lineBorderWidth)
91
- ? Number.parseFloat(_this.props.lineOptions.lineBorderWidth.toString())
92
- : 0;
93
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
- var xScaleBandwidthTranslate = isNumeric ? 0 : xBarScale.bandwidth() / 2;
95
- Object.keys(lineObject).forEach(function (item, index) {
96
- var shouldHighlight = _this._legendHighlighted(item) || _this._noLegendHighlighted(); // item is legend name
97
- for (var i = 1; i < lineObject[item].length; i++) {
98
- var x1 = isNumeric
99
- ? xScale(lineObject[item][i - 1].xItem.xAxisPoint)
100
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
101
- xBarScale(lineObject[item][i - 1].xItem.xAxisPoint);
102
- var y1 = yScale(lineObject[item][i - 1].y);
103
- var x2 = isNumeric
104
- ? xScale(lineObject[item][i].xItem.xAxisPoint)
105
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
- xBarScale(lineObject[item][i].xItem.xAxisPoint);
107
- var y2 = yScale(lineObject[item][i].y);
108
- if (lineBorderWidth > 0) {
109
- borderForLines.push(React.createElement("line", { key: index + "-" + i + "-BorderLine", x1: x1, y1: y1, x2: x2, y2: y2, opacity: shouldHighlight ? 1 : 0.1, strokeWidth: 3 + lineBorderWidth * 2, fill: "transparent", strokeLinecap: "round", stroke: theme.palette.white, transform: "translate(" + xScaleBandwidthTranslate + ", 0)" }));
110
- }
111
- lines.push(React.createElement("line", tslib_1.__assign({ key: index + "-" + i + "-line", x1: x1, y1: y1, x2: x2, y2: y2, opacity: shouldHighlight ? 1 : 0.1, strokeWidth: 3, strokeLinecap: "round", stroke: lineObject[item][i].color, transform: "translate(" + xScaleBandwidthTranslate + ", 0)" }, (_this.state.selectedLegend === item && {
112
- onMouseOver: _this._lineHover.bind(_this, lineObject[item][i - 1]),
113
- onMouseLeave: _this._lineHoverOut,
114
- }))));
115
- }
116
- });
117
- Object.keys(lineObject).forEach(function (item, index) {
118
- lineObject[item].forEach(function (circlePoint, subIndex) {
119
- dots.push(React.createElement("circle", tslib_1.__assign({ key: index + "-" + subIndex + "-dot", cx: isNumeric
120
- ? xScale(circlePoint.xItem.xAxisPoint)
121
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
122
- xBarScale(circlePoint.xItem.xAxisPoint), cy: yScale(circlePoint.y), onMouseOver: _this.state.selectedLegend === item
123
- ? _this._lineHover.bind(_this, circlePoint)
124
- : _this._onStackHover.bind(_this, circlePoint.xItem) }, (_this.state.selectedLegend === item && {
125
- onMouseLeave: _this._lineHoverOut,
126
- }), { r: _this._getCircleVisibilityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).radius, stroke: circlePoint.color, fill: _this.props.theme.palette.white, strokeWidth: 3, visibility: _this._getCircleVisibilityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).visibility, transform: "translate(" + xScaleBandwidthTranslate + ", 0)" })));
127
- });
128
- });
129
- return (React.createElement(React.Fragment, null,
130
- borderForLines,
131
- lines,
132
- dots));
133
- };
134
- _this._getCircleVisibilityAndRadius = function (xAxispoint, legend) {
135
- var _a = _this.state, selectedLegend = _a.selectedLegend, activeXAxisDataPoint = _a.activeXAxisDataPoint;
136
- if (selectedLegend !== '') {
137
- if (xAxispoint === activeXAxisDataPoint && selectedLegend === legend) {
138
- return { visibility: CircleVisbility.show, radius: 8 };
139
- }
140
- else if (selectedLegend === legend) {
141
- return { visibility: CircleVisbility.show, radius: 0.3 };
142
- }
143
- else {
144
- return { visibility: CircleVisbility.hide, radius: 0 };
145
- }
146
- }
147
- else {
148
- return {
149
- visibility: activeXAxisDataPoint === xAxispoint ? CircleVisbility.show : CircleVisbility.hide,
150
- radius: 8,
151
- };
152
- }
153
- };
154
- _this._getMargins = function (margins) {
155
- _this.margins = margins;
156
- };
157
- _this._getCustomizedCallout = function () {
158
- var _isHavingLines = _this.props.data.some(function (item) { return item.lineData && item.lineData.length > 0; });
159
- return _this.props.onRenderCalloutPerStack
160
- ? _this.props.onRenderCalloutPerStack(_this.state.stackCalloutProps)
161
- : _this.props.onRenderCalloutPerDataPoint && !_isHavingLines
162
- ? _this.props.onRenderCalloutPerDataPoint(_this.state.dataPointCalloutProps, _this._renderCallout)
163
- : null;
164
- };
165
- _this._lineHover = function (lineData, mouseEvent) {
166
- mouseEvent.persist();
167
- _this.setState({
168
- refSelected: mouseEvent,
169
- isCalloutVisible: true,
170
- xCalloutValue: "" + lineData.xItem.xAxisPoint,
171
- yCalloutValue: "" + (lineData.yAxisCalloutData || lineData.data || lineData.y),
172
- activeXAxisDataPoint: lineData.xItem.xAxisPoint,
173
- color: lineData.color,
174
- });
175
- };
176
- _this._lineHoverOut = function () {
177
- _this.setState({
178
- refSelected: null,
179
- isCalloutVisible: false,
180
- xCalloutValue: '',
181
- yCalloutValue: '',
182
- activeXAxisDataPoint: '',
183
- color: '',
184
- });
185
- };
186
- _this._handleMouseOut = function () {
187
- /**/
188
- };
189
- _this._handleChartMouseLeave = function () {
190
- _this._calloutAnchorPoint = null;
191
- _this.setState({
192
- isCalloutVisible: false,
193
- activeXAxisDataPoint: '',
194
- });
195
- };
196
- _this._createBar = function (
197
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
198
- xBarScale, yBarScale, containerHeight, xElement) {
199
- var _a = _this.props, _b = _a.barCornerRadius, barCornerRadius = _b === void 0 ? 0 : _b, _c = _a.barMinimumHeight, barMinimumHeight = _c === void 0 ? 0 : _c;
200
- var _isHavingLines = _this.props.data.some(function (item) { return item.lineData && item.lineData.length > 0; });
201
- var shouldFocusWholeStack = _this._toFocusWholeStack(_isHavingLines);
202
- var bars = _this._points.map(function (singleChartData, indexNumber) {
203
- var yPoint = containerHeight - _this.margins.bottom;
204
- var xPoint = xBarScale(_this._xAxisType === index_3.XAxisTypes.NumericAxis
205
- ? singleChartData.xAxisPoint
206
- : singleChartData.xAxisPoint);
207
- var xScaleBandwidthTranslate = _this._xAxisType === index_3.XAxisTypes.NumericAxis ? 0 : (xBarScale.bandwidth() - _this._barWidth) / 2;
208
- var barTotalValue = 0;
209
- // Removing datapoints with zero data
210
- var barsToDisplay = singleChartData.chartData.filter(function (point) { return point.data > 0; });
211
- if (!barsToDisplay.length) {
212
- return undefined;
213
- }
214
- var _a = _this._getBarGapAndScale(barsToDisplay, yBarScale), gapHeight = _a.gapHeight, heightValueScale = _a.heightValueScale;
215
- if (heightValueScale < 0) {
216
- return undefined;
217
- }
218
- var singleBar = barsToDisplay.map(function (point, index) {
219
- var color = point.color ? point.color : _this._colors[index];
220
- var ref = {};
221
- var shouldHighlight = _this._legendHighlighted(point.legend) || _this._noLegendHighlighted() ? true : false;
222
- _this._classNames = getClassNames(_this.props.styles, {
223
- theme: _this.props.theme,
224
- shouldHighlight: shouldHighlight,
225
- href: _this.props.href,
226
- });
227
- var rectFocusProps = !shouldFocusWholeStack && {
228
- 'data-is-focusable': !_this.props.hideTooltip,
229
- 'aria-label': _this._getAriaLabel(singleChartData, point),
230
- onMouseOver: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, color),
231
- onMouseMove: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, color),
232
- onMouseLeave: _this._handleMouseOut,
233
- onFocus: _this._onRectFocus.bind(_this, point, singleChartData.xAxisPoint, color, ref),
234
- onBlur: _this._handleMouseOut,
235
- onClick: _this._onClick.bind(_this, point),
236
- role: 'img',
237
- };
238
- var barHeight = heightValueScale * point.data;
239
- if (barHeight < barMinimumHeight) {
240
- barHeight = barMinimumHeight;
241
- }
242
- yPoint = yPoint - barHeight - (index ? gapHeight : 0);
243
- barTotalValue += point.data;
244
- // If set, apply the corner radius to the top of the final bar
245
- if (barCornerRadius && barHeight > barCornerRadius && index === barsToDisplay.length - 1) {
246
- return (React.createElement("path", tslib_1.__assign({ key: index + indexNumber + ("" + shouldFocusWholeStack), className: _this._classNames.opacityChangeOnHover, d: "\n M " + xPoint + " " + (yPoint + barCornerRadius) + "\n a " + barCornerRadius + " " + barCornerRadius + " 0 0 1 " + barCornerRadius + " " + -barCornerRadius + "\n h " + (_this._barWidth - 2 * barCornerRadius) + "\n a " + barCornerRadius + " " + barCornerRadius + " 0 0 1 " + barCornerRadius + " " + barCornerRadius + "\n v " + (barHeight - barCornerRadius) + "\n h " + -_this._barWidth + "\n z\n ", fill: color, ref: function (e) { return (ref.refElement = e); }, transform: "translate(" + xScaleBandwidthTranslate + ", 0)" }, rectFocusProps)));
247
- }
248
- if (barHeight < 1) {
249
- return React.createElement(React.Fragment, { key: index + indexNumber }, " ");
250
- }
251
- return (React.createElement("rect", tslib_1.__assign({ key: index + indexNumber, className: _this._classNames.opacityChangeOnHover, x: xPoint, y: yPoint, width: _this._barWidth, height: barHeight, fill: color, ref: function (e) { return (ref.refElement = e); } }, rectFocusProps, { transform: "translate(" + xScaleBandwidthTranslate + ", 0)" })));
252
- });
253
- var groupRef = {};
254
- var stackFocusProps = shouldFocusWholeStack && {
255
- 'data-is-focusable': !_this.props.hideTooltip,
256
- 'aria-label': _this._getAriaLabel(singleChartData),
257
- onMouseOver: _this._onStackHover.bind(_this, singleChartData),
258
- onMouseMove: _this._onStackHover.bind(_this, singleChartData),
259
- onMouseLeave: _this._handleMouseOut,
260
- onFocus: _this._onStackFocus.bind(_this, singleChartData, groupRef),
261
- onBlur: _this._handleMouseOut,
262
- onClick: _this._onClick.bind(_this, singleChartData),
263
- role: 'img',
264
- };
265
- return (React.createElement("g", { key: indexNumber + ("" + shouldFocusWholeStack) },
266
- React.createElement("g", tslib_1.__assign({ id: indexNumber + "-singleBar", ref: function (e) { return (groupRef.refElement = e); } }, stackFocusProps), singleBar),
267
- !_this.props.hideLabels && _this._barWidth >= 16 && (React.createElement("text", { x: xPoint + _this._barWidth / 2, y: yPoint - 6, textAnchor: "middle", className: _this._classNames.barLabel, "data-is-focusable": true, "aria-label": "Total: " + barTotalValue, role: "img", transform: "translate(" + xScaleBandwidthTranslate + ", 0)" }, d3_format_1.formatPrefix(barTotalValue < 1000 ? '.2~' : '.1', barTotalValue)(barTotalValue)))));
268
- });
269
- // Removing un wanted tooltip div from DOM, when prop not provided.
270
- if (!_this.props.showXAxisLablesTooltip) {
271
- try {
272
- document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
273
- // eslint-disable-next-line no-empty
274
- }
275
- catch (e) { }
276
- }
277
- // Used to display tooltip at x axis labels.
278
- if (!_this.props.wrapXAxisLables && _this.props.showXAxisLablesTooltip) {
279
- var xAxisElement = d3_selection_1.select(xElement).call(xBarScale);
280
- try {
281
- document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
282
- // eslint-disable-next-line no-empty
283
- }
284
- catch (e) { }
285
- var tooltipProps = {
286
- tooltipCls: _this._classNames.tooltip,
287
- id: _this._tooltipId,
288
- xAxis: xAxisElement,
289
- };
290
- xAxisElement && index_3.tooltipOfXAxislabels(tooltipProps);
291
- }
292
- return bars.filter(function (bar) { return !!bar; });
293
- };
294
- _this._getScales = function (containerHeight, containerWidth, isNumeric) {
295
- var yMax = _this._yMax;
296
- var yBarScale = d3_scale_1.scaleLinear()
297
- .domain([0, yMax])
298
- .range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
299
- if (isNumeric) {
300
- var xMax = d3_array_1.max(_this._dataset, function (point) { return point.x; });
301
- var xMin = d3_array_1.min(_this._dataset, function (point) { return point.x; });
302
- var xBarScale = d3_scale_1.scaleLinear()
303
- .domain(_this._isRtl ? [xMax, xMin] : [xMin, xMax])
304
- .nice()
305
- .range([
306
- _this.margins.left + _this._domainMargin,
307
- containerWidth - _this.margins.right - _this._barWidth - _this._domainMargin,
308
- ]);
309
- return { xBarScale: xBarScale, yBarScale: yBarScale };
310
- }
311
- else {
312
- var xBarScale = d3_scale_1.scaleBand()
313
- .domain(_this._xAxisLabels)
314
- .range([_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin])
315
- .paddingInner(2 / 3);
316
- return { xBarScale: xBarScale, yBarScale: yBarScale };
317
- }
318
- };
319
- _this._createNumericBars = function (containerHeight, containerWidth, xElement) {
320
- var _a = _this._getScales(containerHeight, containerWidth, true), xBarScale = _a.xBarScale, yBarScale = _a.yBarScale;
321
- return _this._createBar(xBarScale, yBarScale, containerHeight, xElement);
322
- };
323
- _this._createStringBars = function (containerHeight, containerWidth, xElement) {
324
- var _a = _this._getScales(containerHeight, containerWidth, false), xBarScale = _a.xBarScale, yBarScale = _a.yBarScale;
325
- return _this._createBar(xBarScale, yBarScale, containerHeight, xElement);
326
- };
327
- _this._getGraphData = function (
328
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
329
- xScale, yScale, containerHeight, containerWidth, xElement) {
330
- return (_this._bars =
331
- _this._xAxisType === index_3.XAxisTypes.NumericAxis
332
- ? _this._createNumericBars(containerHeight, containerWidth, xElement)
333
- : _this._createStringBars(containerHeight, containerWidth, xElement));
334
- };
335
- _this._closeCallout = function () {
336
- _this.setState({
337
- isCalloutVisible: false,
338
- });
339
- };
340
- _this._getAxisData = function (yAxisData) {
341
- if (yAxisData && yAxisData.yAxisDomainValues.length) {
342
- var domainValue = yAxisData.yAxisDomainValues;
343
- _this._yMax = Math.max(domainValue[domainValue.length - 1], _this.props.yMaxValue || 0);
344
- }
345
- };
346
- /**
347
- * This function checks if the given legend is highlighted or not.
348
- * A legend can be highlighted in 2 ways:
349
- * 1. selection: if the user clicks on it
350
- * 2. hovering: if there is no selected legend and the user hovers over it
351
- */
352
- _this._legendHighlighted = function (legendTitle) {
353
- return (_this.state.selectedLegend === legendTitle ||
354
- (_this.state.selectedLegend === '' && _this.state.activeLegend === legendTitle));
355
- };
356
- /**
357
- * This function checks if none of the legends is selected or hovered.
358
- */
359
- _this._noLegendHighlighted = function () {
360
- return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
361
- };
362
- _this._getAriaLabel = function (singleChartData, point) {
363
- var _a, _b, _c;
364
- if (!point) {
365
- /** if shouldFocusWholeStack is true */
366
- var xValue_1 = singleChartData.xAxisCalloutData || singleChartData.xAxisPoint;
367
- var pointValues = singleChartData.chartData
368
- .map(function (pt) {
369
- var legend = pt.legend;
370
- var yValue = pt.yAxisCalloutData || pt.data;
371
- return legend + ", " + yValue + ".";
372
- })
373
- .join(' ');
374
- var lineValues = (_a = singleChartData.lineData) === null || _a === void 0 ? void 0 : _a.map(function (ln) {
375
- var legend = ln.legend;
376
- var yValue = ln.yAxisCalloutData || ln.data || ln.y;
377
- return legend + ", " + yValue + ".";
378
- }).join(' ');
379
- return (((_b = singleChartData.stackCallOutAccessibilityData) === null || _b === void 0 ? void 0 : _b.ariaLabel) ||
380
- xValue_1 + ". " + pointValues + (lineValues ? " " + lineValues : ''));
381
- }
382
- /** if shouldFocusWholeStack is false */
383
- var xValue = singleChartData.xAxisCalloutData || point.xAxisCalloutData || singleChartData.xAxisPoint;
384
- var legend = point.legend;
385
- var yValue = point.yAxisCalloutData || point.data;
386
- return ((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel) || xValue + ". " + legend + ", " + yValue + ".";
387
- };
388
- _this._getDomainMargins = function (containerWidth) {
389
- if (_this._xAxisType !== index_3.XAxisTypes.NumericAxis) {
390
- /** Total width available to render the bars */
391
- var totalWidth = containerWidth - (_this.margins.left + MIN_DOMAIN_MARGIN) - (_this.margins.right + MIN_DOMAIN_MARGIN);
392
- var barWidth = Math.min(_this.props.barWidth || 16, 24);
393
- /** Total width required to render the bars. Directly proportional to bar width */
394
- var reqWidth = (3 * _this._xAxisLabels.length - 2) * barWidth;
395
- _this._domainMargin = MIN_DOMAIN_MARGIN;
396
- if (totalWidth >= reqWidth) {
397
- // Center align the chart by setting equal left and right margins for domain
398
- _this._domainMargin += (totalWidth - reqWidth) / 2;
399
- }
400
- else {
401
- /** Maximum possible bar width to maintain 2:1 spacing */
402
- var maxBandwidth = totalWidth / (3 * _this._xAxisLabels.length - 2);
403
- barWidth = maxBandwidth;
404
- }
405
- _this._barWidth = barWidth;
406
- }
407
- return tslib_1.__assign(tslib_1.__assign({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
408
- };
409
- _this.state = {
410
- isCalloutVisible: false,
411
- selectedLegend: '',
412
- activeLegend: '',
413
- refSelected: null,
414
- dataForHoverCard: 0,
415
- color: '',
416
- hoverXValue: '',
417
- YValueHover: [],
418
- xCalloutValue: '',
419
- yCalloutValue: '',
420
- activeXAxisDataPoint: '',
421
- calloutLegend: '',
422
- };
423
- Utilities_1.warnDeprecations(COMPONENT_NAME, props, {
424
- colors: 'IVSChartDataPoint.color',
425
- chartLabel: 'use your own title for chart',
426
- });
427
- _this._handleMouseOut = _this._handleMouseOut.bind(_this);
428
- _this._calloutId = Utilities_1.getId('callout');
429
- _this._tooltipId = Utilities_1.getId('VSBCTooltipId_');
430
- _this._adjustProps();
431
- _this._dataset = _this._createDataSetLayer();
432
- _this._createLegendsForLine = Utilities_1.memoizeFunction(function (data) { return _this._getLineLegends(data); });
433
- _this._domainMargin = MIN_DOMAIN_MARGIN;
434
- return _this;
435
- }
436
- VerticalStackedBarChartBase.prototype.componentDidUpdate = function (prevProps) {
437
- if (prevProps.height !== this.props.height ||
438
- prevProps.width !== this.props.width ||
439
- prevProps.data !== this.props.data) {
440
- this._adjustProps();
441
- this._dataset = this._createDataSetLayer();
442
- }
443
- };
444
- VerticalStackedBarChartBase.prototype.render = function () {
445
- var _this = this;
446
- this._adjustProps();
447
- var _isHavingLines = this.props.data.some(function (item) { return item.lineData && item.lineData.length > 0; });
448
- var shouldFocusWholeStack = this._toFocusWholeStack(_isHavingLines);
449
- var _a = this.props.isCalloutForStack, isCalloutForStack = _a === void 0 ? false : _a;
450
- this._dataset = this._createDataSetLayer();
451
- var legendBars = this._getLegendData(this._points, this.props.theme.palette, this._createLegendsForLine(this.props.data));
452
- this._classNames = getClassNames(this.props.styles, {
453
- theme: this.props.theme,
454
- href: this.props.href,
455
- });
456
- var calloutProps = tslib_1.__assign(tslib_1.__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, id: "toolTip" + this._calloutId, target: this.state.refSelected, isBeakVisible: false, gapSpace: 15, color: this.state.color, legend: this.state.calloutLegend, XValue: this.state.xCalloutValue, YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, onDismiss: this._closeCallout, preventDismissOnLostFocus: true }, this.props.calloutProps), index_3.getAccessibleDataObject(this.state.callOutAccessibilityData));
457
- var tickParams = {
458
- tickValues: this.props.tickValues,
459
- tickFormat: this.props.tickFormat,
460
- };
461
- return (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { points: this._dataset, chartType: index_3.ChartTypes.VerticalStackedBarChart, xAxisType: this._xAxisType, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, datasetForXAxisDomain: this._xAxisLabels, isCalloutForStack: shouldFocusWholeStack, barwidth: this._barWidth, focusZoneDirection: isCalloutForStack || _isHavingLines ? react_focus_1.FocusZoneDirection.horizontal : react_focus_1.FocusZoneDirection.vertical, getmargins: this._getMargins, getGraphData: this._getGraphData, getAxisData: this._getAxisData, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave, getDomainMargins: this._getDomainMargins }, (this._xAxisType !== index_3.XAxisTypes.NumericAxis && { xAxisInnerPadding: 2 / 3, xAxisOuterPadding: 0 }), {
462
- /* eslint-disable react/jsx-no-bind */
463
- // eslint-disable-next-line react/no-children-prop
464
- children: function (props) {
465
- return (React.createElement(React.Fragment, null,
466
- React.createElement("g", null, _this._bars),
467
- React.createElement("g", null, _isHavingLines &&
468
- _this._createLines(props.xScale, props.yScale, props.containerHeight, props.containerWidth))));
469
- } })));
470
- };
471
- VerticalStackedBarChartBase.prototype._adjustProps = function () {
472
- this._points = this.props.data || [];
473
- this._barWidth = this.props.barWidth || 16;
474
- var theme = this.props.theme;
475
- var palette = theme.palette;
476
- // eslint-disable-next-line deprecation/deprecation
477
- this._colors = this.props.colors || [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];
478
- this._xAxisType = index_3.getTypeOfAxis(this.props.data[0].xAxisPoint, true);
479
- this._lineObject = this._getFormattedLineData(this.props.data);
480
- };
481
- VerticalStackedBarChartBase.prototype._createDataSetLayer = function () {
482
- var tempArr = [];
483
- var dataset = this._points.map(function (singlePointData) {
484
- var total = 0;
485
- singlePointData.chartData.forEach(function (point) {
486
- total = total + point.data;
487
- });
488
- tempArr.push(singlePointData.xAxisPoint);
489
- return {
490
- x: singlePointData.xAxisPoint,
491
- y: total,
492
- };
493
- });
494
- this._xAxisLabels = tempArr;
495
- return dataset;
496
- };
497
- VerticalStackedBarChartBase.prototype._renderCallout = function (props) {
498
- return props ? (React.createElement(index_2.ChartHoverCard, { XValue: props.xAxisCalloutData, Legend: props.legend, YValue: props.yAxisCalloutData, color: props.color, culture: this.props.culture })) : null;
499
- };
500
- VerticalStackedBarChartBase.prototype._onLegendClick = function (legendTitle) {
501
- if (this.state.selectedLegend === legendTitle) {
502
- this.setState({
503
- selectedLegend: '',
504
- });
505
- }
506
- else {
507
- this.setState({
508
- selectedLegend: legendTitle,
509
- });
510
- }
511
- };
512
- VerticalStackedBarChartBase.prototype._onLegendHover = function (legendTitle) {
513
- this.setState({
514
- activeLegend: legendTitle,
515
- });
516
- };
517
- VerticalStackedBarChartBase.prototype._onLegendLeave = function () {
518
- this.setState({
519
- activeLegend: '',
520
- });
521
- };
522
- VerticalStackedBarChartBase.prototype._getLegendData = function (data, palette, lineLegends) {
523
- var _this = this;
524
- if (this.props.hideLegend) {
525
- return React.createElement(React.Fragment, null);
526
- }
527
- var defaultPalette = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];
528
- var actions = [];
529
- var _a = this.props.allowHoverOnLegend, allowHoverOnLegend = _a === void 0 ? true : _a;
530
- data.forEach(function (singleChartData) {
531
- singleChartData.chartData.forEach(function (point) {
532
- var color = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];
533
- var checkSimilarLegends = actions.filter(function (leg) { return leg.title === point.legend && leg.color === color; });
534
- if (checkSimilarLegends.length > 0) {
535
- return;
536
- }
537
- var legend = {
538
- title: point.legend,
539
- color: color,
540
- action: function () {
541
- _this._onLegendClick(point.legend);
542
- },
543
- hoverAction: allowHoverOnLegend
544
- ? function () {
545
- _this._handleChartMouseLeave();
546
- _this._onLegendHover(point.legend);
547
- }
548
- : undefined,
549
- onMouseOutAction: allowHoverOnLegend ? function () { return _this._onLegendLeave(); } : undefined,
550
- };
551
- actions.push(legend);
552
- });
553
- });
554
- var legendsOfLine = [];
555
- if (lineLegends && lineLegends.length > 0) {
556
- lineLegends.forEach(function (point) {
557
- var legend = {
558
- title: point.title,
559
- color: point.color,
560
- isLineLegendInBarChart: true,
561
- action: function () {
562
- _this._onLegendClick(point.title);
563
- },
564
- hoverAction: allowHoverOnLegend
565
- ? function () {
566
- _this._handleChartMouseLeave();
567
- _this._onLegendHover(point.title);
568
- }
569
- : undefined,
570
- onMouseOutAction: allowHoverOnLegend ? function () { return _this._onLegendLeave(); } : undefined,
571
- };
572
- legendsOfLine.push(legend);
573
- });
574
- }
575
- var totalLegends = legendsOfLine.concat(actions);
576
- return (React.createElement(index_1.Legends, tslib_1.__assign({ legends: totalLegends, overflowProps: this.props.legendsOverflowProps, enabledWrapLines: this.props.enabledLegendsWrapLines, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, this.props.legendProps)));
577
- };
578
- VerticalStackedBarChartBase.prototype._onRectHover = function (xAxisPoint, point, color, mouseEvent) {
579
- mouseEvent.persist();
580
- this._onRectFocusHover(xAxisPoint, point, color, mouseEvent);
581
- };
582
- VerticalStackedBarChartBase.prototype._onRectFocusHover = function (xAxisPoint, point, color, refSelected) {
583
- if (this._calloutAnchorPoint !== point) {
584
- this._calloutAnchorPoint = point;
585
- this.setState({
586
- refSelected: refSelected,
587
- /**
588
- * Show the callout if highlighted bar is focused/hovered
589
- * and Hide it if unhighlighted bar is focused/hovered
590
- */
591
- isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend,
592
- calloutLegend: point.legend,
593
- dataForHoverCard: point.data,
594
- color: color,
595
- xCalloutValue: point.xAxisCalloutData ? point.xAxisCalloutData : xAxisPoint,
596
- yCalloutValue: point.yAxisCalloutData,
597
- dataPointCalloutProps: point,
598
- callOutAccessibilityData: point.callOutAccessibilityData,
599
- });
600
- }
601
- };
602
- VerticalStackedBarChartBase.prototype._onStackHover = function (stack, mouseEvent) {
603
- mouseEvent.persist();
604
- this._onStackHoverFocus(stack, mouseEvent);
605
- };
606
- VerticalStackedBarChartBase.prototype._onStackHoverFocus = function (stack, refSelected) {
607
- var lineData = stack.lineData;
608
- var isLinesPresent = lineData !== undefined && lineData.length > 0;
609
- if (isLinesPresent) {
610
- lineData.forEach(function (item) {
611
- item.data = item.data || item.y;
612
- item.shouldDrawBorderBottom = true;
613
- });
614
- }
615
- this.setState({
616
- refSelected: refSelected,
617
- isCalloutVisible: true,
618
- YValueHover: isLinesPresent
619
- ? tslib_1.__spreadArray(tslib_1.__spreadArray([], lineData.sort(function (a, b) { return (a.data < b.data ? 1 : -1); })), stack.chartData.slice().reverse()) : stack.chartData.slice().reverse(),
620
- hoverXValue: stack.xAxisPoint,
621
- stackCalloutProps: stack,
622
- activeXAxisDataPoint: stack.xAxisPoint,
623
- callOutAccessibilityData: stack.stackCallOutAccessibilityData,
624
- });
625
- };
626
- VerticalStackedBarChartBase.prototype._onRectFocus = function (point, xAxisPoint, color, ref) {
627
- if (ref.refElement) {
628
- this._onRectFocusHover(xAxisPoint, point, color, ref.refElement);
629
- }
630
- };
631
- VerticalStackedBarChartBase.prototype._onStackFocus = function (stack, groupRef) {
632
- if (groupRef.refElement) {
633
- this._onStackHoverFocus(stack, groupRef.refElement);
634
- }
635
- };
636
- VerticalStackedBarChartBase.prototype._onClick = function (data, mouseEvent) {
637
- var _a, _b;
638
- (_b = (_a = this.props).onBarClick) === null || _b === void 0 ? void 0 : _b.call(_a, mouseEvent, data);
639
- this.props.href ? (window.location.href = this.props.href) : '';
640
- };
641
- VerticalStackedBarChartBase.prototype._getBarGapAndScale = function (bars, yBarScale, defaultTotalHeight) {
642
- var _a = this.props.barGapMax, barGapMax = _a === void 0 ? 0 : _a;
643
- // When displaying gaps between the bars, the height of each bar is
644
- // adjusted so that the total of all bars is not changed by the gaps
645
- var totalData = bars.reduce(function (iter, value) { return iter + value.data; }, 0);
646
- var totalHeight = defaultTotalHeight !== null && defaultTotalHeight !== void 0 ? defaultTotalHeight : yBarScale(totalData);
647
- var gaps = barGapMax && bars.length - 1;
648
- var gapHeight = gaps && Math.max(barGapMin, Math.min(barGapMax, (totalHeight * barGapMultiplier) / gaps));
649
- var heightValueScale = (totalHeight - gapHeight * gaps) / totalData;
650
- return {
651
- gapHeight: gapHeight,
652
- heightValueScale: heightValueScale,
653
- };
654
- };
655
- return VerticalStackedBarChartBase;
656
- }(React.Component));
657
- exports.VerticalStackedBarChartBase = VerticalStackedBarChartBase;
658
- });
659
- //# sourceMappingURL=VerticalStackedBarChart.base.js.map