@fluentui/react-charting 5.16.33 → 5.16.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. package/CHANGELOG.json +85 -1
  2. package/CHANGELOG.md +29 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/AreaChart/AreaChart.base.js +13 -13
  6. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  7. package/lib/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  8. package/lib/components/CommonComponents/CartesianChart.base.js +44 -13
  9. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  10. package/lib/components/CommonComponents/CartesianChart.styles.js +2 -2
  11. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  13. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  14. package/lib/components/DonutChart/Arc/Arc.js +1 -1
  15. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  16. package/lib/components/DonutChart/DonutChart.base.js +1 -1
  17. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  18. package/lib/components/DonutChart/DonutChart.styles.js +1 -1
  19. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  20. package/lib/components/DonutChart/Pie/Pie.js +1 -1
  21. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  22. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -4
  23. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  24. package/lib/components/HeatMapChart/HeatMapChart.base.js +13 -13
  25. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  26. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -5
  27. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  28. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  30. package/lib/components/Legends/Legends.base.js +4 -4
  31. package/lib/components/Legends/Legends.base.js.map +1 -1
  32. package/lib/components/Legends/Legends.styles.js +3 -3
  33. package/lib/components/Legends/Legends.styles.js.map +1 -1
  34. package/lib/components/Legends/shape.js +10 -10
  35. package/lib/components/Legends/shape.js.map +1 -1
  36. package/lib/components/LineChart/LineChart.base.js +41 -41
  37. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  38. package/lib/components/PieChart/Arc/Arc.js +1 -1
  39. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  40. package/lib/components/PieChart/Pie/Pie.js +2 -2
  41. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  42. package/lib/components/SankeyChart/SankeyChart.base.js +6 -6
  43. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  44. package/lib/components/Sparkline/Sparkline.base.js +1 -1
  45. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  46. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +4 -4
  47. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  48. package/lib/components/StackedBarChart/StackedBarChart.base.js +1 -1
  49. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  50. package/lib/components/StackedBarChart/StackedBarChart.styles.js +2 -2
  51. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  52. package/lib/components/TreeChart/TreeChart.base.js +8 -8
  53. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  54. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +21 -12
  55. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  56. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +23 -22
  57. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  58. package/lib/types/IDataPoint.d.ts +10 -0
  59. package/lib/types/IDataPoint.js.map +1 -1
  60. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  61. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  62. package/lib/utilities/utilities.d.ts +2 -2
  63. package/lib/utilities/utilities.js +16 -14
  64. package/lib/utilities/utilities.js.map +1 -1
  65. package/lib/version.js +1 -1
  66. package/lib/version.js.map +1 -1
  67. package/lib-amd/AreaChart.js +1 -1
  68. package/lib-amd/AreaChart.js.map +1 -1
  69. package/lib-amd/CartesianChart.js +1 -1
  70. package/lib-amd/CartesianChart.js.map +1 -1
  71. package/lib-amd/DonutChart.js +1 -1
  72. package/lib-amd/DonutChart.js.map +1 -1
  73. package/lib-amd/GroupedVerticalBarChart.js +1 -1
  74. package/lib-amd/GroupedVerticalBarChart.js.map +1 -1
  75. package/lib-amd/HeatMapChart.js +1 -1
  76. package/lib-amd/HeatMapChart.js.map +1 -1
  77. package/lib-amd/HorizontalBarChart.js +1 -1
  78. package/lib-amd/HorizontalBarChart.js.map +1 -1
  79. package/lib-amd/HorizontalBarChartWithAxis.js +1 -1
  80. package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -1
  81. package/lib-amd/Legends.js +1 -1
  82. package/lib-amd/Legends.js.map +1 -1
  83. package/lib-amd/LineChart.js +1 -1
  84. package/lib-amd/LineChart.js.map +1 -1
  85. package/lib-amd/PieChart.js +1 -1
  86. package/lib-amd/PieChart.js.map +1 -1
  87. package/lib-amd/SankeyChart.js +1 -1
  88. package/lib-amd/SankeyChart.js.map +1 -1
  89. package/lib-amd/Sparkline.js +1 -1
  90. package/lib-amd/Sparkline.js.map +1 -1
  91. package/lib-amd/StackedBarChart.js +1 -1
  92. package/lib-amd/StackedBarChart.js.map +1 -1
  93. package/lib-amd/TreeChart.js +1 -1
  94. package/lib-amd/TreeChart.js.map +1 -1
  95. package/lib-amd/VerticalBarChart.js +1 -1
  96. package/lib-amd/VerticalBarChart.js.map +1 -1
  97. package/lib-amd/VerticalStackedBarChart.js +1 -1
  98. package/lib-amd/VerticalStackedBarChart.js.map +1 -1
  99. package/lib-amd/components/AreaChart/AreaChart.base.js +42 -42
  100. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  101. package/lib-amd/components/AreaChart/AreaChart.js +1 -1
  102. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -1
  103. package/lib-amd/components/AreaChart/AreaChart.styles.js +1 -1
  104. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
  105. package/lib-amd/components/AreaChart/index.js +2 -2
  106. package/lib-amd/components/AreaChart/index.js.map +1 -1
  107. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  108. package/lib-amd/components/CommonComponents/CartesianChart.base.js +73 -42
  109. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  110. package/lib-amd/components/CommonComponents/CartesianChart.js +1 -1
  111. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
  112. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +6 -6
  113. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  114. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  115. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  116. package/lib-amd/components/CommonComponents/index.js +2 -2
  117. package/lib-amd/components/CommonComponents/index.js.map +1 -1
  118. package/lib-amd/components/DonutChart/Arc/Arc.js +6 -6
  119. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  120. package/lib-amd/components/DonutChart/Arc/index.js +2 -2
  121. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -1
  122. package/lib-amd/components/DonutChart/DonutChart.base.js +10 -10
  123. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  124. package/lib-amd/components/DonutChart/DonutChart.js +1 -1
  125. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -1
  126. package/lib-amd/components/DonutChart/DonutChart.styles.js +1 -1
  127. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
  128. package/lib-amd/components/DonutChart/Pie/Pie.js +4 -4
  129. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  130. package/lib-amd/components/DonutChart/Pie/index.js +2 -2
  131. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -1
  132. package/lib-amd/components/DonutChart/index.js +3 -3
  133. package/lib-amd/components/DonutChart/index.js.map +1 -1
  134. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
  135. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  136. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
  137. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  138. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  139. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  140. package/lib-amd/components/GroupedVerticalBarChart/index.js +2 -2
  141. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -1
  142. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +25 -25
  143. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  144. package/lib-amd/components/HeatMapChart/HeatMapChart.js +1 -1
  145. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -1
  146. package/lib-amd/components/HeatMapChart/index.js +2 -2
  147. package/lib-amd/components/HeatMapChart/index.js.map +1 -1
  148. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
  149. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  150. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  151. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  152. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  153. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  154. package/lib-amd/components/HorizontalBarChart/index.js +3 -3
  155. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -1
  156. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
  157. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  158. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
  159. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  160. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  161. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  162. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +2 -2
  163. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  164. package/lib-amd/components/Legends/Legends.base.js +16 -16
  165. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  166. package/lib-amd/components/Legends/Legends.js +1 -1
  167. package/lib-amd/components/Legends/Legends.js.map +1 -1
  168. package/lib-amd/components/Legends/Legends.styles.js +8 -8
  169. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  170. package/lib-amd/components/Legends/index.js +3 -3
  171. package/lib-amd/components/Legends/index.js.map +1 -1
  172. package/lib-amd/components/Legends/shape.js +11 -11
  173. package/lib-amd/components/Legends/shape.js.map +1 -1
  174. package/lib-amd/components/LineChart/LineChart.base.js +78 -78
  175. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  176. package/lib-amd/components/LineChart/LineChart.js +1 -1
  177. package/lib-amd/components/LineChart/LineChart.js.map +1 -1
  178. package/lib-amd/components/LineChart/LineChart.styles.js +1 -1
  179. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
  180. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
  181. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  182. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +3 -3
  183. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  184. package/lib-amd/components/LineChart/index.js +3 -3
  185. package/lib-amd/components/LineChart/index.js.map +1 -1
  186. package/lib-amd/components/PieChart/Arc/Arc.js +5 -5
  187. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
  188. package/lib-amd/components/PieChart/Arc/index.js +2 -2
  189. package/lib-amd/components/PieChart/Arc/index.js.map +1 -1
  190. package/lib-amd/components/PieChart/Pie/Pie.js +3 -3
  191. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
  192. package/lib-amd/components/PieChart/Pie/index.js +2 -2
  193. package/lib-amd/components/PieChart/Pie/index.js.map +1 -1
  194. package/lib-amd/components/PieChart/PieChart.base.js +2 -2
  195. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
  196. package/lib-amd/components/PieChart/PieChart.js +1 -1
  197. package/lib-amd/components/PieChart/PieChart.js.map +1 -1
  198. package/lib-amd/components/PieChart/PieChart.styles.js +1 -1
  199. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -1
  200. package/lib-amd/components/PieChart/index.js +2 -2
  201. package/lib-amd/components/PieChart/index.js.map +1 -1
  202. package/lib-amd/components/SankeyChart/SankeyChart.base.js +27 -27
  203. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  204. package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
  205. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
  206. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +1 -1
  207. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  208. package/lib-amd/components/SankeyChart/index.js +2 -2
  209. package/lib-amd/components/SankeyChart/index.js.map +1 -1
  210. package/lib-amd/components/Sparkline/Sparkline.base.js +9 -9
  211. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
  212. package/lib-amd/components/Sparkline/Sparkline.js +1 -1
  213. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
  214. package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
  215. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
  216. package/lib-amd/components/Sparkline/index.js +2 -2
  217. package/lib-amd/components/Sparkline/index.js.map +1 -1
  218. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
  219. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  220. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  221. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  222. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  223. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  224. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +11 -11
  225. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  226. package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
  227. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
  228. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +3 -3
  229. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  230. package/lib-amd/components/StackedBarChart/index.js +5 -5
  231. package/lib-amd/components/StackedBarChart/index.js.map +1 -1
  232. package/lib-amd/components/TreeChart/TreeChart.base.js +20 -20
  233. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
  234. package/lib-amd/components/TreeChart/TreeChart.js +1 -1
  235. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
  236. package/lib-amd/components/TreeChart/TreeChart.styles.js +4 -4
  237. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
  238. package/lib-amd/components/TreeChart/index.js +2 -2
  239. package/lib-amd/components/TreeChart/index.js.map +1 -1
  240. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +47 -38
  241. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  242. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
  243. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  244. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  245. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  246. package/lib-amd/components/VerticalBarChart/index.js +2 -2
  247. package/lib-amd/components/VerticalBarChart/index.js.map +1 -1
  248. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +42 -41
  249. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  250. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  251. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  252. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  253. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  254. package/lib-amd/components/VerticalStackedBarChart/index.js +2 -2
  255. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -1
  256. package/lib-amd/index.js +19 -19
  257. package/lib-amd/index.js.map +1 -1
  258. package/lib-amd/types/IDataPoint.d.ts +10 -0
  259. package/lib-amd/types/IDataPoint.js.map +1 -1
  260. package/lib-amd/types/index.js +2 -2
  261. package/lib-amd/types/index.js.map +1 -1
  262. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
  263. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  264. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
  265. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  266. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  267. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  268. package/lib-amd/utilities/ChartHoverCard/index.js +3 -3
  269. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -1
  270. package/lib-amd/utilities/FocusableTooltipText.js +3 -3
  271. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -1
  272. package/lib-amd/utilities/index.js +3 -3
  273. package/lib-amd/utilities/index.js.map +1 -1
  274. package/lib-amd/utilities/utilities.d.ts +2 -2
  275. package/lib-amd/utilities/utilities.js +82 -80
  276. package/lib-amd/utilities/utilities.js.map +1 -1
  277. package/lib-amd/version.js +1 -1
  278. package/lib-amd/version.js.map +1 -1
  279. package/lib-commonjs/AreaChart.js +1 -1
  280. package/lib-commonjs/AreaChart.js.map +1 -1
  281. package/lib-commonjs/CartesianChart.js +1 -1
  282. package/lib-commonjs/CartesianChart.js.map +1 -1
  283. package/lib-commonjs/DonutChart.js +1 -1
  284. package/lib-commonjs/DonutChart.js.map +1 -1
  285. package/lib-commonjs/GroupedVerticalBarChart.js +1 -1
  286. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  287. package/lib-commonjs/HeatMapChart.js +1 -1
  288. package/lib-commonjs/HeatMapChart.js.map +1 -1
  289. package/lib-commonjs/HorizontalBarChart.js +1 -1
  290. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  291. package/lib-commonjs/HorizontalBarChartWithAxis.js +1 -1
  292. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  293. package/lib-commonjs/Legends.js +1 -1
  294. package/lib-commonjs/Legends.js.map +1 -1
  295. package/lib-commonjs/LineChart.js +1 -1
  296. package/lib-commonjs/LineChart.js.map +1 -1
  297. package/lib-commonjs/PieChart.js +1 -1
  298. package/lib-commonjs/PieChart.js.map +1 -1
  299. package/lib-commonjs/SankeyChart.js +1 -1
  300. package/lib-commonjs/SankeyChart.js.map +1 -1
  301. package/lib-commonjs/Sparkline.js +1 -1
  302. package/lib-commonjs/Sparkline.js.map +1 -1
  303. package/lib-commonjs/StackedBarChart.js +1 -1
  304. package/lib-commonjs/StackedBarChart.js.map +1 -1
  305. package/lib-commonjs/TreeChart.js +1 -1
  306. package/lib-commonjs/TreeChart.js.map +1 -1
  307. package/lib-commonjs/VerticalBarChart.js +1 -1
  308. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  309. package/lib-commonjs/VerticalStackedBarChart.js +1 -1
  310. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  311. package/lib-commonjs/components/AreaChart/AreaChart.base.js +42 -42
  312. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  313. package/lib-commonjs/components/AreaChart/AreaChart.js +1 -1
  314. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  315. package/lib-commonjs/components/AreaChart/AreaChart.styles.js +1 -1
  316. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  317. package/lib-commonjs/components/AreaChart/index.js +2 -2
  318. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  319. package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +1 -0
  320. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +73 -42
  321. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  322. package/lib-commonjs/components/CommonComponents/CartesianChart.js +1 -1
  323. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  324. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +6 -6
  325. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  326. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +11 -0
  327. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  328. package/lib-commonjs/components/CommonComponents/index.js +2 -2
  329. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  330. package/lib-commonjs/components/DonutChart/Arc/Arc.js +6 -6
  331. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  332. package/lib-commonjs/components/DonutChart/Arc/index.js +2 -2
  333. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  334. package/lib-commonjs/components/DonutChart/DonutChart.base.js +10 -10
  335. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  336. package/lib-commonjs/components/DonutChart/DonutChart.js +1 -1
  337. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  338. package/lib-commonjs/components/DonutChart/DonutChart.styles.js +1 -1
  339. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  340. package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -4
  341. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  342. package/lib-commonjs/components/DonutChart/Pie/index.js +2 -2
  343. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  344. package/lib-commonjs/components/DonutChart/index.js +3 -3
  345. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  346. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
  347. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  348. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
  349. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  350. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  351. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  352. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +2 -2
  353. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  354. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +25 -25
  355. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  356. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +1 -1
  357. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  358. package/lib-commonjs/components/HeatMapChart/index.js +2 -2
  359. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  360. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
  361. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  362. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  363. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  364. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  365. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  366. package/lib-commonjs/components/HorizontalBarChart/index.js +3 -3
  367. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  368. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
  369. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  370. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
  371. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  372. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  373. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  374. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +2 -2
  375. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  376. package/lib-commonjs/components/Legends/Legends.base.js +16 -16
  377. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  378. package/lib-commonjs/components/Legends/Legends.js +1 -1
  379. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  380. package/lib-commonjs/components/Legends/Legends.styles.js +8 -8
  381. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  382. package/lib-commonjs/components/Legends/index.js +3 -3
  383. package/lib-commonjs/components/Legends/index.js.map +1 -1
  384. package/lib-commonjs/components/Legends/shape.js +11 -11
  385. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  386. package/lib-commonjs/components/LineChart/LineChart.base.js +78 -78
  387. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  388. package/lib-commonjs/components/LineChart/LineChart.js +1 -1
  389. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  390. package/lib-commonjs/components/LineChart/LineChart.styles.js +1 -1
  391. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  392. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
  393. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  394. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +3 -3
  395. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  396. package/lib-commonjs/components/LineChart/index.js +3 -3
  397. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  398. package/lib-commonjs/components/PieChart/Arc/Arc.js +5 -5
  399. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  400. package/lib-commonjs/components/PieChart/Arc/index.js +2 -2
  401. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  402. package/lib-commonjs/components/PieChart/Pie/Pie.js +3 -3
  403. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  404. package/lib-commonjs/components/PieChart/Pie/index.js +2 -2
  405. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  406. package/lib-commonjs/components/PieChart/PieChart.base.js +2 -2
  407. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  408. package/lib-commonjs/components/PieChart/PieChart.js +1 -1
  409. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  410. package/lib-commonjs/components/PieChart/PieChart.styles.js +1 -1
  411. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  412. package/lib-commonjs/components/PieChart/index.js +2 -2
  413. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  414. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +27 -27
  415. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  416. package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
  417. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  418. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +1 -1
  419. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  420. package/lib-commonjs/components/SankeyChart/index.js +2 -2
  421. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  422. package/lib-commonjs/components/Sparkline/Sparkline.base.js +9 -9
  423. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  424. package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
  425. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  426. package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
  427. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  428. package/lib-commonjs/components/Sparkline/index.js +2 -2
  429. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  430. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
  431. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  432. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  433. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  434. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  435. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  436. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +11 -11
  437. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  438. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
  439. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  440. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +3 -3
  441. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  442. package/lib-commonjs/components/StackedBarChart/index.js +5 -5
  443. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  444. package/lib-commonjs/components/TreeChart/TreeChart.base.js +20 -20
  445. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  446. package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
  447. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  448. package/lib-commonjs/components/TreeChart/TreeChart.styles.js +4 -4
  449. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  450. package/lib-commonjs/components/TreeChart/index.js +2 -2
  451. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  452. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +47 -38
  453. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  454. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
  455. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  456. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  457. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  458. package/lib-commonjs/components/VerticalBarChart/index.js +2 -2
  459. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  460. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +42 -41
  461. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  462. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  463. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  464. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  465. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  466. package/lib-commonjs/components/VerticalStackedBarChart/index.js +2 -2
  467. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  468. package/lib-commonjs/index.js +19 -19
  469. package/lib-commonjs/index.js.map +1 -1
  470. package/lib-commonjs/types/IDataPoint.d.ts +10 -0
  471. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  472. package/lib-commonjs/types/index.js +2 -2
  473. package/lib-commonjs/types/index.js.map +1 -1
  474. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
  475. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  476. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
  477. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  478. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
  479. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  480. package/lib-commonjs/utilities/ChartHoverCard/index.js +3 -3
  481. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  482. package/lib-commonjs/utilities/FocusableTooltipText.js +3 -3
  483. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  484. package/lib-commonjs/utilities/index.js +3 -3
  485. package/lib-commonjs/utilities/index.js.map +1 -1
  486. package/lib-commonjs/utilities/utilities.d.ts +2 -2
  487. package/lib-commonjs/utilities/utilities.js +82 -80
  488. package/lib-commonjs/utilities/utilities.js.map +1 -1
  489. package/lib-commonjs/version.js +1 -1
  490. package/lib-commonjs/version.js.map +1 -1
  491. package/package.json +7 -7
  492. package/src/components/CommonComponents/CartesianChart.types.ts +13 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./AreaChart"), exports);
