@fluentui/react-charting 5.16.24 → 5.16.26

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 (796) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/config/setup-env.js +1 -0
  4. package/dist/react-charting.js +1 -0
  5. package/dist/react-charting.min.js +1 -0
  6. package/docs/TestPlans/BasicDonutChart.png +0 -0
  7. package/docs/TestPlans/DonutChart/ComponentTests.md +35 -0
  8. package/lib/AreaChart.d.ts +1 -0
  9. package/lib/AreaChart.js +2 -0
  10. package/lib/AreaChart.js.map +1 -0
  11. package/lib/CartesianChart.d.ts +1 -0
  12. package/lib/CartesianChart.js +2 -0
  13. package/lib/CartesianChart.js.map +1 -0
  14. package/lib/DonutChart.d.ts +1 -0
  15. package/lib/DonutChart.js +2 -0
  16. package/lib/DonutChart.js.map +1 -0
  17. package/lib/GroupedVerticalBarChart.d.ts +1 -0
  18. package/lib/GroupedVerticalBarChart.js +2 -0
  19. package/lib/GroupedVerticalBarChart.js.map +1 -0
  20. package/lib/HeatMapChart.d.ts +1 -0
  21. package/lib/HeatMapChart.js +2 -0
  22. package/lib/HeatMapChart.js.map +1 -0
  23. package/lib/HorizontalBarChart.d.ts +1 -0
  24. package/lib/HorizontalBarChart.js +2 -0
  25. package/lib/HorizontalBarChart.js.map +1 -0
  26. package/lib/Legends.d.ts +1 -0
  27. package/lib/Legends.js +2 -0
  28. package/lib/Legends.js.map +1 -0
  29. package/lib/LineChart.d.ts +1 -0
  30. package/lib/LineChart.js +2 -0
  31. package/lib/LineChart.js.map +1 -0
  32. package/lib/PieChart.d.ts +1 -0
  33. package/lib/PieChart.js +2 -0
  34. package/lib/PieChart.js.map +1 -0
  35. package/lib/SankeyChart.d.ts +1 -0
  36. package/lib/SankeyChart.js +2 -0
  37. package/lib/SankeyChart.js.map +1 -0
  38. package/lib/Sparkline.d.ts +1 -0
  39. package/lib/Sparkline.js +2 -0
  40. package/lib/Sparkline.js.map +1 -0
  41. package/lib/StackedBarChart.d.ts +1 -0
  42. package/lib/StackedBarChart.js +2 -0
  43. package/lib/StackedBarChart.js.map +1 -0
  44. package/lib/Styling.d.ts +2 -0
  45. package/lib/Styling.js +8 -0
  46. package/lib/Styling.js.map +1 -0
  47. package/lib/TreeChart.d.ts +1 -0
  48. package/lib/TreeChart.js +2 -0
  49. package/lib/TreeChart.js.map +1 -0
  50. package/lib/Utilities.d.ts +2 -0
  51. package/lib/Utilities.js +20 -0
  52. package/lib/Utilities.js.map +1 -0
  53. package/lib/VerticalBarChart.d.ts +1 -0
  54. package/lib/VerticalBarChart.js +2 -0
  55. package/lib/VerticalBarChart.js.map +1 -0
  56. package/lib/VerticalStackedBarChart.d.ts +1 -0
  57. package/lib/VerticalStackedBarChart.js +2 -0
  58. package/lib/VerticalStackedBarChart.js.map +1 -0
  59. package/lib/components/AreaChart/AreaChart.base.d.ts +92 -0
  60. package/lib/components/AreaChart/AreaChart.base.js +562 -0
  61. package/lib/components/AreaChart/AreaChart.base.js.map +1 -0
  62. package/lib/components/AreaChart/AreaChart.d.ts +3 -0
  63. package/lib/components/AreaChart/AreaChart.js +6 -0
  64. package/lib/components/AreaChart/AreaChart.js.map +1 -0
  65. package/lib/components/AreaChart/AreaChart.styles.d.ts +2 -0
  66. package/lib/components/AreaChart/AreaChart.styles.js +7 -0
  67. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -0
  68. package/lib/components/AreaChart/AreaChart.types.d.ts +37 -0
  69. package/lib/components/AreaChart/AreaChart.types.js +2 -0
  70. package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
  71. package/lib/components/AreaChart/index.d.ts +2 -0
  72. package/lib/components/AreaChart/index.js +3 -0
  73. package/lib/components/AreaChart/index.js.map +1 -0
  74. package/lib/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  75. package/lib/components/CommonComponents/CartesianChart.base.js +331 -0
  76. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -0
  77. package/lib/components/CommonComponents/CartesianChart.d.ts +3 -0
  78. package/lib/components/CommonComponents/CartesianChart.js +5 -0
  79. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  80. package/lib/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  81. package/lib/components/CommonComponents/CartesianChart.styles.js +163 -0
  82. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  83. package/lib/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  84. package/lib/components/CommonComponents/CartesianChart.types.js +2 -0
  85. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  86. package/lib/components/CommonComponents/index.d.ts +2 -0
  87. package/lib/components/CommonComponents/index.js +3 -0
  88. package/lib/components/CommonComponents/index.js.map +1 -0
  89. package/lib/components/DonutChart/Arc/Arc.d.ts +21 -0
  90. package/lib/components/DonutChart/Arc/Arc.js +86 -0
  91. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  92. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  93. package/lib/components/DonutChart/Arc/Arc.styles.js +28 -0
  94. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  95. package/lib/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  96. package/lib/components/DonutChart/Arc/Arc.types.js +2 -0
  97. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  98. package/lib/components/DonutChart/Arc/index.d.ts +2 -0
  99. package/lib/components/DonutChart/Arc/index.js +3 -0
  100. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  101. package/lib/components/DonutChart/DonutChart.base.d.ts +50 -0
  102. package/lib/components/DonutChart/DonutChart.base.js +211 -0
  103. package/lib/components/DonutChart/DonutChart.base.js.map +1 -0
  104. package/lib/components/DonutChart/DonutChart.d.ts +3 -0
  105. package/lib/components/DonutChart/DonutChart.js +6 -0
  106. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  107. package/lib/components/DonutChart/DonutChart.styles.d.ts +2 -0
  108. package/lib/components/DonutChart/DonutChart.styles.js +30 -0
  109. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
  110. package/lib/components/DonutChart/DonutChart.types.d.ts +63 -0
  111. package/lib/components/DonutChart/DonutChart.types.js +2 -0
  112. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  113. package/lib/components/DonutChart/Pie/Pie.d.ts +15 -0
  114. package/lib/components/DonutChart/Pie/Pie.js +71 -0
  115. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  116. package/lib/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  117. package/lib/components/DonutChart/Pie/Pie.styles.js +19 -0
  118. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  119. package/lib/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  120. package/lib/components/DonutChart/Pie/Pie.types.js +2 -0
  121. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  122. package/lib/components/DonutChart/Pie/index.d.ts +2 -0
  123. package/lib/components/DonutChart/Pie/index.js +3 -0
  124. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  125. package/lib/components/DonutChart/index.d.ts +3 -0
  126. package/lib/components/DonutChart/index.js +4 -0
  127. package/lib/components/DonutChart/index.js.map +1 -0
  128. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  129. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +381 -0
  130. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  131. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  132. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +6 -0
  133. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  134. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  135. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +17 -0
  136. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  137. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  138. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +2 -0
  139. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  140. package/lib/components/GroupedVerticalBarChart/index.d.ts +2 -0
  141. package/lib/components/GroupedVerticalBarChart/index.js +3 -0
  142. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
  143. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  144. package/lib/components/HeatMapChart/HeatMapChart.base.js +498 -0
  145. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  146. package/lib/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  147. package/lib/components/HeatMapChart/HeatMapChart.js +5 -0
  148. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
  149. package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  150. package/lib/components/HeatMapChart/HeatMapChart.styles.js +24 -0
  151. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  152. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  153. package/lib/components/HeatMapChart/HeatMapChart.types.js +2 -0
  154. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  155. package/lib/components/HeatMapChart/index.d.ts +2 -0
  156. package/lib/components/HeatMapChart/index.js +3 -0
  157. package/lib/components/HeatMapChart/index.js.map +1 -0
  158. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  159. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +237 -0
  160. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  161. package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  162. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +6 -0
  163. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  164. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  165. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
  166. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  167. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  168. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  169. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  170. package/lib/components/HorizontalBarChart/index.d.ts +3 -0
  171. package/lib/components/HorizontalBarChart/index.js +4 -0
  172. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  173. package/lib/components/Legends/Legends.base.d.ts +44 -0
  174. package/lib/components/Legends/Legends.base.js +293 -0
  175. package/lib/components/Legends/Legends.base.js.map +1 -0
  176. package/lib/components/Legends/Legends.d.ts +3 -0
  177. package/lib/components/Legends/Legends.js +5 -0
  178. package/lib/components/Legends/Legends.js.map +1 -0
  179. package/lib/components/Legends/Legends.styles.d.ts +2 -0
  180. package/lib/components/Legends/Legends.styles.js +103 -0
  181. package/lib/components/Legends/Legends.styles.js.map +1 -0
  182. package/lib/components/Legends/Legends.types.d.ts +169 -0
  183. package/lib/components/Legends/Legends.types.js +2 -0
  184. package/lib/components/Legends/Legends.types.js.map +1 -0
  185. package/lib/components/Legends/index.d.ts +3 -0
  186. package/lib/components/Legends/index.js +4 -0
  187. package/lib/components/Legends/index.js.map +1 -0
  188. package/lib/components/Legends/shape.d.ts +9 -0
  189. package/lib/components/Legends/shape.js +24 -0
  190. package/lib/components/Legends/shape.js.map +1 -0
  191. package/lib/components/LineChart/LineChart.base.d.ts +84 -0
  192. package/lib/components/LineChart/LineChart.base.js +815 -0
  193. package/lib/components/LineChart/LineChart.base.js.map +1 -0
  194. package/lib/components/LineChart/LineChart.d.ts +3 -0
  195. package/lib/components/LineChart/LineChart.js +6 -0
  196. package/lib/components/LineChart/LineChart.js.map +1 -0
  197. package/lib/components/LineChart/LineChart.styles.d.ts +2 -0
  198. package/lib/components/LineChart/LineChart.styles.js +7 -0
  199. package/lib/components/LineChart/LineChart.styles.js.map +1 -0
  200. package/lib/components/LineChart/LineChart.types.d.ts +72 -0
  201. package/lib/components/LineChart/LineChart.types.js +2 -0
  202. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  203. package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  204. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +93 -0
  205. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  206. package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  207. package/lib/components/LineChart/eventAnnotation/LabelLink.js +37 -0
  208. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  209. package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  210. package/lib/components/LineChart/eventAnnotation/Textbox.js +37 -0
  211. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  212. package/lib/components/LineChart/index.d.ts +3 -0
  213. package/lib/components/LineChart/index.js +4 -0
  214. package/lib/components/LineChart/index.js.map +1 -0
  215. package/lib/components/PieChart/Arc/Arc.d.ts +12 -0
  216. package/lib/components/PieChart/Arc/Arc.js +57 -0
  217. package/lib/components/PieChart/Arc/Arc.js.map +1 -0
  218. package/lib/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  219. package/lib/components/PieChart/Arc/Arc.styles.js +8 -0
  220. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -0
  221. package/lib/components/PieChart/Arc/Arc.types.d.ts +60 -0
  222. package/lib/components/PieChart/Arc/Arc.types.js +2 -0
  223. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -0
  224. package/lib/components/PieChart/Arc/index.d.ts +2 -0
  225. package/lib/components/PieChart/Arc/index.js +3 -0
  226. package/lib/components/PieChart/Arc/index.js.map +1 -0
  227. package/lib/components/PieChart/Pie/Pie.d.ts +10 -0
  228. package/lib/components/PieChart/Pie/Pie.js +35 -0
  229. package/lib/components/PieChart/Pie/Pie.js.map +1 -0
  230. package/lib/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  231. package/lib/components/PieChart/Pie/Pie.styles.js +6 -0
  232. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -0
  233. package/lib/components/PieChart/Pie/Pie.types.d.ts +46 -0
  234. package/lib/components/PieChart/Pie/Pie.types.js +2 -0
  235. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -0
  236. package/lib/components/PieChart/Pie/index.d.ts +2 -0
  237. package/lib/components/PieChart/Pie/index.js +3 -0
  238. package/lib/components/PieChart/Pie/index.js.map +1 -0
  239. package/lib/components/PieChart/PieChart.base.d.ts +7 -0
  240. package/lib/components/PieChart/PieChart.base.js +34 -0
  241. package/lib/components/PieChart/PieChart.base.js.map +1 -0
  242. package/lib/components/PieChart/PieChart.d.ts +3 -0
  243. package/lib/components/PieChart/PieChart.js +6 -0
  244. package/lib/components/PieChart/PieChart.js.map +1 -0
  245. package/lib/components/PieChart/PieChart.styles.d.ts +2 -0
  246. package/lib/components/PieChart/PieChart.styles.js +29 -0
  247. package/lib/components/PieChart/PieChart.styles.js.map +1 -0
  248. package/lib/components/PieChart/PieChart.types.d.ts +63 -0
  249. package/lib/components/PieChart/PieChart.types.js +2 -0
  250. package/lib/components/PieChart/PieChart.types.js.map +1 -0
  251. package/lib/components/PieChart/index.d.ts +2 -0
  252. package/lib/components/PieChart/index.js +3 -0
  253. package/lib/components/PieChart/index.js.map +1 -0
  254. package/lib/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  255. package/lib/components/SankeyChart/SankeyChart.base.js +674 -0
  256. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -0
  257. package/lib/components/SankeyChart/SankeyChart.d.ts +3 -0
  258. package/lib/components/SankeyChart/SankeyChart.js +6 -0
  259. package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
  260. package/lib/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  261. package/lib/components/SankeyChart/SankeyChart.styles.js +58 -0
  262. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  263. package/lib/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  264. package/lib/components/SankeyChart/SankeyChart.types.js +2 -0
  265. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
  266. package/lib/components/SankeyChart/index.d.ts +2 -0
  267. package/lib/components/SankeyChart/index.js +3 -0
  268. package/lib/components/SankeyChart/index.js.map +1 -0
  269. package/lib/components/Sparkline/Sparkline.base.d.ts +20 -0
  270. package/lib/components/Sparkline/Sparkline.base.js +76 -0
  271. package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
  272. package/lib/components/Sparkline/Sparkline.d.ts +3 -0
  273. package/lib/components/Sparkline/Sparkline.js +6 -0
  274. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  275. package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
  276. package/lib/components/Sparkline/Sparkline.styles.js +10 -0
  277. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
  278. package/lib/components/Sparkline/Sparkline.types.d.ts +51 -0
  279. package/lib/components/Sparkline/Sparkline.types.js +2 -0
  280. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  281. package/lib/components/Sparkline/index.d.ts +2 -0
  282. package/lib/components/Sparkline/index.js +3 -0
  283. package/lib/components/Sparkline/index.js.map +1 -0
  284. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  285. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +356 -0
  286. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  287. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  288. package/lib/components/StackedBarChart/MultiStackedBarChart.js +6 -0
  289. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  290. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  291. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +90 -0
  292. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  293. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  294. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +6 -0
  295. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  296. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  297. package/lib/components/StackedBarChart/StackedBarChart.base.js +311 -0
  298. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  299. package/lib/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  300. package/lib/components/StackedBarChart/StackedBarChart.js +6 -0
  301. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -0
  302. package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  303. package/lib/components/StackedBarChart/StackedBarChart.styles.js +104 -0
  304. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  305. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  306. package/lib/components/StackedBarChart/StackedBarChart.types.js +2 -0
  307. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  308. package/lib/components/StackedBarChart/index.d.ts +5 -0
  309. package/lib/components/StackedBarChart/index.js +6 -0
  310. package/lib/components/StackedBarChart/index.js.map +1 -0
  311. package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
  312. package/lib/components/TreeChart/TreeChart.base.js +316 -0
  313. package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
  314. package/lib/components/TreeChart/TreeChart.d.ts +3 -0
  315. package/lib/components/TreeChart/TreeChart.js +5 -0
  316. package/lib/components/TreeChart/TreeChart.js.map +1 -0
  317. package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
  318. package/lib/components/TreeChart/TreeChart.styles.js +29 -0
  319. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
  320. package/lib/components/TreeChart/TreeChart.types.d.ts +197 -0
  321. package/lib/components/TreeChart/TreeChart.types.js +23 -0
  322. package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
  323. package/lib/components/TreeChart/index.d.ts +2 -0
  324. package/lib/components/TreeChart/index.js +3 -0
  325. package/lib/components/TreeChart/index.js.map +1 -0
  326. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  327. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +536 -0
  328. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  329. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  330. package/lib/components/VerticalBarChart/VerticalBarChart.js +6 -0
  331. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  332. package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  333. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +28 -0
  334. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  335. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  336. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +2 -0
  337. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  338. package/lib/components/VerticalBarChart/index.d.ts +2 -0
  339. package/lib/components/VerticalBarChart/index.js +3 -0
  340. package/lib/components/VerticalBarChart/index.js.map +1 -0
  341. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  342. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +666 -0
  343. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  344. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  345. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -0
  346. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  347. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  348. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +18 -0
  349. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  350. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  351. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +2 -0
  352. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  353. package/lib/components/VerticalStackedBarChart/index.d.ts +2 -0
  354. package/lib/components/VerticalStackedBarChart/index.js +3 -0
  355. package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
  356. package/lib/index.d.ts +19 -0
  357. package/lib/index.js +20 -0
  358. package/lib/index.js.map +1 -0
  359. package/lib/types/IDataPoint.d.ts +545 -0
  360. package/lib/types/IDataPoint.js +2 -0
  361. package/lib/types/IDataPoint.js.map +1 -0
  362. package/lib/types/IEventAnnotation.d.ts +6 -0
  363. package/lib/types/IEventAnnotation.js +2 -0
  364. package/lib/types/IEventAnnotation.js.map +1 -0
  365. package/lib/types/ILegendDataItem.d.ts +10 -0
  366. package/lib/types/ILegendDataItem.js +2 -0
  367. package/lib/types/ILegendDataItem.js.map +1 -0
  368. package/lib/types/index.d.ts +2 -0
  369. package/lib/types/index.js +3 -0
  370. package/lib/types/index.js.map +1 -0
  371. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  372. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +38 -0
  373. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  374. package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  375. package/lib/utilities/ChartHoverCard/ChartHoverCard.js +6 -0
  376. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  377. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  378. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +82 -0
  379. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  380. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  381. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +2 -0
  382. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  383. package/lib/utilities/ChartHoverCard/index.d.ts +3 -0
  384. package/lib/utilities/ChartHoverCard/index.js +4 -0
  385. package/lib/utilities/ChartHoverCard/index.js.map +1 -0
  386. package/lib/utilities/FocusableTooltipText.d.ts +27 -0
  387. package/lib/utilities/FocusableTooltipText.js +54 -0
  388. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  389. package/lib/utilities/colors.d.ts +51 -0
  390. package/lib/utilities/colors.js +132 -0
  391. package/lib/utilities/colors.js.map +1 -0
  392. package/lib/utilities/index.d.ts +3 -0
  393. package/lib/utilities/index.js +4 -0
  394. package/lib/utilities/index.js.map +1 -0
  395. package/lib/utilities/utilities.d.ts +377 -0
  396. package/lib/utilities/utilities.js +864 -0
  397. package/lib/utilities/utilities.js.map +1 -0
  398. package/lib/version.d.ts +1 -0
  399. package/lib/version.js +5 -0
  400. package/lib/version.js.map +1 -0
  401. package/lib-amd/AreaChart.d.ts +1 -0
  402. package/lib-amd/AreaChart.js +6 -0
  403. package/lib-amd/AreaChart.js.map +1 -0
  404. package/lib-amd/CartesianChart.d.ts +1 -0
  405. package/lib-amd/CartesianChart.js +6 -0
  406. package/lib-amd/CartesianChart.js.map +1 -0
  407. package/lib-amd/DonutChart.d.ts +1 -0
  408. package/lib-amd/DonutChart.js +6 -0
  409. package/lib-amd/DonutChart.js.map +1 -0
  410. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  411. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  412. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  413. package/lib-amd/HeatMapChart.d.ts +1 -0
  414. package/lib-amd/HeatMapChart.js +6 -0
  415. package/lib-amd/HeatMapChart.js.map +1 -0
  416. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  417. package/lib-amd/HorizontalBarChart.js +6 -0
  418. package/lib-amd/HorizontalBarChart.js.map +1 -0
  419. package/lib-amd/Legends.d.ts +1 -0
  420. package/lib-amd/Legends.js +6 -0
  421. package/lib-amd/Legends.js.map +1 -0
  422. package/lib-amd/LineChart.d.ts +1 -0
  423. package/lib-amd/LineChart.js +6 -0
  424. package/lib-amd/LineChart.js.map +1 -0
  425. package/lib-amd/PieChart.d.ts +1 -0
  426. package/lib-amd/PieChart.js +6 -0
  427. package/lib-amd/PieChart.js.map +1 -0
  428. package/lib-amd/SankeyChart.d.ts +1 -0
  429. package/lib-amd/SankeyChart.js +6 -0
  430. package/lib-amd/SankeyChart.js.map +1 -0
  431. package/lib-amd/Sparkline.d.ts +1 -0
  432. package/lib-amd/Sparkline.js +6 -0
  433. package/lib-amd/Sparkline.js.map +1 -0
  434. package/lib-amd/StackedBarChart.d.ts +1 -0
  435. package/lib-amd/StackedBarChart.js +6 -0
  436. package/lib-amd/StackedBarChart.js.map +1 -0
  437. package/lib-amd/Styling.d.ts +2 -0
  438. package/lib-amd/Styling.js +75 -0
  439. package/lib-amd/Styling.js.map +1 -0
  440. package/lib-amd/TreeChart.d.ts +1 -0
  441. package/lib-amd/TreeChart.js +6 -0
  442. package/lib-amd/TreeChart.js.map +1 -0
  443. package/lib-amd/Utilities.d.ts +2 -0
  444. package/lib-amd/Utilities.js +183 -0
  445. package/lib-amd/Utilities.js.map +1 -0
  446. package/lib-amd/VerticalBarChart.d.ts +1 -0
  447. package/lib-amd/VerticalBarChart.js +6 -0
  448. package/lib-amd/VerticalBarChart.js.map +1 -0
  449. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  450. package/lib-amd/VerticalStackedBarChart.js +6 -0
  451. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  452. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +92 -0
  453. package/lib-amd/components/AreaChart/AreaChart.base.js +555 -0
  454. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  455. package/lib-amd/components/AreaChart/AreaChart.d.ts +3 -0
  456. package/lib-amd/components/AreaChart/AreaChart.js +8 -0
  457. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  458. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  459. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  460. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  461. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +37 -0
  462. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  463. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  464. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  465. package/lib-amd/components/AreaChart/index.js +7 -0
  466. package/lib-amd/components/AreaChart/index.js.map +1 -0
  467. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  468. package/lib-amd/components/CommonComponents/CartesianChart.base.js +329 -0
  469. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  470. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +3 -0
  471. package/lib-amd/components/CommonComponents/CartesianChart.js +7 -0
  472. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  473. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  474. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +166 -0
  475. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  476. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  477. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  478. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  479. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  480. package/lib-amd/components/CommonComponents/index.js +7 -0
  481. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  482. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
  483. package/lib-amd/components/DonutChart/Arc/Arc.js +85 -0
  484. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  485. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  486. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
  487. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  488. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  489. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  490. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  491. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  492. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  493. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  494. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +50 -0
  495. package/lib-amd/components/DonutChart/DonutChart.base.js +208 -0
  496. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  497. package/lib-amd/components/DonutChart/DonutChart.d.ts +3 -0
  498. package/lib-amd/components/DonutChart/DonutChart.js +8 -0
  499. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  500. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  501. package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
  502. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  503. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +63 -0
  504. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  505. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  506. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
  507. package/lib-amd/components/DonutChart/Pie/Pie.js +69 -0
  508. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  509. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  510. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
  511. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  512. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  513. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  514. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  515. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  516. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  517. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  518. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  519. package/lib-amd/components/DonutChart/index.js +8 -0
  520. package/lib-amd/components/DonutChart/index.js.map +1 -0
  521. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  522. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +375 -0
  523. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  524. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  525. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -0
  526. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  527. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  528. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
  529. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  530. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  531. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  532. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  533. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  534. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  535. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  536. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  537. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +492 -0
  538. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  539. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  540. package/lib-amd/components/HeatMapChart/HeatMapChart.js +7 -0
  541. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  542. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  543. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
  544. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  545. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  546. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  547. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  548. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  549. package/lib-amd/components/HeatMapChart/index.js +7 -0
  550. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  551. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  552. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +233 -0
  553. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  554. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  555. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +8 -0
  556. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  557. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  558. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +72 -0
  559. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  560. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  561. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +11 -0
  562. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  563. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  564. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  565. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  566. package/lib-amd/components/Legends/Legends.base.d.ts +44 -0
  567. package/lib-amd/components/Legends/Legends.base.js +290 -0
  568. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  569. package/lib-amd/components/Legends/Legends.d.ts +3 -0
  570. package/lib-amd/components/Legends/Legends.js +7 -0
  571. package/lib-amd/components/Legends/Legends.js.map +1 -0
  572. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  573. package/lib-amd/components/Legends/Legends.styles.js +107 -0
  574. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  575. package/lib-amd/components/Legends/Legends.types.d.ts +169 -0
  576. package/lib-amd/components/Legends/Legends.types.js +5 -0
  577. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  578. package/lib-amd/components/Legends/index.d.ts +3 -0
  579. package/lib-amd/components/Legends/index.js +8 -0
  580. package/lib-amd/components/Legends/index.js.map +1 -0
  581. package/lib-amd/components/Legends/shape.d.ts +9 -0
  582. package/lib-amd/components/Legends/shape.js +27 -0
  583. package/lib-amd/components/Legends/shape.js.map +1 -0
  584. package/lib-amd/components/LineChart/LineChart.base.d.ts +84 -0
  585. package/lib-amd/components/LineChart/LineChart.base.js +809 -0
  586. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  587. package/lib-amd/components/LineChart/LineChart.d.ts +3 -0
  588. package/lib-amd/components/LineChart/LineChart.js +8 -0
  589. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  590. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  591. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  592. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  593. package/lib-amd/components/LineChart/LineChart.types.d.ts +72 -0
  594. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  595. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  596. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  597. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +95 -0
  598. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  599. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  600. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +40 -0
  601. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  602. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  603. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  604. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  605. package/lib-amd/components/LineChart/index.d.ts +3 -0
  606. package/lib-amd/components/LineChart/index.js +8 -0
  607. package/lib-amd/components/LineChart/index.js.map +1 -0
  608. package/lib-amd/components/PieChart/Arc/Arc.d.ts +12 -0
  609. package/lib-amd/components/PieChart/Arc/Arc.js +56 -0
  610. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  611. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  612. package/lib-amd/components/PieChart/Arc/Arc.styles.js +13 -0
  613. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  614. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +60 -0
  615. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  616. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  617. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  618. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  619. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  620. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  621. package/lib-amd/components/PieChart/Pie/Pie.js +35 -0
  622. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  623. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  624. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  625. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  626. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +46 -0
  627. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  628. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  629. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  630. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  631. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  632. package/lib-amd/components/PieChart/PieChart.base.d.ts +7 -0
  633. package/lib-amd/components/PieChart/PieChart.base.js +35 -0
  634. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  635. package/lib-amd/components/PieChart/PieChart.d.ts +3 -0
  636. package/lib-amd/components/PieChart/PieChart.js +8 -0
  637. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  638. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  639. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  640. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  641. package/lib-amd/components/PieChart/PieChart.types.d.ts +63 -0
  642. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  643. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  644. package/lib-amd/components/PieChart/index.d.ts +2 -0
  645. package/lib-amd/components/PieChart/index.js +7 -0
  646. package/lib-amd/components/PieChart/index.js.map +1 -0
  647. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  648. package/lib-amd/components/SankeyChart/SankeyChart.base.js +669 -0
  649. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  650. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +3 -0
  651. package/lib-amd/components/SankeyChart/SankeyChart.js +8 -0
  652. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  653. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  654. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +62 -0
  655. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  656. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  657. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  658. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  659. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  660. package/lib-amd/components/SankeyChart/index.js +7 -0
  661. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  662. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +20 -0
  663. package/lib-amd/components/Sparkline/Sparkline.base.js +74 -0
  664. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  665. package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
  666. package/lib-amd/components/Sparkline/Sparkline.js +8 -0
  667. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  668. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  669. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  670. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  671. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +51 -0
  672. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  673. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  674. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  675. package/lib-amd/components/Sparkline/index.js +7 -0
  676. package/lib-amd/components/Sparkline/index.js.map +1 -0
  677. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  678. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +351 -0
  679. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  680. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  681. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +8 -0
  682. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  683. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  684. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +93 -0
  685. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  686. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  687. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +11 -0
  688. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  689. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  690. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +308 -0
  691. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  692. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  693. package/lib-amd/components/StackedBarChart/StackedBarChart.js +8 -0
  694. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  695. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  696. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +108 -0
  697. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  698. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  699. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  700. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  701. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  702. package/lib-amd/components/StackedBarChart/index.js +10 -0
  703. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  704. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  705. package/lib-amd/components/TreeChart/TreeChart.base.js +314 -0
  706. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  707. package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
  708. package/lib-amd/components/TreeChart/TreeChart.js +7 -0
  709. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  710. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  711. package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
  712. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  713. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +197 -0
  714. package/lib-amd/components/TreeChart/TreeChart.types.js +28 -0
  715. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  716. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  717. package/lib-amd/components/TreeChart/index.js +7 -0
  718. package/lib-amd/components/TreeChart/index.js.map +1 -0
  719. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  720. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +529 -0
  721. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  722. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  723. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +8 -0
  724. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  725. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  726. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
  727. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  728. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  729. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  730. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  731. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  732. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  733. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  734. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  735. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +659 -0
  736. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  737. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  738. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -0
  739. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  740. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  741. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
  742. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  743. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  744. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  745. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  746. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  747. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  748. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  749. package/lib-amd/index.d.ts +19 -0
  750. package/lib-amd/index.js +23 -0
  751. package/lib-amd/index.js.map +1 -0
  752. package/lib-amd/types/IDataPoint.d.ts +545 -0
  753. package/lib-amd/types/IDataPoint.js +5 -0
  754. package/lib-amd/types/IDataPoint.js.map +1 -0
  755. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  756. package/lib-amd/types/IEventAnnotation.js +5 -0
  757. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  758. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  759. package/lib-amd/types/ILegendDataItem.js +5 -0
  760. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  761. package/lib-amd/types/index.d.ts +2 -0
  762. package/lib-amd/types/index.js +7 -0
  763. package/lib-amd/types/index.js.map +1 -0
  764. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  765. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  766. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  767. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  768. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  769. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  770. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  771. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +87 -0
  772. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  773. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  774. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  775. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  776. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  777. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  778. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  779. package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
  780. package/lib-amd/utilities/FocusableTooltipText.js +54 -0
  781. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
  782. package/lib-amd/utilities/colors.d.ts +51 -0
  783. package/lib-amd/utilities/colors.js +139 -0
  784. package/lib-amd/utilities/colors.js.map +1 -0
  785. package/lib-amd/utilities/index.d.ts +3 -0
  786. package/lib-amd/utilities/index.js +8 -0
  787. package/lib-amd/utilities/index.js.map +1 -0
  788. package/lib-amd/utilities/utilities.d.ts +377 -0
  789. package/lib-amd/utilities/utilities.js +888 -0
  790. package/lib-amd/utilities/utilities.js.map +1 -0
  791. package/lib-amd/version.d.ts +1 -0
  792. package/lib-amd/version.js +6 -0
  793. package/lib-amd/version.js.map +1 -0
  794. package/lib-commonjs/version.js +1 -1
  795. package/lib-commonjs/version.js.map +1 -1
  796. package/package.json +5 -4
