@fluentui/react-charting 5.16.22 → 5.16.23

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