5
- tslib_1.__exportStar(require("./AreaChart.types"), exports);
4
+ (0, tslib_1.__exportStar)(require("./AreaChart"), exports);
5
+ (0, tslib_1.__exportStar)(require("./AreaChart.types"), exports);
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/AreaChart/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,4DAAkC","sourcesContent":["export * from './AreaChart';\nexport * from './AreaChart.types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/AreaChart/index.ts"],"names":[],"mappings":";;;AAAA,2DAA4B;AAC5B,iEAAkC","sourcesContent":["export * from './AreaChart';\nexport * from './AreaChart.types';\n"]}
@@ -22,6 +22,7 @@ export declare class CartesianChartBase extends React.Component<IModifiedCartesi
22
22
  private minLegendContainerHeight;
23
23
  private xAxisElement;
24
24
  private yAxisElement;
25
+ private yAxisElementSecondary;
25
26
  private margins;
26
27
  private idForGraph;
27
28
  private _reqID;
@@ -8,7 +8,7 @@ var Callout_1 = require("@fluentui/react/lib/Callout");
8
8
  var react_focus_1 = require("@fluentui/react-focus");
9
9
  var index_1 = require("../../utilities/index");
10
10
  var index_2 = require("../Legends/index");
11
- var getClassNames = Utilities_1.classNamesFunction();
11
+ var getClassNames = (0, Utilities_1.classNamesFunction)();
12
12
  /**
13
13
  * Cartesian chart used for
14
14
  * 1.draw X and Y axis of the chart
@@ -16,30 +16,30 @@ var getClassNames = Utilities_1.classNamesFunction();
16
16
  * 3.Fit parent Continer
17
17
  */
