@fluentui/react-charting 5.16.36 → 5.16.38

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 (403) hide show
  1. package/CHANGELOG.json +43 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/AreaChart/AreaChart.base.d.ts +1 -0
  6. package/lib/components/AreaChart/AreaChart.base.js +38 -27
  7. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  8. package/lib/components/CommonComponents/CartesianChart.base.js +2 -1
  9. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  10. package/lib/components/DonutChart/DonutChart.base.d.ts +1 -0
  11. package/lib/components/DonutChart/DonutChart.base.js +9 -2
  12. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  13. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +2 -0
  14. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +11 -2
  15. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  16. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +5 -0
  17. package/lib/components/HeatMapChart/HeatMapChart.base.js +10 -3
  18. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  19. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +2 -0
  20. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +9 -2
  21. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  22. package/lib/components/LineChart/LineChart.base.d.ts +2 -0
  23. package/lib/components/LineChart/LineChart.base.js +12 -2
  24. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  25. package/lib/components/PieChart/PieChart.base.d.ts +6 -1
  26. package/lib/components/PieChart/PieChart.base.js +17 -5
  27. package/lib/components/PieChart/PieChart.base.js.map +1 -1
  28. package/lib/components/SankeyChart/SankeyChart.base.d.ts +1 -0
  29. package/lib/components/SankeyChart/SankeyChart.base.js +48 -41
  30. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  31. package/lib/components/Sparkline/Sparkline.base.d.ts +1 -0
  32. package/lib/components/Sparkline/Sparkline.base.js +40 -30
  33. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  34. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +2 -0
  35. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +37 -25
  36. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  37. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +2 -0
  38. package/lib/components/StackedBarChart/StackedBarChart.base.js +68 -54
  39. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  40. package/lib/components/TreeChart/TreeChart.base.js +2 -1
  41. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  42. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  43. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +39 -26
  44. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  45. package/lib/version.js +1 -1
  46. package/lib/version.js.map +1 -1
  47. package/lib-amd/AreaChart.js +1 -1
  48. package/lib-amd/AreaChart.js.map +1 -1
  49. package/lib-amd/CartesianChart.js +1 -1
  50. package/lib-amd/CartesianChart.js.map +1 -1
  51. package/lib-amd/DonutChart.js +1 -1
  52. package/lib-amd/DonutChart.js.map +1 -1
  53. package/lib-amd/GroupedVerticalBarChart.js +1 -1
  54. package/lib-amd/GroupedVerticalBarChart.js.map +1 -1
  55. package/lib-amd/HeatMapChart.js +1 -1
  56. package/lib-amd/HeatMapChart.js.map +1 -1
  57. package/lib-amd/HorizontalBarChart.js +1 -1
  58. package/lib-amd/HorizontalBarChart.js.map +1 -1
  59. package/lib-amd/HorizontalBarChartWithAxis.js +1 -1
  60. package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -1
  61. package/lib-amd/Legends.js +1 -1
  62. package/lib-amd/Legends.js.map +1 -1
  63. package/lib-amd/LineChart.js +1 -1
  64. package/lib-amd/LineChart.js.map +1 -1
  65. package/lib-amd/PieChart.js +1 -1
  66. package/lib-amd/PieChart.js.map +1 -1
  67. package/lib-amd/SankeyChart.js +1 -1
  68. package/lib-amd/SankeyChart.js.map +1 -1
  69. package/lib-amd/Sparkline.js +1 -1
  70. package/lib-amd/Sparkline.js.map +1 -1
  71. package/lib-amd/StackedBarChart.js +1 -1
  72. package/lib-amd/StackedBarChart.js.map +1 -1
  73. package/lib-amd/TreeChart.js +1 -1
  74. package/lib-amd/TreeChart.js.map +1 -1
  75. package/lib-amd/VerticalBarChart.js +1 -1
  76. package/lib-amd/VerticalBarChart.js.map +1 -1
  77. package/lib-amd/VerticalStackedBarChart.js +1 -1
  78. package/lib-amd/VerticalStackedBarChart.js.map +1 -1
  79. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +1 -0
  80. package/lib-amd/components/AreaChart/AreaChart.base.js +46 -35
  81. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  82. package/lib-amd/components/AreaChart/AreaChart.styles.js +1 -1
  83. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
  84. package/lib-amd/components/AreaChart/index.js +2 -2
  85. package/lib-amd/components/AreaChart/index.js.map +1 -1
  86. package/lib-amd/components/CommonComponents/CartesianChart.base.js +13 -12
  87. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  88. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +3 -3
  89. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  90. package/lib-amd/components/CommonComponents/index.js +2 -2
  91. package/lib-amd/components/CommonComponents/index.js.map +1 -1
  92. package/lib-amd/components/DonutChart/Arc/Arc.js +1 -1
  93. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  94. package/lib-amd/components/DonutChart/Arc/index.js +2 -2
  95. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -1
  96. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +1 -0
  97. package/lib-amd/components/DonutChart/DonutChart.base.js +13 -6
  98. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  99. package/lib-amd/components/DonutChart/Pie/Pie.js +1 -1
  100. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  101. package/lib-amd/components/DonutChart/Pie/index.js +2 -2
  102. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -1
  103. package/lib-amd/components/DonutChart/index.js +3 -3
  104. package/lib-amd/components/DonutChart/index.js.map +1 -1
  105. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +2 -0
  106. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +16 -7
  107. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  108. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  109. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  110. package/lib-amd/components/GroupedVerticalBarChart/index.js +2 -2
  111. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -1
  112. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +5 -0
  113. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +15 -8
  114. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  115. package/lib-amd/components/HeatMapChart/index.js +2 -2
  116. package/lib-amd/components/HeatMapChart/index.js.map +1 -1
  117. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +2 -0
  118. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +14 -7
  119. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  120. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  121. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  122. package/lib-amd/components/HorizontalBarChart/index.js +3 -3
  123. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -1
  124. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
  125. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  126. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  127. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  128. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +2 -2
  129. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  130. package/lib-amd/components/Legends/Legends.base.js +11 -11
  131. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  132. package/lib-amd/components/Legends/Legends.styles.js +2 -2
  133. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  134. package/lib-amd/components/Legends/index.js +3 -3
  135. package/lib-amd/components/Legends/index.js.map +1 -1
  136. package/lib-amd/components/Legends/shape.js +2 -2
  137. package/lib-amd/components/Legends/shape.js.map +1 -1
  138. package/lib-amd/components/LineChart/LineChart.base.d.ts +2 -0
  139. package/lib-amd/components/LineChart/LineChart.base.js +26 -16
  140. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  141. package/lib-amd/components/LineChart/LineChart.styles.js +1 -1
  142. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
  143. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +2 -2
  144. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  145. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +2 -2
  146. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  147. package/lib-amd/components/LineChart/index.js +3 -3
  148. package/lib-amd/components/LineChart/index.js.map +1 -1
  149. package/lib-amd/components/PieChart/Arc/Arc.js +2 -2
  150. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
  151. package/lib-amd/components/PieChart/Arc/index.js +2 -2
  152. package/lib-amd/components/PieChart/Arc/index.js.map +1 -1
  153. package/lib-amd/components/PieChart/Pie/Pie.js +1 -1
  154. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
  155. package/lib-amd/components/PieChart/Pie/index.js +2 -2
  156. package/lib-amd/components/PieChart/Pie/index.js.map +1 -1
  157. package/lib-amd/components/PieChart/PieChart.base.d.ts +6 -1
  158. package/lib-amd/components/PieChart/PieChart.base.js +17 -5
  159. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
  160. package/lib-amd/components/PieChart/PieChart.styles.js +1 -1
  161. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -1
  162. package/lib-amd/components/PieChart/index.js +2 -2
  163. package/lib-amd/components/PieChart/index.js.map +1 -1
  164. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +1 -0
  165. package/lib-amd/components/SankeyChart/SankeyChart.base.js +49 -42
  166. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  167. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +1 -1
  168. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  169. package/lib-amd/components/SankeyChart/index.js +2 -2
  170. package/lib-amd/components/SankeyChart/index.js.map +1 -1
  171. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +1 -0
  172. package/lib-amd/components/Sparkline/Sparkline.base.js +40 -30
  173. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
  174. package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
  175. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
  176. package/lib-amd/components/Sparkline/index.js +2 -2
  177. package/lib-amd/components/Sparkline/index.js.map +1 -1
  178. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +2 -0
  179. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +41 -29
  180. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  181. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  182. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  183. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +2 -0
  184. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +70 -56
  185. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  186. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +1 -1
  187. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  188. package/lib-amd/components/StackedBarChart/index.js +5 -5
  189. package/lib-amd/components/StackedBarChart/index.js.map +1 -1
  190. package/lib-amd/components/TreeChart/TreeChart.base.js +4 -3
  191. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
  192. package/lib-amd/components/TreeChart/TreeChart.styles.js +4 -4
  193. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
  194. package/lib-amd/components/TreeChart/index.js +2 -2
  195. package/lib-amd/components/TreeChart/index.js.map +1 -1
  196. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +6 -6
  197. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  198. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  199. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  200. package/lib-amd/components/VerticalBarChart/index.js +2 -2
  201. package/lib-amd/components/VerticalBarChart/index.js.map +1 -1
  202. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  203. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +49 -36
  204. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  205. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  206. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  207. package/lib-amd/components/VerticalStackedBarChart/index.js +2 -2
  208. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -1
  209. package/lib-amd/index.js +19 -19
  210. package/lib-amd/index.js.map +1 -1
  211. package/lib-amd/types/index.js +2 -2
  212. package/lib-amd/types/index.js.map +1 -1
  213. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +1 -1
  214. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  215. package/lib-amd/utilities/ChartHoverCard/index.js +3 -3
  216. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -1
  217. package/lib-amd/utilities/FocusableTooltipText.js +2 -2
  218. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -1
  219. package/lib-amd/utilities/index.js +3 -3
  220. package/lib-amd/utilities/index.js.map +1 -1
  221. package/lib-amd/utilities/utilities.js +4 -4
  222. package/lib-amd/utilities/utilities.js.map +1 -1
  223. package/lib-amd/version.js +1 -1
  224. package/lib-amd/version.js.map +1 -1
  225. package/lib-commonjs/AreaChart.js +1 -1
  226. package/lib-commonjs/AreaChart.js.map +1 -1
  227. package/lib-commonjs/CartesianChart.js +1 -1
  228. package/lib-commonjs/CartesianChart.js.map +1 -1
  229. package/lib-commonjs/DonutChart.js +1 -1
  230. package/lib-commonjs/DonutChart.js.map +1 -1
  231. package/lib-commonjs/GroupedVerticalBarChart.js +1 -1
  232. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  233. package/lib-commonjs/HeatMapChart.js +1 -1
  234. package/lib-commonjs/HeatMapChart.js.map +1 -1
  235. package/lib-commonjs/HorizontalBarChart.js +1 -1
  236. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  237. package/lib-commonjs/HorizontalBarChartWithAxis.js +1 -1
  238. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  239. package/lib-commonjs/Legends.js +1 -1
  240. package/lib-commonjs/Legends.js.map +1 -1
  241. package/lib-commonjs/LineChart.js +1 -1
  242. package/lib-commonjs/LineChart.js.map +1 -1
  243. package/lib-commonjs/PieChart.js +1 -1
  244. package/lib-commonjs/PieChart.js.map +1 -1
  245. package/lib-commonjs/SankeyChart.js +1 -1
  246. package/lib-commonjs/SankeyChart.js.map +1 -1
  247. package/lib-commonjs/Sparkline.js +1 -1
  248. package/lib-commonjs/Sparkline.js.map +1 -1
  249. package/lib-commonjs/StackedBarChart.js +1 -1
  250. package/lib-commonjs/StackedBarChart.js.map +1 -1
  251. package/lib-commonjs/TreeChart.js +1 -1
  252. package/lib-commonjs/TreeChart.js.map +1 -1
  253. package/lib-commonjs/VerticalBarChart.js +1 -1
  254. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  255. package/lib-commonjs/VerticalStackedBarChart.js +1 -1
  256. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  257. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +1 -0
  258. package/lib-commonjs/components/AreaChart/AreaChart.base.js +46 -35
  259. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  260. package/lib-commonjs/components/AreaChart/AreaChart.styles.js +1 -1
  261. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  262. package/lib-commonjs/components/AreaChart/index.js +2 -2
  263. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  264. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +13 -12
  265. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  266. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +3 -3
  267. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  268. package/lib-commonjs/components/CommonComponents/index.js +2 -2
  269. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  270. package/lib-commonjs/components/DonutChart/Arc/Arc.js +1 -1
  271. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  272. package/lib-commonjs/components/DonutChart/Arc/index.js +2 -2
  273. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  274. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +1 -0
  275. package/lib-commonjs/components/DonutChart/DonutChart.base.js +13 -6
  276. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  277. package/lib-commonjs/components/DonutChart/Pie/Pie.js +1 -1
  278. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  279. package/lib-commonjs/components/DonutChart/Pie/index.js +2 -2
  280. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  281. package/lib-commonjs/components/DonutChart/index.js +3 -3
  282. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  283. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +2 -0
  284. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +16 -7
  285. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  286. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
  287. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  288. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +2 -2
  289. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  290. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +5 -0
  291. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +15 -8
  292. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  293. package/lib-commonjs/components/HeatMapChart/index.js +2 -2
  294. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  295. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +2 -0
  296. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +14 -7
  297. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  298. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
  299. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  300. package/lib-commonjs/components/HorizontalBarChart/index.js +3 -3
  301. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  302. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
  303. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  304. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
  305. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  306. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +2 -2
  307. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  308. package/lib-commonjs/components/Legends/Legends.base.js +11 -11
  309. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  310. package/lib-commonjs/components/Legends/Legends.styles.js +2 -2
  311. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  312. package/lib-commonjs/components/Legends/index.js +3 -3
  313. package/lib-commonjs/components/Legends/index.js.map +1 -1
  314. package/lib-commonjs/components/Legends/shape.js +2 -2
  315. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  316. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +2 -0
  317. package/lib-commonjs/components/LineChart/LineChart.base.js +26 -16
  318. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  319. package/lib-commonjs/components/LineChart/LineChart.styles.js +1 -1
  320. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  321. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +2 -2
  322. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  323. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +2 -2
  324. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  325. package/lib-commonjs/components/LineChart/index.js +3 -3
  326. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  327. package/lib-commonjs/components/PieChart/Arc/Arc.js +2 -2
  328. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  329. package/lib-commonjs/components/PieChart/Arc/index.js +2 -2
  330. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  331. package/lib-commonjs/components/PieChart/Pie/Pie.js +1 -1
  332. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  333. package/lib-commonjs/components/PieChart/Pie/index.js +2 -2
  334. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  335. package/lib-commonjs/components/PieChart/PieChart.base.d.ts +6 -1
  336. package/lib-commonjs/components/PieChart/PieChart.base.js +17 -5
  337. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  338. package/lib-commonjs/components/PieChart/PieChart.styles.js +1 -1
  339. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  340. package/lib-commonjs/components/PieChart/index.js +2 -2
  341. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  342. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +1 -0
  343. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +49 -42
  344. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  345. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +1 -1
  346. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  347. package/lib-commonjs/components/SankeyChart/index.js +2 -2
  348. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  349. package/lib-commonjs/components/Sparkline/Sparkline.base.d.ts +1 -0
  350. package/lib-commonjs/components/Sparkline/Sparkline.base.js +40 -30
  351. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  352. package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
  353. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  354. package/lib-commonjs/components/Sparkline/index.js +2 -2
  355. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  356. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.d.ts +2 -0
  357. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +41 -29
  358. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  359. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
  360. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  361. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.d.ts +2 -0
  362. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +70 -56
  363. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  364. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +1 -1
  365. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  366. package/lib-commonjs/components/StackedBarChart/index.js +5 -5
  367. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  368. package/lib-commonjs/components/TreeChart/TreeChart.base.js +4 -3
  369. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  370. package/lib-commonjs/components/TreeChart/TreeChart.styles.js +4 -4
  371. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  372. package/lib-commonjs/components/TreeChart/index.js +2 -2
  373. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  374. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +6 -6
  375. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  376. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
  377. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  378. package/lib-commonjs/components/VerticalBarChart/index.js +2 -2
  379. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  380. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  381. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +49 -36
  382. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  383. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
  384. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  385. package/lib-commonjs/components/VerticalStackedBarChart/index.js +2 -2
  386. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  387. package/lib-commonjs/index.js +19 -19
  388. package/lib-commonjs/index.js.map +1 -1
  389. package/lib-commonjs/types/index.js +2 -2
  390. package/lib-commonjs/types/index.js.map +1 -1
  391. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +1 -1
  392. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  393. package/lib-commonjs/utilities/ChartHoverCard/index.js +3 -3
  394. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  395. package/lib-commonjs/utilities/FocusableTooltipText.js +2 -2
  396. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  397. package/lib-commonjs/utilities/index.js +3 -3
  398. package/lib-commonjs/utilities/index.js.map +1 -1
  399. package/lib-commonjs/utilities/utilities.js +4 -4
  400. package/lib-commonjs/utilities/utilities.js.map +1 -1
  401. package/lib-commonjs/version.js +1 -1
  402. package/lib-commonjs/version.js.map +1 -1
  403. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"shape.js","sourceRoot":"../src/","sources":["components/Legends/shape.tsx"],"names":[],"mappings":";;;;;IAeA,IAAM,SAAS;QACb,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,MAAM,CAAC,CAAE,IAAG,6CAA6C;QAC3E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,MAAM,CAAC,CAAE,IAAG,iCAAiC;QAC/D,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,QAAQ,CAAC,CAAE,IAAG,2CAA2C;QAC3E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,2CAA2C;QAC1E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,iCAAiC;QAChE,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,6BAA6B;QAC5D,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,QAAQ,CAAC,CAAE,IAAG,+DAA+D;QAC/F,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAC1B,uFAAuF;QACzF,GAAC,UAAG,wBAAY,CAAC,wBAAY,CAAC,UAAU,CAAC,CAAE,IAAG,2BAA2B;WAC1E,CAAC;IAEK,IAAM,KAAK,GAA0B,UAAC,EAAkD;YAAhD,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,kBAAkB,wBAAA;QAC3F,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;YAChD,OAAO,6BAAK,SAAS,EAAE,kBAAkB,GAAI,CAAC;SAC/C;QACD,OAAO,CACL,mDACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,aAAa,IAClB,QAAQ,IACZ,SAAS,EAAE,iBAAU,KAAK,KAAK,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAS;YAEhH,oDAAM,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,IAAM,SAAS,EAAI,CACxC,CACP,CAAC;IACJ,CAAC,CAAC;IAfW,QAAA,KAAK,SAehB","sourcesContent":["import * as React from 'react';\nimport { LegendShape } from './Legends.types';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\nexport interface IShapeProps {\n svgProps: React.SVGAttributes<SVGElement>;\n pathProps: React.SVGAttributes<SVGPathElement>;\n shape: LegendShape;\n classNameForNonSvg?: string;\n}\n\ntype PointPathType = {\n [key: string]: string;\n};\n\nconst pointPath: PointPathType = {\n [`${Points[Points.circle]}`]: 'M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6',\n [`${Points[Points.square]}`]: 'M1 1 L12 1 L12 12 L1 12 L1 1 Z',\n [`${Points[Points.triangle]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.pyramid]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.diamond]}`]: 'M2 2 L10 2 L10 10 L2 10 L2 2 Z',\n [`${Points[Points.hexagon]}`]: 'M9 0H3L0 5L3 10H9L12 5L9 0Z',\n [`${Points[Points.pentagon]}`]: 'M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z',\n [`${Points[Points.octagon]}`]:\n 'M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z',\n [`${CustomPoints[CustomPoints.dottedLine]}`]: 'M0 6 H3 M5 6 H8 M10 6 H13',\n};\n\nexport const Shape: React.FC<IShapeProps> = ({ svgProps, pathProps, shape, classNameForNonSvg }) => {\n if (Object.keys(pointPath).indexOf(shape) === -1) {\n return <div className={classNameForNonSvg} />;\n }\n return (\n <svg\n width={14}\n height={14}\n viewBox={'-1 -1 14 14'}\n {...svgProps}\n transform={`rotate(${shape === Points[Points.diamond] ? 45 : shape === Points[Points.pyramid] ? 180 : 0}, 0, 0)`}\n >\n <path d={pointPath[shape]} {...pathProps} />\n </svg>\n );\n};\n"]}
