@fluentui/react-charting 5.16.33 → 5.16.35

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 (492) hide show
  1. package/CHANGELOG.json +85 -1
  2. package/CHANGELOG.md +29 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/AreaChart/AreaChart.base.js +13 -13
  6. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  7. package/lib/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  8. package/lib/components/CommonComponents/CartesianChart.base.js +44 -13
  9. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  10. package/lib/components/CommonComponents/CartesianChart.styles.js +2 -2
  11. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  13. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  14. package/lib/components/DonutChart/Arc/Arc.js +1 -1
  15. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  16. package/lib/components/DonutChart/DonutChart.base.js +1 -1
  17. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  18. package/lib/components/DonutChart/DonutChart.styles.js +1 -1
  19. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  20. package/lib/components/DonutChart/Pie/Pie.js +1 -1
  21. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  22. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -4
  23. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  24. package/lib/components/HeatMapChart/HeatMapChart.base.js +13 -13
  25. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  26. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -5
  27. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  28. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  30. package/lib/components/Legends/Legends.base.js +4 -4
  31. package/lib/components/Legends/Legends.base.js.map +1 -1
  32. package/lib/components/Legends/Legends.styles.js +3 -3
  33. package/lib/components/Legends/Legends.styles.js.map +1 -1
  34. package/lib/components/Legends/shape.js +10 -10
  35. package/lib/components/Legends/shape.js.map +1 -1
  36. package/lib/components/LineChart/LineChart.base.js +41 -41
  37. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  38. package/lib/components/PieChart/Arc/Arc.js +1 -1
  39. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  40. package/lib/components/PieChart/Pie/Pie.js +2 -2
  41. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  42. package/lib/components/SankeyChart/SankeyChart.base.js +6 -6
  43. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  44. package/lib/components/Sparkline/Sparkline.base.js +1 -1
  45. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  46. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +4 -4
  47. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  48. package/lib/components/StackedBarChart/StackedBarChart.base.js +1 -1
  49. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  50. package/lib/components/StackedBarChart/StackedBarChart.styles.js +2 -2
  51. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  52. package/lib/components/TreeChart/TreeChart.base.js +8 -8
  53. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  54. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +21 -12
  55. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  56. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +23 -22
  57. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  58. package/lib/types/IDataPoint.d.ts +10 -0
  59. package/lib/types/IDataPoint.js.map +1 -1
  60. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  61. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  62. package/lib/utilities/utilities.d.ts +2 -2
  63. package/lib/utilities/utilities.js +16 -14
  64. package/lib/utilities/utilities.js.map +1 -1
  65. package/lib/version.js +1 -1
  66. package/lib/version.js.map +1 -1
  67. package/lib-amd/AreaChart.js +1 -1
  68. package/lib-amd/AreaChart.js.map +1 -1
  69. package/lib-amd/CartesianChart.js +1 -1
  70. package/lib-amd/CartesianChart.js.map +1 -1
  71. package/lib-amd/DonutChart.js +1 -1
  72. package/lib-amd/DonutChart.js.map +1 -1
  73. package/lib-amd/GroupedVerticalBarChart.js +1 -1
  74. package/lib-amd/GroupedVerticalBarChart.js.map +1 -1
  75. package/lib-amd/HeatMapChart.js +1 -1
  76. package/lib-amd/HeatMapChart.js.map +1 -1
  77. package/lib-amd/HorizontalBarChart.js +1 -1
  78. package/lib-amd/HorizontalBarChart.js.map +1 -1
  79. package/lib-amd/HorizontalBarChartWithAxis.js +1 -1
  80. package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -1
  81. package/lib-amd/Legends.js +1 -1
  82. package/lib-amd/Legends.js.map +1 -1
  83. package/lib-amd/LineChart.js +1 -1
  84. package/lib-amd/LineChart.js.map +1 -1
  85. package/lib-amd/PieChart.js +1 -1
  86. package/lib-amd/PieChart.js.map +1 -1
  87. package/lib-amd/SankeyChart.js +1 -1
  88. package/lib-amd/SankeyChart.js.map +1 -1
  89. package/lib-amd/Sparkline.js +1 -1
  90. package/lib-amd/Sparkline.js.map +1 -1
  91. package/lib-amd/StackedBarChart.js +1 -1
  92. package/lib-amd/StackedBarChart.js.map +1 -1
  93. package/lib-amd/TreeChart.js +1 -1
  94. package/lib-amd/TreeChart.js.map +1 -1
  95. package/lib-amd/VerticalBarChart.js +1 -1
  96. package/lib-amd/VerticalBarChart.js.map +1 -1
  97. package/lib-amd/VerticalStackedBarChart.js +1 -1
  98. package/lib-amd/VerticalStackedBarChart.js.map +1 -1
  99. package/lib-amd/components/AreaChart/AreaChart.base.js +42 -42
  100. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  101. package/lib-amd/components/AreaChart/AreaChart.js +1 -1
  102. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -1
  103. package/lib-amd/components/AreaChart/AreaChart.styles.js +1 -1
  104. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
  105. package/lib-amd/components/AreaChart/index.js +2 -2
  106. package/lib-amd/components/AreaChart/index.js.map +1 -1
  107. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  108. package/lib-amd/components/CommonComponents/CartesianChart.base.js +73 -42
  109. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  110. package/lib-amd/components/CommonComponents/CartesianChart.js +1 -1
  111. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
  112. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +6 -6
  113. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  114. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  115. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  116. package/lib-amd/components/CommonComponents/index.js +2 -2
  117. package/lib-amd/components/CommonComponents/index.js.map +1 -1
  118. package/lib-amd/components/DonutChart/Arc/Arc.js +6 -6
  119. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  120. package/lib-amd/components/DonutChart/Arc/index.js +2 -2
  121. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -1
  122. package/lib-amd/components/DonutChart/DonutChart.base.js +10 -10
  123. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  124. package/lib-amd/components/DonutChart/DonutChart.js +1 -1
  125. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -1
  126. package/lib-amd/components/DonutChart/DonutChart.styles.js +1 -1
  127. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
  128. package/lib-amd/components/DonutChart/Pie/Pie.js +4 -4
  129. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  130. package/lib-amd/components/DonutChart/Pie/index.js +2 -2
  131. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -1
  132. package/lib-amd/components/DonutChart/index.js +3 -3
  133. package/lib-amd/components/DonutChart/index.js.map +1 -1
  134. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
  135. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  136. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
  137. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  138. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  139. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  140. package/lib-amd/components/GroupedVerticalBarChart/index.js +2 -2
  141. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -1
  142. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +25 -25
  143. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  144. package/lib-amd/components/HeatMapChart/HeatMapChart.js +1 -1
  145. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -1
  146. package/lib-amd/components/HeatMapChart/index.js +2 -2
  147. package/lib-amd/components/HeatMapChart/index.js.map +1 -1
  148. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
  149. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  150. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  151. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  152. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  153. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  154. package/lib-amd/components/HorizontalBarChart/index.js +3 -3
  155. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -1
  156. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
  157. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  158. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
  159. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  160. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  161. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  162. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +2 -2
  163. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  164. package/lib-amd/components/Legends/Legends.base.js +16 -16
  165. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  166. package/lib-amd/components/Legends/Legends.js +1 -1
  167. package/lib-amd/components/Legends/Legends.js.map +1 -1
  168. package/lib-amd/components/Legends/Legends.styles.js +8 -8
  169. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  170. package/lib-amd/components/Legends/index.js +3 -3
  171. package/lib-amd/components/Legends/index.js.map +1 -1
  172. package/lib-amd/components/Legends/shape.js +11 -11
  173. package/lib-amd/components/Legends/shape.js.map +1 -1
  174. package/lib-amd/components/LineChart/LineChart.base.js +78 -78
  175. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  176. package/lib-amd/components/LineChart/LineChart.js +1 -1
  177. package/lib-amd/components/LineChart/LineChart.js.map +1 -1
  178. package/lib-amd/components/LineChart/LineChart.styles.js +1 -1
  179. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
  180. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
  181. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  182. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +3 -3
  183. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  184. package/lib-amd/components/LineChart/index.js +3 -3
  185. package/lib-amd/components/LineChart/index.js.map +1 -1
  186. package/lib-amd/components/PieChart/Arc/Arc.js +5 -5
  187. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
  188. package/lib-amd/components/PieChart/Arc/index.js +2 -2
  189. package/lib-amd/components/PieChart/Arc/index.js.map +1 -1
  190. package/lib-amd/components/PieChart/Pie/Pie.js +3 -3
  191. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
  192. package/lib-amd/components/PieChart/Pie/index.js +2 -2
  193. package/lib-amd/components/PieChart/Pie/index.js.map +1 -1
  194. package/lib-amd/components/PieChart/PieChart.base.js +2 -2
  195. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
  196. package/lib-amd/components/PieChart/PieChart.js +1 -1
  197. package/lib-amd/components/PieChart/PieChart.js.map +1 -1
  198. package/lib-amd/components/PieChart/PieChart.styles.js +1 -1
  199. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -1
  200. package/lib-amd/components/PieChart/index.js +2 -2
  201. package/lib-amd/components/PieChart/index.js.map +1 -1
  202. package/lib-amd/components/SankeyChart/SankeyChart.base.js +27 -27
  203. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  204. package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
  205. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
  206. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +1 -1
  207. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  208. package/lib-amd/components/SankeyChart/index.js +2 -2
  209. package/lib-amd/components/SankeyChart/index.js.map +1 -1
  210. package/lib-amd/components/Sparkline/Sparkline.base.js +9 -9
  211. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
  212. package/lib-amd/components/Sparkline/Sparkline.js +1 -1
  213. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
  214. package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
  215. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
  216. package/lib-amd/components/Sparkline/index.js +2 -2
  217. package/lib-amd/components/Sparkline/index.js.map +1 -1
  218. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
  219. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  220. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  221. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  222. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  223. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  224. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +11 -11
  225. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  226. package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
  227. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
  228. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +3 -3
  229. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  230. package/lib-amd/components/StackedBarChart/index.js +5 -5
  231. package/lib-amd/components/StackedBarChart/index.js.map +1 -1
  232. package/lib-amd/components/TreeChart/TreeChart.base.js +20 -20
  233. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
  234. package/lib-amd/components/TreeChart/TreeChart.js +1 -1
  235. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
  236. package/lib-amd/components/TreeChart/TreeChart.styles.js +4 -4
  237. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
  238. package/lib-amd/components/TreeChart/index.js +2 -2
  239. package/lib-amd/components/TreeChart/index.js.map +1 -1
  240. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +47 -38
  241. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  242. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
  243. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  244. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  245. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  246. package/lib-amd/components/VerticalBarChart/index.js +2 -2
  247. package/lib-amd/components/VerticalBarChart/index.js.map +1 -1
  248. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +42 -41
  249. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  250. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  251. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  252. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  253. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  254. package/lib-amd/components/VerticalStackedBarChart/index.js +2 -2
  255. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -1
  256. package/lib-amd/index.js +19 -19
  257. package/lib-amd/index.js.map +1 -1
  258. package/lib-amd/types/IDataPoint.d.ts +10 -0
  259. package/lib-amd/types/IDataPoint.js.map +1 -1
  260. package/lib-amd/types/index.js +2 -2
  261. package/lib-amd/types/index.js.map +1 -1
  262. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
  263. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  264. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
  265. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  266. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  267. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  268. package/lib-amd/utilities/ChartHoverCard/index.js +3 -3
  269. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -1
  270. package/lib-amd/utilities/FocusableTooltipText.js +3 -3
  271. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -1
  272. package/lib-amd/utilities/index.js +3 -3
  273. package/lib-amd/utilities/index.js.map +1 -1
  274. package/lib-amd/utilities/utilities.d.ts +2 -2
  275. package/lib-amd/utilities/utilities.js +82 -80
  276. package/lib-amd/utilities/utilities.js.map +1 -1
  277. package/lib-amd/version.js +1 -1
  278. package/lib-amd/version.js.map +1 -1
  279. package/lib-commonjs/AreaChart.js +1 -1
  280. package/lib-commonjs/AreaChart.js.map +1 -1
  281. package/lib-commonjs/CartesianChart.js +1 -1
  282. package/lib-commonjs/CartesianChart.js.map +1 -1
  283. package/lib-commonjs/DonutChart.js +1 -1
  284. package/lib-commonjs/DonutChart.js.map +1 -1
  285. package/lib-commonjs/GroupedVerticalBarChart.js +1 -1
  286. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  287. package/lib-commonjs/HeatMapChart.js +1 -1
  288. package/lib-commonjs/HeatMapChart.js.map +1 -1
  289. package/lib-commonjs/HorizontalBarChart.js +1 -1
  290. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  291. package/lib-commonjs/HorizontalBarChartWithAxis.js +1 -1
  292. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  293. package/lib-commonjs/Legends.js +1 -1
  294. package/lib-commonjs/Legends.js.map +1 -1
  295. package/lib-commonjs/LineChart.js +1 -1
  296. package/lib-commonjs/LineChart.js.map +1 -1
  297. package/lib-commonjs/PieChart.js +1 -1
  298. package/lib-commonjs/PieChart.js.map +1 -1
  299. package/lib-commonjs/SankeyChart.js +1 -1
  300. package/lib-commonjs/SankeyChart.js.map +1 -1
  301. package/lib-commonjs/Sparkline.js +1 -1
  302. package/lib-commonjs/Sparkline.js.map +1 -1
  303. package/lib-commonjs/StackedBarChart.js +1 -1
  304. package/lib-commonjs/StackedBarChart.js.map +1 -1
  305. package/lib-commonjs/TreeChart.js +1 -1
  306. package/lib-commonjs/TreeChart.js.map +1 -1
  307. package/lib-commonjs/VerticalBarChart.js +1 -1
  308. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  309. package/lib-commonjs/VerticalStackedBarChart.js +1 -1
  310. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  311. package/lib-commonjs/components/AreaChart/AreaChart.base.js +42 -42
  312. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  313. package/lib-commonjs/components/AreaChart/AreaChart.js +1 -1
  314. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  315. package/lib-commonjs/components/AreaChart/AreaChart.styles.js +1 -1
  316. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  317. package/lib-commonjs/components/AreaChart/index.js +2 -2
  318. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  319. package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  320. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +73 -42
  321. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  322. package/lib-commonjs/components/CommonComponents/CartesianChart.js +1 -1
  323. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  324. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +6 -6
  325. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  326. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  327. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  328. package/lib-commonjs/components/CommonComponents/index.js +2 -2
  329. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  330. package/lib-commonjs/components/DonutChart/Arc/Arc.js +6 -6
  331. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  332. package/lib-commonjs/components/DonutChart/Arc/index.js +2 -2
  333. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  334. package/lib-commonjs/components/DonutChart/DonutChart.base.js +10 -10
  335. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  336. package/lib-commonjs/components/DonutChart/DonutChart.js +1 -1
  337. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  338. package/lib-commonjs/components/DonutChart/DonutChart.styles.js +1 -1
  339. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  340. package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -4
  341. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  342. package/lib-commonjs/components/DonutChart/Pie/index.js +2 -2
  343. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  344. package/lib-commonjs/components/DonutChart/index.js +3 -3
  345. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  346. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
  347. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  348. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
  349. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  350. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  351. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  352. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +2 -2
  353. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  354. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +25 -25
  355. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  356. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +1 -1
  357. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  358. package/lib-commonjs/components/HeatMapChart/index.js +2 -2
  359. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  360. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
  361. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  362. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  363. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  364. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  365. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  366. package/lib-commonjs/components/HorizontalBarChart/index.js +3 -3
  367. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  368. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
  369. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  370. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
  371. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  372. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  373. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  374. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +2 -2
  375. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  376. package/lib-commonjs/components/Legends/Legends.base.js +16 -16
  377. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  378. package/lib-commonjs/components/Legends/Legends.js +1 -1
  379. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  380. package/lib-commonjs/components/Legends/Legends.styles.js +8 -8
  381. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  382. package/lib-commonjs/components/Legends/index.js +3 -3
  383. package/lib-commonjs/components/Legends/index.js.map +1 -1
  384. package/lib-commonjs/components/Legends/shape.js +11 -11
  385. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  386. package/lib-commonjs/components/LineChart/LineChart.base.js +78 -78
  387. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  388. package/lib-commonjs/components/LineChart/LineChart.js +1 -1
  389. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  390. package/lib-commonjs/components/LineChart/LineChart.styles.js +1 -1
  391. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  392. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
  393. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  394. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +3 -3
  395. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  396. package/lib-commonjs/components/LineChart/index.js +3 -3
  397. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  398. package/lib-commonjs/components/PieChart/Arc/Arc.js +5 -5
  399. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  400. package/lib-commonjs/components/PieChart/Arc/index.js +2 -2
  401. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  402. package/lib-commonjs/components/PieChart/Pie/Pie.js +3 -3
  403. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  404. package/lib-commonjs/components/PieChart/Pie/index.js +2 -2
  405. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  406. package/lib-commonjs/components/PieChart/PieChart.base.js +2 -2
  407. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  408. package/lib-commonjs/components/PieChart/PieChart.js +1 -1
  409. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  410. package/lib-commonjs/components/PieChart/PieChart.styles.js +1 -1
  411. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  412. package/lib-commonjs/components/PieChart/index.js +2 -2
  413. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  414. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +27 -27
  415. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  416. package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
  417. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  418. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +1 -1
  419. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  420. package/lib-commonjs/components/SankeyChart/index.js +2 -2
  421. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  422. package/lib-commonjs/components/Sparkline/Sparkline.base.js +9 -9
  423. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  424. package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
  425. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  426. package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
  427. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  428. package/lib-commonjs/components/Sparkline/index.js +2 -2
  429. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  430. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
  431. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  432. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  433. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  434. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  435. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  436. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +11 -11
  437. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  438. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
  439. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  440. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +3 -3
  441. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  442. package/lib-commonjs/components/StackedBarChart/index.js +5 -5
  443. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  444. package/lib-commonjs/components/TreeChart/TreeChart.base.js +20 -20
  445. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  446. package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
  447. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  448. package/lib-commonjs/components/TreeChart/TreeChart.styles.js +4 -4
  449. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  450. package/lib-commonjs/components/TreeChart/index.js +2 -2
  451. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  452. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +47 -38
  453. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  454. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
  455. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  456. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  457. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  458. package/lib-commonjs/components/VerticalBarChart/index.js +2 -2
  459. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  460. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +42 -41
  461. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  462. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  463. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  464. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  465. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  466. package/lib-commonjs/components/VerticalStackedBarChart/index.js +2 -2
  467. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  468. package/lib-commonjs/index.js +19 -19
  469. package/lib-commonjs/index.js.map +1 -1
  470. package/lib-commonjs/types/IDataPoint.d.ts +10 -0
  471. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  472. package/lib-commonjs/types/index.js +2 -2
  473. package/lib-commonjs/types/index.js.map +1 -1
  474. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
  475. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  476. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
  477. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  478. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  479. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  480. package/lib-commonjs/utilities/ChartHoverCard/index.js +3 -3
  481. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  482. package/lib-commonjs/utilities/FocusableTooltipText.js +3 -3
  483. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  484. package/lib-commonjs/utilities/index.js +3 -3
  485. package/lib-commonjs/utilities/index.js.map +1 -1
  486. package/lib-commonjs/utilities/utilities.d.ts +2 -2
  487. package/lib-commonjs/utilities/utilities.js +82 -80
  488. package/lib-commonjs/utilities/utilities.js.map +1 -1
  489. package/lib-commonjs/version.js +1 -1
  490. package/lib-commonjs/version.js.map +1 -1
  491. package/package.json +7 -7
  492. package/src/components/CommonComponents/CartesianChart.types.ts +13 -0