18
18
  var CartesianChartBase = /** @class */ (function (_super) {
19
- tslib_1.__extends(CartesianChartBase, _super);
19
+ (0, tslib_1.__extends)(CartesianChartBase, _super);
20
20
  function CartesianChartBase(props) {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
22
22
  var _this = _super.call(this, props) || this;
23
23
  _this.minLegendContainerHeight = 32;
24
- _this._isRtl = Utilities_1.getRTL();
24
+ _this._isRtl = (0, Utilities_1.getRTL)();
25
25
  // TO DO: Write a common functional component for Multi value callout and divide sub count method
26
26
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
27
  _this._multiValueCallout = function (calloutProps) {
28
28
  var yValueHoverSubCountsExists = _this._yValueHoverSubCountsExists(calloutProps.YValueHover);
29
29
  return (React.createElement("div", { className: _this._classNames.calloutContentRoot },
30
30
  React.createElement("div", { className: _this._classNames.calloutDateTimeContainer, style: yValueHoverSubCountsExists ? { marginBottom: '11px' } : {} },
31
- React.createElement("div", tslib_1.__assign({ className: _this._classNames.calloutContentX }, index_1.getAccessibleDataObject(calloutProps.xAxisCalloutAccessibilityData, 'text', false)), index_1.convertToLocaleString(calloutProps.hoverXValue, _this.props.culture))),
31
+ React.createElement("div", (0, tslib_1.__assign)({ className: _this._classNames.calloutContentX }, (0, index_1.getAccessibleDataObject)(calloutProps.xAxisCalloutAccessibilityData, 'text', false)), (0, index_1.convertToLocaleString)(calloutProps.hoverXValue, _this.props.culture))),
32
32
  React.createElement("div", { className: _this._classNames.calloutInfoContainer, style: yValueHoverSubCountsExists ? { display: 'flex' } : {} },
33
33
  calloutProps.YValueHover &&
34
34
  calloutProps.YValueHover.map(function (yValue, index, yValues) {
35
35
  var isLast = index + 1 === yValues.length;
36
36
  var _a = yValue.shouldDrawBorderBottom, shouldDrawBorderBottom = _a === void 0 ? false : _a;
37
- return (React.createElement("div", tslib_1.__assign({}, index_1.getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false), { key: "callout-content-" + index, style: yValueHoverSubCountsExists
38
- ? tslib_1.__assign({ display: 'inline-block' }, (shouldDrawBorderBottom && {
39
- borderBottom: "1px solid " + _this.props.theme.semanticColors.menuDivider,
37
+ return (React.createElement("div", (0, tslib_1.__assign)({}, (0, index_1.getAccessibleDataObject)(yValue.callOutAccessibilityData, 'text', false), { key: "callout-content-".concat(index), style: yValueHoverSubCountsExists
38
+ ? (0, tslib_1.__assign)({ display: 'inline-block' }, (shouldDrawBorderBottom && {
39
+ borderBottom: "1px solid ".concat(_this.props.theme.semanticColors.menuDivider),
40
40
  paddingBottom: '10px',
41
- })) : tslib_1.__assign({}, (shouldDrawBorderBottom && {
42
- borderBottom: "1px solid " + _this.props.theme.semanticColors.menuDivider,
41
+ })) : (0, tslib_1.__assign)({}, (shouldDrawBorderBottom && {
42
+ borderBottom: "1px solid ".concat(_this.props.theme.semanticColors.menuDivider),
43
43
  paddingBottom: '10px',
44
44
  })) }), _this._getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)));
45
45
  }),
@@ -63,7 +63,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
63
63
  isRemoveValCalculated: true,
64
64
  startFromX: 0,
65
65
  };
66
- _this.idForGraph = Utilities_1.getId('chart_');
66
+ _this.idForGraph = (0, Utilities_1.getId)('chart_');
67
67
  /**
68
68
  * In RTL mode, Only graph will be rendered left/right. We need to provide left and right margins manually.
69
69
  * So that, in RTL, left margins becomes right margins and viceversa.
@@ -73,8 +73,16 @@ var CartesianChartBase = /** @class */ (function (_super) {
73
73
  _this.margins = {
74
74
  top: (_b = (_a = _this.props.margins) === null || _a === void 0 ? void 0 : _a.top) !== null && _b !== void 0 ? _b : 20,
75
75
  bottom: (_d = (_c = _this.props.margins) === null || _c === void 0 ? void 0 : _c.bottom) !== null && _d !== void 0 ? _d : 35,
76
- right: _this._isRtl ? (_f = (_e = _this.props.margins) === null || _e === void 0 ? void 0 : _e.left) !== null && _f !== void 0 ? _f : 40 : (_h = (_g = _this.props.margins) === null || _g === void 0 ? void 0 : _g.right) !== null && _h !== void 0 ? _h : 20,
77
- left: _this._isRtl ? (_k = (_j = _this.props.margins) === null || _j === void 0 ? void 0 : _j.right) !== null && _k !== void 0 ? _k : 20 : (_m = (_l = _this.props.margins) === null || _l === void 0 ? void 0 : _l.left) !== null && _m !== void 0 ? _m : 40,
76
+ right: _this._isRtl
77
+ ? (_f = (_e = _this.props.margins) === null || _e === void 0 ? void 0 : _e.left) !== null && _f !== void 0 ? _f : 40
78
+ : ((_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)
79
+ ? 40
80
+ : 20,
81
+ left: _this._isRtl
82
+ ? ((_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)
83
+ ? 40
84
+ : 20
85
+ : (_p = (_o = _this.props.margins) === null || _o === void 0 ? void 0 : _o.left) !== null && _p !== void 0 ? _p : 40,
78
86
  };
79
87
  return _this;
80
88
  }
@@ -83,7 +91,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
83
91
  if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
84
92
  this.props.showYAxisLables &&
85
93
  this.yAxisElement) {
86
- var maxYAxisLabelLength = index_1.calculateLongestYAxisLabel(this.props.points, this.yAxisElement);
94
+ var maxYAxisLabelLength = (0, index_1.calculateLongestYAxisLabel)(this.props.points, this.yAxisElement);
87
95
  if (this.state.startFromX !== maxYAxisLabelLength) {
88
96
  this.setState({
89
97
  startFromX: maxYAxisLabelLength,
@@ -110,7 +118,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
110
118
  node: this.xAxisElement,
111
119
  xAxis: this._xScale,
112
120
  };
113
- var rotatedHeight = index_1.rotateXAxisLabels(rotateLabelProps);
121
+ var rotatedHeight = (0, index_1.rotateXAxisLabels)(rotateLabelProps);
114
122
  if (this.state.isRemoveValCalculated &&
115
123
  this.state._removalValueForTextTuncate !== rotatedHeight + this.margins.bottom &&
116
124
  rotatedHeight > 0) {
@@ -123,7 +131,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
123
131
  if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
124
132
  this.props.showYAxisLables &&
125
133
  this.yAxisElement) {
126
- var maxYAxisLabelLength = index_1.calculateLongestYAxisLabel(this.props.points, this.yAxisElement);
134
+ var maxYAxisLabelLength = (0, index_1.calculateLongestYAxisLabel)(this.props.points, this.yAxisElement);
127
135
  if (this.state.startFromX !== maxYAxisLabelLength) {
128
136
  this.setState({
129
137
  startFromX: maxYAxisLabelLength,
@@ -138,11 +146,12 @@ var CartesianChartBase = /** @class */ (function (_super) {
138
146
  };
139
147
  CartesianChartBase.prototype.render = function () {
140
148
  var _this = this;
141
- var _a = this.props, calloutProps = _a.calloutProps, points = _a.points, chartType = _a.chartType, chartHoverProps = _a.chartHoverProps, svgFocusZoneProps = _a.svgFocusZoneProps, svgProps = _a.svgProps, culture = _a.culture, dateLocalizeOptions = _a.dateLocalizeOptions, timeFormatLocale = _a.timeFormatLocale, customDateTimeFormatter = _a.customDateTimeFormatter;
149
+ var _a, _b, _c, _d, _e, _f;
150
+ var _g = this.props, calloutProps = _g.calloutProps, points = _g.points, chartType = _g.chartType, chartHoverProps = _g.chartHoverProps, svgFocusZoneProps = _g.svgFocusZoneProps, svgProps = _g.svgProps, culture = _g.culture, dateLocalizeOptions = _g.dateLocalizeOptions, timeFormatLocale = _g.timeFormatLocale, customDateTimeFormatter = _g.customDateTimeFormatter;
142
151
  if (this.props.parentRef) {
143
152
  this._fitParentContainer();
144
153
  }
145
- var margin = tslib_1.__assign({}, this.margins);
154
+ var margin = (0, tslib_1.__assign)({}, this.margins);
146
155
  if (this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis) {
147
156
  if (!this._isRtl) {
148
157
  margin.left += this.state.startFromX;
@@ -154,7 +163,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
154
163
  // Callback for margins to the chart
155
164
  this.props.getmargins && this.props.getmargins(margin);
156
165
  var XAxisParams = {
157
- domainNRangeValues: index_1.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,
166
+ domainNRangeValues: (0, index_1.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,
158
167
  // This is only used for Horizontal Bar Chart with Axis for y as string axis
159
168
  this.state.startFromX),
160
169
  containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate,
@@ -179,7 +188,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
179
188
  yMaxValue: this.props.yMaxValue || 0,
180
189
  tickPadding: 10,
181
190
  maxOfYVal: this.props.maxOfYVal,
182
- yMinMaxValues: index_1.getMinMaxOfYAxis(points, chartType, this.props.yAxisType),
191
+ yMinMaxValues: (0, index_1.getMinMaxOfYAxis)(points, chartType, this.props.yAxisType),
183
192
  // please note these padding default values must be consistent in here
184
193
  // and the parent chart(HBWA/Vertical etc..) for more details refer example
185
194
  // http://using-d3js.com/04_07_ordinal_scales.html
@@ -195,16 +204,16 @@ var CartesianChartBase = /** @class */ (function (_super) {
195
204
  var xScale;
196
205
  switch (this.props.xAxisType) {
197
206
  case index_1.XAxisTypes.NumericAxis:
198
- xScale = index_1.createNumericXAxis(XAxisParams, this.props.chartType, culture);
207
+ xScale = (0, index_1.createNumericXAxis)(XAxisParams, this.props.chartType, culture);
199
208
  break;
200
209
  case index_1.XAxisTypes.DateAxis:
201
- xScale = index_1.createDateXAxis(XAxisParams, this.props.tickParams, culture, dateLocalizeOptions, timeFormatLocale, customDateTimeFormatter);
210
+ xScale = (0, index_1.createDateXAxis)(XAxisParams, this.props.tickParams, culture, dateLocalizeOptions, timeFormatLocale, customDateTimeFormatter);
202
211
  break;
203
212
  case index_1.XAxisTypes.StringAxis:
204
- xScale = index_1.createStringXAxis(XAxisParams, this.props.tickParams, this.props.datasetForXAxisDomain, culture);
213
+ xScale = (0, index_1.createStringXAxis)(XAxisParams, this.props.tickParams, this.props.datasetForXAxisDomain, culture);
205
214
  break;
206
215
  default:
207
- xScale = index_1.createNumericXAxis(XAxisParams, this.props.chartType, culture);
216
+ xScale = (0, index_1.createNumericXAxis)(XAxisParams, this.props.chartType, culture);
208
217
  }
209
218
  this._xScale = xScale;
210
219
  /*
@@ -220,7 +229,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
220
229
  showXAxisLablesTooltip: this.props.showXAxisLablesTooltip || false,
221
230
  noOfCharsToTruncate: this.props.noOfCharsToTruncate || 4,
222
231
  };
223
- var temp = xScale && index_1.createWrapOfXLabels(wrapLabelProps);
232
+ var temp = xScale && (0, index_1.createWrapOfXLabels)(wrapLabelProps);
224
233
  // this value need to be updated for draw graph updated. So instead of using private value, using set state.
225
234
  if (this.state.isRemoveValCalculated && this.state._removalValueForTextTuncate !== temp) {
226
235
  this.setState({ _removalValueForTextTuncate: temp, isRemoveValCalculated: false });
@@ -234,12 +243,31 @@ var CartesianChartBase = /** @class */ (function (_super) {
234
243
  */
235
244
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
245
  var yScale;
246
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
247
+ var yScaleSecondary;
237
248
  var axisData = { yAxisDomainValues: [] };
238
249
  if (this.props.yAxisType && this.props.yAxisType === index_1.YAxisType.StringAxis) {
239
- yScale = index_1.createStringYAxis(YAxisParams, this.props.stringDatasetForYAxisDomain, this._isRtl, this.props.chartType, this.props.barwidth, culture);
250
+ yScale = (0, index_1.createStringYAxis)(YAxisParams, this.props.stringDatasetForYAxisDomain, this._isRtl, this.props.chartType, this.props.barwidth, culture);
240
251
  }
241
252
  else {
242
- yScale = index_1.createYAxis(YAxisParams, this._isRtl, axisData, chartType, this.props.barwidth);
253
+ if ((_a = this.props) === null || _a === void 0 ? void 0 : _a.secondaryYScaleOptions) {
254
+ var YAxisParamsSecondary = {
255
+ margins: this.margins,
256
+ containerWidth: this.state.containerWidth,
257
+ containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate,
258
+ yAxisElement: this.yAxisElementSecondary,
259
+ yAxisTickFormat: this.props.yAxisTickFormat,
260
+ yAxisTickCount: this.props.yAxisTickCount,
261
+ yMinValue: ((_b = this.props.secondaryYScaleOptions) === null || _b === void 0 ? void 0 : _b.yMinValue) || 0,
262
+ yMaxValue: (_d = (_c = this.props.secondaryYScaleOptions) === null || _c === void 0 ? void 0 : _c.yMaxValue) !== null && _d !== void 0 ? _d : 100,
263
+ tickPadding: 10,
264
+ maxOfYVal: (_f = (_e = this.props.secondaryYScaleOptions) === null || _e === void 0 ? void 0 : _e.yMaxValue) !== null && _f !== void 0 ? _f : 100,
265
+ yMinMaxValues: (0, index_1.getMinMaxOfYAxis)(points, chartType),
266
+ yAxisPadding: this.props.yAxisPadding,
267
+ };
268
+ yScaleSecondary = (0, index_1.createYAxis)(YAxisParamsSecondary, this._isRtl, axisData, chartType, this.props.barwidth, true);
269
+ }
270
+ yScale = (0, index_1.createYAxis)(YAxisParams, this._isRtl, axisData, chartType, this.props.barwidth);
243
271
  }
244
272
  /*
245
273
  * To create y axis tick values by if specified
@@ -248,7 +276,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
248
276
  * */
249
277
  this.props.chartType === index_1.ChartTypes.HorizontalBarChartWithAxis &&
250
278
  yScale &&
251
- index_1.createYAxisLabels(this.yAxisElement, yScale, this.props.noOfCharsToTruncate || 4, this.props.showYAxisLablesTooltip || false, this.state.startFromX, this._isRtl);
279
+ (0, index_1.createYAxisLabels)(this.yAxisElement, yScale, this.props.noOfCharsToTruncate || 4, this.props.showYAxisLablesTooltip || false, this.state.startFromX, this._isRtl);
252
280
  this.props.getAxisData && this.props.getAxisData(axisData);
253
281
  // Callback function for chart, returns axis
254
282
  this._getData(xScale, yScale);
@@ -263,7 +291,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
263
291
  width: this.state.containerWidth,
264
292
  height: this.state.containerHeight,
265
293
  };
266
- var children = this.props.children(tslib_1.__assign(tslib_1.__assign({}, this.state), { xScale: xScale, yScale: yScale }));
294
+ var children = this.props.children((0, tslib_1.__assign)((0, tslib_1.__assign)({}, this.state), { xScale: xScale, yScale: yScale, yScaleSecondary: yScaleSecondary }));
267
295
  var focusDirection;
268
296
  if (this.props.focusZoneDirection === react_focus_1.FocusZoneDirection.vertical) {
269
297
  focusDirection = this.props.focusZoneDirection;
@@ -275,26 +303,29 @@ var CartesianChartBase = /** @class */ (function (_super) {
275
303
  focusDirection = react_focus_1.FocusZoneDirection.horizontal;
276
304
  }
277
305
  return (React.createElement("div", { id: this.idForGraph, className: this._classNames.root, role: 'presentation', ref: function (rootElem) { return (_this.chartContainer = rootElem); }, onMouseLeave: this._onChartLeave },
278
- React.createElement(react_focus_1.FocusZone, tslib_1.__assign({ direction: focusDirection }, svgFocusZoneProps),
279
- React.createElement("svg", tslib_1.__assign({ width: svgDimensions.width, height: svgDimensions.height, "aria-label": this.props.chartTitle, style: { display: 'block' } }, svgProps),
306
+ React.createElement(react_focus_1.FocusZone, (0, tslib_1.__assign)({ direction: focusDirection }, svgFocusZoneProps),
307
+ React.createElement("svg", (0, tslib_1.__assign)({ width: svgDimensions.width, height: svgDimensions.height, "aria-label": this.props.chartTitle, style: { display: 'block' } }, svgProps),
280
308
  React.createElement("g", { ref: function (e) {
281
309
  _this.xAxisElement = e;
282
- }, id: "xAxisGElement" + this.idForGraph,
310
+ }, id: "xAxisGElement".concat(this.idForGraph),
283
311
  // To add wrap of x axis lables feature, need to remove word height from svg height.
284
- transform: "translate(0, " + (svgDimensions.height - this.margins.bottom - this.state._removalValueForTextTuncate) + ")", className: this._classNames.xAxis }),
312
+ transform: "translate(0, ".concat(svgDimensions.height - this.margins.bottom - this.state._removalValueForTextTuncate, ")"), className: this._classNames.xAxis }),
285
313
  React.createElement("g", { ref: function (e) {
286
314
  _this.yAxisElement = e;
287
- }, id: "yAxisGElement" + this.idForGraph, transform: "translate(" + (this._isRtl
315
+ }, id: "yAxisGElement".concat(this.idForGraph), transform: "translate(".concat(this._isRtl
288
316
  ? svgDimensions.width - this.margins.right - this.state.startFromX
289
- : this.margins.left + this.state.startFromX) + ", 0)", className: this._classNames.yAxis }),
317
+ : this.margins.left + this.state.startFromX, ", 0)"), className: this._classNames.yAxis }),
318
+ this.props.secondaryYScaleOptions && (React.createElement("g", { ref: function (e) {
319
+ _this.yAxisElementSecondary = e;
320
+ }, id: "yAxisGElementSecondary".concat(this.idForGraph), transform: "translate(".concat(this._isRtl ? this.margins.left : svgDimensions.width - this.margins.right, ", 0)"), className: this._classNames.yAxis })),
290
321
  children)),
291
322
  !this.props.hideLegend && (React.createElement("div", { ref: function (e) { return (_this.legendContainer = e); }, className: this._classNames.legendContainer }, this.props.legendBars)),
292
- React.createElement(Callout_1.Callout, tslib_1.__assign({ hidden: !(!this.props.hideTooltip && calloutProps.isCalloutVisible),
323
+ React.createElement(Callout_1.Callout, (0, tslib_1.__assign)({ hidden: !(!this.props.hideTooltip && calloutProps.isCalloutVisible),
293
324
  /** Keep the callout updated with details of focused/hovered chart element */
294
325
  shouldUpdateWhenHidden: true }, calloutProps),
295
326
  this.props.customizedCallout && this.props.customizedCallout,
296
327
  !this.props.customizedCallout && this.props.isCalloutForStack && this._multiValueCallout(calloutProps),
297
- !this.props.customizedCallout && !this.props.isCalloutForStack && (React.createElement(index_1.ChartHoverCard, tslib_1.__assign({ XValue: calloutProps.XValue, Legend: calloutProps.legend, YValue: calloutProps.YValue, color: calloutProps.color, culture: this.props.culture }, chartHoverProps))))));
328
+ !this.props.customizedCallout && !this.props.isCalloutForStack && (React.createElement(index_1.ChartHoverCard, (0, tslib_1.__assign)({ XValue: calloutProps.XValue, Legend: calloutProps.legend, YValue: calloutProps.YValue, color: calloutProps.color, culture: this.props.culture }, chartHoverProps))))));
298
329
  };
299
330
  CartesianChartBase.prototype._yValueHoverSubCountsExists = function (yValueHover) {
300
331
  if (yValueHover) {
@@ -315,7 +346,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
315
346
  toDrawShape: toDrawShape,
316
347
  });
317
348
  var culture = this.props.culture;
318
- var yValue = index_1.convertToLocaleString(xValue.y, culture);
349
+ var yValue = (0, index_1.convertToLocaleString)(xValue.y, culture);
319
350
  if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {
320
351
  return (React.createElement("div", { style: yValueHoverSubCountsExists ? marginStyle : {} },
321
352
  yValueHoverSubCountsExists && (React.createElement("div", { className: "ms-fontWeight-semibold", style: { fontSize: '12pt' } },
@@ -323,7 +354,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
323
354
  " (",
324
355
  yValue,
325
356
  ")")),
326
- React.createElement("div", { id: index + "_" + xValue.y, className: _classNames.calloutBlockContainer },
357
+ React.createElement("div", { id: "".concat(index, "_").concat(xValue.y), className: _classNames.calloutBlockContainer },
327
358
  toDrawShape && (React.createElement(index_2.Shape, { svgProps: {
328
359
  className: _classNames.shapeStyles,
329
360
  }, pathProps: { fill: xValue.color }, shape: index_1.Points[xValue.index % Object.keys(index_1.pointTypes).length] })),
@@ -331,7 +362,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
331
362
  React.createElement("div", { className: _classNames.calloutlegendText },
332
363
  " ",
333
364
  xValue.legend),
334
- React.createElement("div", { className: _classNames.calloutContentY }, index_1.convertToLocaleString(xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y || xValue.data, culture))))));
365
+ React.createElement("div", { className: _classNames.calloutContentY }, (0, index_1.convertToLocaleString)(xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y || xValue.data, culture))))));
335
366
  }
336
367
  else {
337
368
  var subcounts_1 = xValue.yAxisCalloutData;
@@ -345,8 +376,8 @@ var CartesianChartBase = /** @class */ (function (_super) {
345
376
  return (React.createElement("div", { key: subcountName, className: _classNames.calloutBlockContainer },
346
377
  React.createElement("div", { className: _classNames.calloutlegendText },
347
378
  " ",
348
- index_1.convertToLocaleString(subcountName, culture)),
349
- React.createElement("div", { className: _classNames.calloutContentY }, index_1.convertToLocaleString(subcounts_1[subcountName], culture))));
379
+ (0, index_1.convertToLocaleString)(subcountName, culture)),
380
+ React.createElement("div", { className: _classNames.calloutContentY }, (0, index_1.convertToLocaleString)(subcounts_1[subcountName], culture))));
350
381
  })));
351
382
  }
352
383
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CartesianChart.base.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.base.tsx"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAE/B,2DAAkF;AAClF,uDAAsD;AACtD,qDAAsE;AAOtE,+CAsB+B;AAC/B,0CAAsD;AAEtD,IAAM,aAAa,GAAG,8BAAkB,EAAoD,CAAC;AAqB7F;;;;;GAKG;AACH;IAAwC,8CAAmE;IAezG,4BAAY,KAAmC;;QAA/C,YACE,kBAAM,KAAK,CAAC,SAuBb;QAnCO,8BAAwB,GAAW,EAAE,CAAC;QAMtC,YAAM,GAAY,kBAAM,EAAE,CAAC;QA2WnC,iGAAiG;QACjG,8DAA8D;QACtD,wBAAkB,GAAG,UAAC,YAAiB;YAC7C,IAAM,0BAA0B,GAAY,KAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;YACvG,OAAO,CACL,6BAAK,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,kBAAkB;gBACjD,6BACE,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,wBAAwB,EACpD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;oBAEjE,8CACE,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,eAAe,IACvC,+BAAuB,CAAC,YAAa,CAAC,6BAA6B,EAAE,MAAM,EAAE,KAAK,CAAC,GAEtF,6BAAqB,CAAC,YAAa,CAAC,WAAW,EAAE,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CACjE,CAC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qBAChE,CAAC,CAAC;iBACJ;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAmBH,yBAAC;AAAD,CAAC,AA7jBD,CAAwC,KAAK,CAAC,SAAS,GA6jBtD;AA7jBY,gDAAkB","sourcesContent":["import * as React from 'react';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nimport { classNamesFunction, getId, getRTL } from '@fluentui/react/lib/Utilities';\nimport { Callout } from '@fluentui/react/lib/Callout';\nimport { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';\nimport {\n ICartesianChartStyles,\n ICartesianChartStyleProps,\n IModifiedCartesianChartProps,\n IYValueHover,\n} from '../../index';\nimport {\n ChartHoverCard,\n convertToLocaleString,\n createNumericXAxis,\n createStringXAxis,\n IAxisData,\n getAccessibleDataObject,\n getDomainNRangeValues,\n createDateXAxis,\n createYAxis,\n createStringYAxis,\n IMargins,\n getMinMaxOfYAxis,\n XAxisTypes,\n YAxisType,\n createWrapOfXLabels,\n rotateXAxisLabels,\n Points,\n pointTypes,\n calculateLongestYAxisLabel,\n createYAxisLabels,\n ChartTypes,\n} from '../../utilities/index';\nimport { LegendShape, Shape } from '../Legends/index';\n\nconst getClassNames = classNamesFunction<ICartesianChartStyleProps, ICartesianChartStyles>();\n\nexport interface ICartesianChartState {\n containerWidth: number;\n containerHeight: number;\n _width: number;\n _height: number;\n /* To update this values using setState in render method.\n * To avoid multiple re renders, Only first time setting the value.\n */\n isRemoveValCalculated?: boolean;\n /* Used for when WrapXAxisLabels props appeared.\n * To display the total word (space separated words), Need to have more space than usual.\n * This height will get total height need to disaply total word.\n * These value need to be removed from actual svg height/graph height.\n * Defalut value is 0. And this values calculted when 'wrapXAxisLables' or 'showXAxisLablesTooltip' is true.\n */\n _removalValueForTextTuncate?: number;\n startFromX: number;\n}\n\n/**\n * Cartesian chart used for\n * 1.draw X and Y axis of the chart\n * 2.Callout\n * 3.Fit parent Continer\n */\nexport class CartesianChartBase extends React.Component<IModifiedCartesianChartProps, ICartesianChartState> {\n private _classNames: IProcessedStyleSet<ICartesianChartStyles>;\n private chartContainer: HTMLDivElement;\n private legendContainer: HTMLDivElement;\n private minLegendContainerHeight: number = 32;\n private xAxisElement: SVGElement | null;\n private yAxisElement: SVGElement | null;\n private margins: IMargins;\n private idForGraph: string;\n private _reqID: number;\n private _isRtl: boolean = getRTL();\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _xScale: any;\n\n constructor(props: IModifiedCartesianChartProps) {\n super(props);\n this.state = {\n containerHeight: 0,\n containerWidth: 0,\n _width: this.props.width || 600,\n _height: this.props.height || 350,\n _removalValueForTextTuncate: 0,\n isRemoveValCalculated: true,\n startFromX: 0,\n };\n this.idForGraph = getId('chart_');\n /**\n * In RTL mode, Only graph will be rendered left/right. We need to provide left and right margins manually.\n * So that, in RTL, left margins becomes right margins and viceversa.\n * As graph needs to be drawn perfecty, these values consider as default values.\n * Same margins using for all other cartesian charts. Can be accessible through 'getMargins' call back method.\n */\n this.margins = {\n top: this.props.margins?.top ?? 20,\n bottom: this.props.margins?.bottom ?? 35,\n right: this._isRtl ? this.props.margins?.left ?? 40 : this.props.margins?.right ?? 20,\n left: this._isRtl ? this.props.margins?.right ?? 20 : this.props.margins?.left ?? 40,\n };\n }\n\n public componentDidMount(): void {\n this._fitParentContainer();\n if (\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n this.props.showYAxisLables &&\n this.yAxisElement\n ) {\n const maxYAxisLabelLength = calculateLongestYAxisLabel(this.props.points, this.yAxisElement!);\n if (this.state.startFromX !== maxYAxisLabelLength) {\n this.setState({\n startFromX: maxYAxisLabelLength,\n });\n }\n } else if (this.state.startFromX !== 0) {\n this.setState({\n startFromX: 0,\n });\n }\n }\n\n public componentWillUnmount(): void {\n cancelAnimationFrame(this._reqID);\n }\n\n public componentDidUpdate(prevProps: IModifiedCartesianChartProps): void {\n if (prevProps.height !== this.props.height || prevProps.width !== this.props.width) {\n this._fitParentContainer();\n }\n\n if (\n !this.props.wrapXAxisLables &&\n this.props.rotateXAxisLables &&\n this.props.xAxisType! === XAxisTypes.StringAxis\n ) {\n const rotateLabelProps = {\n node: this.xAxisElement,\n xAxis: this._xScale,\n };\n const rotatedHeight = rotateXAxisLabels(rotateLabelProps);\n if (\n this.state.isRemoveValCalculated &&\n this.state._removalValueForTextTuncate !== rotatedHeight! + this.margins.bottom! &&\n rotatedHeight! > 0\n ) {\n this.setState({\n _removalValueForTextTuncate: rotatedHeight! + this.margins.bottom!,\n isRemoveValCalculated: false,\n });\n }\n }\n if (\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n this.props.showYAxisLables &&\n this.yAxisElement\n ) {\n const maxYAxisLabelLength = calculateLongestYAxisLabel(this.props.points, this.yAxisElement!);\n if (this.state.startFromX !== maxYAxisLabelLength) {\n this.setState({\n startFromX: maxYAxisLabelLength,\n });\n }\n } else if (this.state.startFromX !== 0) {\n this.setState({\n startFromX: 0,\n });\n }\n }\n\n public render(): JSX.Element {\n const {\n calloutProps,\n points,\n chartType,\n chartHoverProps,\n svgFocusZoneProps,\n svgProps,\n culture,\n dateLocalizeOptions,\n timeFormatLocale,\n customDateTimeFormatter,\n } = this.props;\n if (this.props.parentRef) {\n this._fitParentContainer();\n }\n\n const margin = { ...this.margins };\n if (this.props.chartType === ChartTypes.HorizontalBarChartWithAxis) {\n if (!this._isRtl) {\n margin.left! += this.state.startFromX;\n } else {\n margin.right! += this.state.startFromX;\n }\n }\n // Callback for margins to the chart\n this.props.getmargins && this.props.getmargins(margin);\n\n const XAxisParams = {\n domainNRangeValues: getDomainNRangeValues(\n points,\n this.props.getDomainMargins ? this.props.getDomainMargins(this.state.containerWidth) : this.margins,\n this.state.containerWidth,\n chartType,\n this._isRtl,\n this.props.xAxisType,\n this.props.barwidth!,\n this.props.tickValues!,\n // This is only used for Horizontal Bar Chart with Axis for y as string axis\n this.state.startFromX,\n ),\n containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate!,\n margins: this.margins,\n xAxisElement: this.xAxisElement!,\n showRoundOffXTickValues: true,\n xAxisCount: this.props.xAxisTickCount,\n xAxistickSize: this.props.xAxistickSize,\n tickPadding: this.props.tickPadding || this.props.showXAxisLablesTooltip ? 5 : 10,\n xAxisPadding: this.props.xAxisPadding,\n xAxisInnerPadding: this.props.xAxisInnerPadding,\n xAxisOuterPadding: this.props.xAxisOuterPadding,\n };\n\n const YAxisParams = {\n margins: this.margins,\n containerWidth: this.state.containerWidth,\n containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate!,\n yAxisElement: this.yAxisElement,\n yAxisTickFormat: this.props.yAxisTickFormat!,\n yAxisTickCount: this.props.yAxisTickCount!,\n yMinValue: this.props.yMinValue || 0,\n yMaxValue: this.props.yMaxValue || 0,\n tickPadding: 10,\n maxOfYVal: this.props.maxOfYVal,\n yMinMaxValues: getMinMaxOfYAxis(points, chartType, this.props.yAxisType),\n // please note these padding default values must be consistent in here\n // and the parent chart(HBWA/Vertical etc..) for more details refer example\n // http://using-d3js.com/04_07_ordinal_scales.html\n yAxisPadding: this.props.yAxisPadding || 0,\n };\n\n /**\n * These scales used for 2 purposes.\n * 1. To create x and y axis\n * 2. To draw the graph.\n * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let xScale: any;\n switch (this.props.xAxisType!) {\n case XAxisTypes.NumericAxis:\n xScale = createNumericXAxis(XAxisParams, this.props.chartType, culture);\n break;\n case XAxisTypes.DateAxis:\n xScale = createDateXAxis(\n XAxisParams,\n this.props.tickParams!,\n culture,\n dateLocalizeOptions,\n timeFormatLocale,\n customDateTimeFormatter,\n );\n break;\n case XAxisTypes.StringAxis:\n xScale = createStringXAxis(XAxisParams, this.props.tickParams!, this.props.datasetForXAxisDomain!, culture);\n break;\n default:\n xScale = createNumericXAxis(XAxisParams, this.props.chartType, culture);\n }\n this._xScale = xScale;\n\n /*\n * To enable wrapping of x axis tick values or to display complete x axis tick values,\n * we need to calculate how much space it needed to render the text.\n * No need to re-calculate every time the chart renders and same time need to get an update. So using setState.\n * Required space will be calculated first time chart rendering and if any width/height of chart updated.\n * */\n if (this.props.wrapXAxisLables || this.props.showXAxisLablesTooltip) {\n const wrapLabelProps = {\n node: this.xAxisElement,\n xAxis: xScale,\n showXAxisLablesTooltip: this.props.showXAxisLablesTooltip || false,\n noOfCharsToTruncate: this.props.noOfCharsToTruncate || 4,\n };\n const temp = xScale && (createWrapOfXLabels(wrapLabelProps) as number);\n // this value need to be updated for draw graph updated. So instead of using private value, using set state.\n if (this.state.isRemoveValCalculated && this.state._removalValueForTextTuncate !== temp) {\n this.setState({ _removalValueForTextTuncate: temp, isRemoveValCalculated: false });\n }\n }\n\n /**\n * These scales used for 2 purposes.\n * 1. To create x and y axis\n * 2. To draw the graph.\n * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let yScale: any;\n const axisData: IAxisData = { yAxisDomainValues: [] };\n if (this.props.yAxisType && this.props.yAxisType === YAxisType.StringAxis) {\n yScale = createStringYAxis(\n YAxisParams,\n this.props.stringDatasetForYAxisDomain!,\n this._isRtl,\n this.props.chartType,\n this.props.barwidth,\n culture,\n );\n } else {\n yScale = createYAxis(YAxisParams, this._isRtl, axisData, chartType, this.props.barwidth!);\n }\n\n /*\n * To create y axis tick values by if specified\n truncating the rest of the text and showing elipsis\n or showing the whole string,\n * */\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n yScale &&\n createYAxisLabels(\n this.yAxisElement,\n yScale,\n this.props.noOfCharsToTruncate || 4,\n this.props.showYAxisLablesTooltip || false,\n this.state.startFromX,\n this._isRtl,\n );\n\n this.props.getAxisData && this.props.getAxisData(axisData);\n // Callback function for chart, returns axis\n this._getData(xScale, yScale);\n\n this._classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n width: this.state._width,\n height: this.state._height,\n className: this.props.className,\n isRtl: this._isRtl,\n });\n\n const svgDimensions = {\n width: this.state.containerWidth,\n height: this.state.containerHeight,\n };\n\n const children = this.props.children({\n ...this.state,\n xScale,\n yScale,\n });\n\n let focusDirection;\n if (this.props.focusZoneDirection === FocusZoneDirection.vertical) {\n focusDirection = this.props.focusZoneDirection;\n } else if (this.props.focusZoneDirection) {\n focusDirection = this.props.focusZoneDirection;\n } else {\n focusDirection = FocusZoneDirection.horizontal;\n }\n return (\n <div\n id={this.idForGraph}\n className={this._classNames.root}\n role={'presentation'}\n ref={(rootElem: HTMLDivElement) => (this.chartContainer = rootElem)}\n onMouseLeave={this._onChartLeave}\n >\n <FocusZone direction={focusDirection} {...svgFocusZoneProps}>\n <svg\n width={svgDimensions.width}\n height={svgDimensions.height}\n aria-label={this.props.chartTitle}\n style={{ display: 'block' }}\n {...svgProps}\n >\n <g\n ref={(e: SVGElement | null) => {\n this.xAxisElement = e;\n }}\n id={`xAxisGElement${this.idForGraph}`}\n // To add wrap of x axis lables feature, need to remove word height from svg height.\n transform={`translate(0, ${\n svgDimensions.height - this.margins.bottom! - this.state._removalValueForTextTuncate!\n })`}\n className={this._classNames.xAxis}\n />\n <g\n ref={(e: SVGElement | null) => {\n this.yAxisElement = e;\n }}\n id={`yAxisGElement${this.idForGraph}`}\n transform={`translate(${\n this._isRtl\n ? svgDimensions.width - this.margins.right! - this.state.startFromX\n : this.margins.left! + this.state.startFromX\n }, 0)`}\n className={this._classNames.yAxis}\n />\n {children}\n </svg>\n </FocusZone>\n {!this.props.hideLegend && (\n <div ref={(e: HTMLDivElement) => (this.legendContainer = e)} className={this._classNames.legendContainer}>\n {this.props.legendBars}\n </div>\n )}\n {/** The callout is used for narration, so keep it mounted on the DOM */}\n <Callout\n hidden={!(!this.props.hideTooltip && calloutProps!.isCalloutVisible)}\n /** Keep the callout updated with details of focused/hovered chart element */\n shouldUpdateWhenHidden={true}\n {...calloutProps}\n >\n {/** Given custom callout, then it will render */}\n {this.props.customizedCallout && this.props.customizedCallout}\n {/** single x point its corresponding y points of all the bars/lines in chart will render in callout */}\n {!this.props.customizedCallout && this.props.isCalloutForStack && this._multiValueCallout(calloutProps)}\n {/** single x point its corresponding y point of single line/bar in the chart will render in callout */}\n {!this.props.customizedCallout && !this.props.isCalloutForStack && (\n <ChartHoverCard\n XValue={calloutProps.XValue}\n Legend={calloutProps.legend!}\n YValue={calloutProps.YValue!}\n color={calloutProps.color!}\n culture={this.props.culture}\n {...chartHoverProps}\n />\n )}\n </Callout>\n </div>\n );\n }\n\n // TO DO: Write a common functional component for Multi value callout and divide sub count method\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _multiValueCallout = (calloutProps: any) => {\n const yValueHoverSubCountsExists: boolean = this._yValueHoverSubCountsExists(calloutProps.YValueHover);\n return (\n <div className={this._classNames.calloutContentRoot}>\n <div\n className={this._classNames.calloutDateTimeContainer}\n style={yValueHoverSubCountsExists ? { marginBottom: '11px' } : {}}\n >\n <div\n className={this._classNames.calloutContentX}\n {...getAccessibleDataObject(calloutProps!.xAxisCalloutAccessibilityData, 'text', false)}\n >\n {convertToLocaleString(calloutProps!.hoverXValue, this.props.culture)}\n </div>\n </div>\n <div\n className={this._classNames.calloutInfoContainer}\n style={yValueHoverSubCountsExists ? { display: 'flex' } : {}}\n >\n {calloutProps!.YValueHover &&\n calloutProps!.YValueHover.map((yValue: IYValueHover, index: number, yValues: IYValueHover[]) => {\n const isLast: boolean = index + 1 === yValues.length;\n const { shouldDrawBorderBottom = false } = yValue;\n return (\n <div\n {...getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false)}\n key={`callout-content-${index}`}\n style={\n yValueHoverSubCountsExists\n ? {\n display: 'inline-block',\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${this.props.theme!.semanticColors.menuDivider}`,\n paddingBottom: '10px',\n }),\n }\n : {\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${this.props.theme!.semanticColors.menuDivider}`,\n paddingBottom: '10px',\n }),\n }\n }\n >\n {this._getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)}\n </div>\n );\n })}\n {!!calloutProps.descriptionMessage && (\n <div className={this._classNames.descriptionMessage}>{calloutProps.descriptionMessage}</div>\n )}\n </div>\n </div>\n );\n };\n\n private _yValueHoverSubCountsExists(yValueHover?: IYValueHover[]) {\n if (yValueHover) {\n return yValueHover.some(\n (yValue: {\n legend?: string;\n y?: number;\n color?: string;\n yAxisCalloutData?: string | { [id: string]: number };\n }) => yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string',\n );\n }\n return false;\n }\n\n private _getCalloutContent(\n xValue: IYValueHover,\n index: number,\n yValueHoverSubCountsExists: boolean,\n isLast: boolean,\n ): React.ReactNode {\n const marginStyle: React.CSSProperties = isLast ? {} : { marginRight: '16px' };\n const toDrawShape = xValue.index !== undefined && xValue.index !== -1;\n const _classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n width: this.state._width,\n height: this.state._height,\n className: this.props.className,\n isRtl: this._isRtl,\n lineColor: xValue.color,\n toDrawShape,\n });\n\n const { culture } = this.props;\n const yValue = convertToLocaleString(xValue.y, culture);\n if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {\n return (\n <div style={yValueHoverSubCountsExists ? marginStyle : {}}>\n {yValueHoverSubCountsExists && (\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n )}\n <div id={`${index}_${xValue.y}`} className={_classNames.calloutBlockContainer}>\n {toDrawShape && (\n <Shape\n svgProps={{\n className: _classNames.shapeStyles,\n }}\n pathProps={{ fill: xValue.color }}\n shape={Points[xValue.index! % Object.keys(pointTypes).length] as LegendShape}\n />\n )}\n <div>\n <div className={_classNames.calloutlegendText}> {xValue.legend}</div>\n <div className={_classNames.calloutContentY}>\n {convertToLocaleString(\n xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y || xValue.data,\n culture,\n )}\n </div>\n </div>\n </div>\n </div>\n );\n } else {\n const subcounts: { [id: string]: number } = xValue.yAxisCalloutData as { [id: string]: number };\n return (\n <div style={marginStyle}>\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n {Object.keys(subcounts).map((subcountName: string) => {\n return (\n <div key={subcountName} className={_classNames.calloutBlockContainer}>\n <div className={_classNames.calloutlegendText}> {convertToLocaleString(subcountName, culture)}</div>\n <div className={_classNames.calloutContentY}>\n {convertToLocaleString(subcounts[subcountName], culture)}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n }\n\n /**\n * When screen resizes, along with screen, chart also auto adjusted.\n * This method used to adjust height and width of the charts.\n */\n private _fitParentContainer(): void {\n const { containerWidth, containerHeight } = this.state;\n this._reqID = requestAnimationFrame(() => {\n let legendContainerHeight;\n if (this.props.hideLegend) {\n // If there is no legend, need not to allocate some space from total chart space.\n legendContainerHeight = 0;\n } else {\n const legendContainerComputedStyles = this.legendContainer && getComputedStyle(this.legendContainer);\n legendContainerHeight =\n ((this.legendContainer && this.legendContainer.getBoundingClientRect().height) ||\n this.minLegendContainerHeight) +\n parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginTop) || '0') +\n parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginBottom) || '0');\n }\n if (this.props.parentRef || this.chartContainer) {\n const container = this.props.parentRef ? this.props.parentRef : this.chartContainer;\n const currentContainerWidth = container.getBoundingClientRect().width;\n const currentContainerHeight =\n container.getBoundingClientRect().height > legendContainerHeight\n ? container.getBoundingClientRect().height\n : 350;\n const shouldResize =\n containerWidth !== currentContainerWidth ||\n containerHeight !== currentContainerHeight - legendContainerHeight;\n if (shouldResize) {\n this.setState({\n containerWidth: currentContainerWidth,\n containerHeight: currentContainerHeight - legendContainerHeight,\n });\n }\n }\n });\n }\n\n // Call back to the chart.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _getData = (xScale: any, yScale: any) => {\n this.props.getGraphData &&\n this.props.getGraphData(\n xScale,\n yScale,\n this.state.containerHeight - this.state._removalValueForTextTuncate!,\n this.state.containerWidth,\n this.xAxisElement,\n this.yAxisElement,\n );\n };\n\n private _onChartLeave = (): void => {\n this.props.onChartMouseLeave && this.props.onChartMouseLeave();\n };\n}\n"]}
1
+ {"version":3,"file":"CartesianChart.base.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.base.tsx"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAE/B,2DAAkF;AAClF,uDAAsD;AACtD,qDAAsE;AAOtE,+CAsB+B;AAC/B,0CAAsD;AAEtD,IAAM,aAAa,GAAG,IAAA,8BAAkB,GAAoD,CAAC;AAqB7F;;;;;GAKG;AACH;IAAwC,mDAAmE;IAgBzG,4BAAY,KAAmC;;QAA/C,YACE,kBAAM,KAAK,CAAC,SA+Bb;QA5CO,8BAAwB,GAAW,EAAE,CAAC;QAOtC,YAAM,GAAY,IAAA,kBAAM,GAAE,CAAC;QA0ZnC,iGAAiG;QACjG,8DAA8D;QACtD,wBAAkB,GAAG,UAAC,YAAiB;YAC7C,IAAM,0BAA0B,GAAY,KAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;YACvG,OAAO,CACL,6BAAK,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,kBAAkB;gBACjD,6BACE,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,wBAAwB,EACpD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;oBAEjE,mDACE,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,eAAe,IACvC,IAAA,+BAAuB,EAAC,YAAa,CAAC,6BAA6B,EAAE,MAAM,EAAE,KAAK,CAAC,GAEtF,IAAA,6BAAqB,EAAC,YAAa,CAAC,WAAW,EAAE,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CACjE,CACF;gBACN,6BACE,SAAS,EAAE,KAAI,CAAC,WAAW,CAAC,oBAAo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SAAS,CAAC,CAAC,CAAC,KAAI,CAAC,cAAc,CAAC;gBACpF,IAAM,qBAAqB,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC;gBACtE,IAAM,sBAAsB,GAC1B,SAAS,CAAC,qBAAqB,EAAE,CAAC,MAAM,GAAG,qBAAqB;oBAC9D,CAAC,CAAC,SAAS,CAAC,qBAAqB,EAAE,CAAC,MAAM;oBAC1C,CAAC,CAAC,GAAG,CAAC;gBACV,IAAM,YAAY,GAChB,cAAc,KAAK,qBAAqB;oBACxC,eAAe,KAAK,sBAAsB,GAAG,qBAAqB,CAAC;gBACrE,IAAI,YAAY,EAAE;oBAChB,KAAI,CAAC,QAAQ,CAAC;wBACZ,cAAc,EAAE,qBAAqB;wBACrC,eAAe,EAAE,sBAAsB,GAAG,qBAAqB;qBAChE,CAAC,CAAC;iBACJ;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAmBH,yBAAC;AAAD,CAAC,AA7mBD,CAAwC,KAAK,CAAC,SAAS,GA6mBtD;AA7mBY,gDAAkB","sourcesContent":["import * as React from 'react';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nimport { classNamesFunction, getId, getRTL } from '@fluentui/react/lib/Utilities';\nimport { Callout } from '@fluentui/react/lib/Callout';\nimport { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';\nimport {\n ICartesianChartStyles,\n ICartesianChartStyleProps,\n IModifiedCartesianChartProps,\n IYValueHover,\n} from '../../index';\nimport {\n ChartHoverCard,\n convertToLocaleString,\n createNumericXAxis,\n createStringXAxis,\n IAxisData,\n getAccessibleDataObject,\n getDomainNRangeValues,\n createDateXAxis,\n createYAxis,\n createStringYAxis,\n IMargins,\n getMinMaxOfYAxis,\n XAxisTypes,\n YAxisType,\n createWrapOfXLabels,\n rotateXAxisLabels,\n Points,\n pointTypes,\n calculateLongestYAxisLabel,\n createYAxisLabels,\n ChartTypes,\n} from '../../utilities/index';\nimport { LegendShape, Shape } from '../Legends/index';\n\nconst getClassNames = classNamesFunction<ICartesianChartStyleProps, ICartesianChartStyles>();\n\nexport interface ICartesianChartState {\n containerWidth: number;\n containerHeight: number;\n _width: number;\n _height: number;\n /* To update this values using setState in render method.\n * To avoid multiple re renders, Only first time setting the value.\n */\n isRemoveValCalculated?: boolean;\n /* Used for when WrapXAxisLabels props appeared.\n * To display the total word (space separated words), Need to have more space than usual.\n * This height will get total height need to disaply total word.\n * These value need to be removed from actual svg height/graph height.\n * Defalut value is 0. And this values calculted when 'wrapXAxisLables' or 'showXAxisLablesTooltip' is true.\n */\n _removalValueForTextTuncate?: number;\n startFromX: number;\n}\n\n/**\n * Cartesian chart used for\n * 1.draw X and Y axis of the chart\n * 2.Callout\n * 3.Fit parent Continer\n */\nexport class CartesianChartBase extends React.Component<IModifiedCartesianChartProps, ICartesianChartState> {\n private _classNames: IProcessedStyleSet<ICartesianChartStyles>;\n private chartContainer: HTMLDivElement;\n private legendContainer: HTMLDivElement;\n private minLegendContainerHeight: number = 32;\n private xAxisElement: SVGElement | null;\n private yAxisElement: SVGElement | null;\n private yAxisElementSecondary: SVGElement | null;\n private margins: IMargins;\n private idForGraph: string;\n private _reqID: number;\n private _isRtl: boolean = getRTL();\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _xScale: any;\n\n constructor(props: IModifiedCartesianChartProps) {\n super(props);\n this.state = {\n containerHeight: 0,\n containerWidth: 0,\n _width: this.props.width || 600,\n _height: this.props.height || 350,\n _removalValueForTextTuncate: 0,\n isRemoveValCalculated: true,\n startFromX: 0,\n };\n this.idForGraph = getId('chart_');\n /**\n * In RTL mode, Only graph will be rendered left/right. We need to provide left and right margins manually.\n * So that, in RTL, left margins becomes right margins and viceversa.\n * As graph needs to be drawn perfecty, these values consider as default values.\n * Same margins using for all other cartesian charts. Can be accessible through 'getMargins' call back method.\n */\n this.margins = {\n top: this.props.margins?.top ?? 20,\n bottom: this.props.margins?.bottom ?? 35,\n right: this._isRtl\n ? this.props.margins?.left ?? 40\n : this.props.margins?.right ?? this.props?.secondaryYScaleOptions\n ? 40\n : 20,\n left: this._isRtl\n ? this.props.margins?.right ?? this.props?.secondaryYScaleOptions\n ? 40\n : 20\n : this.props.margins?.left ?? 40,\n };\n }\n\n public componentDidMount(): void {\n this._fitParentContainer();\n if (\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n this.props.showYAxisLables &&\n this.yAxisElement\n ) {\n const maxYAxisLabelLength = calculateLongestYAxisLabel(this.props.points, this.yAxisElement!);\n if (this.state.startFromX !== maxYAxisLabelLength) {\n this.setState({\n startFromX: maxYAxisLabelLength,\n });\n }\n } else if (this.state.startFromX !== 0) {\n this.setState({\n startFromX: 0,\n });\n }\n }\n\n public componentWillUnmount(): void {\n cancelAnimationFrame(this._reqID);\n }\n\n public componentDidUpdate(prevProps: IModifiedCartesianChartProps): void {\n if (prevProps.height !== this.props.height || prevProps.width !== this.props.width) {\n this._fitParentContainer();\n }\n\n if (\n !this.props.wrapXAxisLables &&\n this.props.rotateXAxisLables &&\n this.props.xAxisType! === XAxisTypes.StringAxis\n ) {\n const rotateLabelProps = {\n node: this.xAxisElement,\n xAxis: this._xScale,\n };\n const rotatedHeight = rotateXAxisLabels(rotateLabelProps);\n if (\n this.state.isRemoveValCalculated &&\n this.state._removalValueForTextTuncate !== rotatedHeight! + this.margins.bottom! &&\n rotatedHeight! > 0\n ) {\n this.setState({\n _removalValueForTextTuncate: rotatedHeight! + this.margins.bottom!,\n isRemoveValCalculated: false,\n });\n }\n }\n if (\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n this.props.showYAxisLables &&\n this.yAxisElement\n ) {\n const maxYAxisLabelLength = calculateLongestYAxisLabel(this.props.points, this.yAxisElement!);\n if (this.state.startFromX !== maxYAxisLabelLength) {\n this.setState({\n startFromX: maxYAxisLabelLength,\n });\n }\n } else if (this.state.startFromX !== 0) {\n this.setState({\n startFromX: 0,\n });\n }\n }\n\n public render(): JSX.Element {\n const {\n calloutProps,\n points,\n chartType,\n chartHoverProps,\n svgFocusZoneProps,\n svgProps,\n culture,\n dateLocalizeOptions,\n timeFormatLocale,\n customDateTimeFormatter,\n } = this.props;\n if (this.props.parentRef) {\n this._fitParentContainer();\n }\n\n const margin = { ...this.margins };\n if (this.props.chartType === ChartTypes.HorizontalBarChartWithAxis) {\n if (!this._isRtl) {\n margin.left! += this.state.startFromX;\n } else {\n margin.right! += this.state.startFromX;\n }\n }\n // Callback for margins to the chart\n this.props.getmargins && this.props.getmargins(margin);\n\n const XAxisParams = {\n domainNRangeValues: getDomainNRangeValues(\n points,\n this.props.getDomainMargins ? this.props.getDomainMargins(this.state.containerWidth) : this.margins,\n this.state.containerWidth,\n chartType,\n this._isRtl,\n this.props.xAxisType,\n this.props.barwidth!,\n this.props.tickValues!,\n // This is only used for Horizontal Bar Chart with Axis for y as string axis\n this.state.startFromX,\n ),\n containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate!,\n margins: this.margins,\n xAxisElement: this.xAxisElement!,\n showRoundOffXTickValues: true,\n xAxisCount: this.props.xAxisTickCount,\n xAxistickSize: this.props.xAxistickSize,\n tickPadding: this.props.tickPadding || this.props.showXAxisLablesTooltip ? 5 : 10,\n xAxisPadding: this.props.xAxisPadding,\n xAxisInnerPadding: this.props.xAxisInnerPadding,\n xAxisOuterPadding: this.props.xAxisOuterPadding,\n };\n\n const YAxisParams = {\n margins: this.margins,\n containerWidth: this.state.containerWidth,\n containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate!,\n yAxisElement: this.yAxisElement,\n yAxisTickFormat: this.props.yAxisTickFormat!,\n yAxisTickCount: this.props.yAxisTickCount!,\n yMinValue: this.props.yMinValue || 0,\n yMaxValue: this.props.yMaxValue || 0,\n tickPadding: 10,\n maxOfYVal: this.props.maxOfYVal,\n yMinMaxValues: getMinMaxOfYAxis(points, chartType, this.props.yAxisType),\n // please note these padding default values must be consistent in here\n // and the parent chart(HBWA/Vertical etc..) for more details refer example\n // http://using-d3js.com/04_07_ordinal_scales.html\n yAxisPadding: this.props.yAxisPadding || 0,\n };\n /**\n * These scales used for 2 purposes.\n * 1. To create x and y axis\n * 2. To draw the graph.\n * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let xScale: any;\n switch (this.props.xAxisType!) {\n case XAxisTypes.NumericAxis:\n xScale = createNumericXAxis(XAxisParams, this.props.chartType, culture);\n break;\n case XAxisTypes.DateAxis:\n xScale = createDateXAxis(\n XAxisParams,\n this.props.tickParams!,\n culture,\n dateLocalizeOptions,\n timeFormatLocale,\n customDateTimeFormatter,\n );\n break;\n case XAxisTypes.StringAxis:\n xScale = createStringXAxis(XAxisParams, this.props.tickParams!, this.props.datasetForXAxisDomain!, culture);\n break;\n default:\n xScale = createNumericXAxis(XAxisParams, this.props.chartType, culture);\n }\n this._xScale = xScale;\n\n /*\n * To enable wrapping of x axis tick values or to display complete x axis tick values,\n * we need to calculate how much space it needed to render the text.\n * No need to re-calculate every time the chart renders and same time need to get an update. So using setState.\n * Required space will be calculated first time chart rendering and if any width/height of chart updated.\n * */\n if (this.props.wrapXAxisLables || this.props.showXAxisLablesTooltip) {\n const wrapLabelProps = {\n node: this.xAxisElement,\n xAxis: xScale,\n showXAxisLablesTooltip: this.props.showXAxisLablesTooltip || false,\n noOfCharsToTruncate: this.props.noOfCharsToTruncate || 4,\n };\n const temp = xScale && (createWrapOfXLabels(wrapLabelProps) as number);\n // this value need to be updated for draw graph updated. So instead of using private value, using set state.\n if (this.state.isRemoveValCalculated && this.state._removalValueForTextTuncate !== temp) {\n this.setState({ _removalValueForTextTuncate: temp, isRemoveValCalculated: false });\n }\n }\n\n /**\n * These scales used for 2 purposes.\n * 1. To create x and y axis\n * 2. To draw the graph.\n * For area/line chart using same scales. For other charts, creating their own scales to draw the graph.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let yScale: any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let yScaleSecondary: any;\n const axisData: IAxisData = { yAxisDomainValues: [] };\n if (this.props.yAxisType && this.props.yAxisType === YAxisType.StringAxis) {\n yScale = createStringYAxis(\n YAxisParams,\n this.props.stringDatasetForYAxisDomain!,\n this._isRtl,\n this.props.chartType,\n this.props.barwidth,\n culture,\n );\n } else {\n if (this.props?.secondaryYScaleOptions) {\n const YAxisParamsSecondary = {\n margins: this.margins,\n containerWidth: this.state.containerWidth,\n containerHeight: this.state.containerHeight - this.state._removalValueForTextTuncate!,\n yAxisElement: this.yAxisElementSecondary,\n yAxisTickFormat: this.props.yAxisTickFormat!,\n yAxisTickCount: this.props.yAxisTickCount!,\n yMinValue: this.props.secondaryYScaleOptions?.yMinValue || 0,\n yMaxValue: this.props.secondaryYScaleOptions?.yMaxValue ?? 100,\n tickPadding: 10,\n maxOfYVal: this.props.secondaryYScaleOptions?.yMaxValue ?? 100,\n yMinMaxValues: getMinMaxOfYAxis(points, chartType),\n yAxisPadding: this.props.yAxisPadding,\n };\n\n yScaleSecondary = createYAxis(\n YAxisParamsSecondary,\n this._isRtl,\n axisData,\n chartType,\n this.props.barwidth!,\n true,\n );\n }\n yScale = createYAxis(YAxisParams, this._isRtl, axisData, chartType, this.props.barwidth!);\n }\n\n /*\n * To create y axis tick values by if specified\n truncating the rest of the text and showing elipsis\n or showing the whole string,\n * */\n this.props.chartType === ChartTypes.HorizontalBarChartWithAxis &&\n yScale &&\n createYAxisLabels(\n this.yAxisElement,\n yScale,\n this.props.noOfCharsToTruncate || 4,\n this.props.showYAxisLablesTooltip || false,\n this.state.startFromX,\n this._isRtl,\n );\n\n this.props.getAxisData && this.props.getAxisData(axisData);\n // Callback function for chart, returns axis\n this._getData(xScale, yScale);\n\n this._classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n width: this.state._width,\n height: this.state._height,\n className: this.props.className,\n isRtl: this._isRtl,\n });\n\n const svgDimensions = {\n width: this.state.containerWidth,\n height: this.state.containerHeight,\n };\n\n const children = this.props.children({\n ...this.state,\n xScale,\n yScale,\n yScaleSecondary,\n });\n\n let focusDirection;\n if (this.props.focusZoneDirection === FocusZoneDirection.vertical) {\n focusDirection = this.props.focusZoneDirection;\n } else if (this.props.focusZoneDirection) {\n focusDirection = this.props.focusZoneDirection;\n } else {\n focusDirection = FocusZoneDirection.horizontal;\n }\n return (\n <div\n id={this.idForGraph}\n className={this._classNames.root}\n role={'presentation'}\n ref={(rootElem: HTMLDivElement) => (this.chartContainer = rootElem)}\n onMouseLeave={this._onChartLeave}\n >\n <FocusZone direction={focusDirection} {...svgFocusZoneProps}>\n <svg\n width={svgDimensions.width}\n height={svgDimensions.height}\n aria-label={this.props.chartTitle}\n style={{ display: 'block' }}\n {...svgProps}\n >\n <g\n ref={(e: SVGElement | null) => {\n this.xAxisElement = e;\n }}\n id={`xAxisGElement${this.idForGraph}`}\n // To add wrap of x axis lables feature, need to remove word height from svg height.\n transform={`translate(0, ${\n svgDimensions.height - this.margins.bottom! - this.state._removalValueForTextTuncate!\n })`}\n className={this._classNames.xAxis}\n />\n <g\n ref={(e: SVGElement | null) => {\n this.yAxisElement = e;\n }}\n id={`yAxisGElement${this.idForGraph}`}\n transform={`translate(${\n this._isRtl\n ? svgDimensions.width - this.margins.right! - this.state.startFromX\n : this.margins.left! + this.state.startFromX\n }, 0)`}\n className={this._classNames.yAxis}\n />\n {this.props.secondaryYScaleOptions && (\n <g\n ref={(e: SVGElement | null) => {\n this.yAxisElementSecondary = e;\n }}\n id={`yAxisGElementSecondary${this.idForGraph}`}\n transform={`translate(${\n this._isRtl ? this.margins.left! : svgDimensions.width - this.margins.right!\n }, 0)`}\n className={this._classNames.yAxis}\n />\n )}\n {children}\n </svg>\n </FocusZone>\n {!this.props.hideLegend && (\n <div ref={(e: HTMLDivElement) => (this.legendContainer = e)} className={this._classNames.legendContainer}>\n {this.props.legendBars}\n </div>\n )}\n {/** The callout is used for narration, so keep it mounted on the DOM */}\n <Callout\n hidden={!(!this.props.hideTooltip && calloutProps!.isCalloutVisible)}\n /** Keep the callout updated with details of focused/hovered chart element */\n shouldUpdateWhenHidden={true}\n {...calloutProps}\n >\n {/** Given custom callout, then it will render */}\n {this.props.customizedCallout && this.props.customizedCallout}\n {/** single x point its corresponding y points of all the bars/lines in chart will render in callout */}\n {!this.props.customizedCallout && this.props.isCalloutForStack && this._multiValueCallout(calloutProps)}\n {/** single x point its corresponding y point of single line/bar in the chart will render in callout */}\n {!this.props.customizedCallout && !this.props.isCalloutForStack && (\n <ChartHoverCard\n XValue={calloutProps.XValue}\n Legend={calloutProps.legend!}\n YValue={calloutProps.YValue!}\n color={calloutProps.color!}\n culture={this.props.culture}\n {...chartHoverProps}\n />\n )}\n </Callout>\n </div>\n );\n }\n\n // TO DO: Write a common functional component for Multi value callout and divide sub count method\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _multiValueCallout = (calloutProps: any) => {\n const yValueHoverSubCountsExists: boolean = this._yValueHoverSubCountsExists(calloutProps.YValueHover);\n return (\n <div className={this._classNames.calloutContentRoot}>\n <div\n className={this._classNames.calloutDateTimeContainer}\n style={yValueHoverSubCountsExists ? { marginBottom: '11px' } : {}}\n >\n <div\n className={this._classNames.calloutContentX}\n {...getAccessibleDataObject(calloutProps!.xAxisCalloutAccessibilityData, 'text', false)}\n >\n {convertToLocaleString(calloutProps!.hoverXValue, this.props.culture)}\n </div>\n </div>\n <div\n className={this._classNames.calloutInfoContainer}\n style={yValueHoverSubCountsExists ? { display: 'flex' } : {}}\n >\n {calloutProps!.YValueHover &&\n calloutProps!.YValueHover.map((yValue: IYValueHover, index: number, yValues: IYValueHover[]) => {\n const isLast: boolean = index + 1 === yValues.length;\n const { shouldDrawBorderBottom = false } = yValue;\n return (\n <div\n {...getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false)}\n key={`callout-content-${index}`}\n style={\n yValueHoverSubCountsExists\n ? {\n display: 'inline-block',\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${this.props.theme!.semanticColors.menuDivider}`,\n paddingBottom: '10px',\n }),\n }\n : {\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${this.props.theme!.semanticColors.menuDivider}`,\n paddingBottom: '10px',\n }),\n }\n }\n >\n {this._getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)}\n </div>\n );\n })}\n {!!calloutProps.descriptionMessage && (\n <div className={this._classNames.descriptionMessage}>{calloutProps.descriptionMessage}</div>\n )}\n </div>\n </div>\n );\n };\n\n private _yValueHoverSubCountsExists(yValueHover?: IYValueHover[]) {\n if (yValueHover) {\n return yValueHover.some(\n (yValue: {\n legend?: string;\n y?: number;\n color?: string;\n yAxisCalloutData?: string | { [id: string]: number };\n }) => yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string',\n );\n }\n return false;\n }\n\n private _getCalloutContent(\n xValue: IYValueHover,\n index: number,\n yValueHoverSubCountsExists: boolean,\n isLast: boolean,\n ): React.ReactNode {\n const marginStyle: React.CSSProperties = isLast ? {} : { marginRight: '16px' };\n const toDrawShape = xValue.index !== undefined && xValue.index !== -1;\n const _classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n width: this.state._width,\n height: this.state._height,\n className: this.props.className,\n isRtl: this._isRtl,\n lineColor: xValue.color,\n toDrawShape,\n });\n\n const { culture } = this.props;\n const yValue = convertToLocaleString(xValue.y, culture);\n if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {\n return (\n <div style={yValueHoverSubCountsExists ? marginStyle : {}}>\n {yValueHoverSubCountsExists && (\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n )}\n <div id={`${index}_${xValue.y}`} className={_classNames.calloutBlockContainer}>\n {toDrawShape && (\n <Shape\n svgProps={{\n className: _classNames.shapeStyles,\n }}\n pathProps={{ fill: xValue.color }}\n shape={Points[xValue.index! % Object.keys(pointTypes).length] as LegendShape}\n />\n )}\n <div>\n <div className={_classNames.calloutlegendText}> {xValue.legend}</div>\n <div className={_classNames.calloutContentY}>\n {convertToLocaleString(\n xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y || xValue.data,\n culture,\n )}\n </div>\n </div>\n </div>\n </div>\n );\n } else {\n const subcounts: { [id: string]: number } = xValue.yAxisCalloutData as { [id: string]: number };\n return (\n <div style={marginStyle}>\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n {Object.keys(subcounts).map((subcountName: string) => {\n return (\n <div key={subcountName} className={_classNames.calloutBlockContainer}>\n <div className={_classNames.calloutlegendText}> {convertToLocaleString(subcountName, culture)}</div>\n <div className={_classNames.calloutContentY}>\n {convertToLocaleString(subcounts[subcountName], culture)}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n }\n\n /**\n * When screen resizes, along with screen, chart also auto adjusted.\n * This method used to adjust height and width of the charts.\n */\n private _fitParentContainer(): void {\n const { containerWidth, containerHeight } = this.state;\n this._reqID = requestAnimationFrame(() => {\n let legendContainerHeight;\n if (this.props.hideLegend) {\n // If there is no legend, need not to allocate some space from total chart space.\n legendContainerHeight = 0;\n } else {\n const legendContainerComputedStyles = this.legendContainer && getComputedStyle(this.legendContainer);\n legendContainerHeight =\n ((this.legendContainer && this.legendContainer.getBoundingClientRect().height) ||\n this.minLegendContainerHeight) +\n parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginTop) || '0') +\n parseFloat((legendContainerComputedStyles && legendContainerComputedStyles.marginBottom) || '0');\n }\n if (this.props.parentRef || this.chartContainer) {\n const container = this.props.parentRef ? this.props.parentRef : this.chartContainer;\n const currentContainerWidth = container.getBoundingClientRect().width;\n const currentContainerHeight =\n container.getBoundingClientRect().height > legendContainerHeight\n ? container.getBoundingClientRect().height\n : 350;\n const shouldResize =\n containerWidth !== currentContainerWidth ||\n containerHeight !== currentContainerHeight - legendContainerHeight;\n if (shouldResize) {\n this.setState({\n containerWidth: currentContainerWidth,\n containerHeight: currentContainerHeight - legendContainerHeight,\n });\n }\n }\n });\n }\n\n // Call back to the chart.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _getData = (xScale: any, yScale: any) => {\n this.props.getGraphData &&\n this.props.getGraphData(\n xScale,\n yScale,\n this.state.containerHeight - this.state._removalValueForTextTuncate!,\n this.state.containerWidth,\n this.xAxisElement,\n this.yAxisElement,\n );\n };\n\n private _onChartLeave = (): void => {\n this.props.onChartMouseLeave && this.props.onChartMouseLeave();\n };\n}\n"]}
@@ -4,5 +4,5 @@ exports.CartesianChart = void 0;
4
4
  var Utilities_1 = require("@fluentui/react/lib/Utilities");
5
5
  var CartesianChart_base_1 = require("./CartesianChart.base");
6
6
  var CartesianChart_styles_1 = require("./CartesianChart.styles");
7
- exports.CartesianChart = Utilities_1.styled(CartesianChart_base_1.CartesianChartBase, CartesianChart_styles_1.getStyles);
7
+ exports.CartesianChart = (0, Utilities_1.styled)(CartesianChart_base_1.CartesianChartBase, CartesianChart_styles_1.getStyles);
8
8
  //# sourceMappingURL=CartesianChart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartesianChart.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,6DAA2D;AAC3D,iEAAoD;AAEvC,QAAA,cAAc,GAA0D,kBAAM,CAIzF,wCAAkB,EAAE,iCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IModifiedCartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.types';\nimport { CartesianChartBase } from './CartesianChart.base';\nimport { getStyles } from './CartesianChart.styles';\n\nexport const CartesianChart: React.FunctionComponent<IModifiedCartesianChartProps> = styled<\n IModifiedCartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles\n>(CartesianChartBase, getStyles);\n"]}
1
+ {"version":3,"file":"CartesianChart.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,6DAA2D;AAC3D,iEAAoD;AAEvC,QAAA,cAAc,GAA0D,IAAA,kBAAM,EAIzF,wCAAkB,EAAE,iCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IModifiedCartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.types';\nimport { CartesianChartBase } from './CartesianChart.base';\nimport { getStyles } from './CartesianChart.styles';\n\nexport const CartesianChart: React.FunctionComponent<IModifiedCartesianChartProps> = styled<\n IModifiedCartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles\n>(CartesianChartBase, getStyles);\n"]}
@@ -4,7 +4,7 @@ exports.getStyles = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var Styling_1 = require("@fluentui/react/lib/Styling");
6
6
  var react_1 = require("@fluentui/react");
7
- var isIE11Var = react_1.isIE11();
7
+ var isIE11Var = (0, react_1.isIE11)();
8
8
  var getStyles = function (props) {
9
9
  var _a, _b, _c, _d, _e, _f, _g, _h;
10
10
  var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href, _j = props.lineColor, lineColor = _j === void 0 ? 'transparent' : _j, toDrawShape = props.toDrawShape;
@@ -111,7 +111,7 @@ var getStyles = function (props) {
111
111
  justifyContent: 'space-between',
112
112
  },
113
113
  calloutContentX: [
114
- tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', opacity: '0.8', color: theme.semanticColors.bodySubtext }),
114
+ (0, tslib_1.__assign)((0, tslib_1.__assign)({}, fonts.small), { lineHeight: '16px', opacity: '0.8', color: theme.semanticColors.bodySubtext }),
115
115
  ],
116
116
  calloutBlockContainer: [
117
117
  theme.fonts.mediumPlus,
@@ -125,7 +125,7 @@ var getStyles = function (props) {
125
125
  forcedColorAdjust: 'none',
126
126
  },
127
127
  _e),
128
- borderLeft: "4px solid " + lineColor,
128
+ borderLeft: "4px solid ".concat(lineColor),
129
129
  paddingLeft: '8px',
130
130
  },
131
131
  toDrawShape && {
@@ -135,13 +135,13 @@ var getStyles = function (props) {
135
135
  shapeStyles: {
136
136
  marginRight: '8px',
137
137
  },
138
- calloutlegendText: tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', selectors: (_f = {},
138
+ calloutlegendText: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, fonts.small), { lineHeight: '16px', selectors: (_f = {},
139
139
  _f[Styling_1.HighContrastSelectorBlack] = {
140
140
  color: 'rgb(255, 255, 255)',
141
141
  },
142
142
  _f), color: theme.semanticColors.bodySubtext }),
143
143
  calloutContentY: [
144
- tslib_1.__assign(tslib_1.__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_g = {},
144
+ (0, tslib_1.__assign)((0, tslib_1.__assign)({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_g = {},
145
145
  _g[Styling_1.HighContrastSelectorBlack] = {
146
146
  color: 'rgb(255, 255, 255)',
147
147
  },
@@ -158,7 +158,7 @@ var getStyles = function (props) {
158
158
  color: theme.semanticColors.bodyText,
159
159
  marginTop: '10px',
160
160
  paddingTop: '10px',
161
- borderTop: "1px solid " + theme.semanticColors.menuDivider,
161
+ borderTop: "1px solid ".concat(theme.semanticColors.menuDivider),
162
162
  },
163
163
  ],
164
164
  };