@fluentui/react-charting 5.21.27 → 5.21.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (742) hide show
  1. package/CHANGELOG.json +28 -1
  2. package/CHANGELOG.md +13 -2
  3. package/lib/AreaChart.js.map +1 -1
  4. package/lib/CartesianChart.js.map +1 -1
  5. package/lib/DonutChart.js.map +1 -1
  6. package/lib/GaugeChart.js.map +1 -1
  7. package/lib/GroupedVerticalBarChart.js.map +1 -1
  8. package/lib/HeatMapChart.js.map +1 -1
  9. package/lib/HorizontalBarChart.js.map +1 -1
  10. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  11. package/lib/Legends.js.map +1 -1
  12. package/lib/LineChart.js.map +1 -1
  13. package/lib/PieChart.js.map +1 -1
  14. package/lib/SankeyChart.js.map +1 -1
  15. package/lib/Sparkline.js.map +1 -1
  16. package/lib/StackedBarChart.js.map +1 -1
  17. package/lib/Styling.js.map +1 -1
  18. package/lib/TreeChart.js.map +1 -1
  19. package/lib/Utilities.js.map +1 -1
  20. package/lib/VerticalBarChart.js.map +1 -1
  21. package/lib/VerticalStackedBarChart.js.map +1 -1
  22. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  23. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  24. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
  25. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  26. package/lib/components/AreaChart/index.js.map +1 -1
  27. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  28. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  29. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  30. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  31. package/lib/components/CommonComponents/index.js.map +1 -1
  32. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  33. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  34. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  35. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  36. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  37. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  38. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  39. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  40. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  41. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  42. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  43. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  44. package/lib/components/DonutChart/index.js.map +1 -1
  45. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  46. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  47. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  48. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  49. package/lib/components/GaugeChart/index.js.map +1 -1
  50. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  51. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  52. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  53. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  54. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  55. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  56. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  57. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  58. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  59. package/lib/components/HeatMapChart/index.js.map +1 -1
  60. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  61. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  62. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  63. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  64. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  65. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  66. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  67. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  68. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  69. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  70. package/lib/components/Legends/Legends.base.js.map +1 -1
  71. package/lib/components/Legends/Legends.js.map +1 -1
  72. package/lib/components/Legends/Legends.styles.js.map +1 -1
  73. package/lib/components/Legends/Legends.types.js.map +1 -1
  74. package/lib/components/Legends/index.js.map +1 -1
  75. package/lib/components/Legends/shape.js.map +1 -1
  76. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  77. package/lib/components/LineChart/LineChart.js.map +1 -1
  78. package/lib/components/LineChart/LineChart.styles.js.map +1 -1
  79. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  80. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  81. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  82. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  83. package/lib/components/LineChart/index.js.map +1 -1
  84. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  85. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
  86. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -1
  87. package/lib/components/PieChart/Arc/index.js.map +1 -1
  88. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  89. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -1
  90. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -1
  91. package/lib/components/PieChart/Pie/index.js.map +1 -1
  92. package/lib/components/PieChart/PieChart.base.js.map +1 -1
  93. package/lib/components/PieChart/PieChart.js.map +1 -1
  94. package/lib/components/PieChart/PieChart.styles.js.map +1 -1
  95. package/lib/components/PieChart/PieChart.types.js.map +1 -1
  96. package/lib/components/PieChart/index.js.map +1 -1
  97. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  98. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  99. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  100. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  101. package/lib/components/SankeyChart/index.js.map +1 -1
  102. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  103. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  104. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
  105. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  106. package/lib/components/Sparkline/index.js.map +1 -1
  107. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  108. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  109. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  110. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  111. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  112. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
  113. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  114. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  115. package/lib/components/StackedBarChart/index.js.map +1 -1
  116. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  117. package/lib/components/TreeChart/TreeChart.js.map +1 -1
  118. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
  119. package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
  120. package/lib/components/TreeChart/index.js.map +1 -1
  121. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  122. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  123. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  124. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  125. package/lib/components/VerticalBarChart/index.js.map +1 -1
  126. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  127. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  128. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  129. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  130. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  131. package/lib/index.js.map +1 -1
  132. package/lib/types/IDataPoint.js.map +1 -1
  133. package/lib/types/IEventAnnotation.js.map +1 -1
  134. package/lib/types/ILegendDataItem.js.map +1 -1
  135. package/lib/types/index.js.map +1 -1
  136. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  137. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  138. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  139. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  140. package/lib/utilities/ChartHoverCard/index.js.map +1 -1
  141. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  142. package/lib/utilities/SVGTooltipText.js.map +1 -1
  143. package/lib/utilities/colors.js.map +1 -1
  144. package/lib/utilities/index.js.map +1 -1
  145. package/lib/utilities/locale-util.js.map +1 -1
  146. package/lib/utilities/test-data.js.map +1 -1
  147. package/lib/utilities/utilities.js.map +1 -1
  148. package/lib/utilities/vbc-utils.js.map +1 -1
  149. package/lib/version.js +1 -1
  150. package/lib/version.js.map +1 -1
  151. package/lib-commonjs/AreaChart.js.map +1 -1
  152. package/lib-commonjs/CartesianChart.js.map +1 -1
  153. package/lib-commonjs/DonutChart.js.map +1 -1
  154. package/lib-commonjs/GaugeChart.js.map +1 -1
  155. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  156. package/lib-commonjs/HeatMapChart.js.map +1 -1
  157. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  158. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  159. package/lib-commonjs/Legends.js.map +1 -1
  160. package/lib-commonjs/LineChart.js.map +1 -1
  161. package/lib-commonjs/PieChart.js.map +1 -1
  162. package/lib-commonjs/SankeyChart.js.map +1 -1
  163. package/lib-commonjs/Sparkline.js.map +1 -1
  164. package/lib-commonjs/StackedBarChart.js.map +1 -1
  165. package/lib-commonjs/Styling.js.map +1 -1
  166. package/lib-commonjs/TreeChart.js.map +1 -1
  167. package/lib-commonjs/Utilities.js.map +1 -1
  168. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  169. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  170. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  171. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  172. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  173. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  174. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  175. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  176. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  177. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  178. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  179. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  180. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  181. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  182. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  183. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  184. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  185. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  186. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  187. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  188. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  189. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  190. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  191. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  192. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  193. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  194. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  195. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  196. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  197. package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
  198. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  199. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  200. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  201. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  202. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  203. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  204. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  205. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  206. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  207. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  208. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  209. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  210. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  211. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  212. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  213. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  214. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  215. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  216. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  217. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  218. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  219. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  220. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  221. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  222. package/lib-commonjs/components/Legends/index.js.map +1 -1
  223. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  224. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  225. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  226. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  227. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  228. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  229. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  230. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  231. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  232. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  233. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
  234. package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -1
  235. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  236. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  237. package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -1
  238. package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -1
  239. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  240. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  241. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  242. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  243. package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
  244. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  245. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  246. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  247. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  248. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  249. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  250. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  251. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  252. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  253. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  254. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  255. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  256. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  257. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  258. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  259. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  260. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  261. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  262. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  263. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  264. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  265. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  266. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  267. package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
  268. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  269. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  270. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  271. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  272. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  273. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  274. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  275. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  276. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  277. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  278. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  279. package/lib-commonjs/index.js.map +1 -1
  280. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  281. package/lib-commonjs/types/IEventAnnotation.js.map +1 -1
  282. package/lib-commonjs/types/ILegendDataItem.js.map +1 -1
  283. package/lib-commonjs/types/index.js.map +1 -1
  284. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  285. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  286. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  287. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  288. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  289. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  290. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  291. package/lib-commonjs/utilities/colors.js.map +1 -1
  292. package/lib-commonjs/utilities/index.js.map +1 -1
  293. package/lib-commonjs/utilities/locale-util.js.map +1 -1
  294. package/lib-commonjs/utilities/test-data.js.map +1 -1
  295. package/lib-commonjs/utilities/utilities.js.map +1 -1
  296. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  297. package/lib-commonjs/version.js +1 -1
  298. package/lib-commonjs/version.js.map +1 -1
  299. package/package.json +4 -4
  300. package/dist/react-charting.js +0 -1
  301. package/dist/react-charting.min.js +0 -1
  302. package/lib-amd/AreaChart.d.ts +0 -1
  303. package/lib-amd/AreaChart.js +0 -6
  304. package/lib-amd/AreaChart.js.map +0 -1
  305. package/lib-amd/CartesianChart.d.ts +0 -1
  306. package/lib-amd/CartesianChart.js +0 -6
  307. package/lib-amd/CartesianChart.js.map +0 -1
  308. package/lib-amd/DonutChart.d.ts +0 -1
  309. package/lib-amd/DonutChart.js +0 -6
  310. package/lib-amd/DonutChart.js.map +0 -1
  311. package/lib-amd/GaugeChart.d.ts +0 -1
  312. package/lib-amd/GaugeChart.js +0 -6
  313. package/lib-amd/GaugeChart.js.map +0 -1
  314. package/lib-amd/GroupedVerticalBarChart.d.ts +0 -1
  315. package/lib-amd/GroupedVerticalBarChart.js +0 -6
  316. package/lib-amd/GroupedVerticalBarChart.js.map +0 -1
  317. package/lib-amd/HeatMapChart.d.ts +0 -1
  318. package/lib-amd/HeatMapChart.js +0 -6
  319. package/lib-amd/HeatMapChart.js.map +0 -1
  320. package/lib-amd/HorizontalBarChart.d.ts +0 -1
  321. package/lib-amd/HorizontalBarChart.js +0 -6
  322. package/lib-amd/HorizontalBarChart.js.map +0 -1
  323. package/lib-amd/HorizontalBarChartWithAxis.d.ts +0 -1
  324. package/lib-amd/HorizontalBarChartWithAxis.js +0 -6
  325. package/lib-amd/HorizontalBarChartWithAxis.js.map +0 -1
  326. package/lib-amd/Legends.d.ts +0 -1
  327. package/lib-amd/Legends.js +0 -6
  328. package/lib-amd/Legends.js.map +0 -1
  329. package/lib-amd/LineChart.d.ts +0 -1
  330. package/lib-amd/LineChart.js +0 -6
  331. package/lib-amd/LineChart.js.map +0 -1
  332. package/lib-amd/PieChart.d.ts +0 -1
  333. package/lib-amd/PieChart.js +0 -6
  334. package/lib-amd/PieChart.js.map +0 -1
  335. package/lib-amd/SankeyChart.d.ts +0 -1
  336. package/lib-amd/SankeyChart.js +0 -6
  337. package/lib-amd/SankeyChart.js.map +0 -1
  338. package/lib-amd/Sparkline.d.ts +0 -1
  339. package/lib-amd/Sparkline.js +0 -6
  340. package/lib-amd/Sparkline.js.map +0 -1
  341. package/lib-amd/StackedBarChart.d.ts +0 -1
  342. package/lib-amd/StackedBarChart.js +0 -6
  343. package/lib-amd/StackedBarChart.js.map +0 -1
  344. package/lib-amd/Styling.d.ts +0 -2
  345. package/lib-amd/Styling.js +0 -75
  346. package/lib-amd/Styling.js.map +0 -1
  347. package/lib-amd/TreeChart.d.ts +0 -1
  348. package/lib-amd/TreeChart.js +0 -6
  349. package/lib-amd/TreeChart.js.map +0 -1
  350. package/lib-amd/Utilities.d.ts +0 -2
  351. package/lib-amd/Utilities.js +0 -183
  352. package/lib-amd/Utilities.js.map +0 -1
  353. package/lib-amd/VerticalBarChart.d.ts +0 -1
  354. package/lib-amd/VerticalBarChart.js +0 -6
  355. package/lib-amd/VerticalBarChart.js.map +0 -1
  356. package/lib-amd/VerticalStackedBarChart.d.ts +0 -1
  357. package/lib-amd/VerticalStackedBarChart.js +0 -6
  358. package/lib-amd/VerticalStackedBarChart.js.map +0 -1
  359. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -103
  360. package/lib-amd/components/AreaChart/AreaChart.base.js +0 -652
  361. package/lib-amd/components/AreaChart/AreaChart.base.js.map +0 -1
  362. package/lib-amd/components/AreaChart/AreaChart.d.ts +0 -7
  363. package/lib-amd/components/AreaChart/AreaChart.js +0 -12
  364. package/lib-amd/components/AreaChart/AreaChart.js.map +0 -1
  365. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +0 -2
  366. package/lib-amd/components/AreaChart/AreaChart.styles.js +0 -12
  367. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +0 -1
  368. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +0 -59
  369. package/lib-amd/components/AreaChart/AreaChart.types.js +0 -5
  370. package/lib-amd/components/AreaChart/AreaChart.types.js.map +0 -1
  371. package/lib-amd/components/AreaChart/index.d.ts +0 -2
  372. package/lib-amd/components/AreaChart/index.js +0 -7
  373. package/lib-amd/components/AreaChart/index.js.map +0 -1
  374. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +0 -62
  375. package/lib-amd/components/CommonComponents/CartesianChart.base.js +0 -593
  376. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +0 -1
  377. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +0 -7
  378. package/lib-amd/components/CommonComponents/CartesianChart.js +0 -11
  379. package/lib-amd/components/CommonComponents/CartesianChart.js.map +0 -1
  380. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
  381. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +0 -180
  382. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +0 -1
  383. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +0 -528
  384. package/lib-amd/components/CommonComponents/CartesianChart.types.js +0 -5
  385. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +0 -1
  386. package/lib-amd/components/CommonComponents/index.d.ts +0 -2
  387. package/lib-amd/components/CommonComponents/index.js +0 -7
  388. package/lib-amd/components/CommonComponents/index.js.map +0 -1
  389. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +0 -21
  390. package/lib-amd/components/DonutChart/Arc/Arc.js +0 -88
  391. package/lib-amd/components/DonutChart/Arc/Arc.js.map +0 -1
  392. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
  393. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +0 -33
  394. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +0 -1
  395. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +0 -124
  396. package/lib-amd/components/DonutChart/Arc/Arc.types.js +0 -5
  397. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +0 -1
  398. package/lib-amd/components/DonutChart/Arc/index.d.ts +0 -2
  399. package/lib-amd/components/DonutChart/Arc/index.js +0 -7
  400. package/lib-amd/components/DonutChart/Arc/index.js.map +0 -1
  401. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +0 -54
  402. package/lib-amd/components/DonutChart/DonutChart.base.js +0 -241
  403. package/lib-amd/components/DonutChart/DonutChart.base.js.map +0 -1
  404. package/lib-amd/components/DonutChart/DonutChart.d.ts +0 -7
  405. package/lib-amd/components/DonutChart/DonutChart.js +0 -12
  406. package/lib-amd/components/DonutChart/DonutChart.js.map +0 -1
  407. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +0 -2
  408. package/lib-amd/components/DonutChart/DonutChart.styles.js +0 -36
  409. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +0 -1
  410. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +0 -75
  411. package/lib-amd/components/DonutChart/DonutChart.types.js +0 -5
  412. package/lib-amd/components/DonutChart/DonutChart.types.js.map +0 -1
  413. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +0 -15
  414. package/lib-amd/components/DonutChart/Pie/Pie.js +0 -67
  415. package/lib-amd/components/DonutChart/Pie/Pie.js.map +0 -1
  416. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
  417. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +0 -24
  418. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +0 -1
  419. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +0 -96
  420. package/lib-amd/components/DonutChart/Pie/Pie.types.js +0 -5
  421. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +0 -1
  422. package/lib-amd/components/DonutChart/Pie/index.d.ts +0 -2
  423. package/lib-amd/components/DonutChart/Pie/index.js +0 -7
  424. package/lib-amd/components/DonutChart/Pie/index.js.map +0 -1
  425. package/lib-amd/components/DonutChart/index.d.ts +0 -3
  426. package/lib-amd/components/DonutChart/index.js +0 -8
  427. package/lib-amd/components/DonutChart/index.js.map +0 -1
  428. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +0 -75
  429. package/lib-amd/components/GaugeChart/GaugeChart.base.js +0 -410
  430. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +0 -1
  431. package/lib-amd/components/GaugeChart/GaugeChart.d.ts +0 -7
  432. package/lib-amd/components/GaugeChart/GaugeChart.js +0 -11
  433. package/lib-amd/components/GaugeChart/GaugeChart.js.map +0 -1
  434. package/lib-amd/components/GaugeChart/GaugeChart.styles.d.ts +0 -2
  435. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +0 -122
  436. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +0 -1
  437. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +0 -238
  438. package/lib-amd/components/GaugeChart/GaugeChart.types.js +0 -22
  439. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +0 -1
  440. package/lib-amd/components/GaugeChart/index.d.ts +0 -2
  441. package/lib-amd/components/GaugeChart/index.js +0 -7
  442. package/lib-amd/components/GaugeChart/index.js.map +0 -1
  443. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -72
  444. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -425
  445. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
  446. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -7
  447. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -12
  448. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
  449. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
  450. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -21
  451. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
  452. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -111
  453. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -5
  454. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
  455. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +0 -2
  456. package/lib-amd/components/GroupedVerticalBarChart/index.js +0 -7
  457. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +0 -1
  458. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +0 -152
  459. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +0 -538
  460. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
  461. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +0 -7
  462. package/lib-amd/components/HeatMapChart/HeatMapChart.js +0 -11
  463. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +0 -1
  464. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
  465. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +0 -29
  466. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
  467. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +0 -122
  468. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +0 -5
  469. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
  470. package/lib-amd/components/HeatMapChart/index.d.ts +0 -2
  471. package/lib-amd/components/HeatMapChart/index.js +0 -7
  472. package/lib-amd/components/HeatMapChart/index.js.map +0 -1
  473. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -47
  474. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -270
  475. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
  476. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -7
  477. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +0 -12
  478. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
  479. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
  480. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -69
  481. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
  482. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -188
  483. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -14
  484. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
  485. package/lib-amd/components/HorizontalBarChart/index.d.ts +0 -3
  486. package/lib-amd/components/HorizontalBarChart/index.js +0 -8
  487. package/lib-amd/components/HorizontalBarChart/index.js.map +0 -1
  488. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +0 -61
  489. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -499
  490. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +0 -1
  491. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.d.ts +0 -7
  492. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -12
  493. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
  494. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.d.ts +0 -2
  495. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +0 -17
  496. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +0 -1
  497. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +0 -112
  498. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -5
  499. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
  500. package/lib-amd/components/HorizontalBarChartWithAxis/index.d.ts +0 -2
  501. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +0 -7
  502. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +0 -1
  503. package/lib-amd/components/Legends/Legends.base.d.ts +0 -43
  504. package/lib-amd/components/Legends/Legends.base.js +0 -308
  505. package/lib-amd/components/Legends/Legends.base.js.map +0 -1
  506. package/lib-amd/components/Legends/Legends.d.ts +0 -7
  507. package/lib-amd/components/Legends/Legends.js +0 -11
  508. package/lib-amd/components/Legends/Legends.js.map +0 -1
  509. package/lib-amd/components/Legends/Legends.styles.d.ts +0 -2
  510. package/lib-amd/components/Legends/Legends.styles.js +0 -111
  511. package/lib-amd/components/Legends/Legends.styles.js.map +0 -1
  512. package/lib-amd/components/Legends/Legends.types.d.ts +0 -210
  513. package/lib-amd/components/Legends/Legends.types.js +0 -5
  514. package/lib-amd/components/Legends/Legends.types.js.map +0 -1
  515. package/lib-amd/components/Legends/index.d.ts +0 -3
  516. package/lib-amd/components/Legends/index.js +0 -8
  517. package/lib-amd/components/Legends/index.js.map +0 -1
  518. package/lib-amd/components/Legends/shape.d.ts +0 -9
  519. package/lib-amd/components/Legends/shape.js +0 -27
  520. package/lib-amd/components/Legends/shape.js.map +0 -1
  521. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -92
  522. package/lib-amd/components/LineChart/LineChart.base.js +0 -861
  523. package/lib-amd/components/LineChart/LineChart.base.js.map +0 -1
  524. package/lib-amd/components/LineChart/LineChart.d.ts +0 -7
  525. package/lib-amd/components/LineChart/LineChart.js +0 -12
  526. package/lib-amd/components/LineChart/LineChart.js.map +0 -1
  527. package/lib-amd/components/LineChart/LineChart.styles.d.ts +0 -2
  528. package/lib-amd/components/LineChart/LineChart.styles.js +0 -12
  529. package/lib-amd/components/LineChart/LineChart.styles.js.map +0 -1
  530. package/lib-amd/components/LineChart/LineChart.types.d.ts +0 -98
  531. package/lib-amd/components/LineChart/LineChart.types.js +0 -5
  532. package/lib-amd/components/LineChart/LineChart.types.js.map +0 -1
  533. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -12
  534. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +0 -97
  535. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
  536. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -24
  537. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +0 -42
  538. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
  539. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
  540. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +0 -40
  541. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
  542. package/lib-amd/components/LineChart/index.d.ts +0 -3
  543. package/lib-amd/components/LineChart/index.js +0 -8
  544. package/lib-amd/components/LineChart/index.js.map +0 -1
  545. package/lib-amd/components/PieChart/Arc/Arc.d.ts +0 -17
  546. package/lib-amd/components/PieChart/Arc/Arc.js +0 -85
  547. package/lib-amd/components/PieChart/Arc/Arc.js.map +0 -1
  548. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +0 -3
  549. package/lib-amd/components/PieChart/Arc/Arc.styles.js +0 -16
  550. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +0 -1
  551. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +0 -73
  552. package/lib-amd/components/PieChart/Arc/Arc.types.js +0 -5
  553. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +0 -1
  554. package/lib-amd/components/PieChart/Arc/index.d.ts +0 -2
  555. package/lib-amd/components/PieChart/Arc/index.js +0 -7
  556. package/lib-amd/components/PieChart/Arc/index.js.map +0 -1
  557. package/lib-amd/components/PieChart/Pie/Pie.d.ts +0 -10
  558. package/lib-amd/components/PieChart/Pie/Pie.js +0 -43
  559. package/lib-amd/components/PieChart/Pie/Pie.js.map +0 -1
  560. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +0 -2
  561. package/lib-amd/components/PieChart/Pie/Pie.styles.js +0 -12
  562. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +0 -1
  563. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +0 -47
  564. package/lib-amd/components/PieChart/Pie/Pie.types.js +0 -5
  565. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +0 -1
  566. package/lib-amd/components/PieChart/Pie/index.d.ts +0 -2
  567. package/lib-amd/components/PieChart/Pie/index.js +0 -7
  568. package/lib-amd/components/PieChart/Pie/index.js.map +0 -1
  569. package/lib-amd/components/PieChart/PieChart.base.d.ts +0 -10
  570. package/lib-amd/components/PieChart/PieChart.base.js +0 -46
  571. package/lib-amd/components/PieChart/PieChart.base.js.map +0 -1
  572. package/lib-amd/components/PieChart/PieChart.d.ts +0 -7
  573. package/lib-amd/components/PieChart/PieChart.js +0 -12
  574. package/lib-amd/components/PieChart/PieChart.js.map +0 -1
  575. package/lib-amd/components/PieChart/PieChart.styles.d.ts +0 -2
  576. package/lib-amd/components/PieChart/PieChart.styles.js +0 -34
  577. package/lib-amd/components/PieChart/PieChart.styles.js.map +0 -1
  578. package/lib-amd/components/PieChart/PieChart.types.d.ts +0 -75
  579. package/lib-amd/components/PieChart/PieChart.types.js +0 -5
  580. package/lib-amd/components/PieChart/PieChart.types.js.map +0 -1
  581. package/lib-amd/components/PieChart/index.d.ts +0 -2
  582. package/lib-amd/components/PieChart/index.js +0 -7
  583. package/lib-amd/components/PieChart/index.js.map +0 -1
  584. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +0 -90
  585. package/lib-amd/components/SankeyChart/SankeyChart.base.js +0 -930
  586. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +0 -1
  587. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +0 -7
  588. package/lib-amd/components/SankeyChart/SankeyChart.js +0 -12
  589. package/lib-amd/components/SankeyChart/SankeyChart.js.map +0 -1
  590. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
  591. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +0 -65
  592. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +0 -1
  593. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +0 -146
  594. package/lib-amd/components/SankeyChart/SankeyChart.types.js +0 -5
  595. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +0 -1
  596. package/lib-amd/components/SankeyChart/index.d.ts +0 -2
  597. package/lib-amd/components/SankeyChart/index.js +0 -7
  598. package/lib-amd/components/SankeyChart/index.js.map +0 -1
  599. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +0 -23
  600. package/lib-amd/components/Sparkline/Sparkline.base.js +0 -84
  601. package/lib-amd/components/Sparkline/Sparkline.base.js.map +0 -1
  602. package/lib-amd/components/Sparkline/Sparkline.d.ts +0 -7
  603. package/lib-amd/components/Sparkline/Sparkline.js +0 -12
  604. package/lib-amd/components/Sparkline/Sparkline.js.map +0 -1
  605. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +0 -2
  606. package/lib-amd/components/Sparkline/Sparkline.styles.js +0 -15
  607. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +0 -1
  608. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +0 -59
  609. package/lib-amd/components/Sparkline/Sparkline.types.js +0 -5
  610. package/lib-amd/components/Sparkline/Sparkline.types.js.map +0 -1
  611. package/lib-amd/components/Sparkline/index.d.ts +0 -2
  612. package/lib-amd/components/Sparkline/index.js +0 -7
  613. package/lib-amd/components/Sparkline/index.js.map +0 -1
  614. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -70
  615. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +0 -412
  616. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
  617. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -7
  618. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +0 -12
  619. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
  620. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
  621. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -89
  622. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
  623. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -213
  624. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +0 -14
  625. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
  626. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +0 -63
  627. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +0 -349
  628. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
  629. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +0 -7
  630. package/lib-amd/components/StackedBarChart/StackedBarChart.js +0 -12
  631. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +0 -1
  632. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
  633. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +0 -107
  634. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
  635. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +0 -222
  636. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +0 -5
  637. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
  638. package/lib-amd/components/StackedBarChart/index.d.ts +0 -5
  639. package/lib-amd/components/StackedBarChart/index.js +0 -10
  640. package/lib-amd/components/StackedBarChart/index.js.map +0 -1
  641. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +0 -18
  642. package/lib-amd/components/TreeChart/TreeChart.base.js +0 -320
  643. package/lib-amd/components/TreeChart/TreeChart.base.js.map +0 -1
  644. package/lib-amd/components/TreeChart/TreeChart.d.ts +0 -7
  645. package/lib-amd/components/TreeChart/TreeChart.js +0 -11
  646. package/lib-amd/components/TreeChart/TreeChart.js.map +0 -1
  647. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +0 -2
  648. package/lib-amd/components/TreeChart/TreeChart.styles.js +0 -34
  649. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +0 -1
  650. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +0 -216
  651. package/lib-amd/components/TreeChart/TreeChart.types.js +0 -34
  652. package/lib-amd/components/TreeChart/TreeChart.types.js.map +0 -1
  653. package/lib-amd/components/TreeChart/index.d.ts +0 -2
  654. package/lib-amd/components/TreeChart/index.js +0 -7
  655. package/lib-amd/components/TreeChart/index.js.map +0 -1
  656. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -84
  657. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +0 -738
  658. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
  659. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +0 -7
  660. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +0 -12
  661. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  662. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
  663. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +0 -32
  664. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
  665. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -145
  666. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +0 -5
  667. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
  668. package/lib-amd/components/VerticalBarChart/index.d.ts +0 -2
  669. package/lib-amd/components/VerticalBarChart/index.js +0 -7
  670. package/lib-amd/components/VerticalBarChart/index.js.map +0 -1
  671. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -92
  672. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -754
  673. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
  674. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -7
  675. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -12
  676. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
  677. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
  678. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -22
  679. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
  680. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -172
  681. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -5
  682. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
  683. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +0 -2
  684. package/lib-amd/components/VerticalStackedBarChart/index.js +0 -7
  685. package/lib-amd/components/VerticalStackedBarChart/index.js.map +0 -1
  686. package/lib-amd/index.d.ts +0 -21
  687. package/lib-amd/index.js +0 -25
  688. package/lib-amd/index.js.map +0 -1
  689. package/lib-amd/types/IDataPoint.d.ts +0 -687
  690. package/lib-amd/types/IDataPoint.js +0 -5
  691. package/lib-amd/types/IDataPoint.js.map +0 -1
  692. package/lib-amd/types/IEventAnnotation.d.ts +0 -6
  693. package/lib-amd/types/IEventAnnotation.js +0 -5
  694. package/lib-amd/types/IEventAnnotation.js.map +0 -1
  695. package/lib-amd/types/ILegendDataItem.d.ts +0 -10
  696. package/lib-amd/types/ILegendDataItem.js +0 -5
  697. package/lib-amd/types/ILegendDataItem.js.map +0 -1
  698. package/lib-amd/types/index.d.ts +0 -2
  699. package/lib-amd/types/index.js +0 -7
  700. package/lib-amd/types/index.js.map +0 -1
  701. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
  702. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -39
  703. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
  704. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
  705. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +0 -8
  706. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
  707. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
  708. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -103
  709. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
  710. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
  711. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -5
  712. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
  713. package/lib-amd/utilities/ChartHoverCard/index.d.ts +0 -3
  714. package/lib-amd/utilities/ChartHoverCard/index.js +0 -8
  715. package/lib-amd/utilities/ChartHoverCard/index.js.map +0 -1
  716. package/lib-amd/utilities/FocusableTooltipText.d.ts +0 -27
  717. package/lib-amd/utilities/FocusableTooltipText.js +0 -54
  718. package/lib-amd/utilities/FocusableTooltipText.js.map +0 -1
  719. package/lib-amd/utilities/SVGTooltipText.d.ts +0 -95
  720. package/lib-amd/utilities/SVGTooltipText.js +0 -175
  721. package/lib-amd/utilities/SVGTooltipText.js.map +0 -1
  722. package/lib-amd/utilities/colors.d.ts +0 -51
  723. package/lib-amd/utilities/colors.js +0 -139
  724. package/lib-amd/utilities/colors.js.map +0 -1
  725. package/lib-amd/utilities/index.d.ts +0 -4
  726. package/lib-amd/utilities/index.js +0 -9
  727. package/lib-amd/utilities/index.js.map +0 -1
  728. package/lib-amd/utilities/locale-util.d.ts +0 -3
  729. package/lib-amd/utilities/locale-util.js +0 -24
  730. package/lib-amd/utilities/locale-util.js.map +0 -1
  731. package/lib-amd/utilities/test-data.d.ts +0 -27
  732. package/lib-amd/utilities/test-data.js +0 -214
  733. package/lib-amd/utilities/test-data.js.map +0 -1
  734. package/lib-amd/utilities/utilities.d.ts +0 -411
  735. package/lib-amd/utilities/utilities.js +0 -1085
  736. package/lib-amd/utilities/utilities.js.map +0 -1
  737. package/lib-amd/utilities/vbc-utils.d.ts +0 -2
  738. package/lib-amd/utilities/vbc-utils.js +0 -38
  739. package/lib-amd/utilities/vbc-utils.js.map +0 -1
  740. package/lib-amd/version.d.ts +0 -1
  741. package/lib-amd/version.js +0 -6
  742. package/lib-amd/version.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalBarChartWithAxis.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.tsx"],"names":[],"mappings":";;;;IAUA,4GAA4G;IAC5G;;;OAGG;IACU,QAAA,0BAA0B,GAA8D,IAAA,kBAAM,EAIzG,gEAA8B,EAAE,6CAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport {\n IHorizontalBarChartWithAxisProps,\n IHorizontalBarChartWithAxisStyleProps,\n IHorizontalBarChartWithAxisStyles,\n} from '../../index';\nimport { HorizontalBarChartWithAxisBase } from './HorizontalBarChartWithAxis.base';\nimport { getStyles } from './HorizontalBarChartWithAxis.styles';\n\n// Create a HorizontalBarChartWithAxis variant which uses these default styles and this styled subcomponent.\n/**\n * HorizontalBarchartWithAxis component.\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport const HorizontalBarChartWithAxis: React.FunctionComponent<IHorizontalBarChartWithAxisProps> = styled<\n IHorizontalBarChartWithAxisProps,\n IHorizontalBarChartWithAxisStyleProps,\n IHorizontalBarChartWithAxisStyles\n>(HorizontalBarChartWithAxisBase, getStyles);\n"]}