@@ -0,0 +1,56 @@
1
+ import * as React from 'react';
2
+ import { IAccessibilityProps, IChartDataPoint, IMultiStackedBarChartProps } from './index';
3
+ export interface IRefArrayData {
4
+ legendText?: string;
5
+ refElement?: SVGGElement;
6
+ }
7
+ export interface IMultiStackedBarChartState {
8
+ isCalloutVisible: boolean;
9
+ refArray: IRefArrayData[];
10
+ selectedLegend: string;
11
+ activeLegend: string;
12
+ refSelected: any;
13
+ dataForHoverCard: number;
14
+ color: string;
15
+ xCalloutValue?: string;
16
+ yCalloutValue?: string;
17
+ dataPointCalloutProps?: IChartDataPoint;
18
+ callOutAccessibilityData?: IAccessibilityProps;
19
+ calloutLegend: string;
20
+ }
21
+ export declare class MultiStackedBarChartBase extends React.Component<IMultiStackedBarChartProps, IMultiStackedBarChartState> {
22
+ static defaultProps: Partial<IMultiStackedBarChartProps>;
23
+ private _classNames;
24
+ private _calloutId;
25
+ private _calloutAnchorPoint;
26
+ private _longestBarTotalValue;
27
+ private _isRTL;
28
+ constructor(props: IMultiStackedBarChartProps);
29
+ render(): JSX.Element;
30
+ private _createBarsAndLegends;
31
+ private _onBarFocus;
32
+ private _refCallback;
33
+ private _adjustProps;
34
+ private _onHover;
35
+ private _getLegendData;
36
+ private _onClick;
37
+ private _onLeave;
38
+ private _onBarHover;
39
+ private _onBarLeave;
40
+ private _handleChartMouseLeave;
41
+ private _redirectToUrl;
42
+ private _closeCallout;
43
+ /**
44
+ * This function checks if the given legend is highlighted or not.
45
+ * A legend can be highlighted in 2 ways:
46
+ * 1. selection: if the user clicks on it
47
+ * 2. hovering: if there is no selected legend and the user hovers over it
48
+ */
49
+ private _legendHighlighted;
50
+ /**
51
+ * This function checks if none of the legends is selected or hovered.
52
+ */
53
+ private _noLegendHighlighted;
54
+ private _getAriaLabel;
55
+ private _computeLongestBarTotalValue;
56
+ }
@@ -0,0 +1,351 @@
1
+ define(["require", "exports", "tslib", "react", "@fluentui/react/lib/Utilities", "../Legends/index", "./index", "@fluentui/react/lib/Callout", "@fluentui/react-focus", "../../utilities/index", "d3-format", "../../utilities/FocusableTooltipText"], function (require, exports, tslib_1, React, Utilities_1, index_1, index_2, Callout_1, react_focus_1, index_3, d3_format_1, FocusableTooltipText_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MultiStackedBarChartBase = void 0;
5
+ var getClassNames = Utilities_1.classNamesFunction();
6
+ var MultiStackedBarChartBase = /** @class */ (function (_super) {
7
+ tslib_1.__extends(MultiStackedBarChartBase, _super);
8
+ function MultiStackedBarChartBase(props) {
9
+ var _this = _super.call(this, props) || this;
10
+ _this._isRTL = Utilities_1.getRTL();
11
+ _this._adjustProps = function () {
12
+ var _a = _this.props, theme = _a.theme, className = _a.className, styles = _a.styles, width = _a.width, barHeight = _a.barHeight;
13
+ _this._classNames = getClassNames(styles, {
14
+ legendColor: _this.state.color,
15
+ theme: theme,
16
+ width: width,
17
+ className: className,
18
+ barHeight: barHeight,
19
+ });
20
+ };
21
+ _this._getLegendData = function (data, hideRatio, palette) {
22
+ var defaultPalette = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];
23
+ var actions = [];
24
+ data.forEach(function (singleChartData, index) {
25
+ var validChartData = singleChartData.chartData.filter(function (_) { return !_.placeHolder; });
26
+ if (validChartData.length < 3) {
27
+ var hideNumber = hideRatio[index] === undefined ? false : hideRatio[index];
28
+ if (hideNumber) {
29
+ validChartData.forEach(function (point) {
30
+ var color = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];
31
+ var checkSimilarLegends = actions.filter(function (leg) { return leg.title === point.legend && leg.color === color; });
32
+ if (checkSimilarLegends.length > 0) {
33
+ return;
34
+ }
35
+ var legend = {
36
+ title: point.legend,
37
+ color: color,
38
+ action: function () {
39
+ _this._onClick(point.legend);
40
+ },
41
+ hoverAction: function () {
42
+ _this._handleChartMouseLeave();
43
+ _this._onHover(point.legend);
44
+ },
45
+ onMouseOutAction: function () {
46
+ _this._onLeave();
47
+ },
48
+ };
49
+ actions.push(legend);
50
+ });
51
+ }
52
+ }
53
+ else {
54
+ validChartData.forEach(function (point) {
55
+ var color = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];
56
+ var checkSimilarLegends = actions.filter(function (leg) { return leg.title === point.legend && leg.color === color; });
57
+ if (checkSimilarLegends.length > 0) {
58
+ return;
59
+ }
60
+ var legend = {
61
+ title: point.legend,
62
+ color: color,
63
+ action: function () {
64
+ _this._onClick(point.legend);
65
+ },
66
+ hoverAction: function () {
67
+ _this._handleChartMouseLeave();
68
+ _this._onHover(point.legend);
69
+ },
70
+ onMouseOutAction: function () {
71
+ _this._onLeave();
72
+ },
73
+ };
74
+ actions.push(legend);
75
+ });
76
+ }
77
+ });
78
+ return (React.createElement(index_1.Legends, tslib_1.__assign({ legends: actions, overflowProps: _this.props.legendsOverflowProps, focusZonePropsInHoverCard: _this.props.focusZonePropsForLegendsInHoverCard, overflowText: _this.props.legendsOverflowText }, _this.props.legendProps)));
79
+ };
80
+ _this._handleChartMouseLeave = function () {
81
+ _this._calloutAnchorPoint = null;
82
+ _this.setState({
83
+ isCalloutVisible: false,
84
+ });
85
+ };
86
+ _this._closeCallout = function () {
87
+ _this.setState({
88
+ isCalloutVisible: false,
89
+ });
90
+ };
91
+ /**
92
+ * This function checks if the given legend is highlighted or not.
93
+ * A legend can be highlighted in 2 ways:
94
+ * 1. selection: if the user clicks on it
95
+ * 2. hovering: if there is no selected legend and the user hovers over it
96
+ */
97
+ _this._legendHighlighted = function (legendTitle) {
98
+ return (_this.state.selectedLegend === legendTitle ||
99
+ (_this.state.selectedLegend === '' && _this.state.activeLegend === legendTitle));
100
+ };
101
+ /**
102
+ * This function checks if none of the legends is selected or hovered.
103
+ */
104
+ _this._noLegendHighlighted = function () {
105
+ return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
106
+ };
107
+ _this._getAriaLabel = function (point) {
108
+ var _a;
109
+ var legend = point.xAxisCalloutData || point.legend;
110
+ var yValue = point.yAxisCalloutData || point.data || 0;
111
+ return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || (legend ? legend + ", " : '') + (yValue + ".");
112
+ };
113
+ _this._computeLongestBarTotalValue = function () {
114
+ var longestBarTotalValue = 0;
115
+ _this.props.data.forEach(function (_a) {
116
+ var chartData = _a.chartData;
117
+ var barTotalValue = chartData.reduce(function (acc, point) { return acc + (point.data ? point.data : 0); }, 0);
118
+ longestBarTotalValue = Math.max(longestBarTotalValue, barTotalValue);
119
+ });
120
+ return longestBarTotalValue;
121
+ };
122
+ _this.state = {
123
+ isCalloutVisible: false,
124
+ refArray: [],
125
+ selectedLegend: '',
126
+ activeLegend: '',
127
+ refSelected: null,
128
+ dataForHoverCard: 0,
129
+ color: '',
130
+ xCalloutValue: '',
131
+ yCalloutValue: '',
132
+ calloutLegend: '',
133
+ };
134
+ _this._onLeave = _this._onLeave.bind(_this);
135
+ _this._onBarLeave = _this._onBarLeave.bind(_this);
136
+ _this._calloutId = Utilities_1.getId('callout');
137
+ return _this;
138
+ }
139
+ MultiStackedBarChartBase.prototype.render = function () {
140
+ var _this = this;
141
+ var _a = this.props, data = _a.data, theme = _a.theme, culture = _a.culture;
142
+ this._adjustProps();
143
+ var palette = theme.palette;
144
+ var legends = this._getLegendData(data, this.props.hideRatio, palette);
145
+ var isCalloutVisible = this.state.isCalloutVisible;
146
+ this._classNames = getClassNames(this.props.styles, {
147
+ legendColor: this.state.color,
148
+ theme: theme,
149
+ variant: this.props.variant,
150
+ hideLabels: this.props.hideLabels,
151
+ });
152
+ var legendName = this.state.xCalloutValue ? this.state.xCalloutValue : this.state.calloutLegend;
153
+ var calloutYVal = this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard;
154
+ this._longestBarTotalValue = this._computeLongestBarTotalValue();
155
+ var bars = data.map(function (singleChartData, index) {
156
+ var singleChartBars = _this._createBarsAndLegends(singleChartData, _this.props.barHeight, palette, _this.props.hideRatio[index], _this.props.hideDenominator[index], _this.props.href);
157
+ return React.createElement("div", { key: index }, singleChartBars);
158
+ });
159
+ return (React.createElement("div", { className: this._classNames.root, onMouseLeave: this._handleChartMouseLeave },
160
+ bars,
161
+ !this.props.hideLegend && React.createElement("div", { className: this._classNames.legendContainer }, legends),
162
+ React.createElement(Callout_1.Callout, tslib_1.__assign({ gapSpace: 15, isBeakVisible: false, target: this.state.refSelected, setInitialFocus: true, hidden: !(!this.props.hideTooltip && isCalloutVisible), directionalHint: Callout_1.DirectionalHint.topAutoEdge, id: this._calloutId, onDismiss: this._closeCallout, preventDismissOnLostFocus: true,
163
+ /** Keep the callout updated with details of focused/hovered bar */
164
+ shouldUpdateWhenHidden: true }, this.props.calloutProps, index_3.getAccessibleDataObject(this.state.callOutAccessibilityData, 'text', false)),
165
+ React.createElement(React.Fragment, null, this.props.onRenderCalloutPerDataPoint ? (this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps)) : (React.createElement(index_3.ChartHoverCard, { Legend: legendName, YValue: calloutYVal, color: this.state.color, culture: culture }))))));
166
+ };
167
+ MultiStackedBarChartBase.prototype._createBarsAndLegends = function (data, barHeight, palette, hideRatio, hideDenominator, href) {
168
+ var _this = this;
169
+ var culture = this.props.culture;
170
+ var defaultPalette = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];
171
+ // calculating starting point of each bar and it's range
172
+ var startingPoint = [];
173
+ var barTotalValue = data.chartData.reduce(function (acc, point) { return acc + (point.data ? point.data : 0); }, 0);
174
+ var total = this.props.variant === index_2.MultiStackedBarChartVariant.AbsoluteScale ? this._longestBarTotalValue : barTotalValue;
175
+ var sumOfPercent = 0;
176
+ data.chartData.map(function (point, index) {
177
+ var pointData = point.data ? point.data : 0;
178
+ value = (pointData / total) * 100 ? (pointData / total) * 100 : 0;
179
+ if (value < 1 && value !== 0) {
180
+ value = 1;
181
+ }
182
+ else if (value > 99 && value !== 100) {
183
+ value = 99;
184
+ }
185
+ sumOfPercent += value;
186
+ return sumOfPercent;
187
+ });
188
+ // Include an imaginary placeholder bar with value equal to
189
+ // the difference between longestBarTotalValue and barTotalValue
190
+ // while calculating sumOfPercent to get correct scalingRatio for absolute-scale variant
191
+ if (this.props.variant === index_2.MultiStackedBarChartVariant.AbsoluteScale) {
192
+ var value_1 = total === 0 ? 0 : ((total - barTotalValue) / total) * 100;
193
+ if (value_1 < 1 && value_1 !== 0) {
194
+ value_1 = 1;
195
+ }
196
+ else if (value_1 > 99 && value_1 !== 100) {
197
+ value_1 = 99;
198
+ }
199
+ sumOfPercent += value_1;
200
+ }
201
+ var scalingRatio = sumOfPercent !== 0 ? sumOfPercent / 100 : 1;
202
+ var prevPosition = 0;
203
+ var value = 0;
204
+ var bars = data.chartData.map(function (point, index) {
205
+ var color = point.color
206
+ ? point.color
207
+ : point.placeHolder
208
+ ? palette.neutralLight
209
+ : defaultPalette[Math.floor(Math.random() * 4 + 1)];
210
+ var pointData = point.data ? point.data : 0;
211
+ if (index > 0) {
212
+ prevPosition += value;
213
+ }
214
+ value = (pointData / total) * 100 ? (pointData / total) * 100 : 0;
215
+ if (value < 1 && value !== 0) {
216
+ value = 1 / scalingRatio;
217
+ }
218
+ else if (value > 99 && value !== 100) {
219
+ value = 99 / scalingRatio;
220
+ }
221
+ else {
222
+ value = value / scalingRatio;
223
+ }
224
+ startingPoint.push(prevPosition);
225
+ var styles = _this.props.styles;
226
+ var shouldHighlight = _this._legendHighlighted(point.legend) || _this._noLegendHighlighted() ? true : false;
227
+ _this._classNames = getClassNames(styles, {
228
+ theme: _this.props.theme,
229
+ shouldHighlight: shouldHighlight,
230
+ href: href,
231
+ variant: _this.props.variant,
232
+ hideLabels: _this.props.hideLabels,
233
+ });
234
+ return (React.createElement("g", { key: index, className: point.placeHolder ? _this._classNames.placeHolderOnHover : _this._classNames.opacityChangeOnHover, ref: function (e) {
235
+ _this._refCallback(e, point.legend);
236
+ }, "data-is-focusable": !_this.props.hideTooltip, onFocus: _this._onBarFocus.bind(_this, pointData, color, point), onBlur: _this._onBarLeave, role: "img", "aria-label": _this._getAriaLabel(point), onMouseOver: point.placeHolder ? undefined : _this._onBarHover.bind(_this, pointData, color, point), onMouseMove: point.placeHolder ? undefined : _this._onBarHover.bind(_this, pointData, color, point), onMouseLeave: point.placeHolder ? undefined : _this._onBarLeave, onClick: href ? (point.placeHolder ? undefined : _this._redirectToUrl.bind(_this, href)) : point.onClick },
237
+ React.createElement("rect", { key: index, x: (_this._isRTL ? 100 - startingPoint[index] - value : startingPoint[index]) + "%", y: 0, width: value + '%', height: barHeight, fill: color })));
238
+ });
239
+ if (this.props.variant === index_2.MultiStackedBarChartVariant.AbsoluteScale) {
240
+ if (!this.props.hideLabels) {
241
+ bars.push(React.createElement("text", { key: "text", x: (this._isRTL
242
+ ? 100 - (startingPoint[startingPoint.length - 1] || 0) - value
243
+ : (startingPoint[startingPoint.length - 1] || 0) + value) + "%", y: barHeight / 2, dominantBaseline: "central", transform: "translate(" + (this._isRTL ? -4 : 4) + ")", className: this._classNames.barLabel, "aria-label": "Total: " + barTotalValue, role: "img" }, d3_format_1.formatPrefix(barTotalValue < 1000 ? '.2~' : '.1', barTotalValue)(barTotalValue)));
244
+ }
245
+ }
246
+ else {
247
+ // Render placeholder bars only for part-to-whole variant
248
+ if (data.chartData.length === 0) {
249
+ bars.push(React.createElement("g", { key: 0, className: this._classNames.noData, onClick: this._redirectToUrl.bind(this, href) },
250
+ React.createElement("rect", { key: 0, x: '0%', y: 0, width: '100%', height: barHeight, fill: palette.neutralLight })));
251
+ }
252
+ if (barTotalValue === 0) {
253
+ bars.push(React.createElement("g", { key: 'empty', className: this._classNames.noData, onClick: this._redirectToUrl.bind(this, href) },
254
+ React.createElement("rect", { key: 0, x: '0%', y: 0, width: '100%', height: barHeight, fill: palette.neutralLight })));
255
+ }
256
+ }
257
+ var hideNumber = hideRatio === undefined ? false : hideRatio;
258
+ // Hide right side text of chart title for absolute-scale variant
259
+ var showRatio = this.props.variant !== index_2.MultiStackedBarChartVariant.AbsoluteScale && !hideNumber && data.chartData.length === 2;
260
+ var showNumber = this.props.variant !== index_2.MultiStackedBarChartVariant.AbsoluteScale && !hideNumber && data.chartData.length === 1;
261
+ var getChartData = function () { return index_3.convertToLocaleString(data.chartData[0].data ? data.chartData[0].data : 0, culture); };
262
+ return (React.createElement("div", { className: this._classNames.singleChartRoot },
263
+ React.createElement(react_focus_1.FocusZone, { direction: react_focus_1.FocusZoneDirection.horizontal },
264
+ React.createElement("div", { className: this._classNames.chartTitle },
265
+ data.chartTitle && (React.createElement(FocusableTooltipText_1.FocusableTooltipText, { className: this._classNames.chartTitleLeft, content: data.chartTitle, accessibilityData: data.chartTitleAccessibilityData })),
266
+ showRatio && (React.createElement("div", tslib_1.__assign({}, index_3.getAccessibleDataObject(data.chartDataAccessibilityData, 'text', false)),
267
+ React.createElement("span", { className: this._classNames.ratioNumerator }, getChartData()),
268
+ !hideDenominator && (React.createElement("span", { className: this._classNames.ratioDenominator }, ' / ' + index_3.convertToLocaleString(barTotalValue, culture))))),
269
+ showNumber && (React.createElement("div", tslib_1.__assign({ className: this._classNames.ratioNumerator }, index_3.getAccessibleDataObject(data.chartDataAccessibilityData, 'text', false)), getChartData())))),
270
+ React.createElement(react_focus_1.FocusZone, { direction: react_focus_1.FocusZoneDirection.horizontal },
271
+ React.createElement("div", { className: this._classNames.chartWrapper },
272
+ React.createElement("svg", { className: this._classNames.chart, "aria-label": data === null || data === void 0 ? void 0 : data.chartTitle }, bars)))));
273
+ };
274
+ MultiStackedBarChartBase.prototype._onBarFocus = function (pointData, color, point) {
275
+ var _this = this;
276
+ this.state.refArray.forEach(function (obj) {
277
+ if (obj.legendText === point.legend) {
278
+ _this.setState({
279
+ refSelected: obj.refElement,
280
+ /** Show the callout if highlighted bar is focused and Hide it if unhighlighted bar is focused */
281
+ isCalloutVisible: _this.state.selectedLegend === '' || _this.state.selectedLegend === point.legend,
282
+ calloutLegend: point.legend,
283
+ dataForHoverCard: pointData,
284
+ color: color,
285
+ xCalloutValue: point.xAxisCalloutData,
286
+ yCalloutValue: point.yAxisCalloutData,
287
+ dataPointCalloutProps: point,
288
+ callOutAccessibilityData: point.callOutAccessibilityData,
289
+ });
290
+ }
291
+ });
292
+ };
293
+ MultiStackedBarChartBase.prototype._refCallback = function (element, legendTitle) {
294
+ this.state.refArray.push({ legendText: legendTitle, refElement: element });
295
+ };
296
+ MultiStackedBarChartBase.prototype._onHover = function (legendTitle) {
297
+ this.setState({
298
+ activeLegend: legendTitle,
299
+ });
300
+ };
301
+ MultiStackedBarChartBase.prototype._onClick = function (legendTitle) {
302
+ if (this.state.selectedLegend === legendTitle) {
303
+ this.setState({
304
+ selectedLegend: '',
305
+ });
306
+ }
307
+ else {
308
+ this.setState({
309
+ selectedLegend: legendTitle,
310
+ });
311
+ }
312
+ };
313
+ MultiStackedBarChartBase.prototype._onLeave = function () {
314
+ this.setState({
315
+ activeLegend: '',
316
+ });
317
+ };
318
+ MultiStackedBarChartBase.prototype._onBarHover = function (pointData, color, point, mouseEvent) {
319
+ mouseEvent.persist();
320
+ if (this._calloutAnchorPoint !== point) {
321
+ this._calloutAnchorPoint = point;
322
+ this.setState({
323
+ refSelected: mouseEvent,
324
+ /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */
325
+ isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend,
326
+ calloutLegend: point.legend,
327
+ dataForHoverCard: pointData,
328
+ color: color,
329
+ xCalloutValue: point.xAxisCalloutData,
330
+ yCalloutValue: point.yAxisCalloutData,
331
+ dataPointCalloutProps: point,
332
+ callOutAccessibilityData: point.callOutAccessibilityData,
333
+ });
334
+ }
335
+ };
336
+ MultiStackedBarChartBase.prototype._onBarLeave = function () {
337
+ /**/
338
+ };
339
+ MultiStackedBarChartBase.prototype._redirectToUrl = function (href) {
340
+ href ? (window.location.href = href) : '';
341
+ };
342
+ MultiStackedBarChartBase.defaultProps = {
343
+ barHeight: 12,
344
+ hideRatio: [],
345
+ hideDenominator: [],
346
+ };
347
+ return MultiStackedBarChartBase;
348
+ }(React.Component));
349
+ exports.MultiStackedBarChartBase = MultiStackedBarChartBase;
350
+ });
351
+ //# sourceMappingURL=MultiStackedBarChart.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiStackedBarChart.base.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.base.tsx"],"names":[],"mappings":";;;;IAmBA,IAAM,aAAa,GAAG,8BAAkB,EAAgE,CAAC;IAuBzG;QAA8C,oDAAuE;QAanH,kCAAmB,KAAiC;YAApD,YACE,kBAAM,KAAK,CAAC,SAgBb;YAnBO,YAAM,GAAY,kBAAM,EAAE,CAAC;YAiT3B,kBAAY,GAAG;gBACf,IAAA,KAAiD,KAAI,CAAC,KAAK,EAAzD,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,SAAS,eAAe,CAAC;gBAClE,KAAI,CAAC,WAAW,GAAG,aAAa,CAAC,MAAO,EAAE;oBACxC,WAAW,EAAE,KAAI,CAAC,KAAK,CAAC,KAAK;oBAC7B,KAAK,EAAE,KAAM;oBACb,KAAK,EAAE,KAAK;oBACZ,SAAS,WAAA;oBACT,SAAS,EAAE,SAAS;iBACrB,CAAC,CAAC;YACL,CAAC,CAAC;YAQM,oBAAc,GAAG,UAAC,IAAmB,EAAE,SAAoB,EAAE,OAAiB;gBACpF,IAAM,cAAc,GAAa,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;gBAChH,IAAM,OAAO,GAAc,EAAE,CAAC;gBAC9B,IAAI,CAAC,OAAO,CAAC,UAA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E;SACpB,CAAC;QAofJ,+BAAC;KAAA,AAzfD,CAA8C,KAAK,CAAC,SAAS,GAyf5D;IAzfY,4DAAwB","sourcesContent":["import * as React from 'react';\nimport { classNamesFunction, getId, getRTL } from '@fluentui/react/lib/Utilities';\nimport { IProcessedStyleSet, IPalette } from '@fluentui/react/lib/Styling';\nimport { ILegend, Legends } from '../Legends/index';\nimport {\n IAccessibilityProps,\n IChartDataPoint,\n IChartProps,\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyles,\n IMultiStackedBarChartStyleProps,\n MultiStackedBarChartVariant,\n} from './index';\nimport { Callout, DirectionalHint } from '@fluentui/react/lib/Callout';\nimport { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';\nimport { ChartHoverCard, convertToLocaleString, getAccessibleDataObject } from '../../utilities/index';\nimport { formatPrefix as d3FormatPrefix } from 'd3-format';\nimport { FocusableTooltipText } from '../../utilities/FocusableTooltipText';\n\nconst getClassNames = classNamesFunction<IMultiStackedBarChartStyleProps, IMultiStackedBarChartStyles>();\n\nexport interface IRefArrayData {\n legendText?: string;\n refElement?: SVGGElement;\n}\n\nexport interface IMultiStackedBarChartState {\n isCalloutVisible: boolean;\n refArray: IRefArrayData[];\n selectedLegend: string;\n activeLegend: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n refSelected: any;\n dataForHoverCard: number;\n color: string;\n xCalloutValue?: string;\n yCalloutValue?: string;\n dataPointCalloutProps?: IChartDataPoint;\n callOutAccessibilityData?: IAccessibilityProps;\n calloutLegend: string;\n}\n\nexport class MultiStackedBarChartBase extends React.Component<IMultiStackedBarChartProps, IMultiStackedBarChartState> {\n public static defaultProps: Partial<IMultiStackedBarChartProps> = {\n barHeight: 12,\n hideRatio: [],\n hideDenominator: [],\n };\n\n private _classNames: IProcessedStyleSet<IMultiStackedBarChartStyles>;\n private _calloutId: string;\n private _calloutAnchorPoint: IChartDataPoint | null;\n private _longestBarTotalValue: number;\n private _isRTL: boolean = getRTL();\n\n public constructor(props: IMultiStackedBarChartProps) {\n super(props);\n this.state = {\n isCalloutVisible: false,\n refArray: [],\n selectedLegend: '',\n activeLegend: '',\n refSelected: null,\n dataForHoverCard: 0,\n color: '',\n xCalloutValue: '',\n yCalloutValue: '',\n calloutLegend: '',\n };\n this._onLeave = this._onLeave.bind(this);\n this._onBarLeave = this._onBarLeave.bind(this);\n this._calloutId = getId('callout');\n }\n\n public render(): JSX.Element {\n const { data, theme, culture } = this.props;\n this._adjustProps();\n const { palette } = theme!;\n const legends = this._getLegendData(data!, this.props.hideRatio!, palette);\n const { isCalloutVisible } = this.state;\n\n this._classNames = getClassNames(this.props.styles!, {\n legendColor: this.state.color,\n theme: theme!,\n variant: this.props.variant,\n hideLabels: this.props.hideLabels,\n });\n\n const legendName = this.state.xCalloutValue ? this.state.xCalloutValue : this.state.calloutLegend;\n const calloutYVal = this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard;\n\n this._longestBarTotalValue = this._computeLongestBarTotalValue();\n const bars: JSX.Element[] = data!.map((singleChartData: IChartProps, index: number) => {\n const singleChartBars = this._createBarsAndLegends(\n singleChartData!,\n this.props.barHeight!,\n palette,\n this.props.hideRatio![index],\n this.props.hideDenominator![index],\n this.props.href,\n );\n return <div key={index}>{singleChartBars}</div>;\n });\n\n return (\n <div className={this._classNames.root} onMouseLeave={this._handleChartMouseLeave}>\n {bars}\n {!this.props.hideLegend && <div className={this._classNames.legendContainer}>{legends}</div>}\n <Callout\n gapSpace={15}\n isBeakVisible={false}\n target={this.state.refSelected}\n setInitialFocus={true}\n hidden={!(!this.props.hideTooltip && isCalloutVisible)}\n directionalHint={DirectionalHint.topAutoEdge}\n id={this._calloutId}\n onDismiss={this._closeCallout}\n preventDismissOnLostFocus={true}\n /** Keep the callout updated with details of focused/hovered bar */\n shouldUpdateWhenHidden={true}\n {...this.props.calloutProps!}\n {...getAccessibleDataObject(this.state.callOutAccessibilityData, 'text', false)}\n >\n <>\n {this.props.onRenderCalloutPerDataPoint ? (\n this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps)\n ) : (\n <ChartHoverCard Legend={legendName} YValue={calloutYVal} color={this.state.color} culture={culture} />\n )}\n </>\n </Callout>\n </div>\n );\n }\n\n private _createBarsAndLegends(\n data: IChartProps,\n barHeight: number,\n palette: IPalette,\n hideRatio: boolean,\n hideDenominator: boolean,\n href?: string,\n ): JSX.Element {\n const { culture } = this.props;\n const defaultPalette: string[] = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];\n // calculating starting point of each bar and it's range\n const startingPoint: number[] = [];\n const barTotalValue = data.chartData!.reduce(\n (acc: number, point: IChartDataPoint) => acc + (point.data ? point.data : 0),\n 0,\n );\n const total =\n this.props.variant === MultiStackedBarChartVariant.AbsoluteScale ? this._longestBarTotalValue : barTotalValue;\n\n let sumOfPercent = 0;\n data.chartData!.map((point: IChartDataPoint, index: number) => {\n const pointData = point.data ? point.data : 0;\n value = (pointData / total) * 100 ? (pointData / total) * 100 : 0;\n if (value < 1 && value !== 0) {\n value = 1;\n } else if (value > 99 && value !== 100) {\n value = 99;\n }\n sumOfPercent += value;\n\n return sumOfPercent;\n });\n\n // Include an imaginary placeholder bar with value equal to\n // the difference between longestBarTotalValue and barTotalValue\n // while calculating sumOfPercent to get correct scalingRatio for absolute-scale variant\n if (this.props.variant === MultiStackedBarChartVariant.AbsoluteScale) {\n let value = total === 0 ? 0 : ((total - barTotalValue) / total) * 100;\n if (value < 1 && value !== 0) {\n value = 1;\n } else if (value > 99 && value !== 100) {\n value = 99;\n }\n sumOfPercent += value;\n }\n\n const scalingRatio = sumOfPercent !== 0 ? sumOfPercent / 100 : 1;\n\n let prevPosition = 0;\n let value = 0;\n\n const bars = data.chartData!.map((point: IChartDataPoint, index: number) => {\n const color: string = point.color\n ? point.color\n : point.placeHolder\n ? palette.neutralLight\n : defaultPalette[Math.floor(Math.random() * 4 + 1)];\n const pointData = point.data ? point.data : 0;\n if (index > 0) {\n prevPosition += value;\n }\n value = (pointData / total) * 100 ? (pointData / total) * 100 : 0;\n if (value < 1 && value !== 0) {\n value = 1 / scalingRatio;\n } else if (value > 99 && value !== 100) {\n value = 99 / scalingRatio;\n } else {\n value = value / scalingRatio;\n }\n\n startingPoint.push(prevPosition);\n\n const styles = this.props.styles;\n const shouldHighlight = this._legendHighlighted(point.legend!) || this._noLegendHighlighted() ? true : false;\n\n this._classNames = getClassNames(styles!, {\n theme: this.props.theme!,\n shouldHighlight: shouldHighlight,\n href: href,\n variant: this.props.variant,\n hideLabels: this.props.hideLabels,\n });\n\n return (\n <g\n key={index}\n className={point.placeHolder ? this._classNames.placeHolderOnHover : this._classNames.opacityChangeOnHover}\n ref={(e: SVGGElement) => {\n this._refCallback(e, point.legend!);\n }}\n data-is-focusable={!this.props.hideTooltip}\n onFocus={this._onBarFocus.bind(this, pointData, color, point)}\n onBlur={this._onBarLeave}\n role=\"img\"\n aria-label={this._getAriaLabel(point)}\n onMouseOver={point.placeHolder ? undefined : this._onBarHover.bind(this, pointData, color, point)}\n onMouseMove={point.placeHolder ? undefined : this._onBarHover.bind(this, pointData, color, point)}\n onMouseLeave={point.placeHolder ? undefined : this._onBarLeave}\n onClick={href ? (point.placeHolder ? undefined : this._redirectToUrl.bind(this, href)) : point.onClick}\n >\n <rect\n key={index}\n x={`${this._isRTL ? 100 - startingPoint[index] - value : startingPoint[index]}%`}\n y={0}\n width={value + '%'}\n height={barHeight}\n fill={color}\n />\n </g>\n );\n });\n if (this.props.variant === MultiStackedBarChartVariant.AbsoluteScale) {\n if (!this.props.hideLabels) {\n bars.push(\n <text\n key=\"text\"\n x={`${\n this._isRTL\n ? 100 - (startingPoint[startingPoint.length - 1] || 0) - value\n : (startingPoint[startingPoint.length - 1] || 0) + value\n }%`}\n y={barHeight / 2}\n dominantBaseline=\"central\"\n transform={`translate(${this._isRTL ? -4 : 4})`}\n className={this._classNames.barLabel}\n aria-label={`Total: ${barTotalValue}`}\n role=\"img\"\n >\n {d3FormatPrefix(barTotalValue < 1000 ? '.2~' : '.1', barTotalValue)(barTotalValue)}\n </text>,\n );\n }\n } else {\n // Render placeholder bars only for part-to-whole variant\n if (data.chartData!.length === 0) {\n bars.push(\n <g key={0} className={this._classNames.noData} onClick={this._redirectToUrl.bind(this, href)}>\n <rect key={0} x={'0%'} y={0} width={'100%'} height={barHeight} fill={palette.neutralLight} />\n </g>,\n );\n }\n if (barTotalValue === 0) {\n bars.push(\n <g key={'empty'} className={this._classNames.noData} onClick={this._redirectToUrl.bind(this, href)}>\n <rect key={0} x={'0%'} y={0} width={'100%'} height={barHeight} fill={palette.neutralLight} />\n </g>,\n );\n }\n }\n const hideNumber = hideRatio === undefined ? false : hideRatio;\n\n // Hide right side text of chart title for absolute-scale variant\n const showRatio =\n this.props.variant !== MultiStackedBarChartVariant.AbsoluteScale && !hideNumber && data!.chartData!.length === 2;\n const showNumber =\n this.props.variant !== MultiStackedBarChartVariant.AbsoluteScale && !hideNumber && data!.chartData!.length === 1;\n\n const getChartData = () => convertToLocaleString(data!.chartData![0].data ? data!.chartData![0].data : 0, culture);\n return (\n <div className={this._classNames.singleChartRoot}>\n <FocusZone direction={FocusZoneDirection.horizontal}>\n <div className={this._classNames.chartTitle}>\n {data!.chartTitle && (\n <FocusableTooltipText\n className={this._classNames.chartTitleLeft}\n content={data!.chartTitle}\n accessibilityData={data!.chartTitleAccessibilityData}\n />\n )}\n {showRatio && (\n <div {...getAccessibleDataObject(data!.chartDataAccessibilityData, 'text', false)}>\n <span className={this._classNames.ratioNumerator}>{getChartData()}</span>\n {!hideDenominator && (\n <span className={this._classNames.ratioDenominator}>\n {' / ' + convertToLocaleString(barTotalValue, culture)}\n </span>\n )}\n </div>\n )}\n {showNumber && (\n <div\n className={this._classNames.ratioNumerator}\n {...getAccessibleDataObject(data!.chartDataAccessibilityData, 'text', false)}\n >\n {getChartData()}\n </div>\n )}\n </div>\n </FocusZone>\n <FocusZone direction={FocusZoneDirection.horizontal}>\n <div className={this._classNames.chartWrapper}>\n <svg className={this._classNames.chart} aria-label={data?.chartTitle}>\n {bars}\n </svg>\n </div>\n </FocusZone>\n </div>\n );\n }\n\n private _onBarFocus(pointData: number, color: string, point: IChartDataPoint): void {\n this.state.refArray.forEach((obj: IRefArrayData) => {\n if (obj.legendText === point.legend!) {\n this.setState({\n refSelected: obj.refElement,\n /** Show the callout if highlighted bar is focused and Hide it if unhighlighted bar is focused */\n isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend!,\n calloutLegend: point.legend!,\n dataForHoverCard: pointData,\n color: color,\n xCalloutValue: point.xAxisCalloutData!,\n yCalloutValue: point.yAxisCalloutData!,\n dataPointCalloutProps: point,\n callOutAccessibilityData: point.callOutAccessibilityData!,\n });\n }\n });\n }\n\n private _refCallback(element: SVGGElement, legendTitle: string): void {\n this.state.refArray.push({ legendText: legendTitle, refElement: element });\n }\n\n private _adjustProps = (): void => {\n const { theme, className, styles, width, barHeight } = this.props;\n this._classNames = getClassNames(styles!, {\n legendColor: this.state.color,\n theme: theme!,\n width: width,\n className,\n barHeight: barHeight,\n });\n };\n\n private _onHover(legendTitle: string): void {\n this.setState({\n activeLegend: legendTitle,\n });\n }\n\n private _getLegendData = (data: IChartProps[], hideRatio: boolean[], palette: IPalette): JSX.Element => {\n const defaultPalette: string[] = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];\n const actions: ILegend[] = [];\n data.forEach((singleChartData: IChartProps, index: number) => {\n const validChartData = singleChartData.chartData!.filter((_: IChartDataPoint) => !_.placeHolder);\n if (validChartData!.length < 3) {\n const hideNumber = hideRatio[index] === undefined ? false : hideRatio[index];\n if (hideNumber) {\n validChartData!.forEach((point: IChartDataPoint) => {\n const color: string = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];\n const checkSimilarLegends = actions.filter(\n (leg: ILegend) => leg.title === point.legend! && leg.color === color,\n );\n if (checkSimilarLegends!.length > 0) {\n return;\n }\n const legend: ILegend = {\n title: point.legend!,\n color: color,\n action: () => {\n this._onClick(point.legend!);\n },\n hoverAction: () => {\n this._handleChartMouseLeave();\n this._onHover(point.legend!);\n },\n onMouseOutAction: () => {\n this._onLeave();\n },\n };\n actions.push(legend);\n });\n }\n } else {\n validChartData!.forEach((point: IChartDataPoint) => {\n const color: string = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];\n const checkSimilarLegends = actions.filter(\n (leg: ILegend) => leg.title === point.legend! && leg.color === color,\n );\n if (checkSimilarLegends!.length > 0) {\n return;\n }\n const legend: ILegend = {\n title: point.legend!,\n color: color,\n action: () => {\n this._onClick(point.legend!);\n },\n hoverAction: () => {\n this._handleChartMouseLeave();\n this._onHover(point.legend!);\n },\n onMouseOutAction: () => {\n this._onLeave();\n },\n };\n actions.push(legend);\n });\n }\n });\n return (\n <Legends\n legends={actions}\n overflowProps={this.props.legendsOverflowProps}\n focusZonePropsInHoverCard={this.props.focusZonePropsForLegendsInHoverCard}\n overflowText={this.props.legendsOverflowText}\n {...this.props.legendProps}\n />\n );\n };\n\n private _onClick(legendTitle: string): void {\n if (this.state.selectedLegend === legendTitle) {\n this.setState({\n selectedLegend: '',\n });\n } else {\n this.setState({\n selectedLegend: legendTitle,\n });\n }\n }\n\n private _onLeave(): void {\n this.setState({\n activeLegend: '',\n });\n }\n\n private _onBarHover(\n pointData: number,\n color: string,\n point: IChartDataPoint,\n mouseEvent: React.MouseEvent<SVGPathElement>,\n ): void {\n mouseEvent.persist();\n\n if (this._calloutAnchorPoint !== point) {\n this._calloutAnchorPoint = point;\n this.setState({\n refSelected: mouseEvent,\n /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */\n isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend!,\n calloutLegend: point.legend!,\n dataForHoverCard: pointData,\n color: color,\n xCalloutValue: point.xAxisCalloutData!,\n yCalloutValue: point.yAxisCalloutData!,\n dataPointCalloutProps: point,\n callOutAccessibilityData: point.callOutAccessibilityData!,\n });\n }\n }\n\n private _onBarLeave(): void {\n /**/\n }\n\n private _handleChartMouseLeave = () => {\n this._calloutAnchorPoint = null;\n this.setState({\n isCalloutVisible: false,\n });\n };\n\n private _redirectToUrl(href: string | undefined): void {\n href ? (window.location.href = href) : '';\n }\n\n private _closeCallout = () => {\n this.setState({\n isCalloutVisible: false,\n });\n };\n\n /**\n * This function checks if the given legend is highlighted or not.\n * A legend can be highlighted in 2 ways:\n * 1. selection: if the user clicks on it\n * 2. hovering: if there is no selected legend and the user hovers over it\n */\n private _legendHighlighted = (legendTitle: string) => {\n return (\n this.state.selectedLegend === legendTitle ||\n (this.state.selectedLegend === '' && this.state.activeLegend === legendTitle)\n );\n };\n\n /**\n * This function checks if none of the legends is selected or hovered.\n */\n private _noLegendHighlighted = () => {\n return this.state.selectedLegend === '' && this.state.activeLegend === '';\n };\n\n private _getAriaLabel = (point: IChartDataPoint): string => {\n const legend = point.xAxisCalloutData || point.legend;\n const yValue = point.yAxisCalloutData || point.data || 0;\n return point.callOutAccessibilityData?.ariaLabel || (legend ? `${legend}, ` : '') + `${yValue}.`;\n };\n\n private _computeLongestBarTotalValue = () => {\n let longestBarTotalValue = 0;\n this.props.data!.forEach(({ chartData }) => {\n const barTotalValue = chartData!.reduce(\n (acc: number, point: IChartDataPoint) => acc + (point.data ? point.data : 0),\n 0,\n );\n longestBarTotalValue = Math.max(longestBarTotalValue, barTotalValue);\n });\n return longestBarTotalValue;\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IMultiStackedBarChartProps } from './MultiStackedBarChart.types';
3
+ export declare const MultiStackedBarChart: React.FunctionComponent<IMultiStackedBarChartProps>;
@@ -0,0 +1,8 @@
1
+ define(["require", "exports", "@fluentui/react/lib/Utilities", "./MultiStackedBarChart.base", "./MultiStackedBarChart.styles"], function (require, exports, Utilities_1, MultiStackedBarChart_base_1, MultiStackedBarChart_styles_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MultiStackedBarChart = void 0;
5
+ // Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.
6
+ exports.MultiStackedBarChart = Utilities_1.styled(MultiStackedBarChart_base_1.MultiStackedBarChartBase, MultiStackedBarChart_styles_1.getMultiStackedBarChartStyles);
7
+ });
8
+ //# sourceMappingURL=MultiStackedBarChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiStackedBarChart.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.tsx"],"names":[],"mappings":";;;;IAUA,sGAAsG;IACzF,QAAA,oBAAoB,GAAwD,kBAAM,CAI7F,oDAAwB,EAAE,2DAA6B,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport {\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles,\n} from './MultiStackedBarChart.types';\nimport { MultiStackedBarChartBase } from './MultiStackedBarChart.base';\nimport { getMultiStackedBarChartStyles } from './MultiStackedBarChart.styles';\n\n// Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.\nexport const MultiStackedBarChart: React.FunctionComponent<IMultiStackedBarChartProps> = styled<\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles\n>(MultiStackedBarChartBase, getMultiStackedBarChartStyles);\n"]}
@@ -0,0 +1,2 @@
1
+ import { IMultiStackedBarChartStyleProps, IMultiStackedBarChartStyles } from './MultiStackedBarChart.types';
2
+ export declare const getMultiStackedBarChartStyles: (props: IMultiStackedBarChartStyleProps) => IMultiStackedBarChartStyles;
@@ -0,0 +1,93 @@
1
+ define(["require", "exports", "tslib", "./MultiStackedBarChart.types", "@fluentui/react/lib/Styling"], function (require, exports, tslib_1, MultiStackedBarChart_types_1, Styling_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.getMultiStackedBarChartStyles = void 0;
5
+ var getMultiStackedBarChartStyles = function (props) {
6
+ var className = props.className, width = props.width, barHeight = props.barHeight, shouldHighlight = props.shouldHighlight, theme = props.theme, href = props.href, variant = props.variant, hideLabels = props.hideLabels;
7
+ return {
8
+ root: [
9
+ theme.fonts.medium,
10
+ 'ms-StackedBarChart',
11
+ {
12
+ display: 'flex',
13
+ flexDirection: 'column',
14
+ width: width ? width : '100%',
15
+ },
16
+ className,
17
+ ],
18
+ items: {
19
+ marginBottom: '11px',
20
+ },
21
+ chart: {
22
+ width: '100%',
23
+ height: barHeight ? barHeight : 12,
24
+ display: 'block',
25
+ overflow: 'visible',
26
+ },
27
+ chartTitle: tslib_1.__assign(tslib_1.__assign({}, theme.fonts.small), { display: 'flex', justifyContent: 'space-between' }),
28
+ chartTitleLeft: {
29
+ textOverflow: 'ellipsis',
30
+ overflow: 'hidden',
31
+ whiteSpace: 'nowrap',
32
+ display: 'block',
33
+ color: theme.palette.neutralPrimary,
34
+ marginBottom: variant === MultiStackedBarChart_types_1.MultiStackedBarChartVariant.AbsoluteScale ? '4px' : '5px',
35
+ },
36
+ singleChartRoot: {
37
+ width: width ? width : '100%',
38
+ display: 'flex',
39
+ flexDirection: 'column',
40
+ marginBottom: variant === MultiStackedBarChart_types_1.MultiStackedBarChartVariant.AbsoluteScale ? '16px' : '10px',
41
+ },
42
+ opacityChangeOnHover: {
43
+ opacity: shouldHighlight ? '' : '0.1',
44
+ cursor: href ? 'pointer' : 'default',
45
+ stroke: theme.palette.white,
46
+ strokeWidth: 2,
47
+ selectors: {
48
+ '&:focus': {
49
+ stroke: theme.palette.black,
50
+ strokeWidth: '2px',
51
+ },
52
+ },
53
+ },
54
+ ratioNumerator: {
55
+ fontSize: Styling_1.FontSizes.medium,
56
+ fontWeight: Styling_1.FontWeights.semibold,
57
+ color: theme.palette.neutralPrimary,
58
+ },
59
+ ratioDenominator: {
60
+ fontSize: Styling_1.FontSizes.medium,
61
+ color: theme.palette.neutralPrimary,
62
+ },
63
+ placeHolderOnHover: {
64
+ opacity: shouldHighlight ? '' : '0.1',
65
+ cursor: 'default',
66
+ stroke: theme.palette.white,
67
+ strokeWidth: '2',
68
+ selectors: {
69
+ '&:focus': {
70
+ stroke: theme.palette.black,
71
+ strokeWidth: '2px',
72
+ },
73
+ },
74
+ },
75
+ legendContainer: {
76
+ margin: '5px 0px 0px 4px',
77
+ },
78
+ noData: {
79
+ cursor: href ? 'pointer' : 'default',
80
+ },
81
+ barLabel: {
82
+ fontSize: Styling_1.FontSizes.small,
83
+ fontWeight: Styling_1.FontWeights.semibold,
84
+ fill: theme.palette.neutralPrimary,
85
+ },
86
+ chartWrapper: {
87
+ paddingRight: variant === MultiStackedBarChart_types_1.MultiStackedBarChartVariant.AbsoluteScale && !hideLabels ? 40 : 0,
88
+ },
89
+ };
90
+ };
91
+ exports.getMultiStackedBarChartStyles = getMultiStackedBarChartStyles;
92
+ });
93
+ //# sourceMappingURL=MultiStackedBarChart.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.styles.ts"],"names":[],"mappings":";;;;IAOO,IAAM,6BAA6B,GAAG,UAAC,KAAsC;QAC1E,IAAA,SAAS,GAA0E,KAAK,UAA/E,EAAE,KAAK,GAAmE,KAAK,MAAxE,EAAE,SAAS,GAAwD,KAAK,UAA7D,EAAE,eAAe,GAAuC,KAAK,gBAA5C,EAAE,KAAK,GAAgC,KAAK,MAArC,EAAE,IAAI,GAA0B,KAAK,KAA/B,EAAE,OAAO,GAAiB,KAAK,QAAtB,EAAE,UAAU,GAAK,KAAK,WAAV,CAAW;QACjG,OAAO;YACL,IAAI,EAAE;gBACJ,KAAK,CAAC,KAAK,CAAC,MAAM;gBAClB,oBAAoB;gBACpB;oBACE,OAAO,EAAE,MAAM;oBACf,aAAa,EAAE,QAAQ;oBACvB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;iBAC9B;gBACD,SAAS;aACV;YACD,KA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,EAAE,mBAAS,CAAC,MAAM;gBAC1B,UAAU,EAAE,qBAAW,CAAC,QAAQ;gBAChC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;aACpC;YACD,gBAAgB,EAAE;gBAChB,QAAQ,EAAE,mBAAS,CAAC,MAAM;gBAC1B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;aACpC;YACD,kBAAkB,EAAE;gBAClB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBACrC,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;gBAC3B,WAAW,EAAE,GAAG;gBAChB,SAAS,EAAE;oBACT,SAAS,EAAE;wBACT,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;wBAC3B,WAAW,EAAE,KAAK;qBACnB;iBACF;aACF;YACD,eAAe,EAAE;gBACf,MAAM,EAAE,iBAAiB;aAC1B;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;aACrC;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,mBAAS,CAAC,KAAK;gBACzB,UAAU,EAAE,qBAAW,CAAC,QAAQ;gBAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;aACnC;YACD,YAAY,EAAE;gBACZ,YAAY,EAAE,OAAO,KAAK,wDAA2B,CAAC,aAAa,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;aAC5F;SACF,CAAC;IACJ,CAAC,CAAC;IAzFW,QAAA,6BAA6B,iCAyFxC","sourcesContent":["import {\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles,\n MultiStackedBarChartVariant,\n} from './MultiStackedBarChart.types';\nimport { FontSizes, FontWeights } from '@fluentui/react/lib/Styling';\n\nexport const getMultiStackedBarChartStyles = (props: IMultiStackedBarChartStyleProps): IMultiStackedBarChartStyles => {\n const { className, width, barHeight, shouldHighlight, theme, href, variant, hideLabels } = props;\n return {\n root: [\n theme.fonts.medium,\n 'ms-StackedBarChart',\n {\n display: 'flex',\n flexDirection: 'column',\n width: width ? width : '100%',\n },\n className,\n ],\n items: {\n marginBottom: '11px',\n },\n chart: {\n width: '100%',\n height: barHeight ? barHeight : 12,\n display: 'block',\n overflow: 'visible',\n },\n chartTitle: {\n ...theme.fonts.small,\n display: 'flex',\n justifyContent: 'space-between',\n },\n chartTitleLeft: {\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n display: 'block',\n color: theme.palette.neutralPrimary,\n marginBottom: variant === MultiStackedBarChartVariant.AbsoluteScale ? '4px' : '5px',\n },\n singleChartRoot: {\n width: width ? width : '100%',\n display: 'flex',\n flexDirection: 'column',\n marginBottom: variant === MultiStackedBarChartVariant.AbsoluteScale ? '16px' : '10px',\n },\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n stroke: theme.palette.white,\n strokeWidth: 2,\n selectors: {\n '&:focus': {\n stroke: theme.palette.black,\n strokeWidth: '2px',\n },\n },\n },\n ratioNumerator: {\n fontSize: FontSizes.medium,\n fontWeight: FontWeights.semibold,\n color: theme.palette.neutralPrimary,\n },\n ratioDenominator: {\n fontSize: FontSizes.medium,\n color: theme.palette.neutralPrimary,\n },\n placeHolderOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: 'default',\n stroke: theme.palette.white,\n strokeWidth: '2',\n selectors: {\n '&:focus': {\n stroke: theme.palette.black,\n strokeWidth: '2px',\n },\n },\n },\n legendContainer: {\n margin: '5px 0px 0px 4px',\n },\n noData: {\n cursor: href ? 'pointer' : 'default',\n },\n barLabel: {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n },\n chartWrapper: {\n paddingRight: variant === MultiStackedBarChartVariant.AbsoluteScale && !hideLabels ? 40 : 0,\n },\n };\n};\n"]}