@@ -2,7 +2,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.VerticalStackedBarChartBase = void 0;
5
- var getClassNames = Utilities_1.classNamesFunction();
5
+ var getClassNames = (0, Utilities_1.classNamesFunction)();
6
6
  var COMPONENT_NAME = 'VERTICAL STACKED BAR CHART';
7
7
  // When displaying gaps between bars, the max height of the gap is given in the
8
8
  // props. The actual gap is calculated with this multiplier, with a minimum gap
@@ -16,10 +16,10 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
16
16
  CircleVisbility["hide"] = "hidden";
17
17
  })(CircleVisbility || (CircleVisbility = {}));
18
18
  var VerticalStackedBarChartBase = /** @class */ (function (_super) {
19
- tslib_1.__extends(VerticalStackedBarChartBase, _super);
19
+ (0, tslib_1.__extends)(VerticalStackedBarChartBase, _super);
20
20
  function VerticalStackedBarChartBase(props) {
21
21
  var _this = _super.call(this, props) || this;
22
- _this._isRtl = Utilities_1.getRTL();
22
+ _this._isRtl = (0, Utilities_1.getRTL)();
23
23
  /**
24
24
  * This function tells us what to focus either the whole stack as focusable item.
25
25
  * or each individual item in the stack as focusable item. basically it depends
@@ -53,7 +53,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
53
53
  // we inject index also , it will be helpful to draw lines when x axis is
54
54
  // of string type
55
55
  item.lineData.forEach(function (line) {
56
- linesData.push(tslib_1.__assign(tslib_1.__assign({}, line), { index: index, xItem: item }));
56
+ linesData.push((0, tslib_1.__assign)((0, tslib_1.__assign)({}, line), { index: index, xItem: item }));
57
57
  });
58
58
  }
59
59
  });
@@ -78,7 +78,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
78
78
  });
79
79
  return lineLegends;
80
80
  };
81
- _this._createLines = function (xScale, yScale, containerHeight, containerWidth) {
81
+ _this._createLines = function (xScale, yScale, containerHeight, containerWidth, secondaryYScale) {
82
82
  var _a;
83
83
  var isNumeric = _this._xAxisType === index_3.XAxisTypes.NumericAxis;
84
84
  var xBarScale = _this._getScales(containerHeight, containerWidth, isNumeric).xBarScale;
@@ -99,16 +99,17 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
99
99
  ? xScale(lineObject[item][i - 1].xItem.xAxisPoint)
100
100
  : // eslint-disable-next-line @typescript-eslint/no-explicit-any
101
101
  xBarScale(lineObject[item][i - 1].xItem.xAxisPoint);
102
- var y1 = yScale(lineObject[item][i - 1].y);
102
+ var useSecondaryYScale = lineObject[item][i - 1].useSecondaryYScale && lineObject[item][i].useSecondaryYScale && secondaryYScale;
103
+ var y1 = useSecondaryYScale ? secondaryYScale(lineObject[item][i - 1].y) : yScale(lineObject[item][i - 1].y);
103
104
  var x2 = isNumeric
104
105
  ? xScale(lineObject[item][i].xItem.xAxisPoint)
105
106
  : // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
107
  xBarScale(lineObject[item][i].xItem.xAxisPoint);
107
- var y2 = yScale(lineObject[item][i].y);
108
+ var y2 = useSecondaryYScale ? secondaryYScale(lineObject[item][i].y) : yScale(lineObject[item][i].y);
108
109
  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
+ borderForLines.push(React.createElement("line", { key: "".concat(index, "-").concat(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(".concat(xScaleBandwidthTranslate, ", 0)") }));
110
111
  }
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
+ lines.push(React.createElement("line", (0, tslib_1.__assign)({ key: "".concat(index, "-").concat(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(".concat(xScaleBandwidthTranslate, ", 0)") }, (_this.state.selectedLegend === item && {
112
113
  onMouseOver: _this._lineHover.bind(_this, lineObject[item][i - 1]),
113
114
  onMouseLeave: _this._lineHoverOut,
114
115
  }))));
@@ -116,14 +117,14 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
116
117
  });
117
118
  Object.keys(lineObject).forEach(function (item, index) {
118
119
  lineObject[item].forEach(function (circlePoint, subIndex) {
119
- dots.push(React.createElement("circle", tslib_1.__assign({ key: index + "-" + subIndex + "-dot", cx: isNumeric
120
+ dots.push(React.createElement("circle", (0, tslib_1.__assign)({ key: "".concat(index, "-").concat(subIndex, "-dot"), cx: isNumeric
120
121
  ? xScale(circlePoint.xItem.xAxisPoint)
121
122
  : // eslint-disable-next-line @typescript-eslint/no-explicit-any
122
- xBarScale(circlePoint.xItem.xAxisPoint), cy: yScale(circlePoint.y), onMouseOver: _this.state.selectedLegend === item
123
+ xBarScale(circlePoint.xItem.xAxisPoint), cy: circlePoint.useSecondaryYScale && secondaryYScale ? secondaryYScale(circlePoint.y) : yScale(circlePoint.y), onMouseOver: _this.state.selectedLegend === item
123
124
  ? _this._lineHover.bind(_this, circlePoint)
124
125
  : _this._onStackHover.bind(_this, circlePoint.xItem) }, (_this.state.selectedLegend === item && {
125
126
  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
+ }), { 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(".concat(xScaleBandwidthTranslate, ", 0)") })));
127
128
  });
128
129
  });
129
130
  return (React.createElement(React.Fragment, null,
@@ -167,8 +168,8 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
167
168
  _this.setState({
168
169
  refSelected: mouseEvent,
169
170
  isCalloutVisible: true,
170
- xCalloutValue: "" + lineData.xItem.xAxisPoint,
171
- yCalloutValue: "" + (lineData.yAxisCalloutData || lineData.data || lineData.y),
171
+ xCalloutValue: "".concat(lineData.xItem.xAxisPoint),
172
+ yCalloutValue: "".concat(lineData.yAxisCalloutData || lineData.data || lineData.y),
172
173
  activeXAxisDataPoint: lineData.xItem.xAxisPoint,
173
174
  color: lineData.color,
174
175
  });
@@ -243,12 +244,12 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
243
244
  barTotalValue += point.data;
244
245
  // If set, apply the corner radius to the top of the final bar
245
246
  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
+ return (React.createElement("path", (0, tslib_1.__assign)({ key: index + indexNumber + "".concat(shouldFocusWholeStack), className: _this._classNames.opacityChangeOnHover, d: "\n M ".concat(xPoint, " ").concat(yPoint + barCornerRadius, "\n a ").concat(barCornerRadius, " ").concat(barCornerRadius, " 0 0 1 ").concat(barCornerRadius, " ").concat(-barCornerRadius, "\n h ").concat(_this._barWidth - 2 * barCornerRadius, "\n a ").concat(barCornerRadius, " ").concat(barCornerRadius, " 0 0 1 ").concat(barCornerRadius, " ").concat(barCornerRadius, "\n v ").concat(barHeight - barCornerRadius, "\n h ").concat(-_this._barWidth, "\n z\n "), fill: color, ref: function (e) { return (ref.refElement = e); }, transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)") }, rectFocusProps)));
247
248
  }
248
249
  if (barHeight < 1) {
249
250
  return React.createElement(React.Fragment, { key: index + indexNumber }, " ");
250
251
  }
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
+ return (React.createElement("rect", (0, 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(".concat(xScaleBandwidthTranslate, ", 0)") })));
252
253
  });
253
254
  var groupRef = {};
254
255
  var stackFocusProps = shouldFocusWholeStack && {
@@ -262,9 +263,9 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
262
263
  onClick: _this._onClick.bind(_this, singleChartData),
263
264
  role: 'img',
264
265
  };
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, "aria-label": "Total: " + barTotalValue, role: "img", transform: "translate(" + xScaleBandwidthTranslate + ", 0)" }, d3_format_1.formatPrefix(barTotalValue < 1000 ? '.2~' : '.1', barTotalValue)(barTotalValue)))));
266
+ return (React.createElement("g", { key: indexNumber + "".concat(shouldFocusWholeStack) },
267
+ React.createElement("g", (0, tslib_1.__assign)({ id: "".concat(indexNumber, "-singleBar"), ref: function (e) { return (groupRef.refElement = e); } }, stackFocusProps), singleBar),
268
+ !_this.props.hideLabels && _this._barWidth >= 16 && (React.createElement("text", { x: xPoint + _this._barWidth / 2, y: yPoint - 6, textAnchor: "middle", className: _this._classNames.barLabel, "aria-label": "Total: ".concat(barTotalValue), role: "img", transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)") }, (0, d3_format_1.formatPrefix)(barTotalValue < 1000 ? '.2~' : '.1', barTotalValue)(barTotalValue)))));
268
269
  });
269
270
  // Removing un wanted tooltip div from DOM, when prop not provided.
270
271
  if (!_this.props.showXAxisLablesTooltip) {
@@ -276,7 +277,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
276
277
  }
277
278
  // Used to display tooltip at x axis labels.
278
279
  if (!_this.props.wrapXAxisLables && _this.props.showXAxisLablesTooltip) {
279
- var xAxisElement = d3_selection_1.select(xElement).call(xBarScale);
280
+ var xAxisElement = (0, d3_selection_1.select)(xElement).call(xBarScale);
280
281
  try {
281
282
  document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
282
283
  // eslint-disable-next-line no-empty
@@ -287,19 +288,19 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
287
288
  id: _this._tooltipId,
288
289
  xAxis: xAxisElement,
289
290
  };
290
- xAxisElement && index_3.tooltipOfXAxislabels(tooltipProps);
291
+ xAxisElement && (0, index_3.tooltipOfXAxislabels)(tooltipProps);
291
292
  }
292
293
  return bars.filter(function (bar) { return !!bar; });
293
294
  };
294
295
  _this._getScales = function (containerHeight, containerWidth, isNumeric) {
295
296
  var yMax = _this._yMax;
296
- var yBarScale = d3_scale_1.scaleLinear()
297
+ var yBarScale = (0, d3_scale_1.scaleLinear)()
297
298
  .domain([0, yMax])
298
299
  .range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
299
300
  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()
301
+ var xMax = (0, d3_array_1.max)(_this._dataset, function (point) { return point.x; });
302
+ var xMin = (0, d3_array_1.min)(_this._dataset, function (point) { return point.x; });
303
+ var xBarScale = (0, d3_scale_1.scaleLinear)()
303
304
  .domain(_this._isRtl ? [xMax, xMin] : [xMin, xMax])
304
305
  .nice()
305
306
  .range([
@@ -309,7 +310,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
309
310
  return { xBarScale: xBarScale, yBarScale: yBarScale };
310
311
  }
311
312
  else {
312
- var xBarScale = d3_scale_1.scaleBand()
313
+ var xBarScale = (0, d3_scale_1.scaleBand)()
313
314
  .domain(_this._xAxisLabels)
314
315
  .range([_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin])
315
316
  .paddingInner(2 / 3);
@@ -368,22 +369,22 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
368
369
  .map(function (pt) {
369
370
  var legend = pt.legend;
370
371
  var yValue = pt.yAxisCalloutData || pt.data;
371
- return legend + ", " + yValue + ".";
372
+ return "".concat(legend, ", ").concat(yValue, ".");
372
373
  })
373
374
  .join(' ');
374
375
  var lineValues = (_a = singleChartData.lineData) === null || _a === void 0 ? void 0 : _a.map(function (ln) {
375
376
  var legend = ln.legend;
376
377
  var yValue = ln.yAxisCalloutData || ln.data || ln.y;
377
- return legend + ", " + yValue + ".";
378
+ return "".concat(legend, ", ").concat(yValue, ".");
378
379
  }).join(' ');
379
380
  return (((_b = singleChartData.stackCallOutAccessibilityData) === null || _b === void 0 ? void 0 : _b.ariaLabel) ||
380
- xValue_1 + ". " + pointValues + (lineValues ? " " + lineValues : ''));
381
+ "".concat(xValue_1, ". ").concat(pointValues) + (lineValues ? " ".concat(lineValues) : ''));
381
382
  }
382
383
  /** if shouldFocusWholeStack is false */
383
384
  var xValue = singleChartData.xAxisCalloutData || point.xAxisCalloutData || singleChartData.xAxisPoint;
384
385
  var legend = point.legend;
385
386
  var yValue = point.yAxisCalloutData || point.data;
386
- return ((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel) || xValue + ". " + legend + ", " + yValue + ".";
387
+ return ((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
387
388
  };
388
389
  _this._getDomainMargins = function (containerWidth) {
389
390
  if (_this._xAxisType !== index_3.XAxisTypes.NumericAxis) {
@@ -404,7 +405,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
404
405
  }
405
406
  _this._barWidth = barWidth;
406
407
  }
407
- return tslib_1.__assign(tslib_1.__assign({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
408
+ return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
408
409
  };
409
410
  _this.state = {
410
411
  isCalloutVisible: false,
@@ -420,16 +421,16 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
420
421
  activeXAxisDataPoint: '',
421
422
  calloutLegend: '',
422
423
  };
423
- Utilities_1.warnDeprecations(COMPONENT_NAME, props, {
424
+ (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, {
424
425
  colors: 'IVSChartDataPoint.color',
425
426
  chartLabel: 'use your own title for chart',
426
427
  });
427
428
  _this._handleMouseOut = _this._handleMouseOut.bind(_this);
428
- _this._calloutId = Utilities_1.getId('callout');
429
- _this._tooltipId = Utilities_1.getId('VSBCTooltipId_');
429
+ _this._calloutId = (0, Utilities_1.getId)('callout');
430
+ _this._tooltipId = (0, Utilities_1.getId)('VSBCTooltipId_');
430
431
  _this._adjustProps();
431
432
  _this._dataset = _this._createDataSetLayer();
432
- _this._createLegendsForLine = Utilities_1.memoizeFunction(function (data) { return _this._getLineLegends(data); });
433
+ _this._createLegendsForLine = (0, Utilities_1.memoizeFunction)(function (data) { return _this._getLineLegends(data); });
433
434
  _this._domainMargin = MIN_DOMAIN_MARGIN;
434
435
  return _this;
435
436
  }
@@ -453,19 +454,19 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
453
454
  theme: this.props.theme,
454
455
  href: this.props.href,
455
456
  });
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 calloutProps = (0, tslib_1.__assign)((0, tslib_1.__assign)({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, id: "toolTip".concat(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), (0, index_3.getAccessibleDataObject)(this.state.callOutAccessibilityData));
457
458
  var tickParams = {
458
459
  tickValues: this.props.tickValues,
459
460
  tickFormat: this.props.tickFormat,
460
461
  };
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
+ return (React.createElement(index_2.CartesianChart, (0, 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
463
  /* eslint-disable react/jsx-no-bind */
463
464
  // eslint-disable-next-line react/no-children-prop
464
465
  children: function (props) {
465
466
  return (React.createElement(React.Fragment, null,
466
467
  React.createElement("g", null, _this._bars),
467
468
  React.createElement("g", null, _isHavingLines &&
468
- _this._createLines(props.xScale, props.yScale, props.containerHeight, props.containerWidth))));
469
+ _this._createLines(props.xScale, props.yScale, props.containerHeight, props.containerWidth, props.yScaleSecondary))));
469
470
  } })));
470
471
  };
471
472
  VerticalStackedBarChartBase.prototype._adjustProps = function () {
@@ -475,7 +476,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
475
476
  var palette = theme.palette;
476
477
  // eslint-disable-next-line deprecation/deprecation
477
478
  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._xAxisType = (0, index_3.getTypeOfAxis)(this.props.data[0].xAxisPoint, true);
479
480
  this._lineObject = this._getFormattedLineData(this.props.data);
480
481
  };
481
482
  VerticalStackedBarChartBase.prototype._createDataSetLayer = function () {
@@ -573,7 +574,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
573
574
  });
574
575
  }
575
576
  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
+ return (React.createElement(index_1.Legends, (0, 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
  };
578
579
  VerticalStackedBarChartBase.prototype._onRectHover = function (xAxisPoint, point, color, mouseEvent) {
579
580
  mouseEvent.persist();
@@ -616,7 +617,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
616
617
  refSelected: refSelected,
617
618
  isCalloutVisible: true,
618
619
  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
+ ? (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], lineData.sort(function (a, b) { return (a.data < b.data ? 1 : -1); }), true), stack.chartData.slice().reverse(), true) : stack.chartData.slice().reverse(),
620
621
  hoverXValue: stack.xAxisPoint,
621
622
  stackCalloutProps: stack,
622
623
  activeXAxisDataPoint: stack.xAxisPoint,