@@ -1,2 +0,0 @@
1
- import { IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles } from '../../index';
2
- export declare const getStyles: (props: IHorizontalBarChartWithAxisStyleProps) => IHorizontalBarChartWithAxisStyles;
@@ -1,17 +0,0 @@
1
- define(["require", "exports", "tslib"], function (require, exports, tslib_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getStyles = void 0;
5
- var getStyles = function (props) {
6
- var shouldHighlight = props.shouldHighlight, theme = props.theme;
7
- return {
8
- opacityChangeOnHover: {
9
- opacity: shouldHighlight ? '' : '0.1',
10
- },
11
- xAxisTicks: [],
12
- 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' }),
13
- };
14
- };
15
- exports.getStyles = getStyles;
16
- });
17
- //# sourceMappingURL=HorizontalBarChartWithAxis.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalBarChartWithAxis.styles.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.ts"],"names":[],"mappings":";;;;IAEO,IAAM,SAAS,GAAG,UAAC,KAA4C;QAC5D,IAAA,eAAe,GAAY,KAAK,gBAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;QACzC,OAAO;YACL,oBAAoB,EAAE;gBACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;aACtC;YAED,UAAU,EAAE,EAAE;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;SACF,CAAC;IACJ,CAAC,CAAC;IAtBW,QAAA,SAAS,aAsBpB","sourcesContent":["import { IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles } from '../../index';\n\nexport const getStyles = (props: IHorizontalBarChartWithAxisStyleProps): IHorizontalBarChartWithAxisStyles => {\n const { shouldHighlight, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n },\n\n xAxisTicks: [],\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};\n"]}
@@ -1,112 +0,0 @@
1
- import { IStyle } from '@fluentui/react/lib/Styling';
2
- import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
3
- import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, IHorizontalBarChartWithAxisDataPoint } from '../../index';
4
- /**
5
- * Horizontal Bar Chart with Axis properties
6
- * {@docCategory HorizontalBarChartWithAxis}
7
- */
8
- export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
9
- /**
10
- * Data to render in the chart.
11
- */
12
- data?: IHorizontalBarChartWithAxisDataPoint[];
13
- /**
14
- * Define a custom callout renderer for a data point.
15
- */
16
- onRenderCalloutPerDataPoint?: IRenderFunction<IHorizontalBarChartWithAxisDataPoint>;
17
- /**
18
- * Width of each bar in the chart.
19
- */
20
- barHeight?: number;
21
- /**
22
- * Colors from which to select the color of each bar.
23
- */
24
- colors?: string[];
25
- /**
26
- * chart title for the chart
27
- */
28
- chartTitle?: string;
29
- /**
30
- * This prop makes sure that all the bars are of same color.
31
- * it will take the first color from the array of colors in
32
- * prop `colors` or if `colors` prop is not given then default color is palette.blueLight
33
- * @default false
34
- */
35
- useSingleColor?: boolean;
36
- /**
37
- * Call to provide customized styling that will layer on top of the variant rules.
38
- */
39
- styles?: IStyleFunctionOrObject<IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles>;
40
- /**
41
- * The prop used to define the culture to localized the numbers
42
- */
43
- culture?: string;
44
- /**
45
- * it's padding between bar's or lines in the graph
46
- */
47
- yAxisPadding?: number;
48
- /**
49
- *@default false
50
- *Used for to elipse y axis labes and show tooltip on x axis labels
51
- */
52
- showYAxisLablesTooltip?: boolean;
53
- /**
54
- *@default false
55
- *Used for showing complete y axis lables */
56
- showYAxisLables?: boolean;
57
- }
58
- /**
59
- * Horizontal Bar Chart with Axis style properties
60
- * {@docCategory HorizontalBarChartWithAxis}
61
- */
62
- export interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {
63
- /**
64
- * color of the datapoint legend
65
- */
66
- legendColor?: string;
67
- }
68
- /**
69
- * Horizontal Bar Chart with Axis styles
70
- * {@docCategory HorizontalBarChartWithAxis}
71
- */
72
- export interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {
73
- /**
74
- * Style for the chart label.
75
- *
76
- */
77
- chartLabel?: IStyle;
78
- /**
79
- * Style for the line representing the domain of the x-axis.
80
- *
81
- */
82
- xAxisDomain?: IStyle;
83
- /**
84
- * Style for the lines representing the ticks along the x-axis.
85
- *
86
- */
87
- xAxisTicks?: IStyle;
88
- /**
89
- * Style for the text labeling each tick along the x-axis.
90
- *
91
- */
92
- xAxisText?: IStyle;
93
- /**
94
- * Style for the line representing the domain of the y-axis.
95
- *
96
- */
97
- yAxisDomain?: IStyle;
98
- /**
99
- * Style for the lines representing the ticks along the y-axis.
100
- *
101
- */
102
- yAxisTicks?: IStyle;
103
- /**
104
- * Style for the text labeling each tick along the y-axis.
105
- *
106
- */
107
- yAxisText?: IStyle;
108
- /**
109
- * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
110
- */
111
- opacityChangeOnHover: IStyle;
112
- }
@@ -1,5 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- });
5
- //# sourceMappingURL=HorizontalBarChartWithAxis.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalBarChartWithAxis.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IHorizontalBarChartWithAxisDataPoint,\n} from '../../index';\n\n/**\n * Horizontal Bar Chart with Axis properties\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IHorizontalBarChartWithAxisDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IHorizontalBarChartWithAxisDataPoint>;\n\n /**\n * Width of each bar in the chart.\n */\n barHeight?: number;\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n yAxisPadding?: number;\n\n /**\n *@default false\n *Used for to elipse y axis labes and show tooltip on x axis labels\n */\n showYAxisLablesTooltip?: boolean;\n\n /**\n *@default false\n *Used for showing complete y axis lables */\n showYAxisLables?: boolean;\n}\n\n/**\n * Horizontal Bar Chart with Axis style properties\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\n/**\n * Horizontal Bar Chart with Axis styles\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {\n /**\n * Style for the chart label.\n *\n */\n chartLabel?: IStyle;\n\n /**\n * Style for the line representing the domain of the x-axis.\n *\n */\n xAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the x-axis.\n *\n */\n xAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the x-axis.\n *\n */\n xAxisText?: IStyle;\n\n /**\n * Style for the line representing the domain of the y-axis.\n *\n */\n yAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the y-axis.\n *\n */\n yAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the y-axis.\n *\n */\n yAxisText?: IStyle;\n\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"]}
@@ -1,2 +0,0 @@
1
- export * from './HorizontalBarChartWithAxis';
2
- export * from './HorizontalBarChartWithAxis.types';
@@ -1,7 +0,0 @@
1
- define(["require", "exports", "tslib", "./HorizontalBarChartWithAxis", "./HorizontalBarChartWithAxis.types"], function (require, exports, tslib_1, HorizontalBarChartWithAxis_1, HorizontalBarChartWithAxis_types_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- tslib_1.__exportStar(HorizontalBarChartWithAxis_1, exports);
5
- tslib_1.__exportStar(HorizontalBarChartWithAxis_types_1, exports);
6
- });
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/index.ts"],"names":[],"mappings":";;;IAAA,4DAA6C;IAC7C,kEAAmD","sourcesContent":["export * from './HorizontalBarChartWithAxis';\nexport * from './HorizontalBarChartWithAxis.types';\n"]}
@@ -1,43 +0,0 @@
1
- import * as React from 'react';
2
- import { ILegendsProps } from './Legends.types';
3
- export interface ILegendState {
4
- activeLegend: string;
5
- isHoverCardVisible: boolean;
6
- /** Set of legends selected, both for multiple selection and single selection */
7
- selectedLegends: {
8
- [key: string]: boolean;
9
- };
10
- }
11
- export declare class LegendsBase extends React.Component<ILegendsProps, ILegendState> {
12
- private _hoverCardRef;
13
- private _classNames;
14
- /** Boolean variable to check if one or more legends are selected */
15
- private _isLegendSelected;
16
- constructor(props: ILegendsProps);
17
- render(): JSX.Element;
18
- private _generateData;
19
- private _onRenderData;
20
- private _onReduceData;
21
- private _onGrowData;
22
- /**
23
- * This function will get called when there is an ability to
24
- * select multiple legends
25
- * @param legend ILegend
26
- */
27
- private _canSelectMultipleLegends;
28
- /**
29
- * This function will get called when there is
30
- * ability to select only single legend
31
- * @param legend ILegend
32
- */
33
- private _canSelectOnlySingleLegend;
34
- private _onClick;
35
- private _onRenderCompactCard;
36
- private _renderOverflowItems;
37
- private _hoverCardVisible;
38
- private _onHoverOverLegend;
39
- private _onLeave;
40
- private _renderButton;
41
- private _getShape;
42
- private _getColor;
43
- }
@@ -1,308 +0,0 @@
1
- define(["require", "exports", "tslib", "react", "@fluentui/react/lib/HoverCard", "@fluentui/react/lib/Utilities", "@fluentui/react/lib/ResizeGroup", "@fluentui/react/lib/OverflowSet", "@fluentui/react-focus", "./shape"], function (require, exports, tslib_1, React, HoverCard_1, Utilities_1, ResizeGroup_1, OverflowSet_1, react_focus_1, shape_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LegendsBase = void 0;
5
- var getClassNames = (0, Utilities_1.classNamesFunction)();
6
- var LegendsBase = /** @class */ (function (_super) {
7
- tslib_1.__extends(LegendsBase, _super);
8
- function LegendsBase(props) {
9
- var _a;
10
- var _this = this;
11
- var _b;
12
- _this = _super.call(this, props) || this;
13
- /** Boolean variable to check if one or more legends are selected */
14
- _this._isLegendSelected = false;
15
- _this._onRenderData = function (data) {
16
- var _a = _this.props, overflowProps = _a.overflowProps, _b = _a.allowFocusOnLegends, allowFocusOnLegends = _b === void 0 ? true : _b, _c = _a.canSelectMultipleLegends, canSelectMultipleLegends = _c === void 0 ? false : _c;
17
- var rootStyles = {
18
- root: {
19
- justifyContent: _this.props.centerLegends ? 'center' : 'unset',
20
- flexWrap: 'wrap',
21
- },
22
- };
23
- return (React.createElement(react_focus_1.FocusZone, tslib_1.__assign({}, (allowFocusOnLegends && {
24
- role: 'listbox',
25
- 'aria-label': 'Legends',
26
- 'aria-multiselectable': canSelectMultipleLegends,
27
- })),
28
- React.createElement(OverflowSet_1.OverflowSet, tslib_1.__assign({ items: data.primary, overflowItems: data.overflow, onRenderItem: _this._renderButton, onRenderOverflowButton: _this._renderOverflowItems }, overflowProps, { styles: tslib_1.__assign(tslib_1.__assign({}, rootStyles), overflowProps === null || overflowProps === void 0 ? void 0 : overflowProps.styles) }))));
29
- };
30
- _this._onReduceData = function (currentdata) {
31
- if (currentdata.primary.length === 0) {
32
- return;
33
- }
34
- var overflow = tslib_1.__spreadArray(tslib_1.__spreadArray([], currentdata.primary.slice(-1), true), currentdata.overflow, true);
35
- var primary = currentdata.primary.slice(0, -1);
36
- return { primary: primary, overflow: overflow };
37
- };
38
- _this._onGrowData = function (currentdata) {
39
- if (currentdata.overflow.length === 0) {
40
- return;
41
- }
42
- var overflow = currentdata.overflow.slice(1);
43
- var primary = tslib_1.__spreadArray(tslib_1.__spreadArray([], currentdata.primary, true), currentdata.overflow.slice(0, 1), true);
44
- return { primary: primary, overflow: overflow };
45
- };
46
- /**
47
- * This function will get called when there is an ability to
48
- * select multiple legends
49
- * @param legend ILegend
50
- */
51
- _this._canSelectMultipleLegends = function (legend) {
52
- var selectedLegends = tslib_1.__assign({}, _this.state.selectedLegends);
53
- if (selectedLegends[legend.title]) {
54
- // Delete entry for the deselected legend to make
55
- // the number of keys equal to the number of selected legends
56
- delete selectedLegends[legend.title];
57
- }
58
- else {
59
- selectedLegends[legend.title] = true;
60
- // Clear set if all legends are selected
61
- if (Object.keys(selectedLegends).length === _this.props.legends.length) {
62
- selectedLegends = {};
63
- }
64
- }
65
- _this.setState({ selectedLegends: selectedLegends });
66
- return selectedLegends;
67
- };
68
- /**
69
- * This function will get called when there is
70
- * ability to select only single legend
71
- * @param legend ILegend
72
- */
73
- _this._canSelectOnlySingleLegend = function (legend) {
74
- var _a;
75
- if (_this.state.selectedLegends[legend.title]) {
76
- _this.setState({ selectedLegends: {} });
77
- return false;
78
- }
79
- else {
80
- _this.setState({ selectedLegends: (_a = {}, _a[legend.title] = true, _a) });
81
- return true;
82
- }
83
- };
84
- _this._onClick = function (legend, event) {
85
- var _a, _b, _c;
86
- var _d = _this.props.canSelectMultipleLegends, canSelectMultipleLegends = _d === void 0 ? false : _d;
87
- var selectedLegends = [];
88
- if (canSelectMultipleLegends) {
89
- var nextSelectedLegends = _this._canSelectMultipleLegends(legend);
90
- selectedLegends = Object.keys(nextSelectedLegends);
91
- }
92
- else {
93
- var isSelected = _this._canSelectOnlySingleLegend(legend);
94
- selectedLegends = isSelected ? [legend.title] : [];
95
- }
96
- (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, selectedLegends, event, legend);
97
- (_c = legend.action) === null || _c === void 0 ? void 0 : _c.call(legend);
98
- };
99
- _this._onRenderCompactCard = function (expandingCard) {
100
- var _a = _this.props, _b = _a.allowFocusOnLegends, allowFocusOnLegends = _b === void 0 ? true : _b, className = _a.className, styles = _a.styles, theme = _a.theme, _c = _a.canSelectMultipleLegends, canSelectMultipleLegends = _c === void 0 ? false : _c;
101
- var overflowHoverCardLegends = [];
102
- var classNames = getClassNames(styles, {
103
- theme: theme,
104
- className: className,
105
- });
106
- expandingCard.renderData.forEach(function (legend, index) {
107
- var hoverCardElement = _this._renderButton(legend, index, true);
108
- overflowHoverCardLegends.push(hoverCardElement);
109
- });
110
- var hoverCardData = (React.createElement(react_focus_1.FocusZone, tslib_1.__assign({}, (allowFocusOnLegends && {
111
- role: 'listbox',
112
- 'aria-label': 'Legends',
113
- 'aria-multiselectable': canSelectMultipleLegends,
114
- }), { direction: react_focus_1.FocusZoneDirection.vertical, handleTabKey: react_focus_1.FocusZoneTabbableElements.all, isCircularNavigation: true }, _this.props.focusZonePropsInHoverCard, { className: classNames.hoverCardRoot }), overflowHoverCardLegends));
115
- return hoverCardData;
116
- };
117
- _this._renderOverflowItems = function (legends) {
118
- var _a = _this.props.allowFocusOnLegends, allowFocusOnLegends = _a === void 0 ? true : _a;
119
- var items = [];
120
- legends.forEach(function (legend, i) {
121
- items.push({ key: i.toString(), name: legend.title, onClick: legend.action });
122
- });
123
- var renderOverflowData = { renderData: legends };
124
- var _b = _this.props, theme = _b.theme, className = _b.className, styles = _b.styles, overflowText = _b.overflowText;
125
- var classNames = getClassNames(styles, {
126
- theme: theme,
127
- className: className,
128
- });
129
- var plainCardProps = {
130
- onRenderPlainCard: _this._onRenderCompactCard,
131
- renderData: renderOverflowData,
132
- };
133
- var overflowString = overflowText ? overflowText : 'more';
134
- // execute similar to "_onClick" and "_onLeave" logic at HoverCard onCardHide event
135
- var onHoverCardHideHandler = function () {
136
- _this.setState({ isHoverCardVisible: false });
137
- // Unhighlight the focused legend in the hover card
138
- var activeOverflowItem = (0, Utilities_1.find)(legends, function (legend) { return legend.title === _this.state.activeLegend; });
139
- if (activeOverflowItem) {
140
- _this.setState({ activeLegend: '' });
141
- if (activeOverflowItem.onMouseOutAction) {
142
- activeOverflowItem.onMouseOutAction();
143
- }
144
- }
145
- };
146
- return (React.createElement(HoverCard_1.HoverCard, { type: HoverCard_1.HoverCardType.plain, plainCardProps: plainCardProps, instantOpenOnClick: true,
147
- // eslint-disable-next-line react/jsx-no-bind
148
- onCardHide: onHoverCardHideHandler, setInitialFocus: true, trapFocus: true, onCardVisible: _this._hoverCardVisible, styles: classNames.subComponentStyles.hoverCardStyles, cardDismissDelay: 300, target: _this._hoverCardRef },
149
- React.createElement("div", { role: "option" },
150
- React.createElement("div", tslib_1.__assign({ className: classNames.overflowIndicationTextStyle, ref: function (rootElem) { return (_this._hoverCardRef = rootElem); } }, (allowFocusOnLegends && {
151
- role: 'button',
152
- 'aria-expanded': _this.state.isHoverCardVisible,
153
- 'aria-label': "".concat(items.length, " ").concat(overflowString),
154
- }), { "data-is-focusable": allowFocusOnLegends }),
155
- items.length,
156
- " ",
157
- overflowString))));
158
- };
159
- _this._hoverCardVisible = function () {
160
- _this.setState({ isHoverCardVisible: true });
161
- };
162
- _this._onHoverOverLegend = function (legend) {
163
- if (legend.hoverAction) {
164
- _this.setState({ activeLegend: legend.title });
165
- legend.hoverAction();
166
- }
167
- };
168
- _this._onLeave = function (legend) {
169
- if (legend.onMouseOutAction) {
170
- _this.setState({ activeLegend: '' });
171
- legend.onMouseOutAction();
172
- }
173
- };
174
- _this._renderButton = function (data, index, overflow) {
175
- var _a = _this.props.allowFocusOnLegends, allowFocusOnLegends = _a === void 0 ? true : _a;
176
- var legend = {
177
- title: data.title,
178
- color: data.color,
179
- shape: data.shape,
180
- action: data.action,
181
- hoverAction: data.hoverAction,
182
- onMouseOutAction: data.onMouseOutAction,
183
- stripePattern: data.stripePattern,
184
- isLineLegendInBarChart: data.isLineLegendInBarChart,
185
- opacity: data.opacity,
186
- };
187
- var color = _this._getColor(legend.title, legend.color);
188
- var _b = _this.props, theme = _b.theme, className = _b.className, styles = _b.styles;
189
- var classNames = getClassNames(styles, {
190
- theme: theme,
191
- className: className,
192
- colorOnSelectedState: color,
193
- borderColor: legend.color,
194
- overflow: overflow,
195
- stripePattern: legend.stripePattern,
196
- isLineLegendInBarChart: legend.isLineLegendInBarChart,
197
- opacity: legend.opacity,
198
- });
199
- var onClickHandler = function (event) {
200
- _this._onClick(legend, event);
201
- };
202
- var onHoverHandler = function () {
203
- _this._onHoverOverLegend(legend);
204
- };
205
- var onMouseOut = function () {
206
- _this._onLeave(legend);
207
- };
208
- var shape = _this._getShape(classNames, legend, color);
209
- return (React.createElement("button", tslib_1.__assign({}, (allowFocusOnLegends && {
210
- 'aria-selected': !!_this.state.selectedLegends[legend.title],
211
- role: 'option',
212
- 'aria-label': "".concat(legend.title),
213
- 'aria-setsize': data['aria-setsize'],
214
- 'aria-posinset': data['aria-posinset'],
215
- }), (data.nativeButtonProps && tslib_1.__assign({}, data.nativeButtonProps)), { key: index, className: classNames.legend, onClick: onClickHandler, onMouseOver: onHoverHandler, onMouseOut: onMouseOut, onFocus: onHoverHandler, onBlur: onMouseOut, "data-is-focusable": allowFocusOnLegends }),
216
- shape,
217
- React.createElement("div", { className: classNames.text }, legend.title)));
218
- };
219
- var defaultSelectedLegends = {};
220
- if (props.canSelectMultipleLegends) {
221
- defaultSelectedLegends =
222
- ((_b = props.defaultSelectedLegends) === null || _b === void 0 ? void 0 : _b.reduce(function (combinedDict, key) {
223
- var _a;
224
- return (tslib_1.__assign((_a = {}, _a[key] = true, _a), combinedDict));
225
- }, {})) || {};
226
- }
227
- else if (props.defaultSelectedLegend) {
228
- defaultSelectedLegends = (_a = {}, _a[props.defaultSelectedLegend] = true, _a);
229
- }
230
- _this.state = {
231
- activeLegend: '',
232
- isHoverCardVisible: false,
233
- selectedLegends: defaultSelectedLegends,
234
- };
235
- return _this;
236
- }
237
- LegendsBase.prototype.render = function () {
238
- var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles;
239
- this._classNames = getClassNames(styles, {
240
- theme: theme,
241
- className: className,
242
- });
243
- this._isLegendSelected = Object.keys(this.state.selectedLegends).length > 0;
244
- var dataToRender = this._generateData();
245
- return (React.createElement("div", { className: this._classNames.root }, this.props.enabledWrapLines ? (this._onRenderData(dataToRender)) : (React.createElement(ResizeGroup_1.ResizeGroup, { data: dataToRender, onReduceData: this._onReduceData, onRenderData: this._onRenderData, onGrowData: this._onGrowData }))));
246
- };
247
- LegendsBase.prototype._generateData = function () {
248
- var _this = this;
249
- var _a = this.props, _b = _a.allowFocusOnLegends, allowFocusOnLegends = _b === void 0 ? true : _b, shape = _a.shape;
250
- var dataItems = this.props.legends.map(function (legend, index) {
251
- return tslib_1.__assign(tslib_1.__assign({}, (allowFocusOnLegends && {
252
- nativeButtonProps: (0, Utilities_1.getNativeProps)(legend, Utilities_1.buttonProperties, [
253
- 'title',
254
- ]),
255
- 'aria-setsize': _this.props.legends.length,
256
- 'aria-posinset': index + 1,
257
- })), { title: legend.title, action: legend.action, hoverAction: legend.hoverAction, onMouseOutAction: legend.onMouseOutAction, color: legend.color, shape: shape ? shape : legend.shape, stripePattern: legend.stripePattern, isLineLegendInBarChart: legend.isLineLegendInBarChart, opacity: legend.opacity, key: index });
258
- });
259
- var result = {
260
- primary: dataItems,
261
- overflow: [],
262
- };
263
- return result;
264
- };
265
- LegendsBase.prototype._getShape = function (classNames, legend, color) {
266
- var svgParentProps = {
267
- className: classNames.shape,
268
- };
269
- var svgChildProps = {
270
- fill: color,
271
- strokeWidth: 2,
272
- stroke: legend.color,
273
- };
274
- return (React.createElement(shape_1.Shape, { svgProps: svgParentProps, pathProps: svgChildProps, shape: legend.shape, classNameForNonSvg: classNames.rect }));
275
- };
276
- LegendsBase.prototype._getColor = function (title, color) {
277
- var theme = this.props.theme;
278
- var legendColor = color;
279
- // if one or more legends are selected
280
- if (this._isLegendSelected) {
281
- // if the given legend (title) is one of the selected legends
282
- if (this.state.selectedLegends[title]) {
283
- legendColor = color;
284
- }
285
- // if the given legend is unselected
286
- else {
287
- legendColor = theme.semanticColors.buttonBackground;
288
- }
289
- }
290
- // if no legend is selected
291
- else {
292
- // if the given legend is hovered
293
- // or none of the legends is hovered
294
- if (this.state.activeLegend === title || this.state.activeLegend === '') {
295
- legendColor = color;
296
- }
297
- // if there is a hovered legend but the given legend is not the one
298
- else {
299
- legendColor = theme.semanticColors.buttonBackground;
300
- }
301
- }
302
- return legendColor;
303
- };
304
- return LegendsBase;
305
- }(React.Component));
306
- exports.LegendsBase = LegendsBase;
307
- });
308
- //# sourceMappingURL=Legends.base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Legends.base.js","sourceRoot":"../src/","sources":["components/Legends/Legends.base.tsx"],"names":[],"mappings":";;;;IAmBA,IAAM,aAAa,GAAG,IAAA,8BAAkB,GAAqC,CAAC;IAuB9E;QAAiC,uCAA4C;QAM3E,qBAAmB,KAAoB;;YAAvC,iBAeC;;oBAdC,kBAAM,KAAK,CAAC;YAJd,oEAAoE;YAC5D,uBAAiB,GAAG,KAAK,CAAC;YAyE1B,mBAAa,GAAG,UAAC,IAAiD;gBAClE,IAAA,KAAkF,KAAI,CAAC,KAAK,EAA1F,aAAa,mBAAA,EAAE,2BAA0B,EAA1B,mBAAmB,mBAAG,IAAI,KAAA,EAAE,gCAAgC,EAAhC,wBAAwB,mBAAG,KAAK,KAAe,CAAC;gBACnG,IAAM,UAAU,GAAG;oBACjB,IAAI,EAAE;wBACJ,cAAc,EAAE,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;wBAC7D,QAAQ,EAAE,MAAM;qBACjB;iBACF,CAAC;gBACF,OAAO,CACL,oBAAC,uBAAS,uBACJ,CAAC,mBAAmB,IAAI;oBAC1B,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,SAAS;oBACvB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AM,CAAC,cAAc,CAAC,gBAAgB,CAAC;iBACtD;aACF;YACD,OAAO,WAAW,CAAC;QACrB,CAAC;QACH,kBAAC;IAAD,CAAC,AA9YD,CAAiC,KAAK,CAAC,SAAS,GA8Y/C;IA9YY,kCAAW","sourcesContent":["import * as React from 'react';\n\nimport { IContextualMenuItem } from '@fluentui/react/lib/ContextualMenu';\nimport { HoverCard, HoverCardType, IExpandingCardProps } from '@fluentui/react/lib/HoverCard';\nimport { classNamesFunction, find, getNativeProps, buttonProperties } from '@fluentui/react/lib/Utilities';\nimport { ResizeGroup } from '@fluentui/react/lib/ResizeGroup';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nimport { OverflowSet, IOverflowSetItemProps } from '@fluentui/react/lib/OverflowSet';\nimport { FocusZone, FocusZoneDirection, FocusZoneTabbableElements } from '@fluentui/react-focus';\nimport {\n ILegend,\n ILegendsProps,\n LegendShape,\n ILegendsStyles,\n ILegendStyleProps,\n ILegendOverflowData,\n} from './Legends.types';\nimport { Shape } from './shape';\n\nconst getClassNames = classNamesFunction<ILegendStyleProps, ILegendsStyles>();\n\n// This is an internal interface used for rendering the legends with unique key\ninterface ILegendItem extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n name?: string;\n title: string;\n action: VoidFunction;\n hoverAction: VoidFunction;\n onMouseOutAction: VoidFunction;\n color: string;\n shape?: LegendShape;\n key: number;\n opacity?: number;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\nexport interface ILegendState {\n activeLegend: string;\n isHoverCardVisible: boolean;\n /** Set of legends selected, both for multiple selection and single selection */\n selectedLegends: { [key: string]: boolean };\n}\nexport class LegendsBase extends React.Component<ILegendsProps, ILegendState> {\n private _hoverCardRef: HTMLDivElement;\n private _classNames: IProcessedStyleSet<ILegendsStyles>;\n /** Boolean variable to check if one or more legends are selected */\n private _isLegendSelected = false;\n\n public constructor(props: ILegendsProps) {\n super(props);\n let defaultSelectedLegends = {};\n if (props.canSelectMultipleLegends) {\n defaultSelectedLegends =\n props.defaultSelectedLegends?.reduce((combinedDict, key) => ({ [key]: true, ...combinedDict }), {}) || {};\n } else if (props.defaultSelectedLegend) {\n defaultSelectedLegends = { [props.defaultSelectedLegend]: true };\n }\n\n this.state = {\n activeLegend: '',\n isHoverCardVisible: false,\n selectedLegends: defaultSelectedLegends,\n };\n }\n\n public render(): JSX.Element {\n const { theme, className, styles } = this.props;\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n this._isLegendSelected = Object.keys(this.state.selectedLegends).length > 0;\n const dataToRender = this._generateData();\n return (\n <div className={this._classNames.root}>\n {this.props.enabledWrapLines ? (\n this._onRenderData(dataToRender)\n ) : (\n <ResizeGroup\n data={dataToRender}\n onReduceData={this._onReduceData}\n onRenderData={this._onRenderData}\n onGrowData={this._onGrowData}\n />\n )}\n </div>\n );\n }\n\n private _generateData(): ILegendOverflowData {\n const { allowFocusOnLegends = true, shape } = this.props;\n const dataItems: ILegendItem[] = this.props.legends.map((legend: ILegend, index: number) => {\n return {\n ...(allowFocusOnLegends && {\n nativeButtonProps: getNativeProps<React.HTMLAttributes<HTMLButtonElement>>(legend, buttonProperties, [\n 'title',\n ]),\n 'aria-setsize': this.props.legends.length,\n 'aria-posinset': index + 1,\n }),\n title: legend.title,\n action: legend.action!,\n hoverAction: legend.hoverAction!,\n onMouseOutAction: legend.onMouseOutAction!,\n color: legend.color,\n shape: shape ? shape : legend.shape,\n stripePattern: legend.stripePattern,\n isLineLegendInBarChart: legend.isLineLegendInBarChart,\n opacity: legend.opacity,\n key: index,\n };\n });\n const result: ILegendOverflowData = {\n primary: dataItems,\n overflow: [],\n };\n return result;\n }\n\n private _onRenderData = (data: IOverflowSetItemProps | ILegendOverflowData): JSX.Element => {\n const { overflowProps, allowFocusOnLegends = true, canSelectMultipleLegends = false } = this.props;\n const rootStyles = {\n root: {\n justifyContent: this.props.centerLegends ? 'center' : 'unset',\n flexWrap: 'wrap',\n },\n };\n return (\n <FocusZone\n {...(allowFocusOnLegends && {\n role: 'listbox',\n 'aria-label': 'Legends',\n 'aria-multiselectable': canSelectMultipleLegends,\n })}\n >\n <OverflowSet\n items={data.primary}\n overflowItems={data.overflow}\n onRenderItem={this._renderButton}\n onRenderOverflowButton={this._renderOverflowItems}\n {...overflowProps}\n styles={{ ...rootStyles, ...overflowProps?.styles }}\n />\n </FocusZone>\n );\n };\n\n private _onReduceData = (currentdata: IOverflowSetItemProps): {} | void => {\n if (currentdata.primary.length === 0) {\n return;\n }\n const overflow = [...currentdata.primary.slice(-1), ...currentdata.overflow];\n const primary = currentdata.primary.slice(0, -1);\n return { primary, overflow };\n };\n\n private _onGrowData = (currentdata: IOverflowSetItemProps): {} | void => {\n if (currentdata.overflow.length === 0) {\n return;\n }\n const overflow = currentdata.overflow.slice(1);\n const primary = [...currentdata.primary, ...currentdata.overflow.slice(0, 1)];\n return { primary, overflow };\n };\n\n /**\n * This function will get called when there is an ability to\n * select multiple legends\n * @param legend ILegend\n */\n private _canSelectMultipleLegends = (legend: ILegend): { [key: string]: boolean } => {\n let selectedLegends = { ...this.state.selectedLegends };\n if (selectedLegends[legend.title]) {\n // Delete entry for the deselected legend to make\n // the number of keys equal to the number of selected legends\n delete selectedLegends[legend.title];\n } else {\n selectedLegends[legend.title] = true;\n // Clear set if all legends are selected\n if (Object.keys(selectedLegends).length === this.props.legends.length) {\n selectedLegends = {};\n }\n }\n this.setState({ selectedLegends });\n return selectedLegends;\n };\n\n /**\n * This function will get called when there is\n * ability to select only single legend\n * @param legend ILegend\n */\n\n private _canSelectOnlySingleLegend = (legend: ILegend): boolean => {\n if (this.state.selectedLegends[legend.title]) {\n this.setState({ selectedLegends: {} });\n return false;\n } else {\n this.setState({ selectedLegends: { [legend.title]: true } });\n return true;\n }\n };\n\n private _onClick = (legend: ILegend, event: React.MouseEvent<HTMLButtonElement>): void => {\n const { canSelectMultipleLegends = false } = this.props;\n let selectedLegends: string[] = [];\n if (canSelectMultipleLegends) {\n const nextSelectedLegends = this._canSelectMultipleLegends(legend);\n selectedLegends = Object.keys(nextSelectedLegends);\n } else {\n const isSelected = this._canSelectOnlySingleLegend(legend);\n selectedLegends = isSelected ? [legend.title] : [];\n }\n this.props.onChange?.(selectedLegends, event, legend);\n legend.action?.();\n };\n\n private _onRenderCompactCard = (expandingCard: IExpandingCardProps): JSX.Element => {\n const { allowFocusOnLegends = true, className, styles, theme, canSelectMultipleLegends = false } = this.props;\n const overflowHoverCardLegends: JSX.Element[] = [];\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n expandingCard.renderData.forEach((legend: IOverflowSetItemProps, index: number) => {\n const hoverCardElement = this._renderButton(legend, index, true);\n overflowHoverCardLegends.push(hoverCardElement);\n });\n const hoverCardData = (\n <FocusZone\n {...(allowFocusOnLegends && {\n role: 'listbox',\n 'aria-label': 'Legends',\n 'aria-multiselectable': canSelectMultipleLegends,\n })}\n direction={FocusZoneDirection.vertical}\n handleTabKey={FocusZoneTabbableElements.all}\n isCircularNavigation={true}\n {...this.props.focusZonePropsInHoverCard}\n className={classNames.hoverCardRoot}\n >\n {overflowHoverCardLegends}\n </FocusZone>\n );\n return hoverCardData;\n };\n\n private _renderOverflowItems = (legends: ILegend[]) => {\n const { allowFocusOnLegends = true } = this.props;\n const items: IContextualMenuItem[] = [];\n legends.forEach((legend: ILegend, i: number) => {\n items.push({ key: i.toString(), name: legend.title, onClick: legend.action });\n });\n const renderOverflowData: IExpandingCardProps = { renderData: legends };\n const { theme, className, styles, overflowText } = this.props;\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n const plainCardProps = {\n onRenderPlainCard: this._onRenderCompactCard,\n renderData: renderOverflowData,\n };\n\n const overflowString = overflowText ? overflowText : 'more';\n // execute similar to \"_onClick\" and \"_onLeave\" logic at HoverCard onCardHide event\n const onHoverCardHideHandler = () => {\n this.setState({ isHoverCardVisible: false });\n // Unhighlight the focused legend in the hover card\n const activeOverflowItem = find(legends, (legend: ILegend) => legend.title === this.state.activeLegend);\n if (activeOverflowItem) {\n this.setState({ activeLegend: '' });\n if (activeOverflowItem.onMouseOutAction) {\n activeOverflowItem.onMouseOutAction();\n }\n }\n };\n return (\n <HoverCard\n type={HoverCardType.plain}\n plainCardProps={plainCardProps}\n instantOpenOnClick={true}\n // eslint-disable-next-line react/jsx-no-bind\n onCardHide={onHoverCardHideHandler}\n setInitialFocus={true}\n trapFocus={true}\n onCardVisible={this._hoverCardVisible}\n styles={classNames.subComponentStyles.hoverCardStyles}\n cardDismissDelay={300}\n target={this._hoverCardRef}\n >\n {/* \"button\" role is not allowed as a child of parent role \"listbox\" */}\n <div role=\"option\">\n <div\n className={classNames.overflowIndicationTextStyle}\n ref={(rootElem: HTMLDivElement) => (this._hoverCardRef = rootElem)}\n {...(allowFocusOnLegends && {\n role: 'button',\n 'aria-expanded': this.state.isHoverCardVisible,\n 'aria-label': `${items.length} ${overflowString}`,\n })}\n data-is-focusable={allowFocusOnLegends}\n >\n {items.length} {overflowString}\n </div>\n </div>\n </HoverCard>\n );\n };\n\n private _hoverCardVisible = () => {\n this.setState({ isHoverCardVisible: true });\n };\n\n private _onHoverOverLegend = (legend: ILegend) => {\n if (legend.hoverAction) {\n this.setState({ activeLegend: legend.title });\n legend.hoverAction();\n }\n };\n\n private _onLeave = (legend: ILegend) => {\n if (legend.onMouseOutAction) {\n this.setState({ activeLegend: '' });\n legend.onMouseOutAction();\n }\n };\n\n private _renderButton = (data: IOverflowSetItemProps, index?: number, overflow?: boolean) => {\n const { allowFocusOnLegends = true } = this.props;\n const legend: ILegend = {\n title: data.title,\n color: data.color,\n shape: data.shape,\n action: data.action,\n hoverAction: data.hoverAction,\n onMouseOutAction: data.onMouseOutAction,\n stripePattern: data.stripePattern,\n isLineLegendInBarChart: data.isLineLegendInBarChart,\n opacity: data.opacity,\n };\n const color = this._getColor(legend.title, legend.color);\n const { theme, className, styles } = this.props;\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n colorOnSelectedState: color,\n borderColor: legend.color,\n overflow,\n stripePattern: legend.stripePattern,\n isLineLegendInBarChart: legend.isLineLegendInBarChart,\n opacity: legend.opacity,\n });\n const onClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => {\n this._onClick(legend, event);\n };\n const onHoverHandler = () => {\n this._onHoverOverLegend(legend);\n };\n const onMouseOut = () => {\n this._onLeave(legend);\n };\n const shape = this._getShape(classNames, legend, color);\n return (\n <button\n {...(allowFocusOnLegends && {\n 'aria-selected': !!this.state.selectedLegends[legend.title],\n role: 'option',\n 'aria-label': `${legend.title}`,\n 'aria-setsize': data['aria-setsize'],\n 'aria-posinset': data['aria-posinset'],\n })}\n {...(data.nativeButtonProps && { ...data.nativeButtonProps })}\n key={index}\n className={classNames.legend}\n onClick={onClickHandler}\n onMouseOver={onHoverHandler}\n onMouseOut={onMouseOut}\n onFocus={onHoverHandler}\n onBlur={onMouseOut}\n data-is-focusable={allowFocusOnLegends}\n /* eslint-enable react/jsx-no-bind */\n >\n {shape}\n <div className={classNames.text}>{legend.title}</div>\n </button>\n );\n };\n\n private _getShape(\n classNames: IProcessedStyleSet<ILegendsStyles>,\n legend: ILegend,\n color: string,\n ): React.ReactNode | string {\n const svgParentProps: React.SVGAttributes<SVGElement> = {\n className: classNames.shape,\n };\n const svgChildProps: React.SVGAttributes<SVGElement> = {\n fill: color,\n strokeWidth: 2,\n stroke: legend.color,\n };\n return (\n <Shape\n svgProps={svgParentProps}\n pathProps={svgChildProps}\n shape={legend.shape as LegendShape}\n classNameForNonSvg={classNames.rect}\n />\n );\n }\n\n private _getColor(title: string, color: string): string {\n const { theme } = this.props;\n let legendColor = color;\n // if one or more legends are selected\n if (this._isLegendSelected) {\n // if the given legend (title) is one of the selected legends\n if (this.state.selectedLegends[title]) {\n legendColor = color;\n }\n // if the given legend is unselected\n else {\n legendColor = theme!.semanticColors.buttonBackground;\n }\n }\n // if no legend is selected\n else {\n // if the given legend is hovered\n // or none of the legends is hovered\n if (this.state.activeLegend === title || this.state.activeLegend === '') {\n legendColor = color;\n }\n // if there is a hovered legend but the given legend is not the one\n else {\n legendColor = theme!.semanticColors.buttonBackground;\n }\n }\n return legendColor;\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { ILegendsProps } from './Legends.types';
3
- /**
4
- * Legends component
5
- * {@docCategory Legends}
6
- */
7
- export declare const Legends: React.FunctionComponent<ILegendsProps>;
@@ -1,11 +0,0 @@
1
- define(["require", "exports", "@fluentui/react/lib/Utilities", "./Legends.base", "./Legends.styles"], function (require, exports, Utilities_1, Legends_base_1, Legends_styles_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Legends = void 0;
5
- /**
6
- * Legends component
7
- * {@docCategory Legends}
8
- */
9
- exports.Legends = (0, Utilities_1.styled)(Legends_base_1.LegendsBase, Legends_styles_1.getStyles);
10
- });
11
- //# sourceMappingURL=Legends.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Legends.js","sourceRoot":"../src/","sources":["components/Legends/Legends.tsx"],"names":[],"mappings":";;;;IAMA;;;OAGG;IACU,QAAA,OAAO,GAA2C,IAAA,kBAAM,EACnE,0BAAW,EACX,0BAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps, ILegendStyleProps, ILegendsStyles } from './Legends.types';\nimport { LegendsBase } from './Legends.base';\nimport { getStyles } from './Legends.styles';\n\n/**\n * Legends component\n * {@docCategory Legends}\n */\nexport const Legends: React.FunctionComponent<ILegendsProps> = styled<ILegendsProps, ILegendStyleProps, ILegendsStyles>(\n LegendsBase,\n getStyles,\n);\n"]}
@@ -1,2 +0,0 @@
1
- import { ILegendsStyles, ILegendStyleProps } from './Legends.types';
2
- export declare const getStyles: (props: ILegendStyleProps) => ILegendsStyles;