@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,375 @@
1
+ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-scale", "@fluentui/react/lib/Utilities", "@fluentui/react/lib/Callout", "@fluentui/react-focus", "../../utilities/index", "../../index", "d3-format"], function (require, exports, tslib_1, React, d3_array_1, d3_selection_1, d3_scale_1, Utilities_1, Callout_1, react_focus_1, index_1, index_2, d3_format_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GroupedVerticalBarChartBase = void 0;
5
+ var COMPONENT_NAME = 'GROUPED VERTICAL BAR CHART';
6
+ var getClassNames = Utilities_1.classNamesFunction();
7
+ var MIN_DOMAIN_MARGIN = 8;
8
+ var X1_INNER_PADDING = 0.1;
9
+ // x1_inner_padding = space_between_bars / (space_between_bars + bar_width)
10
+ // => space_between_bars = (x1_inner_padding / (1 - x1_inner_padding)) * bar_width
11
+ /** Rate at which the space between the bars in a group changes wrt the bar width */
12
+ var BAR_GAP_RATE = X1_INNER_PADDING / (1 - X1_INNER_PADDING);
13
+ var GroupedVerticalBarChartBase = /** @class */ (function (_super) {
14
+ tslib_1.__extends(GroupedVerticalBarChartBase, _super);
15
+ function GroupedVerticalBarChartBase(props) {
16
+ var _this = _super.call(this, props) || this;
17
+ _this._isRtl = Utilities_1.getRTL();
18
+ _this._getGraphData = function (xScale, yScale, containerHeight, containerWidth, xElement) {
19
+ var xScale0 = _this._createX0Scale(containerWidth);
20
+ var xScale1 = _this._createX1Scale(xScale0);
21
+ var allGroupsBars = [];
22
+ _this._datasetForBars.forEach(function (singleSet) {
23
+ allGroupsBars.push(_this._buildGraph(singleSet, xScale0, xScale1, containerHeight, xElement));
24
+ });
25
+ _this._groupedVerticalBarGraph = allGroupsBars;
26
+ };
27
+ _this._getMargins = function (margins) { return (_this.margins = margins); };
28
+ _this._createDataSetOfGVBC = function (points) {
29
+ var keys = [];
30
+ var xAxisLabels = points.map(function (singlePoint) { return singlePoint.name; });
31
+ points[0].series.forEach(function (singleKey) {
32
+ keys.push(singleKey.key);
33
+ });
34
+ var datasetForBars = _this._createDataset(points);
35
+ return {
36
+ keys: keys,
37
+ xAxisLabels: xAxisLabels,
38
+ datasetForBars: datasetForBars,
39
+ };
40
+ };
41
+ _this._getCustomizedCallout = function () {
42
+ return _this.props.onRenderCalloutPerDataPoint
43
+ ? _this.props.onRenderCalloutPerDataPoint(_this.state.dataPointCalloutProps)
44
+ : null;
45
+ };
46
+ _this._getOpacity = function (legendTitle) {
47
+ var opacity = _this._legendHighlighted(legendTitle) || _this._noLegendHighlighted() ? '' : '0.1';
48
+ return opacity;
49
+ };
50
+ _this._onBarHover = function (pointData,
51
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
52
+ groupData, mouseEvent) {
53
+ mouseEvent.persist();
54
+ if (_this._calloutAnchorPoint !== pointData) {
55
+ _this._calloutAnchorPoint = pointData;
56
+ _this.setState({
57
+ refSelected: mouseEvent,
58
+ /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */
59
+ isCalloutVisible: _this.state.selectedLegend === '' || _this.state.selectedLegend === pointData.legend,
60
+ calloutLegend: pointData.legend,
61
+ dataForHoverCard: pointData.data,
62
+ color: pointData.color,
63
+ xCalloutValue: pointData.xAxisCalloutData,
64
+ yCalloutValue: pointData.yAxisCalloutData,
65
+ dataPointCalloutProps: pointData,
66
+ callOutAccessibilityData: _this.props.isCalloutForStack
67
+ ? groupData.stackCallOutAccessibilityData
68
+ : pointData.callOutAccessibilityData,
69
+ YValueHover: groupData.groupSeries,
70
+ hoverXValue: pointData.xAxisCalloutData,
71
+ });
72
+ }
73
+ };
74
+ _this._onBarLeave = function () {
75
+ /**/
76
+ };
77
+ _this._handleChartMouseLeave = function () {
78
+ _this._calloutAnchorPoint = null;
79
+ _this.setState({ isCalloutVisible: false });
80
+ };
81
+ _this._onBarFocus = function (pointData,
82
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
83
+ groupData, refArrayIndexNumber) {
84
+ _this._refArray.forEach(function (obj, index) {
85
+ if (obj.index === pointData.legend && refArrayIndexNumber === index) {
86
+ _this.setState({
87
+ refSelected: obj.refElement,
88
+ /** Show the callout if highlighted bar is focused and Hide it if unhighlighted bar is focused */
89
+ isCalloutVisible: _this.state.selectedLegend === '' || _this.state.selectedLegend === pointData.legend,
90
+ calloutLegend: pointData.legend,
91
+ dataForHoverCard: pointData.data,
92
+ color: pointData.color,
93
+ xCalloutValue: pointData.xAxisCalloutData,
94
+ yCalloutValue: pointData.yAxisCalloutData,
95
+ dataPointCalloutProps: pointData,
96
+ callOutAccessibilityData: _this.props.isCalloutForStack
97
+ ? groupData.stackCallOutAccessibilityData
98
+ : pointData.callOutAccessibilityData,
99
+ YValueHover: groupData.groupSeries,
100
+ hoverXValue: pointData.xAxisCalloutData,
101
+ });
102
+ }
103
+ });
104
+ };
105
+ _this._redirectToUrl = function (href) {
106
+ href ? (window.location.href = href) : '';
107
+ };
108
+ _this._buildGraph = function (
109
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
110
+ singleSet,
111
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
112
+ xScale0,
113
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
114
+ xScale1, containerHeight, xElement) {
115
+ var singleGroup = [];
116
+ var barLabelsForGroup = [];
117
+ var yBarScale = d3_scale_1.scaleLinear()
118
+ .domain([0, _this._yMax])
119
+ .range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
120
+ var tempDataSet = Object.keys(_this._datasetForBars[0]).splice(0, _this._keys.length);
121
+ tempDataSet.forEach(function (datasetKey, index) {
122
+ var refIndexNumber = singleSet.indexNum * tempDataSet.length + index;
123
+ var pointData = singleSet[datasetKey];
124
+ var xPoint = xScale1(datasetKey);
125
+ var yPoint = Math.max(containerHeight - _this.margins.bottom - yBarScale(pointData.data), 0);
126
+ // Not rendering data with 0.
127
+ pointData.data &&
128
+ singleGroup.push(React.createElement("rect", { className: _this._classNames.opacityChangeOnHover, key: singleSet.indexNum + "-" + index, height: Math.max(yBarScale(pointData.data), 0), width: _this._barWidth, x: xPoint, y: yPoint, "data-is-focusable": !_this.props.hideTooltip, opacity: _this._getOpacity(pointData.legend), ref: function (e) {
129
+ _this._refCallback(e, pointData.legend, refIndexNumber);
130
+ }, fill: pointData.color, onMouseOver: _this._onBarHover.bind(_this, pointData, singleSet), onMouseMove: _this._onBarHover.bind(_this, pointData, singleSet), onMouseOut: _this._onBarLeave, onFocus: _this._onBarFocus.bind(_this, pointData, singleSet, refIndexNumber), onBlur: _this._onBarLeave, onClick: _this.props.href ? _this._redirectToUrl.bind(_this, _this.props.href) : pointData.onClick, "aria-label": _this._getAriaLabel(pointData, singleSet.xAxisPoint), role: "img" }));
131
+ if (pointData.data && !_this.props.hideLabels && _this._barWidth >= 16) {
132
+ barLabelsForGroup.push(React.createElement("text", { x: xPoint + _this._barWidth / 2, y: yPoint - 6, textAnchor: "middle", className: _this._classNames.barLabel, "aria-hidden": true }, d3_format_1.formatPrefix(pointData.data < 1000 ? '.2~' : '.1', pointData.data)(pointData.data)));
133
+ }
134
+ });
135
+ // Used to display tooltip at x axis labels.
136
+ if (!_this.props.wrapXAxisLables && _this.props.showXAxisLablesTooltip) {
137
+ var xAxisElement = d3_selection_1.select(xElement).call(xScale0);
138
+ try {
139
+ document.getElementById(_this._tooltipId) && document.getElementById(_this._tooltipId).remove();
140
+ // eslint-disable-next-line no-empty
141
+ }
142
+ catch (e) { }
143
+ var tooltipProps = {
144
+ tooltipCls: _this._classNames.tooltip,
145
+ id: _this._tooltipId,
146
+ xAxis: xAxisElement,
147
+ };
148
+ xAxisElement && index_1.tooltipOfXAxislabels(tooltipProps);
149
+ }
150
+ return (React.createElement("g", { key: singleSet.indexNum, transform: "translate(" + xScale0(singleSet.xAxisPoint) + ", 0)" },
151
+ singleGroup,
152
+ barLabelsForGroup));
153
+ };
154
+ _this._createDataset = function (points) {
155
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
156
+ var datasetForBars = [];
157
+ var dataset = [];
158
+ points.forEach(function (point, index) {
159
+ var singleDatasetPoint = {};
160
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
161
+ var singleDatasetPointForBars = {};
162
+ var singleDataSeries = [];
163
+ point.series.forEach(function (seriesPoint) {
164
+ singleDatasetPoint[seriesPoint.key] = seriesPoint.data;
165
+ singleDatasetPointForBars[seriesPoint.key] = tslib_1.__assign({}, seriesPoint);
166
+ singleDataSeries.push(seriesPoint);
167
+ });
168
+ singleDatasetPointForBars.xAxisPoint = point.name;
169
+ singleDatasetPointForBars.indexNum = index;
170
+ singleDatasetPointForBars.groupSeries = singleDataSeries;
171
+ singleDatasetPointForBars.stackCallOutAccessibilityData = point.stackCallOutAccessibilityData;
172
+ datasetForBars.push(singleDatasetPointForBars);
173
+ dataset.push(singleDatasetPoint);
174
+ });
175
+ _this._dataset = dataset;
176
+ return datasetForBars;
177
+ };
178
+ // For grouped vertical bar chart, First need to define total scale (from start to end)
179
+ // From that need to define scale for single group of bars - done by createX1Scale
180
+ _this._createX0Scale = function (containerWidth) {
181
+ var x0Axis = d3_scale_1.scaleBand()
182
+ .domain(_this._xAxisLabels)
183
+ .range(_this._isRtl
184
+ ? [containerWidth - _this.margins.right - _this._domainMargin, _this.margins.left + _this._domainMargin]
185
+ : [_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin])
186
+ // x0_inner_padding = space_between_groups / (space_between_groups + group_width)
187
+ // space_between_groups = 2 * bar_width
188
+ // group_width = this._keys.length * bar_width + (this._keys.length - 1) * space_between_bars
189
+ .paddingInner(2 / (2 + _this._keys.length + (_this._keys.length - 1) * BAR_GAP_RATE));
190
+ return x0Axis;
191
+ };
192
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
193
+ _this._createX1Scale = function (xScale0) {
194
+ var bandWidth = xScale0.bandwidth();
195
+ return d3_scale_1.scaleBand()
196
+ .domain(_this._keys)
197
+ .range(_this._isRtl ? [bandWidth, 0] : [0, bandWidth])
198
+ .paddingInner(X1_INNER_PADDING);
199
+ };
200
+ _this._closeCallout = function () {
201
+ _this.setState({
202
+ isCalloutVisible: false,
203
+ });
204
+ };
205
+ _this._getLegendData = function (points, palette) {
206
+ var data = points;
207
+ var defaultPalette = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];
208
+ var actions = [];
209
+ data.forEach(function (singleChartData) {
210
+ singleChartData.series.forEach(function (point) {
211
+ var color = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];
212
+ var checkSimilarLegends = actions.filter(function (leg) { return leg.title === point.legend && leg.color === color; });
213
+ if (checkSimilarLegends.length > 0) {
214
+ return;
215
+ }
216
+ var legend = {
217
+ title: point.legend,
218
+ color: color,
219
+ action: function () {
220
+ _this._onLegendClick(point.legend);
221
+ },
222
+ hoverAction: function () {
223
+ _this._handleChartMouseLeave();
224
+ _this._onLegendHover(point.legend);
225
+ },
226
+ onMouseOutAction: function () {
227
+ _this._onLegendLeave();
228
+ },
229
+ };
230
+ actions.push(legend);
231
+ });
232
+ });
233
+ return (React.createElement(index_2.Legends, tslib_1.__assign({ legends: actions, overflowProps: _this.props.legendsOverflowProps, enabledWrapLines: _this.props.enabledLegendsWrapLines, focusZonePropsInHoverCard: _this.props.focusZonePropsForLegendsInHoverCard }, _this.props.legendProps)));
234
+ };
235
+ _this._getAxisData = function (yAxisData) {
236
+ if (yAxisData && yAxisData.yAxisDomainValues.length) {
237
+ var domainValue = yAxisData.yAxisDomainValues;
238
+ _this._yMax = Math.max(domainValue[domainValue.length - 1], _this.props.yMaxValue || 0);
239
+ }
240
+ };
241
+ /**
242
+ * This function checks if the given legend is highlighted or not.
243
+ * A legend can be highlighted in 2 ways:
244
+ * 1. selection: if the user clicks on it
245
+ * 2. hovering: if there is no selected legend and the user hovers over it
246
+ */
247
+ _this._legendHighlighted = function (legendTitle) {
248
+ return (_this.state.selectedLegend === legendTitle ||
249
+ (_this.state.selectedLegend === '' && _this.state.activeLegend === legendTitle));
250
+ };
251
+ /**
252
+ * This function checks if none of the legends is selected or hovered.
253
+ */
254
+ _this._noLegendHighlighted = function () {
255
+ return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
256
+ };
257
+ _this._getAriaLabel = function (point, xAxisPoint) {
258
+ var _a;
259
+ var xValue = point.xAxisCalloutData || xAxisPoint;
260
+ var legend = point.legend;
261
+ var yValue = point.yAxisCalloutData || point.data;
262
+ return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || xValue + ". " + legend + ", " + yValue + ".";
263
+ };
264
+ _this._getDomainMargins = function (containerWidth) {
265
+ /** Total width available to render the bars */
266
+ var totalWidth = containerWidth - (_this.margins.left + MIN_DOMAIN_MARGIN) - (_this.margins.right + MIN_DOMAIN_MARGIN);
267
+ var barWidth = Math.min(_this.props.barwidth || 16, 24);
268
+ var groupWidth = _this._keys.length * barWidth + (_this._keys.length - 1) * BAR_GAP_RATE * barWidth; // (i)
269
+ /** Total width required to render the bars. Directly proportional to bar width */
270
+ var reqWidth = _this._xAxisLabels.length * groupWidth + (_this._xAxisLabels.length - 1) * 2 * barWidth; // (ii)
271
+ _this._domainMargin = MIN_DOMAIN_MARGIN;
272
+ if (totalWidth >= reqWidth) {
273
+ // Center align the chart by setting equal left and right margins for domain
274
+ _this._domainMargin += (totalWidth - reqWidth) / 2;
275
+ }
276
+ else {
277
+ // From (i) and (ii)
278
+ /** Maximum possible group width to maintain 2:1 spacing */
279
+ var maxBandwidth = totalWidth /
280
+ (_this._xAxisLabels.length +
281
+ (_this._xAxisLabels.length - 1) * (2 / (_this._keys.length + (_this._keys.length - 1) * BAR_GAP_RATE)));
282
+ groupWidth = maxBandwidth;
283
+ // From (i)
284
+ barWidth = groupWidth / (_this._keys.length + (_this._keys.length - 1) * BAR_GAP_RATE);
285
+ }
286
+ _this._barWidth = barWidth;
287
+ return tslib_1.__assign(tslib_1.__assign({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
288
+ };
289
+ _this._createSet = Utilities_1.memoizeFunction(function (data) { return _this._createDataSetOfGVBC(data); });
290
+ _this.state = {
291
+ color: '',
292
+ dataForHoverCard: 0,
293
+ isCalloutVisible: false,
294
+ refSelected: null,
295
+ selectedLegend: '',
296
+ xCalloutValue: '',
297
+ yCalloutValue: '',
298
+ YValueHover: [],
299
+ hoverXValue: '',
300
+ calloutLegend: '',
301
+ activeLegend: '',
302
+ };
303
+ Utilities_1.warnDeprecations(COMPONENT_NAME, props, {
304
+ showYAxisGridLines: 'Dont use this property. Lines are drawn by default',
305
+ showXAxisPath: 'Dont use this property. Axis line removed default.',
306
+ showYAxisPath: 'Dont use this property. No need to display Y axis path. Handling default',
307
+ showXAxisGridLines: 'Dont use this property. Handling with default value.',
308
+ legendColor: 'Dont use this property. colour will pick from given data.',
309
+ });
310
+ _this._refArray = [];
311
+ _this._calloutId = Utilities_1.getId('callout');
312
+ _this._tooltipId = Utilities_1.getId('GVBCTooltipId_');
313
+ _this._domainMargin = MIN_DOMAIN_MARGIN;
314
+ return _this;
315
+ }
316
+ GroupedVerticalBarChartBase.prototype.render = function () {
317
+ var _this = this;
318
+ var points = this.props.data;
319
+ var _a = this._createSet(points), keys = _a.keys, xAxisLabels = _a.xAxisLabels, datasetForBars = _a.datasetForBars;
320
+ this._keys = keys;
321
+ this._xAxisLabels = xAxisLabels;
322
+ this._datasetForBars = datasetForBars;
323
+ this._xAxisType = index_1.getTypeOfAxis(points[0].name, true);
324
+ var legends = this._getLegendData(points, this.props.theme.palette);
325
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
326
+ var yMax = d3_array_1.max(this._dataset, function (point) { return d3_array_1.max(_this._keys, function (key) { return point[key]; }); });
327
+ this._yMax = Math.max(yMax, this.props.yMaxValue || 0);
328
+ this._classNames = getClassNames(this.props.styles, {
329
+ theme: this.props.theme,
330
+ href: this.props.href,
331
+ });
332
+ var calloutProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ target: this.state.refSelected, isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, id: "toolTip" + this._calloutId, gapSpace: 15, isBeakVisible: false, setInitialFocus: true, color: this.state.color, Legend: this.state.calloutLegend, XValue: this.state.xCalloutValue, YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, onDismiss: this._closeCallout }, this.props.calloutProps), { preventDismissOnLostFocus: true }), index_1.getAccessibleDataObject(this.state.callOutAccessibilityData, 'text', false));
333
+ var tickParams = {
334
+ tickValues: this.props.tickValues,
335
+ tickFormat: this.props.tickFormat,
336
+ };
337
+ return (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { points: this._datasetForBars, chartType: index_1.ChartTypes.GroupedVerticalBarChart, calloutProps: calloutProps, legendBars: legends, xAxisType: this._xAxisType, datasetForXAxisDomain: this._xAxisLabels, tickParams: tickParams, tickPadding: this.props.tickPadding || 5, maxOfYVal: this._yMax, svgFocusZoneProps: {
338
+ direction: react_focus_1.FocusZoneDirection.horizontal,
339
+ }, customizedCallout: this._getCustomizedCallout(), getmargins: this._getMargins, getGraphData: this._getGraphData, getAxisData: this._getAxisData, onChartMouseLeave: this._handleChartMouseLeave, getDomainMargins: this._getDomainMargins, xAxisInnerPadding: 2 / (2 + this._keys.length + (this._keys.length - 1) * BAR_GAP_RATE), xAxisOuterPadding: 0,
340
+ /* eslint-disable react/jsx-no-bind */
341
+ // eslint-disable-next-line react/no-children-prop
342
+ children: function () {
343
+ return React.createElement("g", null, _this._groupedVerticalBarGraph);
344
+ } })));
345
+ };
346
+ GroupedVerticalBarChartBase.prototype._refCallback = function (element, legendTitle, refIndexNumber) {
347
+ this._refArray[refIndexNumber] = { index: legendTitle, refElement: element };
348
+ };
349
+ GroupedVerticalBarChartBase.prototype._onLegendClick = function (legendTitle) {
350
+ if (this.state.selectedLegend === legendTitle) {
351
+ this.setState({
352
+ selectedLegend: '',
353
+ });
354
+ }
355
+ else {
356
+ this.setState({
357
+ selectedLegend: legendTitle,
358
+ });
359
+ }
360
+ };
361
+ GroupedVerticalBarChartBase.prototype._onLegendHover = function (legendTitle) {
362
+ this.setState({
363
+ activeLegend: legendTitle,
364
+ });
365
+ };
366
+ GroupedVerticalBarChartBase.prototype._onLegendLeave = function () {
367
+ this.setState({
368
+ activeLegend: '',
369
+ });
370
+ };
371
+ return GroupedVerticalBarChartBase;
372
+ }(React.Component));
373
+ exports.GroupedVerticalBarChartBase = GroupedVerticalBarChartBase;
374
+ });
375
+ //# sourceMappingURL=GroupedVerticalBarChart.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedVerticalBarChart.base.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.tsx"],"names":[],"mappings":";;;;IAiCA,IAAM,cAAc,GAAG,4BAA4B,CAAC;IACpD,IAAM,aAAa,GAAG,8BAAkB,EAAsE,CAAC;IAI/G,IAAM,iBAAiB,GAAG,CAAC,CAAC;IAC5B,IAAM,gBAAgB,GAAG,GAAG,CAAC;IAC7B,2EAA2E;IAC3E,kFAAkF;IAClF,oFAAoF;IACpF,IAAM,YAAY,GAAG,gBAAgB,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC;IAiB/D;QAAiD,uDAGhD;QAuBC,qCAAmB,KAAoC;YAAvD,YACE,kBAAM,KAAK,CAAC,SA0Bb;YAhCO,YAAM,GAAY,kBAAM,EAAE,CAAC;YA0G3B,mBAAa,GAAG,UACtB,MAAgC,EAChC,MAAmB,EACnB,eAAuB,EACvB,cAAsB,EACtB,QAA4B;gBAE5B,IAAM,OAAO,GAAG,KAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;gBACpD,IAAM,OAAO,GA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C;gBACZ,YAAY,EAAE,WAAW;aAC1B,CAAC,CAAC;QACL,CAAC;QAEO,oDAAc,GAAtB;YACE,IAAI,CAAC,QAAQ,CAAC;gBACZ,YAAY,EAAE,EAAE;aACjB,CAAC,CAAC;QACL,CAAC;QA6GH,kCAAC;IAAD,CAAC,AA1gBD,CAAiD,KAAK,CAAC,SAAS,GA0gB/D;IA1gBY,kEAA2B","sourcesContent":["import * as React from 'react';\nimport { max as d3Max } from 'd3-array';\nimport { select as d3Select } from 'd3-selection';\nimport { Axis as D3Axis } from 'd3-axis';\nimport { scaleBand as d3ScaleBand, scaleLinear as d3ScaleLinear } from 'd3-scale';\nimport { classNamesFunction, getId, getRTL, memoizeFunction, warnDeprecations } from '@fluentui/react/lib/Utilities';\nimport { IProcessedStyleSet, IPalette } from '@fluentui/react/lib/Styling';\nimport { DirectionalHint } from '@fluentui/react/lib/Callout';\nimport { FocusZoneDirection } from '@fluentui/react-focus';\nimport {\n ChartTypes,\n IAxisData,\n getAccessibleDataObject,\n tooltipOfXAxislabels,\n XAxisTypes,\n getTypeOfAxis,\n} from '../../utilities/index';\nimport {\n IAccessibilityProps,\n CartesianChart,\n ILegend,\n IGroupedVerticalBarChartData,\n IGroupedVerticalBarChartProps,\n IGroupedVerticalBarChartStyleProps,\n IGroupedVerticalBarChartStyles,\n IGVBarChartSeriesPoint,\n IMargins,\n IBasestate,\n IRefArrayData,\n Legends,\n} from '../../index';\nimport { formatPrefix as d3FormatPrefix } from 'd3-format';\n\nconst COMPONENT_NAME = 'GROUPED VERTICAL BAR CHART';\nconst getClassNames = classNamesFunction<IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles>();\ntype StringAxis = D3Axis<string>;\ntype NumericAxis = D3Axis<number | { valueOf(): number }>;\n\nconst MIN_DOMAIN_MARGIN = 8;\nconst X1_INNER_PADDING = 0.1;\n// x1_inner_padding = space_between_bars / (space_between_bars + bar_width)\n// => space_between_bars = (x1_inner_padding / (1 - x1_inner_padding)) * bar_width\n/** Rate at which the space between the bars in a group changes wrt the bar width */\nconst BAR_GAP_RATE = X1_INNER_PADDING / (1 - X1_INNER_PADDING);\n\n// This interface used for - While forming datapoints from given prop \"data\" in code\ninterface IGVDataPoint {\n [key: string]: number | string;\n}\n\n// While forming datapoints from given prop \"data\" in code. These datapoints are used for to draw graph easily.\ninterface IGVSingleDataPoint {\n [key: string]: IGVDataPoint;\n}\nexport interface IGroupedVerticalBarChartState extends IBasestate {\n dataPointCalloutProps?: IGVBarChartSeriesPoint;\n callOutAccessibilityData?: IAccessibilityProps;\n calloutLegend: string;\n}\n\nexport class GroupedVerticalBarChartBase extends React.Component<\n IGroupedVerticalBarChartProps,\n IGroupedVerticalBarChartState\n> {\n private _createSet: (\n data: IGroupedVerticalBarChartData[],\n ) => // eslint-disable-next-line @typescript-eslint/no-explicit-any\n { keys: string[]; xAxisLabels: string[]; datasetForBars: any };\n private _dataset: IGVDataPoint[];\n private _keys: string[];\n private _xAxisLabels: string[];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _datasetForBars: any;\n private margins: IMargins;\n private _groupedVerticalBarGraph: JSX.Element[];\n private _classNames: IProcessedStyleSet<IGroupedVerticalBarChartStyles>;\n private _refArray: IRefArrayData[];\n private _yMax: number;\n private _calloutId: string;\n private _tooltipId: string;\n private _xAxisType: XAxisTypes;\n private _isRtl: boolean = getRTL();\n private _calloutAnchorPoint: IGVBarChartSeriesPoint | null;\n private _barWidth: number;\n private _domainMargin: number;\n\n public constructor(props: IGroupedVerticalBarChartProps) {\n super(props);\n this._createSet = memoizeFunction((data: IGroupedVerticalBarChartData[]) => this._createDataSetOfGVBC(data));\n this.state = {\n color: '',\n dataForHoverCard: 0,\n isCalloutVisible: false,\n refSelected: null,\n selectedLegend: '',\n xCalloutValue: '',\n yCalloutValue: '',\n YValueHover: [],\n hoverXValue: '',\n calloutLegend: '',\n activeLegend: '',\n };\n warnDeprecations(COMPONENT_NAME, props, {\n showYAxisGridLines: 'Dont use this property. Lines are drawn by default',\n showXAxisPath: 'Dont use this property. Axis line removed default.',\n showYAxisPath: 'Dont use this property. No need to display Y axis path. Handling default',\n showXAxisGridLines: 'Dont use this property. Handling with default value.',\n legendColor: 'Dont use this property. colour will pick from given data.',\n });\n this._refArray = [];\n this._calloutId = getId('callout');\n this._tooltipId = getId('GVBCTooltipId_');\n this._domainMargin = MIN_DOMAIN_MARGIN;\n }\n\n public render(): React.ReactNode {\n const points = this.props.data;\n const { keys, xAxisLabels, datasetForBars } = this._createSet(points);\n this._keys = keys;\n this._xAxisLabels = xAxisLabels;\n this._datasetForBars = datasetForBars;\n this._xAxisType = getTypeOfAxis(points[0].name, true) as XAxisTypes;\n const legends: JSX.Element = this._getLegendData(points, this.props.theme!.palette);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const yMax = d3Max(this._dataset, (point: any) => d3Max(this._keys, (key: string) => point[key]));\n this._yMax = Math.max(yMax, this.props.yMaxValue || 0);\n this._classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n href: this.props.href!,\n });\n const calloutProps = {\n target: this.state.refSelected,\n isCalloutVisible: this.state.isCalloutVisible,\n directionalHint: DirectionalHint.topAutoEdge,\n id: `toolTip${this._calloutId}`,\n gapSpace: 15,\n isBeakVisible: false,\n setInitialFocus: true,\n color: this.state.color,\n Legend: this.state.calloutLegend,\n XValue: this.state.xCalloutValue,\n YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard,\n YValueHover: this.state.YValueHover,\n hoverXValue: this.state.hoverXValue,\n onDismiss: this._closeCallout,\n ...this.props.calloutProps,\n preventDismissOnLostFocus: true,\n ...getAccessibleDataObject(this.state.callOutAccessibilityData, 'text', false),\n };\n const tickParams = {\n tickValues: this.props.tickValues!,\n tickFormat: this.props.tickFormat!,\n };\n\n return (\n <CartesianChart\n {...this.props}\n points={this._datasetForBars}\n chartType={ChartTypes.GroupedVerticalBarChart}\n calloutProps={calloutProps}\n legendBars={legends}\n xAxisType={this._xAxisType}\n datasetForXAxisDomain={this._xAxisLabels}\n tickParams={tickParams}\n tickPadding={this.props.tickPadding || 5}\n maxOfYVal={this._yMax}\n svgFocusZoneProps={{\n direction: FocusZoneDirection.horizontal,\n }}\n customizedCallout={this._getCustomizedCallout()}\n getmargins={this._getMargins}\n getGraphData={this._getGraphData}\n getAxisData={this._getAxisData}\n onChartMouseLeave={this._handleChartMouseLeave}\n getDomainMargins={this._getDomainMargins}\n xAxisInnerPadding={2 / (2 + this._keys.length + (this._keys.length - 1) * BAR_GAP_RATE)}\n xAxisOuterPadding={0}\n /* eslint-disable react/jsx-no-bind */\n // eslint-disable-next-line react/no-children-prop\n children={() => {\n return <g>{this._groupedVerticalBarGraph}</g>;\n }}\n />\n );\n }\n\n private _getGraphData = (\n xScale: StringAxis | NumericAxis,\n yScale: NumericAxis,\n containerHeight: number,\n containerWidth: number,\n xElement?: SVGElement | null,\n ) => {\n const xScale0 = this._createX0Scale(containerWidth);\n const xScale1 = this._createX1Scale(xScale0);\n const allGroupsBars: JSX.Element[] = [];\n this._datasetForBars.forEach((singleSet: IGVSingleDataPoint) => {\n allGroupsBars.push(this._buildGraph(singleSet, xScale0, xScale1, containerHeight, xElement!));\n });\n this._groupedVerticalBarGraph = allGroupsBars;\n };\n\n private _getMargins = (margins: IMargins) => (this.margins = margins);\n\n private _createDataSetOfGVBC = (points: IGroupedVerticalBarChartData[]) => {\n const keys: string[] = [];\n const xAxisLabels: string[] = points.map(singlePoint => singlePoint.name);\n points[0].series.forEach((singleKey: IGVBarChartSeriesPoint) => {\n keys.push(singleKey.key);\n });\n const datasetForBars = this._createDataset(points);\n return {\n keys,\n xAxisLabels,\n datasetForBars,\n };\n };\n\n private _getCustomizedCallout = () => {\n return this.props.onRenderCalloutPerDataPoint\n ? this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps)\n : null;\n };\n\n private _getOpacity = (legendTitle: string): string => {\n const opacity = this._legendHighlighted(legendTitle) || this._noLegendHighlighted() ? '' : '0.1';\n return opacity;\n };\n\n private _onBarHover = (\n pointData: IGVBarChartSeriesPoint,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n groupData: any,\n mouseEvent: React.MouseEvent<SVGElement>,\n ): void => {\n mouseEvent.persist();\n if (this._calloutAnchorPoint !== pointData) {\n this._calloutAnchorPoint = pointData;\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 === pointData.legend,\n calloutLegend: pointData.legend,\n dataForHoverCard: pointData.data,\n color: pointData.color,\n xCalloutValue: pointData.xAxisCalloutData,\n yCalloutValue: pointData.yAxisCalloutData,\n dataPointCalloutProps: pointData,\n callOutAccessibilityData: this.props.isCalloutForStack\n ? groupData.stackCallOutAccessibilityData\n : pointData.callOutAccessibilityData,\n YValueHover: groupData.groupSeries,\n hoverXValue: pointData.xAxisCalloutData,\n });\n }\n };\n\n private _onBarLeave = (): void => {\n /**/\n };\n\n private _handleChartMouseLeave = (): void => {\n this._calloutAnchorPoint = null;\n this.setState({ isCalloutVisible: false });\n };\n\n private _onBarFocus = (\n pointData: IGVBarChartSeriesPoint,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n groupData: any,\n refArrayIndexNumber: number,\n ): void => {\n this._refArray.forEach((obj: IRefArrayData, index: number) => {\n if (obj.index === pointData.legend && refArrayIndexNumber === index) {\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 === pointData.legend,\n calloutLegend: pointData.legend,\n dataForHoverCard: pointData.data,\n color: pointData.color,\n xCalloutValue: pointData.xAxisCalloutData,\n yCalloutValue: pointData.yAxisCalloutData,\n dataPointCalloutProps: pointData,\n callOutAccessibilityData: this.props.isCalloutForStack\n ? groupData.stackCallOutAccessibilityData\n : pointData.callOutAccessibilityData,\n YValueHover: groupData.groupSeries,\n hoverXValue: pointData.xAxisCalloutData,\n });\n }\n });\n };\n\n private _redirectToUrl = (href: string | undefined): void => {\n href ? (window.location.href = href) : '';\n };\n\n private _refCallback(element: SVGRectElement, legendTitle: string, refIndexNumber: number): void {\n this._refArray[refIndexNumber] = { index: legendTitle, refElement: element };\n }\n\n private _buildGraph = (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n singleSet: any,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale0: any,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale1: any,\n containerHeight: number,\n xElement: SVGElement,\n ): JSX.Element => {\n const singleGroup: JSX.Element[] = [];\n const barLabelsForGroup: JSX.Element[] = [];\n\n const yBarScale = d3ScaleLinear()\n .domain([0, this._yMax])\n .range([0, containerHeight! - this.margins.bottom! - this.margins.top!]);\n\n const tempDataSet = Object.keys(this._datasetForBars[0]).splice(0, this._keys.length);\n tempDataSet.forEach((datasetKey: string, index: number) => {\n const refIndexNumber = singleSet.indexNum * tempDataSet.length + index;\n const pointData = singleSet[datasetKey];\n const xPoint = xScale1(datasetKey)!;\n const yPoint = Math.max(containerHeight! - this.margins.bottom! - yBarScale(pointData.data), 0);\n // Not rendering data with 0.\n pointData.data &&\n singleGroup.push(\n <rect\n className={this._classNames.opacityChangeOnHover}\n key={`${singleSet.indexNum}-${index}`}\n height={Math.max(yBarScale(pointData.data), 0)}\n width={this._barWidth}\n x={xPoint}\n y={yPoint}\n data-is-focusable={!this.props.hideTooltip}\n opacity={this._getOpacity(pointData.legend)}\n ref={(e: SVGRectElement | null) => {\n this._refCallback(e!, pointData.legend, refIndexNumber);\n }}\n fill={pointData.color}\n onMouseOver={this._onBarHover.bind(this, pointData, singleSet)}\n onMouseMove={this._onBarHover.bind(this, pointData, singleSet)}\n onMouseOut={this._onBarLeave}\n onFocus={this._onBarFocus.bind(this, pointData, singleSet, refIndexNumber)}\n onBlur={this._onBarLeave}\n onClick={this.props.href ? this._redirectToUrl.bind(this, this.props.href!) : pointData.onClick}\n aria-label={this._getAriaLabel(pointData, singleSet.xAxisPoint)}\n role=\"img\"\n />,\n );\n if (pointData.data && !this.props.hideLabels && this._barWidth >= 16) {\n barLabelsForGroup.push(\n <text\n x={xPoint + this._barWidth / 2}\n y={yPoint - 6}\n textAnchor=\"middle\"\n className={this._classNames.barLabel}\n aria-hidden={true}\n >\n {d3FormatPrefix(pointData.data < 1000 ? '.2~' : '.1', pointData.data)(pointData.data)}\n </text>,\n );\n }\n });\n // Used to display tooltip at x axis labels.\n if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {\n const xAxisElement = d3Select(xElement).call(xScale0);\n try {\n document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId)!.remove();\n // eslint-disable-next-line no-empty\n } catch (e) {}\n const tooltipProps = {\n tooltipCls: this._classNames.tooltip!,\n id: this._tooltipId,\n xAxis: xAxisElement,\n };\n xAxisElement && tooltipOfXAxislabels(tooltipProps);\n }\n return (\n <g key={singleSet.indexNum} transform={`translate(${xScale0(singleSet.xAxisPoint)}, 0)`}>\n {singleGroup}\n {barLabelsForGroup}\n </g>\n );\n };\n\n private _createDataset = (points: IGroupedVerticalBarChartData[]) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const datasetForBars: any = [];\n const dataset: IGVDataPoint[] = [];\n\n points.forEach((point: IGroupedVerticalBarChartData, index: number) => {\n const singleDatasetPoint: IGVDataPoint = {};\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const singleDatasetPointForBars: any = {};\n const singleDataSeries: IGVBarChartSeriesPoint[] = [];\n\n point.series.forEach((seriesPoint: IGVBarChartSeriesPoint) => {\n singleDatasetPoint[seriesPoint.key] = seriesPoint.data;\n singleDatasetPointForBars[seriesPoint.key] = {\n ...seriesPoint,\n };\n singleDataSeries.push(seriesPoint);\n });\n\n singleDatasetPointForBars.xAxisPoint = point.name;\n singleDatasetPointForBars.indexNum = index;\n singleDatasetPointForBars.groupSeries = singleDataSeries;\n singleDatasetPointForBars.stackCallOutAccessibilityData = point.stackCallOutAccessibilityData;\n datasetForBars.push(singleDatasetPointForBars);\n dataset.push(singleDatasetPoint);\n });\n this._dataset = dataset;\n return datasetForBars;\n };\n\n // For grouped vertical bar chart, First need to define total scale (from start to end)\n // From that need to define scale for single group of bars - done by createX1Scale\n private _createX0Scale = (containerWidth: number) => {\n const x0Axis = d3ScaleBand()\n .domain(this._xAxisLabels)\n .range(\n this._isRtl\n ? [containerWidth! - this.margins.right! - this._domainMargin, this.margins.left! + this._domainMargin]\n : [this.margins.left! + this._domainMargin, containerWidth! - this.margins.right! - this._domainMargin],\n )\n // x0_inner_padding = space_between_groups / (space_between_groups + group_width)\n // space_between_groups = 2 * bar_width\n // group_width = this._keys.length * bar_width + (this._keys.length - 1) * space_between_bars\n .paddingInner(2 / (2 + this._keys.length + (this._keys.length - 1) * BAR_GAP_RATE));\n return x0Axis;\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _createX1Scale = (xScale0: any): any => {\n const bandWidth = xScale0.bandwidth();\n\n return d3ScaleBand()\n .domain(this._keys)\n .range(this._isRtl ? [bandWidth, 0] : [0, bandWidth])\n .paddingInner(X1_INNER_PADDING);\n };\n\n private _closeCallout = () => {\n this.setState({\n isCalloutVisible: false,\n });\n };\n\n private _onLegendClick(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 _onLegendHover(legendTitle: string): void {\n this.setState({\n activeLegend: legendTitle,\n });\n }\n\n private _onLegendLeave(): void {\n this.setState({\n activeLegend: '',\n });\n }\n\n private _getLegendData = (points: IGroupedVerticalBarChartData[], palette: IPalette): JSX.Element => {\n const data = points;\n const defaultPalette: string[] = [palette.blueLight, palette.blue, palette.blueMid, palette.red, palette.black];\n const actions: ILegend[] = [];\n\n data.forEach((singleChartData: IGroupedVerticalBarChartData) => {\n singleChartData.series.forEach((point: IGVBarChartSeriesPoint) => {\n const color: string = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];\n const checkSimilarLegends = actions.filter((leg: ILegend) => leg.title === point.legend && leg.color === color);\n if (checkSimilarLegends!.length > 0) {\n return;\n }\n const legend: ILegend = {\n title: point.legend,\n color: color,\n action: () => {\n this._onLegendClick(point.legend);\n },\n hoverAction: () => {\n this._handleChartMouseLeave();\n this._onLegendHover(point.legend);\n },\n onMouseOutAction: () => {\n this._onLegendLeave();\n },\n };\n\n actions.push(legend);\n });\n });\n return (\n <Legends\n legends={actions}\n overflowProps={this.props.legendsOverflowProps}\n enabledWrapLines={this.props.enabledLegendsWrapLines}\n focusZonePropsInHoverCard={this.props.focusZonePropsForLegendsInHoverCard}\n {...this.props.legendProps}\n />\n );\n };\n\n private _getAxisData = (yAxisData: IAxisData) => {\n if (yAxisData && yAxisData.yAxisDomainValues.length) {\n const { yAxisDomainValues: domainValue } = yAxisData;\n this._yMax = Math.max(domainValue[domainValue.length - 1], this.props.yMaxValue || 0);\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: IGVBarChartSeriesPoint, xAxisPoint: string): string => {\n const xValue = point.xAxisCalloutData || xAxisPoint;\n const legend = point.legend;\n const yValue = point.yAxisCalloutData || point.data;\n return point.callOutAccessibilityData?.ariaLabel || `${xValue}. ${legend}, ${yValue}.`;\n };\n\n private _getDomainMargins = (containerWidth: number): IMargins => {\n /** Total width available to render the bars */\n const totalWidth =\n containerWidth - (this.margins.left! + MIN_DOMAIN_MARGIN) - (this.margins.right! + MIN_DOMAIN_MARGIN);\n let barWidth = Math.min(this.props.barwidth || 16, 24);\n let groupWidth = this._keys.length * barWidth + (this._keys.length - 1) * BAR_GAP_RATE * barWidth; // (i)\n /** Total width required to render the bars. Directly proportional to bar width */\n const reqWidth = this._xAxisLabels.length * groupWidth + (this._xAxisLabels.length - 1) * 2 * barWidth; // (ii)\n\n this._domainMargin = MIN_DOMAIN_MARGIN;\n if (totalWidth >= reqWidth) {\n // Center align the chart by setting equal left and right margins for domain\n this._domainMargin += (totalWidth - reqWidth) / 2;\n } else {\n // From (i) and (ii)\n /** Maximum possible group width to maintain 2:1 spacing */\n const maxBandwidth =\n totalWidth /\n (this._xAxisLabels.length +\n (this._xAxisLabels.length - 1) * (2 / (this._keys.length + (this._keys.length - 1) * BAR_GAP_RATE)));\n groupWidth = maxBandwidth;\n // From (i)\n barWidth = groupWidth / (this._keys.length + (this._keys.length - 1) * BAR_GAP_RATE);\n }\n this._barWidth = barWidth;\n\n return {\n ...this.margins,\n left: this.margins.left! + this._domainMargin,\n right: this.margins.right! + this._domainMargin,\n };\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IGroupedVerticalBarChartProps } from '../../index';
3
+ export declare const GroupedVerticalBarChart: React.FunctionComponent<IGroupedVerticalBarChartProps>;
@@ -0,0 +1,8 @@
1
+ define(["require", "exports", "../../Utilities", "./GroupedVerticalBarChart.base", "./GroupedVerticalBarChart.styles"], function (require, exports, Utilities_1, GroupedVerticalBarChart_base_1, GroupedVerticalBarChart_styles_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GroupedVerticalBarChart = void 0;
5
+ // Create a GroupedVerticalBarChart variant which uses these default styles and this styled subcomponent.
6
+ exports.GroupedVerticalBarChart = Utilities_1.styled(GroupedVerticalBarChart_base_1.GroupedVerticalBarChartBase, GroupedVerticalBarChart_styles_1.getStyles);
7
+ });
8
+ //# sourceMappingURL=GroupedVerticalBarChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedVerticalBarChart.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.tsx"],"names":[],"mappings":";;;;IAUA,yGAAyG;IAC5F,QAAA,uBAAuB,GAA2D,kBAAM,CAInG,0DAA2B,EAAE,0CAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport {\n IGroupedVerticalBarChartProps,\n IGroupedVerticalBarChartStyleProps,\n IGroupedVerticalBarChartStyles,\n} from '../../index';\nimport { GroupedVerticalBarChartBase } from './GroupedVerticalBarChart.base';\nimport { getStyles } from './GroupedVerticalBarChart.styles';\n\n// Create a GroupedVerticalBarChart variant which uses these default styles and this styled subcomponent.\nexport const GroupedVerticalBarChart: React.FunctionComponent<IGroupedVerticalBarChartProps> = styled<\n IGroupedVerticalBarChartProps,\n IGroupedVerticalBarChartStyleProps,\n IGroupedVerticalBarChartStyles\n>(GroupedVerticalBarChartBase, getStyles);\n"]}
@@ -0,0 +1,2 @@
1
+ import { IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles } from '../../index';
2
+ export declare const getStyles: (props: IGroupedVerticalBarChartStyleProps) => IGroupedVerticalBarChartStyles;
@@ -0,0 +1,21 @@
1
+ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling"], function (require, exports, tslib_1, Styling_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.getStyles = void 0;
5
+ var getStyles = function (props) {
6
+ var theme = props.theme, href = props.href;
7
+ return {
8
+ opacityChangeOnHover: {
9
+ cursor: href ? 'pointer' : 'default',
10
+ },
11
+ tooltip: tslib_1.__assign(tslib_1.__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none' }),
12
+ barLabel: {
13
+ fontSize: Styling_1.FontSizes.small,
14
+ fontWeight: Styling_1.FontWeights.semibold,
15
+ fill: theme.palette.neutralPrimary,
16
+ },
17
+ };
18
+ };
19
+ exports.getStyles = getStyles;
20
+ });
21
+ //# sourceMappingURL=GroupedVerticalBarChart.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAyC;QACzD,IAAA,KAAK,GAAW,KAAK,MAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;QAC9B,OAAO;YACL,oBAAoB,EAAE;gBACpB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;aACrC;YAED,OAAO,wCACF,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,GACtB;YAED,QAAQ,EAAE;gBACR,QAAQ,EAAE,mBAAS,CAAC,KAAK;gBACzB,UAAU,EAAE,qBAAW,CAAC,QAAQ;gBAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;aACnC;SACF,CAAC;IACJ,CAAC,CAAC;IA1BW,QAAA,SAAS,aA0BpB","sourcesContent":["import { FontSizes, FontWeights } from '@fluentui/react/lib/Styling';\nimport { IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles } from '../../index';\n\nexport const getStyles = (props: IGroupedVerticalBarChartStyleProps): IGroupedVerticalBarChartStyles => {\n const { theme, href } = props;\n return {\n opacityChangeOnHover: {\n cursor: href ? 'pointer' : 'default',\n },\n\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n },\n\n barLabel: {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n },\n };\n};\n"]}
@@ -0,0 +1,83 @@
1
+ import { IStyle } from '@fluentui/react/lib/Styling';
2
+ import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
3
+ import { ICartesianChartStyles, ICartesianChartStyleProps, ICartesianChartProps, IGroupedVerticalBarChartData, IGVBarChartSeriesPoint } from '../../index';
4
+ export interface IGroupedVerticalBarChartProps extends ICartesianChartProps {
5
+ /**
6
+ * chart title for the chart
7
+ */
8
+ chartTitle?: string;
9
+ /**
10
+ * Data to render in the chart.
11
+ */
12
+ data: IGroupedVerticalBarChartData[];
13
+ /**
14
+ * Barwidth automacally adjusted based upon given parent width, data and scale.
15
+ * If barwidth given through prop, then is shold be less than given formula.
16
+ * If not, graph will adjust and your value may not be reflected.
17
+ * Formula: width of parent div / (Number Of Groups * (Number Of single bars in group + 2))
18
+ * Note: By changing barwidth manually it may cause some spatial and graph override issues,
19
+ * better to avoid using this prop.
20
+ */
21
+ barwidth?: number;
22
+ /**
23
+ * Call to provide customized styling that will layer on top of the variant rules.
24
+ */
25
+ styles?: IStyleFunctionOrObject<IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles>;
26
+ /**
27
+ * color of the datapoint legend
28
+ * @deprecated
29
+ */
30
+ legendColor?: string;
31
+ /**
32
+ * This prop used to draw X axis grid line on tha chart. Default value will be false
33
+ * @deprecated
34
+ */
35
+ showXAxisGridLines?: boolean;
36
+ /**
37
+ * This prop used to draw Y axis grid lines on the chart. Default value will be true
38
+ * @deprecated
39
+ */
40
+ showYAxisGridLines?: boolean;
41
+ /**
42
+ * This prop takes the boolean value and used for to display x-axis path or transparent.
43
+ * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.
44
+ * @deprecated
45
+ */
46
+ showXAxisPath?: boolean;
47
+ /**
48
+ * This prop takes the boolean value and used for to display y-axis path or transparent.
49
+ * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.
50
+ * @deprecated
51
+ */
52
+ showYAxisPath?: boolean;
53
+ /**
54
+ * Define a custom callout renderer for a stack
55
+ */
56
+ onRenderCalloutPerDataPoint?: IRenderFunction<IGVBarChartSeriesPoint>;
57
+ /**
58
+ * The prop used to define the culture to localized the numbers
59
+ */
60
+ culture?: string;
61
+ /**
62
+ * To display multi stack callout or single callout
63
+ * @default false
64
+ */
65
+ isCalloutForStack?: boolean;
66
+ /**
67
+ * Prop to hide the bar labels
68
+ * @default false
69
+ */
70
+ hideLabels?: boolean;
71
+ }
72
+ export interface IGroupedVerticalBarChartStyleProps extends ICartesianChartStyleProps {
73
+ }
74
+ export interface IGroupedVerticalBarChartStyles extends ICartesianChartStyles {
75
+ /**
76
+ * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
77
+ */
78
+ opacityChangeOnHover: IStyle;
79
+ /**
80
+ * Style for the bar labels
81
+ */
82
+ barLabel: IStyle;
83
+ }
@@ -0,0 +1,5 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ });
5
+ //# sourceMappingURL=GroupedVerticalBarChart.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedVerticalBarChart.types.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.tsx"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartStyles,\n ICartesianChartStyleProps,\n ICartesianChartProps,\n IGroupedVerticalBarChartData,\n IGVBarChartSeriesPoint,\n} from '../../index';\n\nexport interface IGroupedVerticalBarChartProps extends ICartesianChartProps {\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n /**\n * Data to render in the chart.\n */\n data: IGroupedVerticalBarChartData[];\n\n /**\n * Barwidth automacally adjusted based upon given parent width, data and scale.\n * If barwidth given through prop, then is shold be less than given formula.\n * If not, graph will adjust and your value may not be reflected.\n * Formula: width of parent div / (Number Of Groups * (Number Of single bars in group + 2))\n * Note: By changing barwidth manually it may cause some spatial and graph override issues,\n * better to avoid using this prop.\n */\n barwidth?: number;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles>;\n\n /**\n * color of the datapoint legend\n * @deprecated\n */\n legendColor?: string;\n\n /**\n * This prop used to draw X axis grid line on tha chart. Default value will be false\n * @deprecated\n */\n showXAxisGridLines?: boolean;\n\n /**\n * This prop used to draw Y axis grid lines on the chart. Default value will be true\n * @deprecated\n */\n showYAxisGridLines?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display x-axis path or transparent.\n * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.\n * @deprecated\n */\n showXAxisPath?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display y-axis path or transparent.\n * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.\n * @deprecated\n */\n showYAxisPath?: boolean;\n\n /**\n * Define a custom callout renderer for a stack\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IGVBarChartSeriesPoint>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * To display multi stack callout or single callout\n * @default false\n */\n isCalloutForStack?: boolean;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\nexport interface IGroupedVerticalBarChartStyleProps extends ICartesianChartStyleProps {}\n\nexport interface IGroupedVerticalBarChartStyles extends ICartesianChartStyles {\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './GroupedVerticalBarChart';
2
+ export * from './GroupedVerticalBarChart.types';
@@ -0,0 +1,7 @@
1
+ define(["require", "exports", "tslib", "./GroupedVerticalBarChart", "./GroupedVerticalBarChart.types"], function (require, exports, tslib_1, GroupedVerticalBarChart_1, GroupedVerticalBarChart_types_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ tslib_1.__exportStar(GroupedVerticalBarChart_1, exports);
5
+ tslib_1.__exportStar(GroupedVerticalBarChart_types_1, exports);
6
+ });
7
+ //# sourceMappingURL=index.js.map