1
+ {"version":3,"file":"shape.js","sourceRoot":"../src/","sources":["components/Legends/shape.tsx"],"names":[],"mappings":";;;;;IAeA,IAAM,SAAS;QACb,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,MAAM,CAAC,CAAE,IAAG,6CAA6C;QAC3E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,MAAM,CAAC,CAAE,IAAG,iCAAiC;QAC/D,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,QAAQ,CAAC,CAAE,IAAG,2CAA2C;QAC3E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,2CAA2C;QAC1E,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,iCAAiC;QAChE,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAAG,6BAA6B;QAC5D,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,QAAQ,CAAC,CAAE,IAAG,+DAA+D;QAC/F,GAAC,UAAG,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAE,IAC1B,uFAAuF;QACzF,GAAC,UAAG,wBAAY,CAAC,wBAAY,CAAC,UAAU,CAAC,CAAE,IAAG,2BAA2B;WAC1E,CAAC;IAEK,IAAM,KAAK,GAA0B,UAAC,EAAkD;YAAhD,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,kBAAkB,wBAAA;QAC3F,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;YAChD,OAAO,6BAAK,SAAS,EAAE,kBAAkB,GAAI,CAAC;SAC/C;QACD,OAAO,CACL,8CACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,aAAa,IAClB,QAAQ,IACZ,SAAS,EAAE,iBAAU,KAAK,KAAK,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,kBAAM,CAAC,kBAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAS;YAEhH,+CAAM,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,IAAM,SAAS,EAAI,CACxC,CACP,CAAC;IACJ,CAAC,CAAC;IAfW,QAAA,KAAK,SAehB","sourcesContent":["import * as React from 'react';\nimport { LegendShape } from './Legends.types';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\nexport interface IShapeProps {\n svgProps: React.SVGAttributes<SVGElement>;\n pathProps: React.SVGAttributes<SVGPathElement>;\n shape: LegendShape;\n classNameForNonSvg?: string;\n}\n\ntype PointPathType = {\n [key: string]: string;\n};\n\nconst pointPath: PointPathType = {\n [`${Points[Points.circle]}`]: 'M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6',\n [`${Points[Points.square]}`]: 'M1 1 L12 1 L12 12 L1 12 L1 1 Z',\n [`${Points[Points.triangle]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.pyramid]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.diamond]}`]: 'M2 2 L10 2 L10 10 L2 10 L2 2 Z',\n [`${Points[Points.hexagon]}`]: 'M9 0H3L0 5L3 10H9L12 5L9 0Z',\n [`${Points[Points.pentagon]}`]: 'M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z',\n [`${Points[Points.octagon]}`]:\n 'M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z',\n [`${CustomPoints[CustomPoints.dottedLine]}`]: 'M0 6 H3 M5 6 H8 M10 6 H13',\n};\n\nexport const Shape: React.FC<IShapeProps> = ({ svgProps, pathProps, shape, classNameForNonSvg }) => {\n if (Object.keys(pointPath).indexOf(shape) === -1) {\n return <div className={classNameForNonSvg} />;\n }\n return (\n <svg\n width={14}\n height={14}\n viewBox={'-1 -1 14 14'}\n {...svgProps}\n transform={`rotate(${shape === Points[Points.diamond] ? 45 : shape === Points[Points.pyramid] ? 180 : 0}, 0, 0)`}\n >\n <path d={pointPath[shape]} {...pathProps} />\n </svg>\n );\n};\n"]}
@@ -13,6 +13,7 @@ export interface ILineChartState extends IBasestate {
13
13
  xAxisCalloutAccessibilityData?: IAccessibilityProps;
14
14
  nearestCircleToHighlight: ILineChartDataPoint | null;
15
15
  activeLine: number | null;
16
+ emptyChart?: boolean;
16
17
  }
