@fluentui/react-charting 5.21.28 → 5.21.30

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 (743) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/dist/react-charting.js +1 -0
  4. package/dist/react-charting.min.js +1 -0
  5. package/lib/AreaChart.js.map +1 -1
  6. package/lib/CartesianChart.js.map +1 -1
  7. package/lib/DonutChart.js.map +1 -1
  8. package/lib/GaugeChart.js.map +1 -1
  9. package/lib/GroupedVerticalBarChart.js.map +1 -1
  10. package/lib/HeatMapChart.js.map +1 -1
  11. package/lib/HorizontalBarChart.js.map +1 -1
  12. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  13. package/lib/Legends.js.map +1 -1
  14. package/lib/LineChart.js.map +1 -1
  15. package/lib/PieChart.js.map +1 -1
  16. package/lib/SankeyChart.js.map +1 -1
  17. package/lib/Sparkline.js.map +1 -1
  18. package/lib/StackedBarChart.js.map +1 -1
  19. package/lib/Styling.js.map +1 -1
  20. package/lib/TreeChart.js.map +1 -1
  21. package/lib/Utilities.js.map +1 -1
  22. package/lib/VerticalBarChart.js.map +1 -1
  23. package/lib/VerticalStackedBarChart.js.map +1 -1
  24. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  25. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  26. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
  27. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  28. package/lib/components/AreaChart/index.js.map +1 -1
  29. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  30. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  31. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  32. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  33. package/lib/components/CommonComponents/index.js.map +1 -1
  34. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  35. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  36. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  37. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  38. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  39. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  40. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  41. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  42. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  43. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  44. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  45. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  46. package/lib/components/DonutChart/index.js.map +1 -1
  47. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  48. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  49. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  50. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  51. package/lib/components/GaugeChart/index.js.map +1 -1
  52. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  53. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  54. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  55. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  56. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  57. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  58. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  59. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  60. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  61. package/lib/components/HeatMapChart/index.js.map +1 -1
  62. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  63. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  64. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  65. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  66. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  67. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  68. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  69. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  70. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  71. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  72. package/lib/components/Legends/Legends.base.js.map +1 -1
  73. package/lib/components/Legends/Legends.js.map +1 -1
  74. package/lib/components/Legends/Legends.styles.js.map +1 -1
  75. package/lib/components/Legends/Legends.types.js.map +1 -1
  76. package/lib/components/Legends/index.js.map +1 -1
  77. package/lib/components/Legends/shape.js.map +1 -1
  78. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  79. package/lib/components/LineChart/LineChart.js.map +1 -1
  80. package/lib/components/LineChart/LineChart.styles.js.map +1 -1
  81. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  82. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  83. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  84. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  85. package/lib/components/LineChart/index.js.map +1 -1
  86. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  87. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
  88. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -1
  89. package/lib/components/PieChart/Arc/index.js.map +1 -1
  90. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  91. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -1
  92. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -1
  93. package/lib/components/PieChart/Pie/index.js.map +1 -1
  94. package/lib/components/PieChart/PieChart.base.js.map +1 -1
  95. package/lib/components/PieChart/PieChart.js.map +1 -1
  96. package/lib/components/PieChart/PieChart.styles.js.map +1 -1
  97. package/lib/components/PieChart/PieChart.types.js.map +1 -1
  98. package/lib/components/PieChart/index.js.map +1 -1
  99. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  100. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  101. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  102. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  103. package/lib/components/SankeyChart/index.js.map +1 -1
  104. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  105. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  106. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
  107. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  108. package/lib/components/Sparkline/index.js.map +1 -1
  109. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  110. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  111. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  112. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  113. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  114. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
  115. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  116. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  117. package/lib/components/StackedBarChart/index.js.map +1 -1
  118. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  119. package/lib/components/TreeChart/TreeChart.js.map +1 -1
  120. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
  121. package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
  122. package/lib/components/TreeChart/index.js.map +1 -1
  123. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  124. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  125. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  126. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  127. package/lib/components/VerticalBarChart/index.js.map +1 -1
  128. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  129. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  130. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  131. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  132. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  133. package/lib/index.js.map +1 -1
  134. package/lib/types/IDataPoint.js.map +1 -1
  135. package/lib/types/IEventAnnotation.js.map +1 -1
  136. package/lib/types/ILegendDataItem.js.map +1 -1
  137. package/lib/types/index.js.map +1 -1
  138. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  139. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  140. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  141. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  142. package/lib/utilities/ChartHoverCard/index.js.map +1 -1
  143. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  144. package/lib/utilities/SVGTooltipText.js.map +1 -1
  145. package/lib/utilities/colors.js.map +1 -1
  146. package/lib/utilities/index.js.map +1 -1
  147. package/lib/utilities/locale-util.js.map +1 -1
  148. package/lib/utilities/test-data.js.map +1 -1
  149. package/lib/utilities/utilities.js.map +1 -1
  150. package/lib/utilities/vbc-utils.js.map +1 -1
  151. package/lib/version.js +1 -1
  152. package/lib/version.js.map +1 -1
  153. package/lib-amd/AreaChart.d.ts +1 -0
  154. package/lib-amd/AreaChart.js +6 -0
  155. package/lib-amd/AreaChart.js.map +1 -0
  156. package/lib-amd/CartesianChart.d.ts +1 -0
  157. package/lib-amd/CartesianChart.js +6 -0
  158. package/lib-amd/CartesianChart.js.map +1 -0
  159. package/lib-amd/DonutChart.d.ts +1 -0
  160. package/lib-amd/DonutChart.js +6 -0
  161. package/lib-amd/DonutChart.js.map +1 -0
  162. package/lib-amd/GaugeChart.d.ts +1 -0
  163. package/lib-amd/GaugeChart.js +6 -0
  164. package/lib-amd/GaugeChart.js.map +1 -0
  165. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  166. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  167. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  168. package/lib-amd/HeatMapChart.d.ts +1 -0
  169. package/lib-amd/HeatMapChart.js +6 -0
  170. package/lib-amd/HeatMapChart.js.map +1 -0
  171. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  172. package/lib-amd/HorizontalBarChart.js +6 -0
  173. package/lib-amd/HorizontalBarChart.js.map +1 -0
  174. package/lib-amd/HorizontalBarChartWithAxis.d.ts +1 -0
  175. package/lib-amd/HorizontalBarChartWithAxis.js +6 -0
  176. package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -0
  177. package/lib-amd/Legends.d.ts +1 -0
  178. package/lib-amd/Legends.js +6 -0
  179. package/lib-amd/Legends.js.map +1 -0
  180. package/lib-amd/LineChart.d.ts +1 -0
  181. package/lib-amd/LineChart.js +6 -0
  182. package/lib-amd/LineChart.js.map +1 -0
  183. package/lib-amd/PieChart.d.ts +1 -0
  184. package/lib-amd/PieChart.js +6 -0
  185. package/lib-amd/PieChart.js.map +1 -0
  186. package/lib-amd/SankeyChart.d.ts +1 -0
  187. package/lib-amd/SankeyChart.js +6 -0
  188. package/lib-amd/SankeyChart.js.map +1 -0
  189. package/lib-amd/Sparkline.d.ts +1 -0
  190. package/lib-amd/Sparkline.js +6 -0
  191. package/lib-amd/Sparkline.js.map +1 -0
  192. package/lib-amd/StackedBarChart.d.ts +1 -0
  193. package/lib-amd/StackedBarChart.js +6 -0
  194. package/lib-amd/StackedBarChart.js.map +1 -0
  195. package/lib-amd/Styling.d.ts +2 -0
  196. package/lib-amd/Styling.js +75 -0
  197. package/lib-amd/Styling.js.map +1 -0
  198. package/lib-amd/TreeChart.d.ts +1 -0
  199. package/lib-amd/TreeChart.js +6 -0
  200. package/lib-amd/TreeChart.js.map +1 -0
  201. package/lib-amd/Utilities.d.ts +2 -0
  202. package/lib-amd/Utilities.js +183 -0
  203. package/lib-amd/Utilities.js.map +1 -0
  204. package/lib-amd/VerticalBarChart.d.ts +1 -0
  205. package/lib-amd/VerticalBarChart.js +6 -0
  206. package/lib-amd/VerticalBarChart.js.map +1 -0
  207. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  208. package/lib-amd/VerticalStackedBarChart.js +6 -0
  209. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  210. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +103 -0
  211. package/lib-amd/components/AreaChart/AreaChart.base.js +652 -0
  212. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  213. package/lib-amd/components/AreaChart/AreaChart.d.ts +7 -0
  214. package/lib-amd/components/AreaChart/AreaChart.js +12 -0
  215. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  216. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  217. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  218. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  219. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +59 -0
  220. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  221. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  222. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  223. package/lib-amd/components/AreaChart/index.js +7 -0
  224. package/lib-amd/components/AreaChart/index.js.map +1 -0
  225. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +62 -0
  226. package/lib-amd/components/CommonComponents/CartesianChart.base.js +593 -0
  227. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  228. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +7 -0
  229. package/lib-amd/components/CommonComponents/CartesianChart.js +11 -0
  230. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  231. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  232. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +180 -0
  233. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  234. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +528 -0
  235. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  236. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  237. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  238. package/lib-amd/components/CommonComponents/index.js +7 -0
  239. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  240. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
  241. package/lib-amd/components/DonutChart/Arc/Arc.js +88 -0
  242. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  243. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  244. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
  245. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  246. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  247. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  248. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  249. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  250. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  251. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  252. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +54 -0
  253. package/lib-amd/components/DonutChart/DonutChart.base.js +241 -0
  254. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  255. package/lib-amd/components/DonutChart/DonutChart.d.ts +7 -0
  256. package/lib-amd/components/DonutChart/DonutChart.js +12 -0
  257. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  258. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  259. package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
  260. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  261. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +75 -0
  262. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  263. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  264. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
  265. package/lib-amd/components/DonutChart/Pie/Pie.js +67 -0
  266. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  267. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  268. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
  269. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  270. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  271. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  272. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  273. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  274. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  275. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  276. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  277. package/lib-amd/components/DonutChart/index.js +8 -0
  278. package/lib-amd/components/DonutChart/index.js.map +1 -0
  279. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +75 -0
  280. package/lib-amd/components/GaugeChart/GaugeChart.base.js +410 -0
  281. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -0
  282. package/lib-amd/components/GaugeChart/GaugeChart.d.ts +7 -0
  283. package/lib-amd/components/GaugeChart/GaugeChart.js +11 -0
  284. package/lib-amd/components/GaugeChart/GaugeChart.js.map +1 -0
  285. package/lib-amd/components/GaugeChart/GaugeChart.styles.d.ts +2 -0
  286. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +122 -0
  287. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -0
  288. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +238 -0
  289. package/lib-amd/components/GaugeChart/GaugeChart.types.js +22 -0
  290. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -0
  291. package/lib-amd/components/GaugeChart/index.d.ts +2 -0
  292. package/lib-amd/components/GaugeChart/index.js +7 -0
  293. package/lib-amd/components/GaugeChart/index.js.map +1 -0
  294. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +72 -0
  295. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +425 -0
  296. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  297. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +7 -0
  298. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +12 -0
  299. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  300. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  301. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
  302. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  303. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +111 -0
  304. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  305. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  306. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  307. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  308. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  309. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +152 -0
  310. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +538 -0
  311. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  312. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +7 -0
  313. package/lib-amd/components/HeatMapChart/HeatMapChart.js +11 -0
  314. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  315. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  316. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
  317. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  318. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +122 -0
  319. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  320. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  321. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  322. package/lib-amd/components/HeatMapChart/index.js +7 -0
  323. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  324. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +47 -0
  325. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +270 -0
  326. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  327. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +7 -0
  328. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +12 -0
  329. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  330. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  331. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
  332. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  333. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +188 -0
  334. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +14 -0
  335. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  336. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  337. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  338. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  339. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +61 -0
  340. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +499 -0
  341. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -0
  342. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.d.ts +7 -0
  343. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +12 -0
  344. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
  345. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.d.ts +2 -0
  346. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +17 -0
  347. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -0
  348. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +112 -0
  349. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +5 -0
  350. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
  351. package/lib-amd/components/HorizontalBarChartWithAxis/index.d.ts +2 -0
  352. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +7 -0
  353. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -0
  354. package/lib-amd/components/Legends/Legends.base.d.ts +43 -0
  355. package/lib-amd/components/Legends/Legends.base.js +308 -0
  356. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  357. package/lib-amd/components/Legends/Legends.d.ts +7 -0
  358. package/lib-amd/components/Legends/Legends.js +11 -0
  359. package/lib-amd/components/Legends/Legends.js.map +1 -0
  360. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  361. package/lib-amd/components/Legends/Legends.styles.js +111 -0
  362. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  363. package/lib-amd/components/Legends/Legends.types.d.ts +210 -0
  364. package/lib-amd/components/Legends/Legends.types.js +5 -0
  365. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  366. package/lib-amd/components/Legends/index.d.ts +3 -0
  367. package/lib-amd/components/Legends/index.js +8 -0
  368. package/lib-amd/components/Legends/index.js.map +1 -0
  369. package/lib-amd/components/Legends/shape.d.ts +9 -0
  370. package/lib-amd/components/Legends/shape.js +27 -0
  371. package/lib-amd/components/Legends/shape.js.map +1 -0
  372. package/lib-amd/components/LineChart/LineChart.base.d.ts +92 -0
  373. package/lib-amd/components/LineChart/LineChart.base.js +861 -0
  374. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  375. package/lib-amd/components/LineChart/LineChart.d.ts +7 -0
  376. package/lib-amd/components/LineChart/LineChart.js +12 -0
  377. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  378. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  379. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  380. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  381. package/lib-amd/components/LineChart/LineChart.types.d.ts +98 -0
  382. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  383. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  384. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +12 -0
  385. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +97 -0
  386. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  387. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +24 -0
  388. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +42 -0
  389. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  390. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  391. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  392. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  393. package/lib-amd/components/LineChart/index.d.ts +3 -0
  394. package/lib-amd/components/LineChart/index.js +8 -0
  395. package/lib-amd/components/LineChart/index.js.map +1 -0
  396. package/lib-amd/components/PieChart/Arc/Arc.d.ts +17 -0
  397. package/lib-amd/components/PieChart/Arc/Arc.js +85 -0
  398. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  399. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +3 -0
  400. package/lib-amd/components/PieChart/Arc/Arc.styles.js +16 -0
  401. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  402. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +73 -0
  403. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  404. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  405. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  406. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  407. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  408. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  409. package/lib-amd/components/PieChart/Pie/Pie.js +43 -0
  410. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  411. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  412. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  413. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  414. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +47 -0
  415. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  416. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  417. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  418. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  419. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  420. package/lib-amd/components/PieChart/PieChart.base.d.ts +10 -0
  421. package/lib-amd/components/PieChart/PieChart.base.js +46 -0
  422. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  423. package/lib-amd/components/PieChart/PieChart.d.ts +7 -0
  424. package/lib-amd/components/PieChart/PieChart.js +12 -0
  425. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  426. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  427. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  428. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  429. package/lib-amd/components/PieChart/PieChart.types.d.ts +75 -0
  430. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  431. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  432. package/lib-amd/components/PieChart/index.d.ts +2 -0
  433. package/lib-amd/components/PieChart/index.js +7 -0
  434. package/lib-amd/components/PieChart/index.js.map +1 -0
  435. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +90 -0
  436. package/lib-amd/components/SankeyChart/SankeyChart.base.js +930 -0
  437. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  438. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +7 -0
  439. package/lib-amd/components/SankeyChart/SankeyChart.js +12 -0
  440. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  441. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  442. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +65 -0
  443. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  444. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +146 -0
  445. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  446. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  447. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  448. package/lib-amd/components/SankeyChart/index.js +7 -0
  449. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  450. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +23 -0
  451. package/lib-amd/components/Sparkline/Sparkline.base.js +84 -0
  452. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  453. package/lib-amd/components/Sparkline/Sparkline.d.ts +7 -0
  454. package/lib-amd/components/Sparkline/Sparkline.js +12 -0
  455. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  456. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  457. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  458. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  459. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +59 -0
  460. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  461. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  462. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  463. package/lib-amd/components/Sparkline/index.js +7 -0
  464. package/lib-amd/components/Sparkline/index.js.map +1 -0
  465. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +70 -0
  466. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +412 -0
  467. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  468. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +7 -0
  469. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +12 -0
  470. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  471. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  472. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +89 -0
  473. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  474. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +213 -0
  475. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +14 -0
  476. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  477. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +63 -0
  478. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +349 -0
  479. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  480. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +7 -0
  481. package/lib-amd/components/StackedBarChart/StackedBarChart.js +12 -0
  482. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  483. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  484. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +107 -0
  485. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  486. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +222 -0
  487. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  488. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  489. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  490. package/lib-amd/components/StackedBarChart/index.js +10 -0
  491. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  492. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  493. package/lib-amd/components/TreeChart/TreeChart.base.js +320 -0
  494. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  495. package/lib-amd/components/TreeChart/TreeChart.d.ts +7 -0
  496. package/lib-amd/components/TreeChart/TreeChart.js +11 -0
  497. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  498. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  499. package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
  500. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  501. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +216 -0
  502. package/lib-amd/components/TreeChart/TreeChart.types.js +34 -0
  503. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  504. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  505. package/lib-amd/components/TreeChart/index.js +7 -0
  506. package/lib-amd/components/TreeChart/index.js.map +1 -0
  507. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +84 -0
  508. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +738 -0
  509. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  510. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +7 -0
  511. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +12 -0
  512. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  513. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  514. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
  515. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  516. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +145 -0
  517. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  518. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  519. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  520. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  521. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  522. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +92 -0
  523. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +754 -0
  524. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  525. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +7 -0
  526. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +12 -0
  527. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  528. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  529. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
  530. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  531. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +172 -0
  532. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  533. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  534. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  535. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  536. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  537. package/lib-amd/index.d.ts +21 -0
  538. package/lib-amd/index.js +25 -0
  539. package/lib-amd/index.js.map +1 -0
  540. package/lib-amd/types/IDataPoint.d.ts +687 -0
  541. package/lib-amd/types/IDataPoint.js +5 -0
  542. package/lib-amd/types/IDataPoint.js.map +1 -0
  543. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  544. package/lib-amd/types/IEventAnnotation.js +5 -0
  545. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  546. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  547. package/lib-amd/types/ILegendDataItem.js +5 -0
  548. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  549. package/lib-amd/types/index.d.ts +2 -0
  550. package/lib-amd/types/index.js +7 -0
  551. package/lib-amd/types/index.js.map +1 -0
  552. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  553. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  554. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  555. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  556. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  557. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  558. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  559. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +103 -0
  560. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  561. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  562. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  563. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  564. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  565. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  566. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  567. package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
  568. package/lib-amd/utilities/FocusableTooltipText.js +54 -0
  569. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
  570. package/lib-amd/utilities/SVGTooltipText.d.ts +95 -0
  571. package/lib-amd/utilities/SVGTooltipText.js +175 -0
  572. package/lib-amd/utilities/SVGTooltipText.js.map +1 -0
  573. package/lib-amd/utilities/colors.d.ts +51 -0
  574. package/lib-amd/utilities/colors.js +139 -0
  575. package/lib-amd/utilities/colors.js.map +1 -0
  576. package/lib-amd/utilities/index.d.ts +4 -0
  577. package/lib-amd/utilities/index.js +9 -0
  578. package/lib-amd/utilities/index.js.map +1 -0
  579. package/lib-amd/utilities/locale-util.d.ts +3 -0
  580. package/lib-amd/utilities/locale-util.js +24 -0
  581. package/lib-amd/utilities/locale-util.js.map +1 -0
  582. package/lib-amd/utilities/test-data.d.ts +27 -0
  583. package/lib-amd/utilities/test-data.js +214 -0
  584. package/lib-amd/utilities/test-data.js.map +1 -0
  585. package/lib-amd/utilities/utilities.d.ts +411 -0
  586. package/lib-amd/utilities/utilities.js +1085 -0
  587. package/lib-amd/utilities/utilities.js.map +1 -0
  588. package/lib-amd/utilities/vbc-utils.d.ts +2 -0
  589. package/lib-amd/utilities/vbc-utils.js +38 -0
  590. package/lib-amd/utilities/vbc-utils.js.map +1 -0
  591. package/lib-amd/version.d.ts +1 -0
  592. package/lib-amd/version.js +6 -0
  593. package/lib-amd/version.js.map +1 -0
  594. package/lib-commonjs/AreaChart.js.map +1 -1
  595. package/lib-commonjs/CartesianChart.js.map +1 -1
  596. package/lib-commonjs/DonutChart.js.map +1 -1
  597. package/lib-commonjs/GaugeChart.js.map +1 -1
  598. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  599. package/lib-commonjs/HeatMapChart.js.map +1 -1
  600. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  601. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  602. package/lib-commonjs/Legends.js.map +1 -1
  603. package/lib-commonjs/LineChart.js.map +1 -1
  604. package/lib-commonjs/PieChart.js.map +1 -1
  605. package/lib-commonjs/SankeyChart.js.map +1 -1
  606. package/lib-commonjs/Sparkline.js.map +1 -1
  607. package/lib-commonjs/StackedBarChart.js.map +1 -1
  608. package/lib-commonjs/Styling.js.map +1 -1
  609. package/lib-commonjs/TreeChart.js.map +1 -1
  610. package/lib-commonjs/Utilities.js.map +1 -1
  611. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  612. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  613. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  614. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  615. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  616. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  617. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  618. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  619. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  620. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  621. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  622. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  623. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  624. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  625. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  626. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  627. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  628. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  629. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  630. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  631. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  632. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  633. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  634. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  635. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  636. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  637. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  638. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  639. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  640. package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
  641. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  642. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  643. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  644. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  645. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  646. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  647. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  648. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  649. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  650. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  651. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  652. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  653. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  654. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  655. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  656. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  657. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  658. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  659. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  660. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  661. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  662. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  663. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  664. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  665. package/lib-commonjs/components/Legends/index.js.map +1 -1
  666. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  667. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  668. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  669. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  670. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  671. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  672. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  673. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  674. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  675. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  676. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
  677. package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -1
  678. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  679. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  680. package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -1
  681. package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -1
  682. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  683. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  684. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  685. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  686. package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
  687. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  688. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  689. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  690. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  691. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  692. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  693. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  694. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  695. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  696. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  697. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  698. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  699. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  700. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  701. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  702. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  703. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  704. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  705. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  706. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  707. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  708. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  709. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  710. package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
  711. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  712. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  713. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  714. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  715. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  716. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  717. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  718. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  719. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  720. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  721. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  722. package/lib-commonjs/index.js.map +1 -1
  723. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  724. package/lib-commonjs/types/IEventAnnotation.js.map +1 -1
  725. package/lib-commonjs/types/ILegendDataItem.js.map +1 -1
  726. package/lib-commonjs/types/index.js.map +1 -1
  727. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  728. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  729. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  730. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  731. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  732. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  733. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  734. package/lib-commonjs/utilities/colors.js.map +1 -1
  735. package/lib-commonjs/utilities/index.js.map +1 -1
  736. package/lib-commonjs/utilities/locale-util.js.map +1 -1
  737. package/lib-commonjs/utilities/test-data.js.map +1 -1
  738. package/lib-commonjs/utilities/utilities.js.map +1 -1
  739. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  740. package/lib-commonjs/version.js +1 -1
  741. package/lib-commonjs/version.js.map +1 -1
  742. package/package.json +4 -4
  743. package/project.json +1 -1
