@fluentui/react-charting 5.21.28 → 5.21.29

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 +22 -1
  2. package/CHANGELOG.md +12 -2
  3. package/dist/react-charting.js +1 -0
  4. package/dist/react-charting.min.js +1 -0
  5. package/lib/AreaChart.js.map +1 -1
  6. package/lib/CartesianChart.js.map +1 -1
  7. package/lib/DonutChart.js.map +1 -1
  8. package/lib/GaugeChart.js.map +1 -1
  9. package/lib/GroupedVerticalBarChart.js.map +1 -1
  10. package/lib/HeatMapChart.js.map +1 -1
  11. package/lib/HorizontalBarChart.js.map +1 -1
  12. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  13. package/lib/Legends.js.map +1 -1
  14. package/lib/LineChart.js.map +1 -1
  15. package/lib/PieChart.js.map +1 -1
  16. package/lib/SankeyChart.js.map +1 -1
  17. package/lib/Sparkline.js.map +1 -1
  18. package/lib/StackedBarChart.js.map +1 -1
  19. package/lib/Styling.js.map +1 -1
  20. package/lib/TreeChart.js.map +1 -1
  21. package/lib/Utilities.js.map +1 -1
  22. package/lib/VerticalBarChart.js.map +1 -1
  23. package/lib/VerticalStackedBarChart.js.map +1 -1
  24. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  25. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  26. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
  27. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  28. package/lib/components/AreaChart/index.js.map +1 -1
  29. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  30. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  31. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  32. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  33. package/lib/components/CommonComponents/index.js.map +1 -1
  34. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  35. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  36. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  37. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  38. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  39. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  40. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  41. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  42. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  43. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  44. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  45. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  46. package/lib/components/DonutChart/index.js.map +1 -1
  47. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  48. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  49. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  50. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  51. package/lib/components/GaugeChart/index.js.map +1 -1
  52. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  53. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  54. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  55. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  56. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  57. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  58. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  59. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  60. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  61. package/lib/components/HeatMapChart/index.js.map +1 -1
  62. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  63. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  64. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  65. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  66. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  67. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  68. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  69. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  70. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  71. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  72. package/lib/components/Legends/Legends.base.js.map +1 -1
  73. package/lib/components/Legends/Legends.js.map +1 -1
  74. package/lib/components/Legends/Legends.styles.js.map +1 -1
  75. package/lib/components/Legends/Legends.types.js.map +1 -1
  76. package/lib/components/Legends/index.js.map +1 -1
  77. package/lib/components/Legends/shape.js.map +1 -1
  78. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  79. package/lib/components/LineChart/LineChart.js.map +1 -1
  80. package/lib/components/LineChart/LineChart.styles.js.map +1 -1
  81. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  82. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  83. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  84. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  85. package/lib/components/LineChart/index.js.map +1 -1
  86. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  87. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
  88. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -1
  89. package/lib/components/PieChart/Arc/index.js.map +1 -1
  90. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  91. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -1
  92. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -1
  93. package/lib/components/PieChart/Pie/index.js.map +1 -1
  94. package/lib/components/PieChart/PieChart.base.js.map +1 -1
  95. package/lib/components/PieChart/PieChart.js.map +1 -1
  96. package/lib/components/PieChart/PieChart.styles.js.map +1 -1
  97. package/lib/components/PieChart/PieChart.types.js.map +1 -1
  98. package/lib/components/PieChart/index.js.map +1 -1
  99. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  100. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  101. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  102. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  103. package/lib/components/SankeyChart/index.js.map +1 -1
  104. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  105. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  106. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
  107. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  108. package/lib/components/Sparkline/index.js.map +1 -1
  109. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  110. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  111. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  112. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  113. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  114. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
  115. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  116. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  117. package/lib/components/StackedBarChart/index.js.map +1 -1
  118. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  119. package/lib/components/TreeChart/TreeChart.js.map +1 -1
  120. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
  121. package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
  122. package/lib/components/TreeChart/index.js.map +1 -1
  123. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  124. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  125. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  126. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  127. package/lib/components/VerticalBarChart/index.js.map +1 -1
  128. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  129. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  130. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  131. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  132. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  133. package/lib/index.js.map +1 -1
  134. package/lib/types/IDataPoint.js.map +1 -1
  135. package/lib/types/IEventAnnotation.js.map +1 -1
  136. package/lib/types/ILegendDataItem.js.map +1 -1
  137. package/lib/types/index.js.map +1 -1
  138. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  139. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  140. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  141. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  142. package/lib/utilities/ChartHoverCard/index.js.map +1 -1
  143. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  144. package/lib/utilities/SVGTooltipText.js.map +1 -1
  145. package/lib/utilities/colors.js.map +1 -1
  146. package/lib/utilities/index.js.map +1 -1
  147. package/lib/utilities/locale-util.js.map +1 -1
  148. package/lib/utilities/test-data.js.map +1 -1
  149. package/lib/utilities/utilities.js.map +1 -1
  150. package/lib/utilities/vbc-utils.js.map +1 -1
  151. package/lib/version.js +1 -1
  152. package/lib/version.js.map +1 -1
  153. package/lib-amd/AreaChart.d.ts +1 -0
  154. package/lib-amd/AreaChart.js +6 -0
  155. package/lib-amd/AreaChart.js.map +1 -0
  156. package/lib-amd/CartesianChart.d.ts +1 -0
  157. package/lib-amd/CartesianChart.js +6 -0
  158. package/lib-amd/CartesianChart.js.map +1 -0
  159. package/lib-amd/DonutChart.d.ts +1 -0
  160. package/lib-amd/DonutChart.js +6 -0
  161. package/lib-amd/DonutChart.js.map +1 -0
  162. package/lib-amd/GaugeChart.d.ts +1 -0
  163. package/lib-amd/GaugeChart.js +6 -0
  164. package/lib-amd/GaugeChart.js.map +1 -0
  165. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  166. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  167. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  168. package/lib-amd/HeatMapChart.d.ts +1 -0
  169. package/lib-amd/HeatMapChart.js +6 -0
  170. package/lib-amd/HeatMapChart.js.map +1 -0
  171. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  172. package/lib-amd/HorizontalBarChart.js +6 -0
  173. package/lib-amd/HorizontalBarChart.js.map +1 -0
  174. package/lib-amd/HorizontalBarChartWithAxis.d.ts +1 -0
  175. package/lib-amd/HorizontalBarChartWithAxis.js +6 -0
  176. package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -0
  177. package/lib-amd/Legends.d.ts +1 -0
  178. package/lib-amd/Legends.js +6 -0
  179. package/lib-amd/Legends.js.map +1 -0
  180. package/lib-amd/LineChart.d.ts +1 -0
  181. package/lib-amd/LineChart.js +6 -0
  182. package/lib-amd/LineChart.js.map +1 -0
  183. package/lib-amd/PieChart.d.ts +1 -0
  184. package/lib-amd/PieChart.js +6 -0
  185. package/lib-amd/PieChart.js.map +1 -0
  186. package/lib-amd/SankeyChart.d.ts +1 -0
  187. package/lib-amd/SankeyChart.js +6 -0
  188. package/lib-amd/SankeyChart.js.map +1 -0
  189. package/lib-amd/Sparkline.d.ts +1 -0
  190. package/lib-amd/Sparkline.js +6 -0
  191. package/lib-amd/Sparkline.js.map +1 -0
  192. package/lib-amd/StackedBarChart.d.ts +1 -0
  193. package/lib-amd/StackedBarChart.js +6 -0
  194. package/lib-amd/StackedBarChart.js.map +1 -0
  195. package/lib-amd/Styling.d.ts +2 -0
  196. package/lib-amd/Styling.js +75 -0
  197. package/lib-amd/Styling.js.map +1 -0
  198. package/lib-amd/TreeChart.d.ts +1 -0
  199. package/lib-amd/TreeChart.js +6 -0
  200. package/lib-amd/TreeChart.js.map +1 -0
  201. package/lib-amd/Utilities.d.ts +2 -0
  202. package/lib-amd/Utilities.js +183 -0
  203. package/lib-amd/Utilities.js.map +1 -0
  204. package/lib-amd/VerticalBarChart.d.ts +1 -0
  205. package/lib-amd/VerticalBarChart.js +6 -0
  206. package/lib-amd/VerticalBarChart.js.map +1 -0
  207. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  208. package/lib-amd/VerticalStackedBarChart.js +6 -0
  209. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  210. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +103 -0
  211. package/lib-amd/components/AreaChart/AreaChart.base.js +652 -0
  212. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  213. package/lib-amd/components/AreaChart/AreaChart.d.ts +7 -0
  214. package/lib-amd/components/AreaChart/AreaChart.js +12 -0
  215. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  216. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  217. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  218. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  219. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +59 -0
  220. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  221. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  222. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  223. package/lib-amd/components/AreaChart/index.js +7 -0
  224. package/lib-amd/components/AreaChart/index.js.map +1 -0
  225. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +62 -0
  226. package/lib-amd/components/CommonComponents/CartesianChart.base.js +593 -0
  227. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  228. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +7 -0
  229. package/lib-amd/components/CommonComponents/CartesianChart.js +11 -0
  230. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  231. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  232. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +180 -0
  233. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  234. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +528 -0
  235. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  236. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  237. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  238. package/lib-amd/components/CommonComponents/index.js +7 -0
  239. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  240. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
  241. package/lib-amd/components/DonutChart/Arc/Arc.js +88 -0
  242. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  243. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  244. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
  245. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  246. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  247. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  248. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  249. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  250. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  251. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  252. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +54 -0
  253. package/lib-amd/components/DonutChart/DonutChart.base.js +241 -0
  254. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  255. package/lib-amd/components/DonutChart/DonutChart.d.ts +7 -0
  256. package/lib-amd/components/DonutChart/DonutChart.js +12 -0
  257. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  258. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  259. package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
  260. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  261. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +75 -0
  262. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  263. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  264. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
  265. package/lib-amd/components/DonutChart/Pie/Pie.js +67 -0
  266. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  267. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  268. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
  269. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  270. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  271. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  272. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  273. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  274. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  275. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  276. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  277. package/lib-amd/components/DonutChart/index.js +8 -0
  278. package/lib-amd/components/DonutChart/index.js.map +1 -0
  279. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +75 -0
  280. package/lib-amd/components/GaugeChart/GaugeChart.base.js +410 -0
  281. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -0
  282. package/lib-amd/components/GaugeChart/GaugeChart.d.ts +7 -0
  283. package/lib-amd/components/GaugeChart/GaugeChart.js +11 -0
  284. package/lib-amd/components/GaugeChart/GaugeChart.js.map +1 -0
  285. package/lib-amd/components/GaugeChart/GaugeChart.styles.d.ts +2 -0
  286. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +122 -0
  287. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -0
  288. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +238 -0
  289. package/lib-amd/components/GaugeChart/GaugeChart.types.js +22 -0
  290. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -0
  291. package/lib-amd/components/GaugeChart/index.d.ts +2 -0
  292. package/lib-amd/components/GaugeChart/index.js +7 -0
  293. package/lib-amd/components/GaugeChart/index.js.map +1 -0
  294. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +72 -0
  295. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +425 -0
  296. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  297. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +7 -0
  298. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +12 -0
  299. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  300. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  301. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
  302. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  303. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +111 -0
  304. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  305. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  306. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  307. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  308. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  309. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +152 -0
  310. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +538 -0
  311. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  312. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +7 -0
  313. package/lib-amd/components/HeatMapChart/HeatMapChart.js +11 -0
  314. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  315. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  316. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
  317. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  318. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +122 -0
  319. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  320. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  321. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  322. package/lib-amd/components/HeatMapChart/index.js +7 -0
  323. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  324. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +47 -0
  325. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +270 -0
  326. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  327. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +7 -0
  328. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +12 -0
  329. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  330. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  331. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
  332. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  333. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +188 -0
  334. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +14 -0
  335. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  336. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  337. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  338. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  339. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +61 -0
  340. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +499 -0
  341. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -0
  342. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.d.ts +7 -0
  343. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +12 -0
  344. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
  345. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.d.ts +2 -0
  346. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +17 -0
  347. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -0
  348. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +112 -0
  349. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +5 -0
  350. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
  351. package/lib-amd/components/HorizontalBarChartWithAxis/index.d.ts +2 -0
  352. package/lib-amd/components/HorizontalBarChartWithAxis/index.js +7 -0
  353. package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -0
  354. package/lib-amd/components/Legends/Legends.base.d.ts +43 -0
  355. package/lib-amd/components/Legends/Legends.base.js +308 -0
  356. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  357. package/lib-amd/components/Legends/Legends.d.ts +7 -0
  358. package/lib-amd/components/Legends/Legends.js +11 -0
  359. package/lib-amd/components/Legends/Legends.js.map +1 -0
  360. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  361. package/lib-amd/components/Legends/Legends.styles.js +111 -0
  362. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  363. package/lib-amd/components/Legends/Legends.types.d.ts +210 -0
  364. package/lib-amd/components/Legends/Legends.types.js +5 -0
  365. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  366. package/lib-amd/components/Legends/index.d.ts +3 -0
  367. package/lib-amd/components/Legends/index.js +8 -0
  368. package/lib-amd/components/Legends/index.js.map +1 -0
  369. package/lib-amd/components/Legends/shape.d.ts +9 -0
  370. package/lib-amd/components/Legends/shape.js +27 -0
  371. package/lib-amd/components/Legends/shape.js.map +1 -0
  372. package/lib-amd/components/LineChart/LineChart.base.d.ts +92 -0
  373. package/lib-amd/components/LineChart/LineChart.base.js +861 -0
  374. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  375. package/lib-amd/components/LineChart/LineChart.d.ts +7 -0
  376. package/lib-amd/components/LineChart/LineChart.js +12 -0
  377. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  378. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  379. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  380. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  381. package/lib-amd/components/LineChart/LineChart.types.d.ts +98 -0
  382. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  383. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  384. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +12 -0
  385. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +97 -0
  386. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  387. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +24 -0
  388. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +42 -0
  389. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  390. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  391. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  392. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  393. package/lib-amd/components/LineChart/index.d.ts +3 -0
  394. package/lib-amd/components/LineChart/index.js +8 -0
  395. package/lib-amd/components/LineChart/index.js.map +1 -0
  396. package/lib-amd/components/PieChart/Arc/Arc.d.ts +17 -0
  397. package/lib-amd/components/PieChart/Arc/Arc.js +85 -0
  398. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  399. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +3 -0
  400. package/lib-amd/components/PieChart/Arc/Arc.styles.js +16 -0
  401. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  402. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +73 -0
  403. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  404. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  405. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  406. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  407. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  408. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  409. package/lib-amd/components/PieChart/Pie/Pie.js +43 -0
  410. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  411. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  412. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  413. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  414. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +47 -0
  415. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  416. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  417. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  418. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  419. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  420. package/lib-amd/components/PieChart/PieChart.base.d.ts +10 -0
  421. package/lib-amd/components/PieChart/PieChart.base.js +46 -0
  422. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  423. package/lib-amd/components/PieChart/PieChart.d.ts +7 -0
  424. package/lib-amd/components/PieChart/PieChart.js +12 -0
  425. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  426. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  427. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  428. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  429. package/lib-amd/components/PieChart/PieChart.types.d.ts +75 -0
  430. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  431. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  432. package/lib-amd/components/PieChart/index.d.ts +2 -0
  433. package/lib-amd/components/PieChart/index.js +7 -0
  434. package/lib-amd/components/PieChart/index.js.map +1 -0
  435. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +90 -0
  436. package/lib-amd/components/SankeyChart/SankeyChart.base.js +930 -0
  437. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  438. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +7 -0
  439. package/lib-amd/components/SankeyChart/SankeyChart.js +12 -0
  440. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  441. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  442. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +65 -0
  443. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  444. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +146 -0
  445. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  446. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  447. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  448. package/lib-amd/components/SankeyChart/index.js +7 -0
  449. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  450. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +23 -0
  451. package/lib-amd/components/Sparkline/Sparkline.base.js +84 -0
  452. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  453. package/lib-amd/components/Sparkline/Sparkline.d.ts +7 -0
  454. package/lib-amd/components/Sparkline/Sparkline.js +12 -0
  455. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  456. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  457. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  458. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  459. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +59 -0
  460. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  461. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  462. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  463. package/lib-amd/components/Sparkline/index.js +7 -0
  464. package/lib-amd/components/Sparkline/index.js.map +1 -0
  465. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +70 -0
  466. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +412 -0
  467. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  468. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +7 -0
  469. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +12 -0
  470. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  471. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  472. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +89 -0
  473. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  474. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +213 -0
  475. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +14 -0
  476. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  477. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +63 -0
  478. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +349 -0
  479. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  480. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +7 -0
  481. package/lib-amd/components/StackedBarChart/StackedBarChart.js +12 -0
  482. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  483. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  484. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +107 -0
  485. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  486. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +222 -0
  487. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  488. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  489. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  490. package/lib-amd/components/StackedBarChart/index.js +10 -0
  491. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  492. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  493. package/lib-amd/components/TreeChart/TreeChart.base.js +320 -0
  494. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  495. package/lib-amd/components/TreeChart/TreeChart.d.ts +7 -0
  496. package/lib-amd/components/TreeChart/TreeChart.js +11 -0
  497. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  498. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  499. package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
  500. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  501. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +216 -0
  502. package/lib-amd/components/TreeChart/TreeChart.types.js +34 -0
  503. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  504. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  505. package/lib-amd/components/TreeChart/index.js +7 -0
  506. package/lib-amd/components/TreeChart/index.js.map +1 -0
  507. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +84 -0
  508. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +738 -0
  509. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  510. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +7 -0
  511. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +12 -0
  512. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  513. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  514. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
  515. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  516. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +145 -0
  517. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  518. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  519. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  520. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  521. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  522. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +92 -0
  523. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +754 -0
  524. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  525. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +7 -0
  526. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +12 -0
  527. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  528. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  529. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
  530. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  531. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +172 -0
  532. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  533. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  534. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  535. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  536. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  537. package/lib-amd/index.d.ts +21 -0
  538. package/lib-amd/index.js +25 -0
  539. package/lib-amd/index.js.map +1 -0
  540. package/lib-amd/types/IDataPoint.d.ts +687 -0
  541. package/lib-amd/types/IDataPoint.js +5 -0
  542. package/lib-amd/types/IDataPoint.js.map +1 -0
  543. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  544. package/lib-amd/types/IEventAnnotation.js +5 -0
  545. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  546. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  547. package/lib-amd/types/ILegendDataItem.js +5 -0
  548. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  549. package/lib-amd/types/index.d.ts +2 -0
  550. package/lib-amd/types/index.js +7 -0
  551. package/lib-amd/types/index.js.map +1 -0
  552. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  553. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  554. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  555. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  556. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  557. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  558. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  559. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +103 -0
  560. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  561. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  562. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  563. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  564. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  565. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  566. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  567. package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
  568. package/lib-amd/utilities/FocusableTooltipText.js +54 -0
  569. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
  570. package/lib-amd/utilities/SVGTooltipText.d.ts +95 -0
  571. package/lib-amd/utilities/SVGTooltipText.js +175 -0
  572. package/lib-amd/utilities/SVGTooltipText.js.map +1 -0
  573. package/lib-amd/utilities/colors.d.ts +51 -0
  574. package/lib-amd/utilities/colors.js +139 -0
  575. package/lib-amd/utilities/colors.js.map +1 -0
  576. package/lib-amd/utilities/index.d.ts +4 -0
  577. package/lib-amd/utilities/index.js +9 -0
  578. package/lib-amd/utilities/index.js.map +1 -0
  579. package/lib-amd/utilities/locale-util.d.ts +3 -0
  580. package/lib-amd/utilities/locale-util.js +24 -0
  581. package/lib-amd/utilities/locale-util.js.map +1 -0
  582. package/lib-amd/utilities/test-data.d.ts +27 -0
  583. package/lib-amd/utilities/test-data.js +214 -0
  584. package/lib-amd/utilities/test-data.js.map +1 -0
  585. package/lib-amd/utilities/utilities.d.ts +411 -0
  586. package/lib-amd/utilities/utilities.js +1085 -0
  587. package/lib-amd/utilities/utilities.js.map +1 -0
  588. package/lib-amd/utilities/vbc-utils.d.ts +2 -0
  589. package/lib-amd/utilities/vbc-utils.js +38 -0
  590. package/lib-amd/utilities/vbc-utils.js.map +1 -0
  591. package/lib-amd/version.d.ts +1 -0
  592. package/lib-amd/version.js +6 -0
  593. package/lib-amd/version.js.map +1 -0
  594. package/lib-commonjs/AreaChart.js.map +1 -1
  595. package/lib-commonjs/CartesianChart.js.map +1 -1
  596. package/lib-commonjs/DonutChart.js.map +1 -1
  597. package/lib-commonjs/GaugeChart.js.map +1 -1
  598. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  599. package/lib-commonjs/HeatMapChart.js.map +1 -1
  600. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  601. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  602. package/lib-commonjs/Legends.js.map +1 -1
  603. package/lib-commonjs/LineChart.js.map +1 -1
  604. package/lib-commonjs/PieChart.js.map +1 -1
  605. package/lib-commonjs/SankeyChart.js.map +1 -1
  606. package/lib-commonjs/Sparkline.js.map +1 -1
  607. package/lib-commonjs/StackedBarChart.js.map +1 -1
  608. package/lib-commonjs/Styling.js.map +1 -1
  609. package/lib-commonjs/TreeChart.js.map +1 -1
  610. package/lib-commonjs/Utilities.js.map +1 -1
  611. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  612. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  613. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  614. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  615. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  616. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  617. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  618. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  619. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  620. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  621. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  622. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  623. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  624. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  625. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  626. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  627. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  628. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  629. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  630. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  631. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  632. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  633. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  634. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  635. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  636. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  637. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  638. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  639. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  640. package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
  641. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  642. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  643. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  644. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  645. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  646. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  647. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  648. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  649. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  650. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  651. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  652. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  653. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
  654. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  655. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  656. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  657. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  658. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  659. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  660. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  661. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  662. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  663. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  664. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  665. package/lib-commonjs/components/Legends/index.js.map +1 -1
  666. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  667. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  668. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  669. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  670. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  671. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  672. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  673. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  674. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  675. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  676. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
  677. package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -1
  678. package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
  679. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  680. package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -1
  681. package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -1
  682. package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
  683. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  684. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  685. package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
  686. package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
  687. package/lib-commonjs/components/PieChart/index.js.map +1 -1
  688. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  689. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  690. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  691. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  692. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  693. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  694. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  695. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
  696. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  697. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  698. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  699. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  700. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
  701. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  702. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  703. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  704. package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  705. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  706. package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
  707. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  708. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  709. package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
  710. package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
  711. package/lib-commonjs/components/TreeChart/index.js.map +1 -1
  712. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  713. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  714. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  715. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  716. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  717. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  718. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  719. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  720. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  721. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  722. package/lib-commonjs/index.js.map +1 -1
  723. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  724. package/lib-commonjs/types/IEventAnnotation.js.map +1 -1
  725. package/lib-commonjs/types/ILegendDataItem.js.map +1 -1
  726. package/lib-commonjs/types/index.js.map +1 -1
  727. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
  728. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
  729. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  730. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
  731. package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
  732. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  733. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  734. package/lib-commonjs/utilities/colors.js.map +1 -1
  735. package/lib-commonjs/utilities/index.js.map +1 -1
  736. package/lib-commonjs/utilities/locale-util.js.map +1 -1
  737. package/lib-commonjs/utilities/test-data.js.map +1 -1
  738. package/lib-commonjs/utilities/utilities.js.map +1 -1
  739. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  740. package/lib-commonjs/version.js +1 -1
  741. package/lib-commonjs/version.js.map +1 -1
  742. package/package.json +3 -3