17
18
  export declare class LineChartBase extends React.Component<ILineChartProps, ILineChartState> {
18
19
  private _points;
@@ -36,6 +37,7 @@ export declare class LineChartBase extends React.Component<ILineChartProps, ILin
36
37
  private _staticHighlightCircle;
37
38
  constructor(props: ILineChartProps);
38
39
  componentDidUpdate(prevProps: ILineChartProps): void;
40
+ componentDidMount(): void;
39
41
  render(): JSX.Element;
40
42
  private _injectIndexPropertyInLineChartData;
41
43
  private _getCustomizedCallout;
@@ -42,7 +42,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
42
42
  return allPointPaths[index];
43
43
  };
44
44
  var LineChartBase = /** @class */ (function (_super) {
45
- (0, tslib_1.__extends)(LineChartBase, _super);
45
+ tslib_1.__extends(LineChartBase, _super);
46
46
  function LineChartBase(props) {
47
47
  var _this_1 = _super.call(this, props) || this;
48
48
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -63,7 +63,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
63
63
  else {
64
64
  color = (0, index_3.getColorFromToken)(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
65
65
  }
66
- return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
66
+ return tslib_1.__assign(tslib_1.__assign({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
67
67
  })
68
68
  : [];
69
69
  };
@@ -412,7 +412,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
412
412
  }, -1);
413
413
  var selectedLines;
414
414
  if (selectedLineIndex === -1) {
415
- selectedLines = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedLegendPoints, true), [selectedLine], false);
415
+ selectedLines = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedLegendPoints, true), [selectedLine], false);
416
416
  }