@@ -0,0 +1,593 @@
1
+ define(["require", "exports", "tslib", "react", "react", "@fluentui/react/lib/Utilities", "@fluentui/react/lib/Callout", "@fluentui/react-focus", "../../utilities/locale-util", "../../utilities/index", "../Legends/index", "../../utilities/SVGTooltipText"], function (require, exports, tslib_1, React, react_1, Utilities_1, Callout_1, react_focus_1, locale_util_1, index_1, index_2, SVGTooltipText_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CartesianChartBase = void 0;
5
+ var getClassNames = (0, Utilities_1.classNamesFunction)();
6
+ var ChartHoverCard = (0, react_1.lazy)(function () {
7
+ return new Promise(function (resolve_1, reject_1) { require(['../../utilities/ChartHoverCard/ChartHoverCard'], resolve_1, reject_1); }).then(function (module) { return ({ default: module.ChartHoverCard }); });
8
+ });
9
+ /**
10
+ * Cartesian chart used for
11
+ * 1.draw X and Y axis of the chart
12
+ * 2.Callout
13
+ * 3.Fit parent Continer
14
+ */
15
+ var CartesianChartBase = /** @class */ (function (_super) {
16
+ tslib_1.__extends(CartesianChartBase, _super);
17
+ function CartesianChartBase(props) {
18
+ var _this = this;
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
20
+ _this = _super.call(this, props) || this;
21
+ _this.minLegendContainerHeight = 32;
22
+ _this._isRtl = (0, Utilities_1.getRTL)();
23
+ _this._isFirstRender = true;
24
+ _this.isIntegralDataset = true;
25
+ // TO DO: Write a common functional component for Multi value callout and divide sub count method
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
+ _this._multiValueCallout = function (calloutProps) {
28
+ var yValueHoverSubCountsExists = _this._yValueHoverSubCountsExists(calloutProps.YValueHover);
29
+ return (React.createElement("div", { className: _this._classNames.calloutContentRoot },
30
+ React.createElement("div", { className: _this._classNames.calloutDateTimeContainer, style: yValueHoverSubCountsExists ? { marginBottom: '11px' } : {} },
31
+ React.createElement("div", tslib_1.__assign({ className: _this._classNames.calloutContentX }, (0, index_1.getAccessibleDataObject)(calloutProps.xAxisCalloutAccessibilityData, 'text', false)), (0, locale_util_1.convertToLocaleString)(calloutProps.hoverXValue, _this.props.culture))),
32
+ React.createElement("div", { className: _this._classNames.calloutInfoContainer, style: yValueHoverSubCountsExists ? { display: 'flex' } : {} },
33
+ calloutProps.YValueHover &&
34
+ calloutProps.YValueHover.map(function (yValue, index, yValues) {
35
+ var isLast = index + 1 === yValues.length;
36
+ var _a = yValue.shouldDrawBorderBottom, shouldDrawBorderBottom = _a === void 0 ? false : _a;
37
+ return (React.createElement("div", tslib_1.__assign({}, (0, index_1.getAccessibleDataObject)(yValue.callOutAccessibilityData, 'text', false), { key: "callout-content-".concat(index), style: yValueHoverSubCountsExists
38
+ ? tslib_1.__assign({ display: 'inline-block' }, (shouldDrawBorderBottom && {
39
+ borderBottom: "1px solid ".concat(_this.props.theme.semanticColors.menuDivider),
40
+ paddingBottom: '10px',
41
+ })) : tslib_1.__assign({}, (shouldDrawBorderBottom && {
42
+ borderBottom: "1px solid ".concat(_this.props.theme.semanticColors.menuDivider),
43
+ paddingBottom: '10px',
44
+ })) }), _this._getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)));
45
+ }),
46
+ !!calloutProps.descriptionMessage && (React.createElement("div", { className: _this._classNames.descriptionMessage }, calloutProps.descriptionMessage)))));
47
+ };
48
+ // Call back to the chart.
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
+ _this._getData = function (xScale, yScale) {
51
+ _this.props.getGraphData &&
52
+ _this.props.getGraphData(xScale, yScale, _this.state.containerHeight - _this.state._removalValueForTextTuncate, _this.state.containerWidth, _this.xAxisElement, _this.yAxisElement);
53
+ };
54
+ _this._onChartLeave = function () {
55
+ _this.props.onChartMouseLeave && _this.props.onChartMouseLeave();
56
+ };
57
+ _this._calculateChartMinWidth = function () {
58
+ var labelWidth = 10; // Total padding on the left and right sides of the label
59
+ // Case: rotated labels
60
+ if (!_this.props.wrapXAxisLables &&
61
+ _this.props.rotateXAxisLables &&
62
+ _this.props.xAxisType === index_1.XAxisTypes.StringAxis) {
63
+ var longestLabelWidth = (0, index_1.calculateLongestLabelWidth)(_this._tickValues, ".".concat(_this._classNames.xAxis, " text"));
64
+ labelWidth += Math.ceil(longestLabelWidth * Math.cos(Math.PI / 4));
65
+ }
66
+ // Case: truncated labels
67
+ else if (_this.props.showXAxisLablesTooltip) {
68
+ var tickValues = _this._tickValues.map(function (val) {
69
+ var numChars = _this.props.noOfCharsToTruncate || 4;
70
+ return val.toString().length > numChars ? "".concat(val.toString().slice(0, numChars), "...") : val;
71
+ });
72
+ var longestLabelWidth = (0, index_1.calculateLongestLabelWidth)(tickValues, ".".concat(_this._classNames.xAxis, " text"));
73
+ labelWidth += Math.ceil(longestLabelWidth);
74
+ }
75
+ // Case: wrapped labels
76
+ else if (_this.props.wrapXAxisLables) {
77
+ var words_1 = [];
78
+ _this._tickValues.forEach(function (val) {
79
+ words_1.push.apply(words_1, val.toString().split(/\s+/));
80
+ });
81
+ var longestLabelWidth = (0, index_1.calculateLongestLabelWidth)(words_1, ".".concat(_this._classNames.xAxis, " text"));
82
+ labelWidth += Math.max(Math.ceil(longestLabelWidth), 10);
83
+ }
84
+ // Default case
85
+ else {
86
+ var longestLabelWidth = (0, index_1.calculateLongestLabelWidth)(_this._tickValues, ".".concat(_this._classNames.xAxis, " text"));
87
+ labelWidth += Math.ceil(longestLabelWidth);
88
+ }
89
+ var minChartWidth = _this.margins.left + _this.margins.right + labelWidth * (_this._tickValues.length - 1);
90
+ if ([index_1.ChartTypes.GroupedVerticalBarChart, index_1.ChartTypes.VerticalBarChart, index_1.ChartTypes.VerticalStackedBarChart].includes(_this.props.chartType)) {
91
+ var minDomainMargin = 8;
92
+ minChartWidth += minDomainMargin * 2;
93
+ }
94
+ return minChartWidth;
95
+ };
96
+ _this._getChartDescription = function () {
97
+ return ((_this.props.chartTitle || 'Chart. ') +
98
+ _this._getAxisTitle('X', _this.props.xAxisTitle, _this.props.xAxisType) +
99
+ _this._getAxisTitle('Y', _this.props.yAxisTitle, _this.props.yAxisType || index_1.YAxisType.NumericAxis) +
100
+ (_this.props.secondaryYScaleOptions
101
+ ? _this._getAxisTitle('secondary Y', _this.props.secondaryYAxistitle, index_1.YAxisType.NumericAxis)
102
+ : ''));
103
+ };
104
+ _this._getAxisTitle = function (axisLabel, axisTitle, axisType) {
105
+ return ("The ".concat(axisLabel, " axis displays ") +
106
+ (axisTitle ||
107
+ (axisType === index_1.XAxisTypes.StringAxis || axisType === index_1.YAxisType.StringAxis
108
+ ? 'categories'
109
+ : axisType === index_1.XAxisTypes.DateAxis || axisType === index_1.YAxisType.DateAxis
110
+ ? 'time'
111
+ : 'values')) +
112
+ '. ');
113
+ };
114
+ _this.state = {
115
+ containerHeight: 0,
116
+ containerWidth: 0,
117
+ _width: _this.props.width || 600,
118
+ _height: _this.props.height || 350,
119
+ _removalValueForTextTuncate: 0,
120
+ isRemoveValCalculated: true,
121
+ startFromX: 0,
122
+ };
123
+ _this.idForGraph = (0, Utilities_1.getId)('chart_');
124
+ _this.titleMargin = 8;
125
+ _this.idForDefaultTabbableElement = (0, Utilities_1.getId)('defaultTabbableElement_');
126
+ /**
127
+ * In RTL mode, Only graph will be rendered left/right. We need to provide left and right margins manually.
128
+ * So that, in RTL, left margins becomes right margins and viceversa.
129
+ * As graph needs to be drawn perfecty, these values consider as default values.
130
+ * Same margins using for all other cartesian charts. Can be accessible through 'getMargins' call back method.
131
+ */
132
+ _this.margins = {
133
+ top: (_b = (_a = _this.props.margins) === null || _a === void 0 ? void 0 : _a.top) !== null && _b !== void 0 ? _b : 20,
134
+ bottom: (_d = (_c = _this.props.margins) === null || _c === void 0 ? void 0 : _c.bottom) !== null && _d !== void 0 ? _d : 35,
135
+ right: _this._isRtl
136
+ ? (_f = (_e = _this.props.margins) === null || _e === void 0 ? void 0 : _e.left) !== null && _f !== void 0 ? _f : 40
137
+ : ((_h = (_g = _this.props.margins) === null || _g === void 0 ? void 0 : _g.right) !== null && _h !== void 0 ? _h : (_j = _this.props) === null || _j === void 0 ? void 0 : _j.secondaryYScaleOptions)
138
+ ? 40
139
+ : 20,
140
+ left: _this._isRtl
141
+ ? ((_l = (_k = _this.props.margins) === null || _k === void 0 ? void 0 : _k.right) !== null && _l !== void 0 ? _l : (_m = _this.props) === null || _m === void 0 ? void 0 : _m.secondaryYScaleOptions)
142
+ ? 40
143
+ : 20
144
+ : (_p = (_o = _this.props.margins) === null || _o === void 0 ? void 0 : _o.left) !== null && _p !== void 0 ? _p : 40,
145
+ };
146
+ if (_this.props.xAxisTitle !== undefined && _this.props.xAxisTitle !== '') {
147
+ _this.margins.bottom = (_r = (_q = _this.props.margins) === null || _q === void 0 ? void 0 : _q.bottom) !== null && _r !== void 0 ? _r : 55;
148
+ }
149
+ if (_this.props.yAxisTitle !== undefined && _this.props.yAxisTitle !== '') {
150
+ _this.margins.left = _this._isRtl
151
+ ? ((_t = (_s = _this.props.margins) === null || _s === void 0 ? void 0 : _s.right) !== null && _t !== void 0 ? _t : (_u = _this.props) === null || _u === void 0 ? void 0 : _u.secondaryYAxistitle)
152
+ ? 60
153
+ : 40
154
+ : (_w = (_v = _this.props.margins) === null || _v === void 0 ? void 0 : _v.left) !== null && _w !== void 0 ? _w : 60;
155
+ _this.margins.right = _this._isRtl
156
+ ? (_y = (_x = _this.props.margins) === null || _x === void 0 ? void 0 : _x.left) !== null && _y !== void 0 ? _y : 60
157
+ : ((_0 = (_z = _this.props.margins) === null || _z === void 0 ? void 0 : _z.right) !== null && _0 !== void 0 ? _0 : (_1 = _this.props) === null || _1 === void 0 ? void 0 : _1.secondaryYAxistitle)
158
+ ? 60
159
+ : 40;
160
+ }
161
+ return _this;
162
+ }
163
+ CartesianChartBase.prototype.componentDidMount = function () {
164
+ this._fitParentContainer();
165
+ if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
166
+ this.props.showYAxisLables &&
167
+ this.yAxisElement) {
168
+ var maxYAxisLabelLength = (0, index_1.calculateLongestLabelWidth)(this.props.points.map(function (point) { return point.y; }), ".".concat(this._classNames.yAxis, " text"));
169
+ if (this.state.startFromX !== maxYAxisLabelLength) {
170
+ this.setState({
171
+ startFromX: maxYAxisLabelLength,
172
+ });
173
+ }
174
+ }
175
+ else if (this.state.startFromX !== 0) {
176
+ this.setState({
177
+ startFromX: 0,
178
+ });
179
+ }
180
+ this.isIntegralDataset = !this.props.points.some(function (point) {
181
+ return point.y % 1 !== 0;
182
+ });
183
+ };
184
+ CartesianChartBase.prototype.componentWillUnmount = function () {
185
+ cancelAnimationFrame(this._reqID);
186
+ };
187
+ CartesianChartBase.prototype.componentDidUpdate = function (prevProps) {
188
+ if (prevProps.height !== this.props.height || prevProps.width !== this.props.width) {
189
+ this._fitParentContainer();
190
+ }
191
+ if (!this.props.wrapXAxisLables &&
192
+ this.props.rotateXAxisLables &&
193
+ this.props.xAxisType === index_1.XAxisTypes.StringAxis) {
194
+ var rotateLabelProps = {
195
+ node: this.xAxisElement,
196
+ xAxis: this._xScale,
197
+ };
198
+ var rotatedHeight = (0, index_1.rotateXAxisLabels)(rotateLabelProps);
199
+ if (this.state.isRemoveValCalculated &&
200
+ this.state._removalValueForTextTuncate !== rotatedHeight + this.margins.bottom &&
201
+ rotatedHeight > 0) {
202
+ this.setState({
203
+ _removalValueForTextTuncate: rotatedHeight + this.margins.bottom,
204
+ isRemoveValCalculated: false,
205
+ });
206
+ }
207
+ }
208
+ if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
209
+ this.props.showYAxisLables &&
210
+ this.yAxisElement) {
211
+ var maxYAxisLabelLength = (0, index_1.calculateLongestLabelWidth)(this.props.points.map(function (point) { return point.y; }), ".".concat(this._classNames.yAxis, " text"));
212
+ if (this.state.startFromX !== maxYAxisLabelLength) {
213
+ this.setState({
214
+ startFromX: maxYAxisLabelLength,
215
+ });
216
+ }
217
+ }
218
+ else if (this.state.startFromX !== 0) {
219
+ this.setState({
220
+ startFromX: 0,
221
+ });
222
+ }
223
+ if (prevProps.points !== this.props.points) {
224
+ this.isIntegralDataset = !this.props.points.some(function (point) {
225
+ return point.y % 1 !== 0;
226
+ });
227
+ }
228
+ };
229
+ CartesianChartBase.prototype.render = function () {
230
+ var _a, _b, _c, _d;
231
+ var _this = this;
232
+ var _e, _f, _g, _h, _j, _k;
233
+ var _l = this.props, calloutProps = _l.calloutProps, points = _l.points, chartType = _l.chartType, chartHoverProps = _l.chartHoverProps, svgFocusZoneProps = _l.svgFocusZoneProps, svgProps = _l.svgProps, culture = _l.culture, dateLocalizeOptions = _l.dateLocalizeOptions, timeFormatLocale = _l.timeFormatLocale, customDateTimeFormatter = _l.customDateTimeFormatter;
234
+ if (this.props.parentRef) {
235
+ this._fitParentContainer();
236
+ }
237
+ var margin = tslib_1.__assign({}, this.margins);
238
+ if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis) {
239
+ if (!this._isRtl) {
240
+ margin.left += this.state.startFromX;
241
+ }
242
+ else {
243
+ margin.right += this.state.startFromX;
244
+ }
245
+ }
246
+ // Callback for margins to the chart
247
+ this.props.getmargins && this.props.getmargins(margin);
248
+ var callout = null;
249
+ var children = null;
250
+ if ((this.props.enableFirstRenderOptimization && this.chartContainer) ||
251
+ !this.props.enableFirstRenderOptimization) {
252
+ this._isFirstRender = false;
253
+ var XAxisParams = {
254
+ domainNRangeValues: this.props.getDomainNRangeValues(points, this.props.getDomainMargins ? this.props.getDomainMargins(this.state.containerWidth) : this.margins, this.state.containerWidth, chartType, this._isRtl, this.props.xAxisType, this.props.barwidth, this.props.tickValues,
255
+ // This is only used for Horizontal Bar Chart with Axis for y as string axis
256
+ this.state.startFromX),
257
+ containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate,
258
+ margins: this.margins,
259
+ xAxisElement: this.xAxisElement,
260
+ showRoundOffXTickValues: true,
261
+ xAxisCount: this.props.xAxisTickCount,
262
+ xAxistickSize: this.props.xAxistickSize,
263
+ tickPadding: this.props.tickPadding || this.props.showXAxisLablesTooltip ? 5 : 10,
264
+ xAxisPadding: this.props.xAxisPadding,
265
+ xAxisInnerPadding: this.props.xAxisInnerPadding,
266
+ xAxisOuterPadding: this.props.xAxisOuterPadding,
267
+ };
268
+ var YAxisParams = {
269
+ margins: this.margins,
270
+ containerWidth: this.state.containerWidth,
271
+ containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate,
272
+ yAxisElement: this.yAxisElement,
273
+ yAxisTickFormat: this.props.yAxisTickFormat,
274
+ yAxisTickCount: this.props.yAxisTickCount,
275
+ yMinValue: this.props.yMinValue || 0,
276
+ yMaxValue: this.props.yMaxValue || 0,
277
+ tickPadding: 10,
278
+ maxOfYVal: this.props.maxOfYVal,
279
+ yMinMaxValues: this.props.getMinMaxOfYAxis(points, this.props.yAxisType),
280
+ // please note these padding default values must be consistent in here
281
+ // and the parent chart(HBWA/Vertical etc..) for more details refer example
282
+ // http://using-d3js.com/04_07_ordinal_scales.html
283
+ yAxisPadding: this.props.yAxisPadding || 0,
284
+ };
285
+ /**
286
+ * These scales used for 2 purposes.
287
+ * 1. To create x and y axis
288
+ * 2. To draw the graph.
289
+ * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.
290
+ */
291
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
292
+ var xScale = void 0;
293
+ var tickValues = void 0;
294
+ switch (this.props.xAxisType) {
295
+ case index_1.XAxisTypes.NumericAxis:
296
+ (_a = (0, index_1.createNumericXAxis)(XAxisParams, this.props.chartType, culture), xScale = _a.xScale, tickValues = _a.tickValues);
297
+ break;
298
+ case index_1.XAxisTypes.DateAxis:
299
+ (_b = (0, index_1.createDateXAxis)(XAxisParams, this.props.tickParams, culture, dateLocalizeOptions, timeFormatLocale, customDateTimeFormatter, this.props.useUTC), xScale = _b.xScale, tickValues = _b.tickValues);
300
+ break;
301
+ case index_1.XAxisTypes.StringAxis:
302
+ (_c = (0, index_1.createStringXAxis)(XAxisParams, this.props.tickParams, this.props.datasetForXAxisDomain, culture), xScale = _c.xScale, tickValues = _c.tickValues);
303
+ break;
304
+ default:
305
+ (_d = (0, index_1.createNumericXAxis)(XAxisParams, this.props.chartType, culture), xScale = _d.xScale, tickValues = _d.tickValues);
306
+ }
307
+ this._xScale = xScale;
308
+ this._tickValues = tickValues;
309
+ /*
310
+ * To enable wrapping of x axis tick values or to display complete x axis tick values,
311
+ * we need to calculate how much space it needed to render the text.
312
+ * No need to re-calculate every time the chart renders and same time need to get an update. So using setState.
313
+ * Required space will be calculated first time chart rendering and if any width/height of chart updated.
314
+ * */
315
+ if (this.props.wrapXAxisLables || this.props.showXAxisLablesTooltip) {
316
+ var wrapLabelProps = {
317
+ node: this.xAxisElement,
318
+ xAxis: xScale,
319
+ showXAxisLablesTooltip: this.props.showXAxisLablesTooltip || false,
320
+ noOfCharsToTruncate: this.props.noOfCharsToTruncate || 4,
321
+ };
322
+ var temp = xScale && (0, index_1.createWrapOfXLabels)(wrapLabelProps);
323
+ // this value need to be updated for draw graph updated. So instead of using private value, using set state.
324
+ if (this.state.isRemoveValCalculated && this.state._removalValueForTextTuncate !== temp) {
325
+ this.setState({ _removalValueForTextTuncate: temp, isRemoveValCalculated: false });
326
+ }
327
+ }
328
+ /**
329
+ * These scales used for 2 purposes.
330
+ * 1. To create x and y axis
331
+ * 2. To draw the graph.
332
+ * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.
333
+ */
334
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
335
+ var yScale = void 0;
336
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
337
+ var yScaleSecondary = void 0;
338
+ var axisData = { yAxisDomainValues: [] };
339
+ if (this.props.yAxisType && this.props.yAxisType === index_1.YAxisType.StringAxis) {
340
+ yScale = this.props.createStringYAxis(YAxisParams, this.props.stringDatasetForYAxisDomain, this._isRtl, this.props.barwidth);
341
+ }
342
+ else {
343
+ if ((_e = this.props) === null || _e === void 0 ? void 0 : _e.secondaryYScaleOptions) {
344
+ var YAxisParamsSecondary = {
345
+ margins: this.margins,
346
+ containerWidth: this.state.containerWidth,
347
+ containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate,
348
+ yAxisElement: this.yAxisElementSecondary,
349
+ yAxisTickFormat: this.props.yAxisTickFormat,
350
+ yAxisTickCount: this.props.yAxisTickCount,
351
+ yMinValue: ((_f = this.props.secondaryYScaleOptions) === null || _f === void 0 ? void 0 : _f.yMinValue) || 0,
352
+ yMaxValue: (_h = (_g = this.props.secondaryYScaleOptions) === null || _g === void 0 ? void 0 : _g.yMaxValue) !== null && _h !== void 0 ? _h : 100,
353
+ tickPadding: 10,
354
+ maxOfYVal: (_k = (_j = this.props.secondaryYScaleOptions) === null || _j === void 0 ? void 0 : _j.yMaxValue) !== null && _k !== void 0 ? _k : 100,
355
+ yMinMaxValues: this.props.getMinMaxOfYAxis(points, this.props.yAxisType),
356
+ yAxisPadding: this.props.yAxisPadding,
357
+ };
358
+ yScaleSecondary = this.props.createYAxis(YAxisParamsSecondary, this._isRtl, axisData, this.isIntegralDataset);
359
+ }
360
+ yScale = this.props.createYAxis(YAxisParams, this._isRtl, axisData, this.isIntegralDataset);
361
+ }
362
+ /*
363
+ * To create y axis tick values by if specified
364
+ truncating the rest of the text and showing elipsis
365
+ or showing the whole string,
366
+ * */
367
+ this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
368
+ yScale &&
369
+ (0, index_1.createYAxisLabels)(this.yAxisElement, yScale, this.props.noOfCharsToTruncate || 4, this.props.showYAxisLablesTooltip || false, this._isRtl);
370
+ this.props.getAxisData && this.props.getAxisData(axisData);
371
+ // Callback function for chart, returns axis
372
+ this._getData(xScale, yScale);
373
+ children = this.props.children(tslib_1.__assign(tslib_1.__assign({}, this.state), { xScale: xScale, yScale: yScale, yScaleSecondary: yScaleSecondary }));
374
+ if (!this.props.hideTooltip && calloutProps.isCalloutVisible) {
375
+ callout = this._generateCallout(calloutProps, chartHoverProps);
376
+ }
377
+ }
378
+ this._classNames = getClassNames(this.props.styles, {
379
+ theme: this.props.theme,
380
+ width: this.state._width,
381
+ height: this.state._height,
382
+ className: this.props.className,
383
+ isRtl: this._isRtl,
384
+ });
385
+ var svgDimensions = {
386
+ width: this.state.containerWidth,
387
+ height: this.state.containerHeight,
388
+ };
389
+ var focusDirection;
390
+ if (this.props.focusZoneDirection === react_focus_1.FocusZoneDirection.vertical) {
391
+ focusDirection = this.props.focusZoneDirection;
392
+ }
393
+ else if (this.props.focusZoneDirection) {
394
+ focusDirection = this.props.focusZoneDirection;
395
+ }
396
+ else {
397
+ focusDirection = react_focus_1.FocusZoneDirection.horizontal;
398
+ }
399
+ var xAxisTitleMaximumAllowedWidth = svgDimensions.width - this.margins.left - this.margins.right - this.state.startFromX;
400
+ var yAxisTitleMaximumAllowedHeight = svgDimensions.height -
401
+ this.margins.bottom -
402
+ this.margins.top -
403
+ this.state._removalValueForTextTuncate -
404
+ this.titleMargin;
405
+ /**
406
+ * We have use the {@link defaultTabbableElement } to fix
407
+ * the Focus not landing on chart while tabbing, instead goes to legend.
408
+ * This issue is observed in Area, line chart after performance optimization done in the PR {@link https://github.com/microsoft/fluentui/pull/27721 }
409
+ * This issue is observed in Bar charts after the changes done by FocusZone team in the PR: {@link https://github.com/microsoft/fluentui/pull/24175 }
410
+ * The issue in Bar Charts(VB and VSB) is due to a {@link FocusZone } update where previously an event listener was
411
+ * attached on keydown to the window, so that whenever the tab key is pressed all outer FocusZone's
412
+ * tab-indexes are updated (an outer FocusZone is a FocusZone that is not within another one).
413
+ * But now after the above PR : they are attaching the
414
+ * listeners to the FocusZone elements instead of the window. So in the first render cycle in Bar charts
415
+ * bars are not created as in the first render cycle the size of the chart container is not known( or is 0)
416
+ * which creates bars of height 0 so instead we do not create any bars and instead return empty fragments.
417
+ *
418
+ * We have tried 2 Approaches to fix the issue:
419
+ * 1. Using the {@link elementRef} property of FocusZone where we dispatch event for tab keydown
420
+ * after the second render cycle which triggers an update of the tab index in FocusZone.
421
+ * But this is a hacky solution and not a proper fix and also elementRef is deprecated.
422
+ * 2. Using the default tabbable element to fix the issue.
423
+ */
424
+ return (React.createElement("div", { id: this.idForGraph, className: this._classNames.root, ref: function (rootElem) { return (_this.chartContainer = rootElem); }, onMouseLeave: this._onChartLeave },
425
+ !this._isFirstRender && React.createElement("div", { id: this.idForDefaultTabbableElement }),
426
+ React.createElement(react_focus_1.FocusZone, tslib_1.__assign({ direction: focusDirection, className: this._classNames.chartWrapper, defaultTabbableElement: "#".concat(this.idForDefaultTabbableElement) }, svgFocusZoneProps),
427
+ this._isFirstRender && React.createElement("div", { id: this.idForDefaultTabbableElement }),
428
+ React.createElement("svg", tslib_1.__assign({ width: svgDimensions.width, height: svgDimensions.height, role: "region", "aria-label": this._getChartDescription(), style: { display: 'block' } }, svgProps),
429
+ React.createElement("g", { ref: function (e) {
430
+ _this.xAxisElement = e;
431
+ }, id: "xAxisGElement".concat(this.idForGraph),
432
+ // To add wrap of x axis lables feature, need to remove word height from svg height.
433
+ transform: "translate(0, ".concat(svgDimensions.height - this.margins.bottom - this.state._removalValueForTextTuncate, ")"), className: this._classNames.xAxis }),
434
+ this.props.xAxisTitle !== undefined && this.props.xAxisTitle !== '' && (React.createElement(SVGTooltipText_1.SVGTooltipText, { content: this.props.xAxisTitle, textProps: {
435
+ x: this.margins.left + this.state.startFromX + xAxisTitleMaximumAllowedWidth / 2,
436
+ y: svgDimensions.height - this.titleMargin,
437
+ className: this._classNames.axisTitle,
438
+ textAnchor: 'middle',
439
+ 'aria-hidden': true,
440
+ }, maxWidth: xAxisTitleMaximumAllowedWidth, wrapContent: index_1.wrapContent })),
441
+ React.createElement("g", { ref: function (e) {
442
+ _this.yAxisElement = e;
443
+ }, id: "yAxisGElement".concat(this.idForGraph), transform: "translate(".concat(this._isRtl
444
+ ? svgDimensions.width - this.margins.right - this.state.startFromX
445
+ : this.margins.left + this.state.startFromX, ", 0)"), className: this._classNames.yAxis }),
446
+ this.props.secondaryYScaleOptions && (React.createElement("g", null,
447
+ React.createElement("g", { ref: function (e) {
448
+ _this.yAxisElementSecondary = e;
449
+ }, id: "yAxisGElementSecondary".concat(this.idForGraph), transform: "translate(".concat(this._isRtl ? this.margins.left : svgDimensions.width - this.margins.right, ", 0)"), className: this._classNames.yAxis }),
450
+ this.props.secondaryYAxistitle !== undefined && this.props.secondaryYAxistitle !== '' && (React.createElement(SVGTooltipText_1.SVGTooltipText, { content: this.props.secondaryYAxistitle, textProps: {
451
+ x: (yAxisTitleMaximumAllowedHeight - this.margins.bottom) / 2 +
452
+ this.state._removalValueForTextTuncate,
453
+ y: this._isRtl
454
+ ? this.state.startFromX - this.titleMargin
455
+ : svgDimensions.width - this.margins.right,
456
+ textAnchor: 'middle',
457
+ transform: "translate(".concat(this._isRtl
458
+ ? this.margins.right / 2 - this.titleMargin
459
+ : this.margins.right / 2 + this.titleMargin, ",\n ").concat(svgDimensions.height - this.margins.bottom - this.margins.top - this.titleMargin, ")rotate(-90)"),
460
+ className: this._classNames.axisTitle,
461
+ 'aria-hidden': true,
462
+ }, maxWidth: yAxisTitleMaximumAllowedHeight, wrapContent: index_1.wrapContent })))),
463
+ children,
464
+ this.props.yAxisTitle !== undefined && this.props.yAxisTitle !== '' && (React.createElement(SVGTooltipText_1.SVGTooltipText, { content: this.props.yAxisTitle, textProps: {
465
+ x: (yAxisTitleMaximumAllowedHeight - this.margins.bottom) / 2 +
466
+ this.state._removalValueForTextTuncate,
467
+ y: this._isRtl
468
+ ? svgDimensions.width - this.margins.right / 2 + this.titleMargin
469
+ : this.margins.left / 2 + this.state.startFromX - this.titleMargin,
470
+ textAnchor: 'middle',
471
+ transform: "translate(0,\n ".concat(svgDimensions.height - this.margins.bottom - this.margins.top - this.titleMargin, ")rotate(-90)"),
472
+ className: this._classNames.axisTitle,
473
+ 'aria-hidden': true,
474
+ }, maxWidth: yAxisTitleMaximumAllowedHeight, wrapContent: index_1.wrapContent })))),
475
+ !this.props.hideLegend && (React.createElement("div", { ref: function (e) { return (_this.legendContainer = e); }, className: this._classNames.legendContainer }, this.props.legendBars)),
476
+ callout && React.createElement(React.Suspense, { fallback: React.createElement("div", null, "Loading...") }, callout)));
477
+ };
478
+ /**
479
+ * Dedicated function to return the Callout JSX Element , which can further be used to only call this when
480
+ * only the calloutprops and charthover props changes.
481
+ * @param calloutProps
482
+ * @param chartHoverProps
483
+ * @returns
484
+ */
485
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
486
+ CartesianChartBase.prototype._generateCallout = function (calloutProps, chartHoverProps) {
487
+ return (React.createElement(Callout_1.Callout, tslib_1.__assign({ hidden: !(!this.props.hideTooltip && calloutProps.isCalloutVisible),
488
+ /** Keep the callout updated with details of focused/hovered chart element */
489
+ shouldUpdateWhenHidden: true }, calloutProps),
490
+ this.props.customizedCallout && this.props.customizedCallout,
491
+ !this.props.customizedCallout && this.props.isCalloutForStack && this._multiValueCallout(calloutProps),
492
+ !this.props.customizedCallout && !this.props.isCalloutForStack && (React.createElement(ChartHoverCard, tslib_1.__assign({ XValue: calloutProps.XValue, Legend: calloutProps.legend, YValue: calloutProps.YValue, color: calloutProps.color, culture: this.props.culture }, chartHoverProps)))));
493
+ };
494
+ CartesianChartBase.prototype._yValueHoverSubCountsExists = function (yValueHover) {
495
+ if (yValueHover) {
496
+ return yValueHover.some(function (yValue) { return yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string'; });
497
+ }
498
+ return false;
499
+ };
500
+ CartesianChartBase.prototype._getCalloutContent = function (xValue, index, yValueHoverSubCountsExists, isLast) {
501
+ var _a;
502
+ var marginStyle = isLast ? {} : { marginRight: '16px' };
503
+ var toDrawShape = xValue.index !== undefined && xValue.index !== -1;
504
+ var _classNames = getClassNames(this.props.styles, {
505
+ theme: this.props.theme,
506
+ width: this.state._width,
507
+ height: this.state._height,
508
+ className: this.props.className,
509
+ isRtl: this._isRtl,
510
+ lineColor: xValue.color,
511
+ toDrawShape: toDrawShape,
512
+ });
513
+ var culture = this.props.culture;
514
+ var yValue = (0, locale_util_1.convertToLocaleString)(xValue.y, culture);
515
+ if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {
516
+ return (React.createElement("div", { style: yValueHoverSubCountsExists ? marginStyle : {} },
517
+ yValueHoverSubCountsExists && (React.createElement("div", { className: "ms-fontWeight-semibold", style: { fontSize: '12pt' } },
518
+ xValue.legend,
519
+ " (",
520
+ yValue,
521
+ ")")),
522
+ React.createElement("div", { id: "".concat(index, "_").concat(xValue.y), className: _classNames.calloutBlockContainer },
523
+ toDrawShape && (React.createElement(index_2.Shape, { svgProps: {
524
+ className: _classNames.shapeStyles,
525
+ }, pathProps: { fill: xValue.color }, shape: index_1.Points[xValue.index % Object.keys(index_1.pointTypes).length] })),
526
+ React.createElement("div", null,
527
+ React.createElement("div", { className: _classNames.calloutlegendText },
528
+ " ",
529
+ xValue.legend),
530
+ React.createElement("div", { className: _classNames.calloutContentY }, (0, locale_util_1.convertToLocaleString)(xValue.yAxisCalloutData ? xValue.yAxisCalloutData : (_a = xValue.y) !== null && _a !== void 0 ? _a : xValue.data, culture))))));
531
+ }
532
+ else {
533
+ var subcounts_1 = xValue.yAxisCalloutData;
534
+ return (React.createElement("div", { style: marginStyle },
535
+ React.createElement("div", { className: "ms-fontWeight-semibold", style: { fontSize: '12pt' } },
536
+ xValue.legend,
537
+ " (",
538
+ yValue,
539
+ ")"),
540
+ Object.keys(subcounts_1).map(function (subcountName) {
541
+ return (React.createElement("div", { key: subcountName, className: _classNames.calloutBlockContainer },
542
+ React.createElement("div", { className: _classNames.calloutlegendText },
543
+ " ",
544
+ (0, locale_util_1.convertToLocaleString)(subcountName, culture)),
545
+ React.createElement("div", { className: _classNames.calloutContentY }, (0, locale_util_1.convertToLocaleString)(subcounts_1[subcountName], culture))));
546
+ })));
547
+ }
548
+ };
549
+ /**
550
+ * When screen resizes, along with screen, chart also auto adjusted.
551
+ * This method used to adjust height and width of the charts.
552
+ */
553
+ CartesianChartBase.prototype._fitParentContainer = function () {
554
+ var _this = this;
555
+ var _a = this.state, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight;
556
+ this._reqID = requestAnimationFrame(function () {
557
+ var legendContainerHeight;
558
+ if (_this.props.hideLegend) {
559
+ // If there is no legend, need not to allocate some space from total chart space.
560
+ legendContainerHeight = 0;
561
+ }
562
+ else {
563
+ var legendContainerComputedStyles = _this.legendContainer && getComputedStyle(_this.legendContainer);
564
+ legendContainerHeight =
565
+ ((_this.legendContainer && _this.legendContainer.getBoundingClientRect().height) ||
566
+ _this.minLegendContainerHeight) +
567
+ parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginTop) || '0') +
568
+ parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginBottom) || '0');
569
+ }
570
+ if (_this.props.parentRef || _this.chartContainer) {
571
+ var container = _this.props.parentRef ? _this.props.parentRef : _this.chartContainer;
572
+ var currentContainerWidth = _this.props.enableReflow && !_this._isFirstRender
573
+ ? Math.max(container.getBoundingClientRect().width, _this._calculateChartMinWidth())
574
+ : container.getBoundingClientRect().width;
575
+ var currentContainerHeight = container.getBoundingClientRect().height > legendContainerHeight
576
+ ? container.getBoundingClientRect().height
577
+ : 350;
578
+ var shouldResize = containerWidth !== currentContainerWidth ||
579
+ containerHeight !== currentContainerHeight - legendContainerHeight;
580
+ if (shouldResize) {
581
+ _this.setState({
582
+ containerWidth: currentContainerWidth,
583
+ containerHeight: currentContainerHeight - legendContainerHeight,
584
+ });
585
+ }
586
+ }
587
+ });
588
+ };
589
+ return CartesianChartBase;
590
+ }(React.Component));
591
+ exports.CartesianChartBase = CartesianChartBase;
592
+ });
593
+ //# sourceMappingURL=CartesianChart.base.js.map