@@ -0,0 +1,861 @@
1
+ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../Legends/index", "d3-shape", "@fluentui/react/lib/Utilities", "../../index", "@fluentui/react/lib/Callout", "./eventAnnotation/EventAnnotation", "../../utilities/index"], function (require, exports, tslib_1, React, d3_selection_1, d3_array_1, index_1, d3_shape_1, Utilities_1, index_2, Callout_1, EventAnnotation_1, index_3) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LineChartBase = void 0;
5
+ var getClassNames = (0, Utilities_1.classNamesFunction)();
6
+ var PointSize;
7
+ (function (PointSize) {
8
+ PointSize[PointSize["hoverSize"] = 11] = "hoverSize";
9
+ PointSize[PointSize["invisibleSize"] = 1] = "invisibleSize";
10
+ })(PointSize || (PointSize = {}));
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ var bisect = (0, d3_array_1.bisector)(function (d) { return d.x; }).left;
13
+ var DEFAULT_LINE_STROKE_SIZE = 4;
14
+ // The given shape of a icon must be 2.5 times bigger than line width (known as stroke width)
15
+ var PATH_MULTIPLY_SIZE = 2.5;
16
+ /**
17
+ *
18
+ * @param x units from origin
19
+ * @param y units from origin
20
+ * @param w is the legnth of the each side of a shape
21
+ * @param index index to get the shape path
22
+ */
23
+ var _getPointPath = function (x, y, w, index) {
24
+ var allPointPaths = [
25
+ // circle path
26
+ "M".concat(x - w / 2, " ").concat(y, "\n A").concat(w / 2, " ").concat(w / 2, " 0 1 0 ").concat(x + w / 2, " ").concat(y, "\n M").concat(x - w / 2, " ").concat(y, "\n A ").concat(w / 2, " ").concat(w / 2, " 0 1 1 ").concat(x + w / 2, " ").concat(y, "\n "),
27
+ //square
28
+ "M".concat(x - w / 2, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y + w / 2, "\n L").concat(x - w / 2, " ").concat(y + w / 2, "\n Z"),
29
+ //triangle
30
+ "M".concat(x - w / 2, " ").concat(y - 0.2886 * w, "\n H ").concat(x + w / 2, "\n L").concat(x, " ").concat(y + 0.5774 * w, " Z"),
31
+ //diamond
32
+ "M".concat(x, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y, "\n L").concat(x, " ").concat(y + w / 2, "\n L").concat(x - w / 2, " ").concat(y, "\n Z"),
33
+ //pyramid
34
+ "M".concat(x, " ").concat(y - 0.5774 * w, "\n L").concat(x + w / 2, " ").concat(y + 0.2886 * w, "\n L").concat(x - w / 2, " ").concat(y + 0.2886 * w, " Z"),
35
+ //hexagon
36
+ "M".concat(x - 0.5 * w, " ").concat(y - 0.866 * w, "\n L").concat(x + 0.5 * w, " ").concat(y - 0.866 * w, "\n L").concat(x + w, " ").concat(y, "\n L").concat(x + 0.5 * w, " ").concat(y + 0.866 * w, "\n L").concat(x - 0.5 * w, " ").concat(y + 0.866 * w, "\n L").concat(x - w, " ").concat(y, "\n Z"),
37
+ //pentagon
38
+ "M".concat(x, " ").concat(y - 0.851 * w, "\n L").concat(x + 0.6884 * w, " ").concat(y - 0.2633 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y + 0.6884 * w, "\n L").concat(x - 0.5001 * w, " ").concat(y + 0.6884 * w, "\n L").concat(x - 0.6884 * w, " ").concat(y - 0.2633 * w, "\n Z"),
39
+ //octagon
40
+ "M".concat(x - 0.5001 * w, " ").concat(y - 1.207 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y - 1.207 * w, "\n L").concat(x + 1.207 * w, " ").concat(y - 0.5001 * w, "\n L").concat(x + 1.207 * w, " ").concat(y + 0.5001 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y + 1.207 * w, "\n L").concat(x - 0.5001 * w, " ").concat(y + 1.207 * w, "\n L").concat(x - 1.207 * w, " ").concat(y + 0.5001 * w, "\n L").concat(x - 1.207 * w, " ").concat(y - 0.5001 * w, "\n Z"),
41
+ ];
42
+ return allPointPaths[index];
43
+ };
44
+ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
45
+ tslib_1.__extends(LineChartBase, _super);
46
+ function LineChartBase(props) {
47
+ var _this_1 = _super.call(this, props) || this;
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
+ _this_1._xAxisScale = '';
50
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
+ _this_1._yAxisScale = '';
52
+ _this_1.eventLabelHeight = 36;
53
+ _this_1._isRTL = (0, Utilities_1.getRTL)();
54
+ _this_1._getDomainNRangeValues = function (points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues, shiftX) {
55
+ var domainNRangeValue;
56
+ if (xAxisType === index_3.XAxisTypes.NumericAxis) {
57
+ domainNRangeValue = (0, index_3.domainRangeOfNumericForAreaChart)(points, margins, width, isRTL);
58
+ }
59
+ else if (xAxisType === index_3.XAxisTypes.DateAxis) {
60
+ domainNRangeValue = (0, index_3.domainRangeOfDateForAreaLineVerticalBarChart)(points, margins, width, isRTL, tickValues, chartType, barWidth);
61
+ }
62
+ else {
63
+ domainNRangeValue = { dStartValue: 0, dEndValue: 0, rStartValue: 0, rEndValue: 0 };
64
+ }
65
+ return domainNRangeValue;
66
+ };
67
+ _this_1._injectIndexPropertyInLineChartData = function (lineChartData) {
68
+ var _a;
69
+ var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
70
+ return lineChartData
71
+ ? lineChartData.map(function (item, index) {
72
+ var _a, _b;
73
+ var color;
74
+ // isInverted property is applicable to v8 themes only
75
+ if (typeof item.color === 'undefined') {
76
+ color = (0, index_3.getNextColor)(index, 0, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
77
+ }
78
+ else {
79
+ color = (0, index_3.getColorFromToken)(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
80
+ }
81
+ return tslib_1.__assign(tslib_1.__assign({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
82
+ })
83
+ : [];
84
+ };
85
+ _this_1._getCustomizedCallout = function () {
86
+ return _this_1.props.onRenderCalloutPerStack
87
+ ? _this_1.props.onRenderCalloutPerStack(_this_1.state.stackCalloutProps)
88
+ : _this_1.props.onRenderCalloutPerDataPoint
89
+ ? _this_1.props.onRenderCalloutPerDataPoint(_this_1.state.dataPointCalloutProps)
90
+ : null;
91
+ };
92
+ _this_1._getMargins = function (margins) {
93
+ _this_1.margins = margins;
94
+ };
95
+ _this_1._initializeLineChartData = function (xScale, yScale, containerHeight, containerWidth, xElement) {
96
+ _this_1._xAxisScale = xScale;
97
+ _this_1._yAxisScale = yScale;
98
+ _this_1._renderedColorFillBars = _this_1.props.colorFillBars ? _this_1._createColorFillBars(containerHeight) : [];
99
+ _this_1.lines = _this_1._createLines(xElement, containerHeight);
100
+ };
101
+ _this_1._handleSingleLegendSelectionAction = function (lineChartItem) {
102
+ if (_this_1.state.selectedLegend === lineChartItem.legend) {
103
+ _this_1.setState({ selectedLegend: '' });
104
+ _this_1._handleLegendClick(lineChartItem, null);
105
+ }
106
+ else {
107
+ _this_1.setState({ selectedLegend: lineChartItem.legend });
108
+ _this_1._handleLegendClick(lineChartItem, lineChartItem.legend);
109
+ }
110
+ };
111
+ _this_1._onHoverCardHide = function () {
112
+ _this_1.setState({
113
+ selectedLegendPoints: [],
114
+ selectedColorBarLegend: [],
115
+ isSelectedLegend: false,
116
+ });
117
+ };
118
+ _this_1._closeCallout = function () {
119
+ _this_1.setState({
120
+ isCalloutVisible: false,
121
+ });
122
+ };
123
+ _this_1._getBoxWidthOfShape = function (pointId, pointIndex, isLastPoint) {
124
+ var _a, _b, _c;
125
+ var allowMultipleShapesForPoints = (_a = _this_1.props, _b = _a.allowMultipleShapesForPoints, _b === void 0 ? false : _b), strokeWidth = (_c = _a.strokeWidth, _c === void 0 ? DEFAULT_LINE_STROKE_SIZE : _c);
126
+ var activePoint = _this_1.state.activePoint;
127
+ if (allowMultipleShapesForPoints) {
128
+ if (activePoint === pointId) {
129
+ return PointSize.hoverSize;
130
+ }
131
+ else if (pointIndex === 1 || isLastPoint) {
132
+ return strokeWidth * PATH_MULTIPLY_SIZE;
133
+ }
134
+ else {
135
+ return PointSize.invisibleSize;
136
+ }
137
+ }
138
+ else {
139
+ if (activePoint === pointId) {
140
+ return PointSize.hoverSize;
141
+ }
142
+ else {
143
+ return PointSize.invisibleSize;
144
+ }
145
+ }
146
+ };
147
+ _this_1._getPath = function (xPos, yPos, pointId, pointIndex, isLastPoint, pointOftheLine) {
148
+ var _a;
149
+ var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
150
+ var w = _this_1._getBoxWidthOfShape(pointId, pointIndex, isLastPoint);
151
+ var index = allowMultipleShapesForPoints ? pointOftheLine % Object.keys(index_3.pointTypes).length : 0;
152
+ var widthRatio = index_3.pointTypes[index].widthRatio;
153
+ w = widthRatio > 1 ? w / widthRatio : w;
154
+ return _getPointPath(xPos, yPos, w, index);
155
+ };
156
+ _this_1._getPointFill = function (lineColor, pointId, pointIndex, isLastPoint) {
157
+ var _a, _b;
158
+ var activePoint = _this_1.state.activePoint;
159
+ var theme = (_a = _this_1.props, _a.theme), allowMultipleShapesForPoints = (_b = _a.allowMultipleShapesForPoints, _b === void 0 ? false : _b);
160
+ if (allowMultipleShapesForPoints) {
161
+ if (pointIndex === 1 || isLastPoint) {
162
+ if (activePoint === pointId) {
163
+ return theme.semanticColors.bodyBackground;
164
+ }
165
+ else {
166
+ return lineColor;
167
+ }
168
+ }
169
+ else {
170
+ if (activePoint === pointId) {
171
+ return theme.semanticColors.bodyBackground;
172
+ }
173
+ else {
174
+ return lineColor;
175
+ }
176
+ }
177
+ }
178
+ else {
179
+ if (activePoint === pointId) {
180
+ return theme.semanticColors.bodyBackground;
181
+ }
182
+ else {
183
+ return lineColor;
184
+ }
185
+ }
186
+ };
187
+ _this_1._createColorFillBars = function (containerHeight) {
188
+ var _a;
189
+ var colorFillBars = [];
190
+ if (_this_1.state.isSelectedLegend) {
191
+ _this_1._colorFillBars = _this_1.state.selectedColorBarLegend;
192
+ }
193
+ else {
194
+ _this_1._colorFillBars = _this_1.props.colorFillBars;
195
+ }
196
+ var yMinMaxValues = (0, index_3.findNumericMinMaxOfY)(_this_1._points);
197
+ var FILL_Y_PADDING = 3;
198
+ for (var i = 0; i < _this_1._colorFillBars.length; i++) {
199
+ var colorFillBar = _this_1._colorFillBars[i];
200
+ var colorFillBarId = (0, Utilities_1.getId)(colorFillBar.legend.replace(/\W/g, ''));
201
+ // isInverted property is applicable to v8 themes only
202
+ var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
203
+ if (colorFillBar.applyPattern) {
204
+ // Using a pattern element because CSS was unable to render diagonal stripes for rect elements
205
+ colorFillBars.push(_this_1._getStripePattern(color, i));
206
+ }
207
+ for (var j = 0; j < colorFillBar.data.length; j++) {
208
+ var startX = colorFillBar.data[j].startX;
209
+ var endX = colorFillBar.data[j].endX;
210
+ var opacity = _this_1._legendHighlighted(colorFillBar.legend) || _this_1._noLegendHighlighted() || _this_1.state.isSelectedLegend
211
+ ? _this_1._getColorFillBarOpacity(colorFillBar)
212
+ : 0.1;
213
+ colorFillBars.push(React.createElement("rect", { fill: colorFillBar.applyPattern ? "url(#".concat(_this_1._colorFillBarPatternId, "_").concat(i, ")") : color, fillOpacity: opacity, x: _this_1._isRTL ? _this_1._xAxisScale(endX) : _this_1._xAxisScale(startX), y: _this_1._yAxisScale(yMinMaxValues.endValue) - FILL_Y_PADDING, width: Math.abs(_this_1._xAxisScale(endX) - _this_1._xAxisScale(startX)), height: _this_1._yAxisScale(_this_1.props.yMinValue || 0) - _this_1._yAxisScale(yMinMaxValues.endValue) + FILL_Y_PADDING, key: "".concat(colorFillBarId).concat(j) }));
214
+ }
215
+ }
216
+ return colorFillBars;
217
+ };
218
+ _this_1._getStripePattern = function (color, id) {
219
+ // This describes a tile pattern that resembles diagonal stripes
220
+ // For more information: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
221
+ var stripePath = 'M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8';
222
+ return (React.createElement("pattern", { id: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), width: 16, height: 16, key: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), patternUnits: 'userSpaceOnUse' },
223
+ React.createElement("path", { d: stripePath, stroke: color, strokeWidth: 1.25 })));
224
+ };
225
+ _this_1._checkInGap = function (pointIndex, gaps, currentGapIndex) {
226
+ var gapIndex = currentGapIndex;
227
+ var isInGap = false;
228
+ while (gapIndex < gaps.length && pointIndex > gaps[gapIndex].endIndex) {
229
+ gapIndex++;
230
+ }
231
+ if (gapIndex < gaps.length && pointIndex > gaps[gapIndex].startIndex && pointIndex <= gaps[gapIndex].endIndex) {
232
+ isInGap = true;
233
+ }
234
+ return { isInGap: isInGap, gapIndex: gapIndex };
235
+ };
236
+ _this_1._onMouseOverLargeDataset = function (linenumber, lineHeight, mouseEvent) {
237
+ var _a;
238
+ mouseEvent.persist();
239
+ var data = _this_1.props.data;
240
+ var lineChartData = data.lineChartData;
241
+ // This will get the value of the X when mouse is on the chart
242
+ var xOffset = _this_1._xAxisScale.invert((0, d3_selection_1.pointer)(mouseEvent)[0], document.getElementById(_this_1._rectId));
243
+ var i = bisect(lineChartData[linenumber].data, xOffset);
244
+ var d0 = lineChartData[linenumber].data[i - 1];
245
+ var d1 = lineChartData[linenumber].data[i];
246
+ var axisType = null;
247
+ var xPointToHighlight = null;
248
+ var index = null;
249
+ if (d0 === undefined && d1 !== undefined) {
250
+ xPointToHighlight = d1.x;
251
+ index = i;
252
+ }
253
+ else if (d0 !== undefined && d1 === undefined) {
254
+ xPointToHighlight = d0.x;
255
+ index = i - 1;
256
+ }
257
+ else {
258
+ axisType = (0, index_3.getTypeOfAxis)(lineChartData[linenumber].data[0].x, true);
259
+ var x0 = void 0;
260
+ var point0 = void 0;
261
+ var point1 = void 0;
262
+ switch (axisType) {
263
+ case index_3.XAxisTypes.DateAxis:
264
+ x0 = new Date(xOffset).getTime();
265
+ point0 = d0.x.getTime();
266
+ point1 = d1.x.getTime();
267
+ xPointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
268
+ index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
269
+ break;
270
+ case index_3.XAxisTypes.NumericAxis:
271
+ x0 = xOffset;
272
+ point0 = d0.x;
273
+ point1 = d1.x;
274
+ xPointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
275
+ index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
276
+ break;
277
+ default:
278
+ break;
279
+ }
280
+ }
281
+ var xAxisCalloutData = (_a = lineChartData[linenumber].data[index], _a.xAxisCalloutData), xAxisCalloutAccessibilityData = _a.xAxisCalloutAccessibilityData;
282
+ var formattedDate = xPointToHighlight instanceof Date ? (0, index_3.formatDate)(xPointToHighlight, _this_1.props.useUTC) : xPointToHighlight;
283
+ var modifiedXVal = xPointToHighlight instanceof Date ? xPointToHighlight.getTime() : xPointToHighlight;
284
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
285
+ var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) {
286
+ return element.x === modifiedXVal;
287
+ });
288
+ var pointToHighlight = lineChartData[linenumber].data[index];
289
+ var pointToHighlightUpdated = _this_1.state.nearestCircleToHighlight === null ||
290
+ (_this_1.state.nearestCircleToHighlight !== null &&
291
+ pointToHighlight !== null &&
292
+ (_this_1.state.nearestCircleToHighlight.x !== pointToHighlight.x ||
293
+ _this_1.state.nearestCircleToHighlight.y !== pointToHighlight.y));
294
+ // if no points need to be called out then don't show vertical line and callout card
295
+ if (found && pointToHighlightUpdated) {
296
+ _this_1._uniqueCallOutID = "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber);
297
+ (0, d3_selection_1.select)("#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber))
298
+ .attr('cx', "".concat(_this_1._xAxisScale(pointToHighlight.x)))
299
+ .attr('cy', "".concat(_this_1._yAxisScale(pointToHighlight.y)))
300
+ .attr('visibility', 'visibility');
301
+ (0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
302
+ .attr('transform', function () { return "translate(".concat(_this_1._xAxisScale(pointToHighlight.x), ", ").concat(_this_1._yAxisScale(pointToHighlight.y), ")"); })
303
+ .attr('visibility', 'visibility')
304
+ .attr('y2', "".concat(lineHeight - _this_1._yAxisScale(pointToHighlight.y)));
305
+ _this_1.setState({
306
+ nearestCircleToHighlight: pointToHighlight,
307
+ isCalloutVisible: true,
308
+ refSelected: "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber),
309
+ stackCalloutProps: found,
310
+ YValueHover: found.values,
311
+ dataPointCalloutProps: found,
312
+ hoverXValue: xAxisCalloutData ? xAxisCalloutData : formattedDate,
313
+ xAxisCalloutAccessibilityData: xAxisCalloutAccessibilityData,
314
+ activePoint: '',
315
+ activeLine: linenumber,
316
+ });
317
+ }
318
+ if (!found) {
319
+ _this_1.setState({
320
+ isCalloutVisible: false,
321
+ nearestCircleToHighlight: pointToHighlight,
322
+ activePoint: '',
323
+ activeLine: linenumber,
324
+ });
325
+ }
326
+ };
327
+ _this_1._handleFocus = function (lineId, x, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData) {
328
+ _this_1._uniqueCallOutID = circleId;
329
+ var formattedData = x instanceof Date ? (0, index_3.formatDate)(x, _this_1.props.useUTC) : x;
330
+ var xVal = x instanceof Date ? x.getTime() : x;
331
+ var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
332
+ // if no points need to be called out then don't show vertical line and callout card
333
+ if (found) {
334
+ var _this_2 = _this_1;
335
+ (0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
336
+ .attr('transform', function () { return "translate(".concat(_this_2._xAxisScale(x), ", 0)"); })
337
+ .attr('visibility', 'visibility');
338
+ _this_1._refArray.forEach(function (obj) {
339
+ if (obj.index === lineId) {
340
+ _this_1.setState({
341
+ isCalloutVisible: true,
342
+ refSelected: obj.refElement,
343
+ hoverXValue: xAxisCalloutData ? xAxisCalloutData : '' + formattedData,
344
+ YValueHover: found.values,
345
+ stackCalloutProps: found,
346
+ dataPointCalloutProps: found,
347
+ activePoint: circleId,
348
+ xAxisCalloutAccessibilityData: xAxisCalloutAccessibilityData,
349
+ });
350
+ }
351
+ });
352
+ }
353
+ else {
354
+ _this_1.setState({
355
+ activePoint: circleId,
356
+ });
357
+ }
358
+ };
359
+ _this_1._handleHover = function (x, y, lineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, mouseEvent) {
360
+ mouseEvent.persist();
361
+ var formattedData = x instanceof Date ? (0, index_3.formatDate)(x, _this_1.props.useUTC) : x;
362
+ var xVal = x instanceof Date ? x.getTime() : x;
363
+ var _this = _this_1;
364
+ var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
365
+ // if no points need to be called out then don't show vertical line and callout card
366
+ if (found) {
367
+ (0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
368
+ .attr('transform', function () { return "translate(".concat(_this._xAxisScale(x), ", ").concat(_this._yAxisScale(y), ")"); })
369
+ .attr('visibility', 'visibility')
370
+ .attr('y2', "".concat(lineHeight - _this._yAxisScale(y)));
371
+ if (_this_1._uniqueCallOutID !== circleId) {
372
+ _this_1._uniqueCallOutID = circleId;
373
+ _this_1.setState({
374
+ isCalloutVisible: true,
375
+ refSelected: "#".concat(circleId),
376
+ hoverXValue: xAxisCalloutData ? xAxisCalloutData : '' + formattedData,
377
+ YValueHover: found.values,
378
+ stackCalloutProps: found,
379
+ dataPointCalloutProps: found,
380
+ activePoint: circleId,
381
+ xAxisCalloutAccessibilityData: xAxisCalloutAccessibilityData,
382
+ nearestCircleToHighlight: null,
383
+ activeLine: null,
384
+ });
385
+ }
386
+ }
387
+ else {
388
+ _this_1.setState({
389
+ activePoint: circleId,
390
+ nearestCircleToHighlight: null,
391
+ activeLine: null,
392
+ });
393
+ }
394
+ };
395
+ /**
396
+ * Screen readers announce an element as clickable if the onClick attribute is set.
397
+ * This function sets the attribute only when a click event handler is provided.
398
+ */
399
+ _this_1._getClickHandler = function (func) {
400
+ if (func) {
401
+ return {
402
+ onClick: func,
403
+ };
404
+ }
405
+ return {};
406
+ };
407
+ _this_1._handleMouseOut = function () {
408
+ (0, d3_selection_1.select)("#".concat(_this_1._verticalLine)).attr('visibility', 'hidden');
409
+ };
410
+ _this_1._handleChartMouseLeave = function () {
411
+ _this_1._uniqueCallOutID = null;
412
+ _this_1.setState({
413
+ isCalloutVisible: false,
414
+ activePoint: '',
415
+ activeLine: null,
416
+ });
417
+ };
418
+ _this_1._handleLegendClick = function (lineChartItem, selectedLegend) {
419
+ if (lineChartItem.onLegendClick) {
420
+ lineChartItem.onLegendClick(selectedLegend);
421
+ }
422
+ };
423
+ _this_1._handleMultipleLineLegendSelectionAction = function (selectedLine) {
424
+ var selectedLineIndex = _this_1.state.selectedLegendPoints.reduce(function (acc, line, index) {
425
+ if (acc > -1 || line.legend !== selectedLine.legend) {
426
+ return acc;
427
+ }
428
+ else {
429
+ return index;
430
+ }
431
+ }, -1);
432
+ var selectedLines;
433
+ if (selectedLineIndex === -1) {
434
+ selectedLines = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedLegendPoints, true), [selectedLine], false);
435
+ }
436
+ else {
437
+ selectedLines = _this_1.state.selectedLegendPoints
438
+ .slice(0, selectedLineIndex)
439
+ .concat(_this_1.state.selectedLegendPoints.slice(selectedLineIndex + 1));
440
+ }
441
+ var areAllLineLegendsSelected = _this_1.props.data && selectedLines.length === _this_1.props.data.lineChartData.length;
442
+ if (areAllLineLegendsSelected &&
443
+ ((_this_1.props.colorFillBars && _this_1.props.colorFillBars.length === _this_1.state.selectedColorBarLegend.length) ||
444
+ !_this_1.props.colorFillBars)) {
445
+ // Clear all legends if all legends including color fill bar legends are selected
446
+ // Or clear all legends if all legends are selected and there are no color fill bars
447
+ _this_1._clearMultipleLegendSelections();
448
+ }
449
+ else if (!selectedLines.length && !_this_1.state.selectedColorBarLegend.length) {
450
+ // Clear all legends if no legends including color fill bar legends are selected
451
+ _this_1._clearMultipleLegendSelections();
452
+ }
453
+ else {
454
+ // Otherwise, set state when one or more legends are selected, including color fill bar legends
455
+ _this_1.setState({
456
+ selectedLegendPoints: selectedLines,
457
+ isSelectedLegend: true,
458
+ });
459
+ }
460
+ var selectedLegendTitlesToPass = selectedLines.map(function (line) { return line.legend; });
461
+ _this_1._handleLegendClick(selectedLine, selectedLegendTitlesToPass);
462
+ };
463
+ _this_1._handleMultipleColorFillBarLegendSelectionAction = function (selectedColorFillBar) {
464
+ var selectedColorFillBarIndex = _this_1.state.selectedColorBarLegend.reduce(function (acc, colorFillBar, index) {
465
+ if (acc > -1 || colorFillBar.legend !== selectedColorFillBar.legend) {
466
+ return acc;
467
+ }
468
+ else {
469
+ return index;
470
+ }
471
+ }, -1);
472
+ var selectedColorFillBars;
473
+ if (selectedColorFillBarIndex === -1) {
474
+ selectedColorFillBars = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedColorBarLegend, true), [selectedColorFillBar], false);
475
+ }
476
+ else {
477
+ selectedColorFillBars = _this_1.state.selectedColorBarLegend
478
+ .slice(0, selectedColorFillBarIndex)
479
+ .concat(_this_1.state.selectedColorBarLegend.slice(selectedColorFillBarIndex + 1));
480
+ }
481
+ var areAllColorFillBarLegendsSelected = selectedColorFillBars.length === (_this_1.props.colorFillBars && _this_1.props.colorFillBars.length);
482
+ if (areAllColorFillBarLegendsSelected &&
483
+ ((_this_1.props.data && _this_1.props.data.lineChartData.length === _this_1.state.selectedLegendPoints.length) ||
484
+ !_this_1.props.data)) {
485
+ // Clear all legends if all legends, including line legends, are selected
486
+ // Or clear all legends if all legends are selected and there is no line data
487
+ _this_1._clearMultipleLegendSelections();
488
+ }
489
+ else if (!selectedColorFillBars.length && !_this_1.state.selectedLegendPoints.length) {
490
+ // Clear all legends if no legends are selected, including line legends
491
+ _this_1._clearMultipleLegendSelections();
492
+ }
493
+ else {
494
+ // set state when one or more legends are selected, including line legends
495
+ _this_1.setState({
496
+ selectedColorBarLegend: selectedColorFillBars,
497
+ isSelectedLegend: true,
498
+ });
499
+ }
500
+ var selectedLegendTitlesToPass = selectedColorFillBars.map(function (colorFillBar) { return colorFillBar.legend; });
501
+ _this_1._handleLegendClick(selectedColorFillBar, selectedLegendTitlesToPass);
502
+ };
503
+ _this_1._clearMultipleLegendSelections = function () {
504
+ _this_1.setState({
505
+ selectedColorBarLegend: [],
506
+ selectedLegendPoints: [],
507
+ isSelectedLegend: false,
508
+ });
509
+ };
510
+ /**
511
+ * This function checks if the given legend is highlighted or not.
512
+ * A legend can be highlighted in 2 ways:
513
+ * 1. selection: if the user clicks on it
514
+ * 2. hovering: if there is no selected legend and the user hovers over it
515
+ */
516
+ _this_1._legendHighlighted = function (legend) {
517
+ return (_this_1.state.selectedLegend === legend || (_this_1.state.selectedLegend === '' && _this_1.state.activeLegend === legend));
518
+ };
519
+ /**
520
+ * This function checks if none of the legends is selected or hovered.
521
+ */
522
+ _this_1._noLegendHighlighted = function () {
523
+ return _this_1.state.selectedLegend === '' && _this_1.state.activeLegend === '';
524
+ };
525
+ _this_1._getColorFillBarOpacity = function (colorFillBar) {
526
+ return colorFillBar.applyPattern ? 1 : 0.4;
527
+ };
528
+ _this_1._getAriaLabel = function (lineIndex, pointIndex) {
529
+ var _a;
530
+ var line = _this_1._points[lineIndex];
531
+ var point = line.data[pointIndex];
532
+ var formattedDate = point.x instanceof Date ? (0, index_3.formatDate)(point.x, _this_1.props.useUTC) : point.x;
533
+ var xValue = point.xAxisCalloutData || formattedDate;
534
+ var legend = line.legend;
535
+ var yValue = point.yAxisCalloutData || point.y;
536
+ return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
537
+ };
538
+ _this_1._getChartTitle = function () {
539
+ var _a;
540
+ var chartTitle = (_a = _this_1.props.data, _a.chartTitle), lineChartData = _a.lineChartData;
541
+ return (chartTitle ? "".concat(chartTitle, ". ") : '') + "Line chart with ".concat((lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.length) || 0, " lines. ");
542
+ };
543
+ _this_1.state = {
544
+ hoverXValue: '',
545
+ activeLegend: '',
546
+ YValueHover: [],
547
+ refSelected: '',
548
+ selectedLegend: '',
549
+ isCalloutVisible: false,
550
+ selectedLegendPoints: [],
551
+ selectedColorBarLegend: [],
552
+ isSelectedLegend: false,
553
+ activePoint: '',
554
+ nearestCircleToHighlight: null,
555
+ activeLine: null,
556
+ };
557
+ _this_1._refArray = [];
558
+ _this_1._points = _this_1._injectIndexPropertyInLineChartData(_this_1.props.data.lineChartData);
559
+ _this_1._colorFillBars = [];
560
+ _this_1._calloutPoints = (0, index_3.calloutData)(_this_1._points) || [];
561
+ _this_1._circleId = (0, Utilities_1.getId)('circle');
562
+ _this_1._lineId = (0, Utilities_1.getId)('lineID');
563
+ _this_1._borderId = (0, Utilities_1.getId)('borderID');
564
+ _this_1._verticalLine = (0, Utilities_1.getId)('verticalLine');
565
+ _this_1._colorFillBarPatternId = (0, Utilities_1.getId)('colorFillBarPattern');
566
+ _this_1._tooltipId = (0, Utilities_1.getId)('LineChartTooltipId_');
567
+ _this_1._rectId = (0, Utilities_1.getId)('containerRectLD');
568
+ _this_1._staticHighlightCircle = (0, Utilities_1.getId)('staticHighlightCircle');
569
+ _this_1._createLegendsMemoized = (0, Utilities_1.memoizeFunction)(function (data) { return _this_1._createLegends(data); });
570
+ _this_1._firstRenderOptimization = true;
571
+ _this_1._emptyChartId = (0, Utilities_1.getId)('_LineChart_empty');
572
+ props.eventAnnotationProps &&
573
+ props.eventAnnotationProps.labelHeight &&
574
+ (_this_1.eventLabelHeight = props.eventAnnotationProps.labelHeight);
575
+ return _this_1;
576
+ }
577
+ LineChartBase.prototype.componentDidUpdate = function (prevProps) {
578
+ /** note that height and width are not used to resize or set as dimesions of the chart,
579
+ * fitParentContainer is responisble for setting the height and width or resizing of the svg/chart
580
+ */
581
+ if (prevProps.height !== this.props.height ||
582
+ prevProps.width !== this.props.width ||
583
+ prevProps.data !== this.props.data) {
584
+ this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
585
+ this._calloutPoints = (0, index_3.calloutData)(this._points) || [];
586
+ }
587
+ };
588
+ LineChartBase.prototype.render = function () {
589
+ var _a;
590
+ var _this_1 = this;
591
+ var tickValues = (_a = this.props, _a.tickValues), tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
592
+ this._points = this._injectIndexPropertyInLineChartData(data.lineChartData);
593
+ var isXAxisDateType = (0, index_3.getXAxisType)(this._points);
594
+ var points = this._points;
595
+ if (legendProps && !!legendProps.canSelectMultipleLegends) {
596
+ points = this.state.selectedLegendPoints.length >= 1 ? this.state.selectedLegendPoints : this._points;
597
+ this._calloutPoints = (0, index_3.calloutData)(points);
598
+ }
599
+ var legendBars = null;
600
+ // reduce computation cost by only creating legendBars
601
+ // if when hideLegend is false.
602
+ // NOTE: they are rendered only when hideLegend is false in CartesianChart.
603
+ if (!this.props.hideLegend) {
604
+ legendBars = this._createLegendsMemoized(this._points);
605
+ }
606
+ 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
607
+ ? this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps)
608
+ : undefined, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
609
+ var tickParams = {
610
+ tickValues: tickValues,
611
+ tickFormat: tickFormat,
612
+ };
613
+ return !this._isChartEmpty() ? (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: index_3.ChartTypes.LineChart, isCalloutForStack: true, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, createYAxis: index_3.createNumericYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: index_3.findNumericMinMaxOfY, getGraphData: this._initializeLineChartData, xAxisType: isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis, customizedCallout: this._getCustomizedCallout(), getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: index_3.createStringYAxis, onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization,
614
+ /* eslint-disable react/jsx-no-bind */
615
+ // eslint-disable-next-line react/no-children-prop
616
+ children: function (props) {
617
+ _this_1._xAxisScale = props.xScale;
618
+ _this_1._yAxisScale = props.yScale;
619
+ return (React.createElement(React.Fragment, null,
620
+ React.createElement("g", null,
621
+ React.createElement("line", { x1: 0, y1: 0, x2: 0, y2: props.containerHeight, stroke: '#323130', id: _this_1._verticalLine, visibility: 'hidden', strokeDasharray: '5,5' }),
622
+ _this_1.props.optimizeLargeData ? (React.createElement("rect", { id: _this_1._rectId, width: props.containerWidth, height: props.containerHeight, fill: 'transparent' })) : (React.createElement(React.Fragment, null)),
623
+ React.createElement("g", null,
624
+ _this_1._renderedColorFillBars,
625
+ _this_1.lines),
626
+ eventAnnotationProps && (React.createElement(EventAnnotation_1.EventsAnnotation, tslib_1.__assign({ theme: _this_1.props.theme }, eventAnnotationProps, { scale: props.xScale, chartYTop: _this_1.margins.top + _this_1.eventLabelHeight, chartYBottom: props.containerHeight - 35 }))))));
627
+ } }))) : (React.createElement("div", { id: this._emptyChartId, role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
628
+ };
629
+ LineChartBase.prototype._createLegends = function (data) {
630
+ var _a, _b;
631
+ var _this_1 = this;
632
+ var legendProps = (_a = this.props, _a.legendProps), allowMultipleShapesForPoints = (_b = _a.allowMultipleShapesForPoints, _b === void 0 ? false : _b);
633
+ var isLegendMultiSelectEnabled = !!(legendProps && !!legendProps.canSelectMultipleLegends);
634
+ var legendDataItems = data.map(function (point) {
635
+ var color = point.color;
636
+ // mapping data to the format Legends component needs
637
+ var legend = tslib_1.__assign(tslib_1.__assign({ title: point.legend, color: color, action: function () {
638
+ if (isLegendMultiSelectEnabled) {
639
+ _this_1._handleMultipleLineLegendSelectionAction(point);
640
+ }
641
+ else {
642
+ _this_1._handleSingleLegendSelectionAction(point);
643
+ }
644
+ }, onMouseOutAction: function () {
645
+ _this_1.setState({ activeLegend: '' });
646
+ }, hoverAction: function () {
647
+ _this_1._handleChartMouseLeave();
648
+ _this_1.setState({ activeLegend: point.legend });
649
+ } }, (point.legendShape && {
650
+ shape: point.legendShape,
651
+ })), (allowMultipleShapesForPoints && {
652
+ shape: index_3.Points[point.index % Object.keys(index_3.pointTypes).length],
653
+ }));
654
+ return legend;
655
+ });
656
+ var colorFillBarsLegendDataItems = this.props.colorFillBars
657
+ ? this.props.colorFillBars.map(function (colorFillBar, index) {
658
+ var _a;
659
+ var title = colorFillBar.legend;
660
+ // isInverted property is applicable to v8 themes only
661
+ var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
662
+ var legend = {
663
+ title: title,
664
+ color: color,
665
+ action: function () {
666
+ if (isLegendMultiSelectEnabled) {
667
+ _this_1._handleMultipleColorFillBarLegendSelectionAction(colorFillBar);
668
+ }
669
+ else {
670
+ _this_1._handleSingleLegendSelectionAction(colorFillBar);
671
+ }
672
+ },
673
+ onMouseOutAction: function () {
674
+ _this_1.setState({ activeLegend: '' });
675
+ },
676
+ hoverAction: function () {
677
+ _this_1._handleChartMouseLeave();
678
+ _this_1.setState({ activeLegend: title });
679
+ },
680
+ opacity: _this_1._getColorFillBarOpacity(colorFillBar),
681
+ stripePattern: colorFillBar.applyPattern,
682
+ };
683
+ return legend;
684
+ })
685
+ : [];
686
+ return (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)));
687
+ };
688
+ LineChartBase.prototype._createLines = function (xElement, containerHeight) {
689
+ var _this_1 = this;
690
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
691
+ var lines = [];
692
+ if (this.state.isSelectedLegend) {
693
+ this._points = this.state.selectedLegendPoints;
694
+ }
695
+ else {
696
+ this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
697
+ }
698
+ var _loop_1 = function (i) {
699
+ var _0;
700
+ var linesForLine = [];
701
+ var bordersForLine = [];
702
+ var pointsForLine = [];
703
+ var legendVal = this_1._points[i].legend;
704
+ var lineColor = this_1._points[i].color;
705
+ var activePoint = this_1.state.activePoint;
706
+ var theme = this_1.props.theme;
707
+ var verticaLineHeight = containerHeight - this_1.margins.bottom + 6;
708
+ if (this_1._points[i].data.length === 1) {
709
+ var x1_1 = (_0 = this_1._points[i].data[0], _0.x), y1 = _0.y, xAxisCalloutData_1 = _0.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _0.xAxisCalloutAccessibilityData;
710
+ var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
711
+ var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
712
+ 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.semanticColors.bodyBackground : lineColor, opacity: isLegendSelected ? 1 : 0.1, 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": isLegendSelected, ref: function (e) {
713
+ _this_1._refCallback(e, circleId_1);
714
+ }, 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))));
715
+ }
716
+ var gapIndex = 0;
717
+ var gaps = (_b = (_a = this_1._points[i].gaps) === null || _a === void 0 ? void 0 : _a.sort(function (a, b) { return a.startIndex - b.startIndex; })) !== null && _b !== void 0 ? _b : [];
718
+ // Use path rendering technique for larger datasets to optimize performance.
719
+ if (this_1.props.optimizeLargeData && this_1._points[i].data.length > 1) {
720
+ var line = (0, d3_shape_1.line)()
721
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
722
+ .x(function (d) { return _this_1._xAxisScale(d[0]); })
723
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
724
+ .y(function (d) { return _this_1._yAxisScale(d[1]); })
725
+ .curve(d3_shape_1.curveLinear);
726
+ var lineId = "".concat(this_1._lineId, "_").concat(i);
727
+ var borderId = "".concat(this_1._borderId, "_").concat(i);
728
+ var strokeWidth = ((_c = this_1._points[i].lineOptions) === null || _c === void 0 ? void 0 : _c.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
729
+ var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
730
+ var lineData = [];
731
+ for (var k = 0; k < this_1._points[i].data.length; k++) {
732
+ lineData.push([
733
+ this_1._points[i].data[k].x instanceof Date
734
+ ? this_1._points[i].data[k].x.getTime()
735
+ : this_1._points[i].data[k].x,
736
+ this_1._points[i].data[k].y,
737
+ ]);
738
+ }
739
+ if (isLegendSelected) {
740
+ var lineBorderWidth = ((_d = this_1._points[i].lineOptions) === null || _d === void 0 ? void 0 : _d.lineBorderWidth)
741
+ ? Number.parseFloat(this_1._points[i].lineOptions.lineBorderWidth.toString())
742
+ : 0;
743
+ if (lineBorderWidth > 0) {
744
+ 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.semanticColors.bodyBackground, opacity: 1 }));
745
+ }
746
+ 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 })));
747
+ }
748
+ else {
749
+ linesForLine.push(React.createElement("path", { id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": false, 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 }));
750
+ }
751
+ var isPointHighlighted = this_1.state.activeLine !== null && this_1.state.activeLine === i;
752
+ pointsForLine.push(React.createElement("circle", { id: "".concat(this_1._staticHighlightCircle, "_").concat(i), key: "".concat(this_1._staticHighlightCircle, "_").concat(i), r: 5.5, cx: 0, cy: 0, fill: theme.semanticColors.bodyBackground, strokeWidth: DEFAULT_LINE_STROKE_SIZE, stroke: lineColor, visibility: isPointHighlighted ? 'visibility' : 'hidden', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }));
753
+ }
754
+ else if (!this_1.props.optimizeLargeData) {
755
+ var _loop_2 = function (j) {
756
+ var _1, _2, _3;
757
+ var gapResult = this_1._checkInGap(j, gaps, gapIndex);
758
+ var isInGap = gapResult.isInGap;
759
+ gapIndex = gapResult.gapIndex;
760
+ var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
761
+ var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
762
+ var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
763
+ var x1 = (_1 = this_1._points[i].data[j - 1], _1.x), y1 = _1.y, xAxisCalloutData = _1.xAxisCalloutData, xAxisCalloutAccessibilityData = _1.xAxisCalloutAccessibilityData;
764
+ var x2 = (_2 = this_1._points[i].data[j], _2.x), y2 = _2.y;
765
+ var path = this_1._getPath(this_1._xAxisScale(x1), this_1._yAxisScale(y1), circleId, j, false, this_1._points[i].index);
766
+ var strokeWidth = ((_m = this_1._points[i].lineOptions) === null || _m === void 0 ? void 0 : _m.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
767
+ var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
768
+ var currentPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== circleId;
769
+ pointsForLine.push(React.createElement("path", tslib_1.__assign({ id: circleId, key: circleId, d: path, "data-is-focusable": isLegendSelected, 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) })));
770
+ if (j + 1 === this_1._points[i].data.length) {
771
+ // If this is last point of the line segment.
772
+ var lastCircleId_1 = "".concat(circleId).concat(j, "L");
773
+ var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
774
+ var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
775
+ path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
776
+ var lastCirlceXCallout_1 = (_3 = this_1._points[i].data[j], _3.xAxisCalloutData), lastCirlceXCalloutAccessibilityData_1 = _3.xAxisCalloutAccessibilityData;
777
+ pointsForLine.push(React.createElement(React.Fragment, { key: "".concat(lastCircleId_1, "_container") },
778
+ React.createElement("path", tslib_1.__assign({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": isLegendSelected, 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 () {
779
+ return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
780
+ }, 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) })),
781
+ React.createElement("circle", { id: hiddenHoverCircleId, key: hiddenHoverCircleId, r: 8, cx: this_1._xAxisScale(x2), cy: this_1._yAxisScale(y2), opacity: 0, width: 0, 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, strokeWidth: 0, focusable: false, onBlur: this_1._handleMouseOut })));
782
+ /* eslint-enable react/jsx-no-bind */
783
+ }
784
+ if (isLegendSelected) {
785
+ // don't draw line if it is in a gap
786
+ if (!isInGap) {
787
+ var lineBorderWidth = ((_o = this_1._points[i].lineOptions) === null || _o === void 0 ? void 0 : _o.lineBorderWidth)
788
+ ? Number.parseFloat(this_1._points[i].lineOptions.lineBorderWidth.toString())
789
+ : 0;
790
+ if (lineBorderWidth > 0) {
791
+ 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.semanticColors.bodyBackground, opacity: 1 }));
792
+ }
793
+ 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) {
794
+ _this_1._refCallback(e, lineId);
795
+ }, 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))));
796
+ }
797
+ }
798
+ else {
799
+ if (!isInGap) {
800
+ linesForLine.push(React.createElement("line", { 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, stroke: lineColor, strokeLinecap: (_x = (_w = this_1._points[i].lineOptions) === null || _w === void 0 ? void 0 : _w.strokeLinecap) !== null && _x !== void 0 ? _x : 'round', strokeDasharray: (_y = this_1._points[i].lineOptions) === null || _y === void 0 ? void 0 : _y.strokeDasharray, strokeDashoffset: (_z = this_1._points[i].lineOptions) === null || _z === void 0 ? void 0 : _z.strokeDashoffset, opacity: 0.1 }));
801
+ }
802
+ }
803
+ };
804
+ for (var j = 1; j < this_1._points[i].data.length; j++) {
805
+ _loop_2(j);
806
+ }
807
+ }
808
+ lines.push(React.createElement("g", { key: "line_".concat(i), role: "region", "aria-label": "".concat(legendVal, ", line ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") },
809
+ bordersForLine,
810
+ linesForLine,
811
+ pointsForLine));
812
+ };
813
+ var this_1 = this;
814
+ for (var i = this._points.length - 1; i >= 0; i--) {
815
+ _loop_1(i);
816
+ }
817
+ var classNames = getClassNames(this.props.styles, {
818
+ theme: this.props.theme,
819
+ });
820
+ // Removing un wanted tooltip div from DOM, when prop not provided.
821
+ if (!this.props.showXAxisLablesTooltip) {
822
+ try {
823
+ document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
824
+ // eslint-disable-next-line no-empty
825
+ }
826
+ catch (e) { }
827
+ }
828
+ // Used to display tooltip at x axis labels.
829
+ if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
830
+ var xAxisElement = (0, d3_selection_1.select)(xElement).call(this._xAxisScale);
831
+ try {
832
+ document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
833
+ // eslint-disable-next-line no-empty
834
+ }
835
+ catch (e) { }
836
+ var tooltipProps = {
837
+ tooltipCls: classNames.tooltip,
838
+ id: this._tooltipId,
839
+ xAxis: xAxisElement,
840
+ };
841
+ xAxisElement && (0, index_3.tooltipOfXAxislabels)(tooltipProps);
842
+ }
843
+ return lines;
844
+ };
845
+ LineChartBase.prototype._refCallback = function (element, legendTitle) {
846
+ this._refArray.push({ index: legendTitle, refElement: element });
847
+ };
848
+ LineChartBase.prototype._isChartEmpty = function () {
849
+ return !(this.props.data &&
850
+ this.props.data.lineChartData &&
851
+ this.props.data.lineChartData.length > 0 &&
852
+ this.props.data.lineChartData.filter(function (item) { return item.data.length; }).length > 0);
853
+ };
854
+ LineChartBase.defaultProps = {
855
+ enableReflow: true,
856
+ useUTC: true,
857
+ };
858
+ return LineChartBase;
859
+ }(React.Component));
860
+ });
861
+ //# sourceMappingURL=LineChart.base.js.map