417
417
  else {
418
418
  selectedLines = _this_1.state.selectedLegendPoints
@@ -452,7 +452,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
452
452
  }, -1);
453
453
  var selectedColorFillBars;
454
454
  if (selectedColorFillBarIndex === -1) {
455
- selectedColorFillBars = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedColorBarLegend, true), [selectedColorFillBar], false);
455
+ selectedColorFillBars = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedColorBarLegend, true), [selectedColorFillBar], false);
456
456
  }
457
457
  else {
458
458
  selectedColorFillBars = _this_1.state.selectedColorBarLegend
@@ -529,6 +529,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
529
529
  activePoint: '',
530
530
  nearestCircleToHighlight: null,
531
531
  activeLine: null,
532
+ emptyChart: false,
532
533
  };
533
534
  _this_1._refArray = [];
534
535
  _this_1._points = _this_1._injectIndexPropertyInLineChartData(_this_1.props.data.lineChartData);
@@ -558,6 +559,15 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
558
559
  this._calloutPoints = (0, index_3.calloutData)(this._points) || [];
559
560
  }
560
561
  };
562
+ LineChartBase.prototype.componentDidMount = function () {
563
+ var isChartEmpty = !(this.props.data &&
564
+ this.props.data.lineChartData &&
565
+ this.props.data.lineChartData.length > 0 &&
566
+ this.props.data.lineChartData.filter(function (item) { return item.data.length; }).length > 0);
567
+ if (this.state.emptyChart !== isChartEmpty) {
568
+ this.setState({ emptyChart: isChartEmpty });
569
+ }
570
+ };
561
571
  LineChartBase.prototype.render = function () {
562
572
  var _this_1 = this;
563
573
  var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
@@ -569,14 +579,14 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
569
579
  this._calloutPoints = (0, index_3.calloutData)(points);
570
580
  }
