@fluentui/react-charting 5.21.26 → 5.21.28

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