571
581
  var legendBars = this._createLegends(this._points);
572
- var calloutProps = (0, tslib_1.__assign)({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip".concat(this._uniqueCallOutID), target: this.state.refSelected, isBeakVisible: false, gapSpace: 15, onDismiss: this._closeCallout, preventDismissOnEvent: function () { return true; }, hidden: !(!this.props.hideTooltip && this.state.isCalloutVisible), descriptionMessage: this.props.getCalloutDescriptionMessage && this.state.stackCalloutProps
582
+ var calloutProps = tslib_1.__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip".concat(this._uniqueCallOutID), target: this.state.refSelected, isBeakVisible: false, gapSpace: 15, onDismiss: this._closeCallout, preventDismissOnEvent: function () { return true; }, hidden: !(!this.props.hideTooltip && this.state.isCalloutVisible), descriptionMessage: this.props.getCalloutDescriptionMessage && this.state.stackCalloutProps
573
583
  ? this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps)
574
584
  : undefined, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
575
585
  var tickParams = {
576
586
  tickValues: tickValues,
577
587
  tickFormat: tickFormat,
578
588
  };
579
- return (React.createElement(index_2.CartesianChart, (0, tslib_1.__assign)({}, this.props, { chartTitle: data.chartTitle, points: points, chartType: index_3.ChartTypes.LineChart, isCalloutForStack: true, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, getmargins: this._getMargins, getGraphData: this._initializeLineChartData, xAxisType: isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave,
589
+ return !this.state.emptyChart ? (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: data.chartTitle, points: points, chartType: index_3.ChartTypes.LineChart, isCalloutForStack: true, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, getmargins: this._getMargins, getGraphData: this._initializeLineChartData, xAxisType: isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave,
580
590
  /* eslint-disable react/jsx-no-bind */
581
591
  // eslint-disable-next-line react/no-children-prop
582
592
  children: function (props) {
@@ -589,8 +599,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
589
599
  React.createElement("g", null,
590
600
  _this_1._renderedColorFillBars,
591
601
  _this_1.lines),
592
- eventAnnotationProps && (React.createElement(EventAnnotation_1.EventsAnnotation, (0, tslib_1.__assign)({}, eventAnnotationProps, { scale: props.xScale, chartYTop: _this_1.margins.top + _this_1.eventLabelHeight, chartYBottom: props.containerHeight - 35 }))))));
593
- } })));
602
+ eventAnnotationProps && (React.createElement(EventAnnotation_1.EventsAnnotation, tslib_1.__assign({}, eventAnnotationProps, { scale: props.xScale, chartYTop: _this_1.margins.top + _this_1.eventLabelHeight, chartYBottom: props.containerHeight - 35 }))))));
603
+ } }))) : (React.createElement("div", { id: (0, Utilities_1.getId)('_LineChart_'), role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
594
604
  };
595
605
  LineChartBase.prototype._createLegends = function (data) {
596
606
  var _this_1 = this;
@@ -599,7 +609,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
599
609
  var legendDataItems = data.map(function (point) {
600
610
  var color = point.color;
601
611
  // mapping data to the format Legends component needs
602
- var legend = (0, tslib_1.__assign)((0, tslib_1.__assign)({ title: point.legend, color: color, action: function () {
612
+ var legend = tslib_1.__assign(tslib_1.__assign({ title: point.legend, color: color, action: function () {
603
613
  if (isLegendMultiSelectEnabled) {
604
614
  _this_1._handleMultipleLineLegendSelectionAction(point);
605
615
  }
@@ -648,7 +658,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
648
658
  return legend;
649
659
  })
650
660
  : [];
651
- var legends = (React.createElement(index_1.Legends, (0, tslib_1.__assign)({ legends: (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], legendDataItems, true), colorFillBarsLegendDataItems, true), enabledWrapLines: this.props.enabledLegendsWrapLines, overflowProps: this.props.legendsOverflowProps, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, (isLegendMultiSelectEnabled && { onLegendHoverCardLeave: this._onHoverCardHide }), this.props.legendProps)));
661
+ var legends = (React.createElement(index_1.Legends, tslib_1.__assign({ legends: tslib_1.__spreadArray(tslib_1.__spreadArray([], legendDataItems, true), colorFillBarsLegendDataItems, true), enabledWrapLines: this.props.enabledLegendsWrapLines, overflowProps: this.props.legendsOverflowProps, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, (isLegendMultiSelectEnabled && { onLegendHoverCardLeave: this._onHoverCardHide }), this.props.legendProps)));
652
662
  return legends;
653
663
  };
654
664
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
@@ -673,7 +683,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
673
683
  if (this_1._points[i].data.length === 1) {
674
684
  var _0 = this_1._points[i].data[0], x1_1 = _0.x, y1 = _0.y, xAxisCalloutData_1 = _0.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _0.xAxisCalloutAccessibilityData;
675
685
  var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
676
- pointsForLine.push(React.createElement("circle", (0, tslib_1.__assign)({ id: circleId_1, key: circleId_1, r: activePoint === circleId_1 ? 5.5 : 3.5, cx: this_1._xAxisScale(x1_1), cy: this_1._yAxisScale(y1), fill: activePoint === circleId_1 ? theme.palette.white : lineColor, onMouseOver: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, strokeWidth: activePoint === circleId_1 ? DEFAULT_LINE_STROKE_SIZE : 0, stroke: activePoint === circleId_1 ? lineColor : '', role: "img", "aria-label": this_1._getAriaLabel(i, 0), "data-is-focusable": true, ref: function (e) {
686
+ pointsForLine.push(React.createElement("circle", tslib_1.__assign({ id: circleId_1, key: circleId_1, r: activePoint === circleId_1 ? 5.5 : 3.5, cx: this_1._xAxisScale(x1_1), cy: this_1._yAxisScale(y1), fill: activePoint === circleId_1 ? theme.palette.white : lineColor, onMouseOver: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, strokeWidth: activePoint === circleId_1 ? DEFAULT_LINE_STROKE_SIZE : 0, stroke: activePoint === circleId_1 ? lineColor : '', role: "img", "aria-label": this_1._getAriaLabel(i, 0), "data-is-focusable": true, ref: function (e) {
677
687
  _this_1._refCallback(e, circleId_1);
678
688
  }, onFocus: function () { return _this_1._handleFocus(circleId_1, x1_1, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[0].onDataPointClick))));
679
689
  }
@@ -707,7 +717,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
707
717
  if (lineBorderWidth > 0) {
708
718
  bordersForLine.push(React.createElement("path", { id: borderId, key: borderId, d: line(lineData), fill: "transparent", strokeLinecap: (_f = (_e = this_1._points[i].lineOptions) === null || _e === void 0 ? void 0 : _e.strokeLinecap) !== null && _f !== void 0 ? _f : 'round', strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth, stroke: ((_g = this_1._points[i].lineOptions) === null || _g === void 0 ? void 0 : _g.lineBorderColor) || theme.palette.white, opacity: 1 }));
709
719
  }
710
- linesForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_j = (_h = this_1._points[i].lineOptions) === null || _h === void 0 ? void 0 : _h.strokeLinecap) !== null && _j !== void 0 ? _j : 'round', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].onLineClick), { opacity: 1, role: "img", "aria-label": "".concat(legendVal, ", series ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") })));
720
+ linesForLine.push(React.createElement("path", tslib_1.__assign({ id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_j = (_h = this_1._points[i].lineOptions) === null || _h === void 0 ? void 0 : _h.strokeLinecap) !== null && _j !== void 0 ? _j : 'round', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].onLineClick), { opacity: 1, role: "img", "aria-label": "".concat(legendVal, ", series ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") })));
711
721
  }
712
722
  else {
713
723
  linesForLine.push(React.createElement("path", { id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_l = (_k = this_1._points[i].lineOptions) === null || _k === void 0 ? void 0 : _k.strokeLinecap) !== null && _l !== void 0 ? _l : 'round', opacity: 0.1, role: "img", "aria-label": "".concat(legendVal, ", series ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") }));
@@ -729,14 +739,14 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
729
739
  var strokeWidth = ((_m = this_1._points[i].lineOptions) === null || _m === void 0 ? void 0 : _m.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
730
740
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
731
741
  var currentPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== circleId;
732
- pointsForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: circleId, key: circleId, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, onFocus: function () { return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j - 1) })));
742
+ pointsForLine.push(React.createElement("path", tslib_1.__assign({ id: circleId, key: circleId, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, onFocus: function () { return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j - 1) })));
733
743
  if (j + 1 === this_1._points[i].data.length) {
734
744
  // If this is last point of the line segment.
735
745
  var lastCircleId_1 = "".concat(circleId).concat(j, "L");
736
746
  var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
737
747
  path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
738
748
  var _3 = this_1._points[i].data[j], lastCirlceXCallout_1 = _3.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _3.xAxisCalloutAccessibilityData;
739
- pointsForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, onFocus: function () {
749
+ pointsForLine.push(React.createElement("path", tslib_1.__assign({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, onFocus: function () {
740
750
  return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
741
751
  }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j].onDataPointClick), { opacity: isLegendSelected && !lastPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, lastCircleId_1, j, true), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j) })));
742
752
  /* eslint-enable react/jsx-no-bind */
@@ -750,7 +760,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
750
760
  if (lineBorderWidth > 0) {
751
761
  bordersForLine.push(React.createElement("line", { id: borderId, key: borderId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeLinecap: (_q = (_p = this_1._points[i].lineOptions) === null || _p === void 0 ? void 0 : _p.strokeLinecap) !== null && _q !== void 0 ? _q : 'round', strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth, stroke: ((_r = this_1._points[i].lineOptions) === null || _r === void 0 ? void 0 : _r.lineBorderColor) || theme.palette.white, opacity: 1 }));
752
762
  }
753
- linesForLine.push(React.createElement("line", (0, tslib_1.__assign)({ id: lineId, key: lineId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeWidth: strokeWidth, ref: function (e) {
763
+ linesForLine.push(React.createElement("line", tslib_1.__assign({ id: lineId, key: lineId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeWidth: strokeWidth, ref: function (e) {
754
764
  _this_1._refCallback(e, lineId);
755
765
  }, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, stroke: lineColor, strokeLinecap: (_t = (_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeLinecap) !== null && _t !== void 0 ? _t : 'round', strokeDasharray: (_u = this_1._points[i].lineOptions) === null || _u === void 0 ? void 0 : _u.strokeDasharray, strokeDashoffset: (_v = this_1._points[i].lineOptions) === null || _v === void 0 ? void 0 : _v.strokeDashoffset, opacity: 1 }, this_1._getClickHandler(this_1._points[i].onLineClick))));
756
766
  }
@@ -765,7 +775,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
765
775
  _loop_2(j);
766
776
  }
767
777
  }
768
- lines.push.apply(lines, (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], bordersForLine, false), linesForLine, false), pointsForLine, false));
778
+ lines.push.apply(lines, tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], bordersForLine, false), linesForLine, false), pointsForLine, false));
769
779
  };
770
780
  var this_1 = this;
771
781
  for (var i = this._points.length - 1; i >= 0; i--) {