@fluentui/react-charts 9.3.21 → 9.74.3-experimental.esm.20260709-49ee7a20cf.0

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 (767) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/package.json +15 -17
  3. package/dist/index.d.ts +0 -5724
  4. package/lib/AnnotationOnlyChart.js +0 -1
  5. package/lib/AnnotationOnlyChart.js.map +0 -1
  6. package/lib/AreaChart.js +0 -1
  7. package/lib/AreaChart.js.map +0 -1
  8. package/lib/CartesianChart.js +0 -1
  9. package/lib/CartesianChart.js.map +0 -1
  10. package/lib/ChartTable.js +0 -1
  11. package/lib/ChartTable.js.map +0 -1
  12. package/lib/DeclarativeChart.js +0 -1
  13. package/lib/DeclarativeChart.js.map +0 -1
  14. package/lib/DonutChart.js +0 -1
  15. package/lib/DonutChart.js.map +0 -1
  16. package/lib/FunnelChart.js +0 -1
  17. package/lib/FunnelChart.js.map +0 -1
  18. package/lib/GanttChart.js +0 -1
  19. package/lib/GanttChart.js.map +0 -1
  20. package/lib/GaugeChart.js +0 -1
  21. package/lib/GaugeChart.js.map +0 -1
  22. package/lib/GroupedVerticalBarChart.js +0 -1
  23. package/lib/GroupedVerticalBarChart.js.map +0 -1
  24. package/lib/HeatMapChart.js +0 -1
  25. package/lib/HeatMapChart.js.map +0 -1
  26. package/lib/HorizontalBarChart.js +0 -1
  27. package/lib/HorizontalBarChart.js.map +0 -1
  28. package/lib/HorizontalBarChartWithAxis.js +0 -1
  29. package/lib/HorizontalBarChartWithAxis.js.map +0 -1
  30. package/lib/Legends.js +0 -1
  31. package/lib/Legends.js.map +0 -1
  32. package/lib/LineChart.js +0 -1
  33. package/lib/LineChart.js.map +0 -1
  34. package/lib/PolarChart.js +0 -1
  35. package/lib/PolarChart.js.map +0 -1
  36. package/lib/Popover.js +0 -1
  37. package/lib/Popover.js.map +0 -1
  38. package/lib/ResponsiveContainer.js +0 -1
  39. package/lib/ResponsiveContainer.js.map +0 -1
  40. package/lib/SankeyChart.js +0 -1
  41. package/lib/SankeyChart.js.map +0 -1
  42. package/lib/ScatterChart.js +0 -1
  43. package/lib/ScatterChart.js.map +0 -1
  44. package/lib/Sparkline.js +0 -1
  45. package/lib/Sparkline.js.map +0 -1
  46. package/lib/VegaDeclarativeChart.js +0 -1
  47. package/lib/VegaDeclarativeChart.js.map +0 -1
  48. package/lib/VerticalBarChart.js +0 -1
  49. package/lib/VerticalBarChart.js.map +0 -1
  50. package/lib/VerticalStackedBarChart.js +0 -1
  51. package/lib/VerticalStackedBarChart.js.map +0 -1
  52. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +0 -196
  53. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +0 -1
  54. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +0 -3
  55. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +0 -1
  56. package/lib/components/AnnotationOnlyChart/index.js +0 -2
  57. package/lib/components/AnnotationOnlyChart/index.js.map +0 -1
  58. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +0 -33
  59. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
  60. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +0 -24
  61. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +0 -1
  62. package/lib/components/AreaChart/AreaChart.js +0 -932
  63. package/lib/components/AreaChart/AreaChart.js.map +0 -1
  64. package/lib/components/AreaChart/AreaChart.types.js +0 -4
  65. package/lib/components/AreaChart/AreaChart.types.js.map +0 -1
  66. package/lib/components/AreaChart/index.js +0 -3
  67. package/lib/components/AreaChart/index.js.map +0 -1
  68. package/lib/components/AreaChart/useAreaChartStyles.styles.js +0 -63
  69. package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
  70. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +0 -33
  71. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +0 -1
  72. package/lib/components/ChartTable/ChartTable.js +0 -160
  73. package/lib/components/ChartTable/ChartTable.js.map +0 -1
  74. package/lib/components/ChartTable/ChartTable.types.js +0 -4
  75. package/lib/components/ChartTable/ChartTable.types.js.map +0 -1
  76. package/lib/components/ChartTable/index.js +0 -3
  77. package/lib/components/ChartTable/index.js.map +0 -1
  78. package/lib/components/ChartTable/useChartTableStyles.styles.js +0 -136
  79. package/lib/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
  80. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +0 -68
  81. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +0 -1
  82. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +0 -659
  83. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +0 -1
  84. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +0 -1
  85. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +0 -1
  86. package/lib/components/CommonComponents/Annotations/index.js +0 -2
  87. package/lib/components/CommonComponents/Annotations/index.js.map +0 -1
  88. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +0 -223
  89. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
  90. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +0 -139
  91. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +0 -1
  92. package/lib/components/CommonComponents/CartesianChart.js +0 -665
  93. package/lib/components/CommonComponents/CartesianChart.js.map +0 -1
  94. package/lib/components/CommonComponents/CartesianChart.types.js +0 -2
  95. package/lib/components/CommonComponents/CartesianChart.types.js.map +0 -1
  96. package/lib/components/CommonComponents/ChartPopover.js +0 -197
  97. package/lib/components/CommonComponents/ChartPopover.js.map +0 -1
  98. package/lib/components/CommonComponents/ChartPopover.types.js +0 -1
  99. package/lib/components/CommonComponents/ChartPopover.types.js.map +0 -1
  100. package/lib/components/CommonComponents/index.js +0 -6
  101. package/lib/components/CommonComponents/index.js.map +0 -1
  102. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +0 -189
  103. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
  104. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +0 -131
  105. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +0 -1
  106. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +0 -171
  107. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
  108. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +0 -127
  109. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +0 -1
  110. package/lib/components/DeclarativeChart/DeclarativeChart.js +0 -397
  111. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +0 -1
  112. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +0 -163
  113. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +0 -1
  114. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -3490
  115. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +0 -1
  116. package/lib/components/DeclarativeChart/index.js +0 -1
  117. package/lib/components/DeclarativeChart/index.js.map +0 -1
  118. package/lib/components/DonutChart/Arc/Arc.js +0 -118
  119. package/lib/components/DonutChart/Arc/Arc.js.map +0 -1
  120. package/lib/components/DonutChart/Arc/Arc.types.js +0 -1
  121. package/lib/components/DonutChart/Arc/Arc.types.js.map +0 -1
  122. package/lib/components/DonutChart/Arc/index.js +0 -2
  123. package/lib/components/DonutChart/Arc/index.js.map +0 -1
  124. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +0 -80
  125. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
  126. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +0 -49
  127. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +0 -1
  128. package/lib/components/DonutChart/DonutChart.js +0 -349
  129. package/lib/components/DonutChart/DonutChart.js.map +0 -1
  130. package/lib/components/DonutChart/DonutChart.types.js +0 -4
  131. package/lib/components/DonutChart/DonutChart.types.js.map +0 -1
  132. package/lib/components/DonutChart/Pie/Pie.js +0 -72
  133. package/lib/components/DonutChart/Pie/Pie.js.map +0 -1
  134. package/lib/components/DonutChart/Pie/Pie.types.js +0 -1
  135. package/lib/components/DonutChart/Pie/Pie.types.js.map +0 -1
  136. package/lib/components/DonutChart/Pie/index.js +0 -2
  137. package/lib/components/DonutChart/Pie/index.js.map +0 -1
  138. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +0 -41
  139. package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
  140. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js +0 -30
  141. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +0 -1
  142. package/lib/components/DonutChart/index.js +0 -3
  143. package/lib/components/DonutChart/index.js.map +0 -1
  144. package/lib/components/DonutChart/useDonutChartStyles.styles.js +0 -98
  145. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
  146. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +0 -62
  147. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +0 -1
  148. package/lib/components/FunnelChart/FunnelChart.js +0 -401
  149. package/lib/components/FunnelChart/FunnelChart.js.map +0 -1
  150. package/lib/components/FunnelChart/FunnelChart.types.js +0 -4
  151. package/lib/components/FunnelChart/FunnelChart.types.js.map +0 -1
  152. package/lib/components/FunnelChart/funnelGeometry.js +0 -219
  153. package/lib/components/FunnelChart/funnelGeometry.js.map +0 -1
  154. package/lib/components/FunnelChart/index.js +0 -2
  155. package/lib/components/FunnelChart/index.js.map +0 -1
  156. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +0 -83
  157. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
  158. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +0 -65
  159. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +0 -1
  160. package/lib/components/GanttChart/GanttChart.js +0 -535
  161. package/lib/components/GanttChart/GanttChart.js.map +0 -1
  162. package/lib/components/GanttChart/GanttChart.types.js +0 -4
  163. package/lib/components/GanttChart/GanttChart.types.js.map +0 -1
  164. package/lib/components/GanttChart/index.js +0 -2
  165. package/lib/components/GanttChart/index.js.map +0 -1
  166. package/lib/components/GanttChart/useGanttChartStyles.styles.js +0 -27
  167. package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +0 -1
  168. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +0 -26
  169. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +0 -1
  170. package/lib/components/GaugeChart/GaugeChart.js +0 -568
  171. package/lib/components/GaugeChart/GaugeChart.js.map +0 -1
  172. package/lib/components/GaugeChart/GaugeChart.types.js +0 -4
  173. package/lib/components/GaugeChart/GaugeChart.types.js.map +0 -1
  174. package/lib/components/GaugeChart/index.js +0 -3
  175. package/lib/components/GaugeChart/index.js.map +0 -1
  176. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +0 -197
  177. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
  178. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +0 -149
  179. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +0 -1
  180. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -813
  181. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
  182. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -4
  183. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
  184. package/lib/components/GroupedVerticalBarChart/index.js +0 -3
  185. package/lib/components/GroupedVerticalBarChart/index.js.map +0 -1
  186. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -77
  187. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
  188. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +0 -40
  189. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +0 -1
  190. package/lib/components/HeatMapChart/HeatMapChart.js +0 -677
  191. package/lib/components/HeatMapChart/HeatMapChart.js.map +0 -1
  192. package/lib/components/HeatMapChart/HeatMapChart.types.js +0 -4
  193. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
  194. package/lib/components/HeatMapChart/index.js +0 -3
  195. package/lib/components/HeatMapChart/index.js.map +0 -1
  196. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -48
  197. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
  198. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +0 -42
  199. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +0 -1
  200. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +0 -411
  201. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
  202. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -7
  203. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
  204. package/lib/components/HorizontalBarChart/index.js +0 -3
  205. package/lib/components/HorizontalBarChart/index.js.map +0 -1
  206. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +0 -175
  207. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
  208. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +0 -125
  209. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +0 -1
  210. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -720
  211. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
  212. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -4
  213. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
  214. package/lib/components/HorizontalBarChartWithAxis/index.js +0 -3
  215. package/lib/components/HorizontalBarChartWithAxis/index.js.map +0 -1
  216. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -62
  217. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
  218. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +0 -54
  219. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +0 -1
  220. package/lib/components/Legends/Legends.js +0 -323
  221. package/lib/components/Legends/Legends.js.map +0 -1
  222. package/lib/components/Legends/Legends.types.js +0 -3
  223. package/lib/components/Legends/Legends.types.js.map +0 -1
  224. package/lib/components/Legends/OverflowMenu.js +0 -33
  225. package/lib/components/Legends/OverflowMenu.js.map +0 -1
  226. package/lib/components/Legends/index.js +0 -3
  227. package/lib/components/Legends/index.js.map +0 -1
  228. package/lib/components/Legends/shape.js +0 -36
  229. package/lib/components/Legends/shape.js.map +0 -1
  230. package/lib/components/Legends/useLegendsStyles.styles.js +0 -262
  231. package/lib/components/Legends/useLegendsStyles.styles.js.map +0 -1
  232. package/lib/components/Legends/useLegendsStyles.styles.raw.js +0 -142
  233. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +0 -1
  234. package/lib/components/LineChart/LineChart.js +0 -1332
  235. package/lib/components/LineChart/LineChart.js.map +0 -1
  236. package/lib/components/LineChart/LineChart.types.js +0 -3
  237. package/lib/components/LineChart/LineChart.types.js.map +0 -1
  238. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +0 -118
  239. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
  240. package/lib/components/LineChart/eventAnnotation/LabelLink.js +0 -59
  241. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
  242. package/lib/components/LineChart/eventAnnotation/Textbox.js +0 -42
  243. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
  244. package/lib/components/LineChart/index.js +0 -4
  245. package/lib/components/LineChart/index.js.map +0 -1
  246. package/lib/components/LineChart/useLineChartStyles.styles.js +0 -93
  247. package/lib/components/LineChart/useLineChartStyles.styles.js.map +0 -1
  248. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +0 -50
  249. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +0 -1
  250. package/lib/components/PolarChart/PolarChart.js +0 -577
  251. package/lib/components/PolarChart/PolarChart.js.map +0 -1
  252. package/lib/components/PolarChart/PolarChart.types.js +0 -4
  253. package/lib/components/PolarChart/PolarChart.types.js.map +0 -1
  254. package/lib/components/PolarChart/PolarChart.utils.js +0 -174
  255. package/lib/components/PolarChart/PolarChart.utils.js.map +0 -1
  256. package/lib/components/PolarChart/index.js +0 -2
  257. package/lib/components/PolarChart/index.js.map +0 -1
  258. package/lib/components/PolarChart/usePolarChartStyles.styles.js +0 -72
  259. package/lib/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
  260. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js +0 -61
  261. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +0 -1
  262. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +0 -99
  263. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +0 -1
  264. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +0 -4
  265. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +0 -1
  266. package/lib/components/ResponsiveContainer/index.js +0 -3
  267. package/lib/components/ResponsiveContainer/index.js.map +0 -1
  268. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +0 -30
  269. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
  270. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +0 -29
  271. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +0 -1
  272. package/lib/components/ResponsiveContainer/withResponsiveContainer.js +0 -20
  273. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +0 -1
  274. package/lib/components/SankeyChart/SankeyChart.js +0 -1026
  275. package/lib/components/SankeyChart/SankeyChart.js.map +0 -1
  276. package/lib/components/SankeyChart/SankeyChart.types.js +0 -3
  277. package/lib/components/SankeyChart/SankeyChart.types.js.map +0 -1
  278. package/lib/components/SankeyChart/index.js +0 -3
  279. package/lib/components/SankeyChart/index.js.map +0 -1
  280. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +0 -123
  281. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
  282. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +0 -79
  283. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +0 -1
  284. package/lib/components/ScatterChart/ScatterChart.js +0 -544
  285. package/lib/components/ScatterChart/ScatterChart.js.map +0 -1
  286. package/lib/components/ScatterChart/ScatterChart.types.js +0 -4
  287. package/lib/components/ScatterChart/ScatterChart.types.js.map +0 -1
  288. package/lib/components/ScatterChart/index.js +0 -3
  289. package/lib/components/ScatterChart/index.js.map +0 -1
  290. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +0 -84
  291. package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
  292. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +0 -41
  293. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +0 -1
  294. package/lib/components/Sparkline/Sparkline.js +0 -123
  295. package/lib/components/Sparkline/Sparkline.js.map +0 -1
  296. package/lib/components/Sparkline/Sparkline.types.js +0 -4
  297. package/lib/components/Sparkline/Sparkline.types.js.map +0 -1
  298. package/lib/components/Sparkline/index.js +0 -3
  299. package/lib/components/Sparkline/index.js.map +0 -1
  300. package/lib/components/Sparkline/useSparklineStyles.styles.js +0 -40
  301. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
  302. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +0 -31
  303. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +0 -1
  304. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +0 -405
  305. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +0 -1
  306. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +0 -20
  307. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +0 -1
  308. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +0 -415
  309. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +0 -1
  310. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +0 -537
  311. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +0 -1
  312. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +0 -3279
  313. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +0 -1
  314. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js +0 -28
  315. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +0 -1
  316. package/lib/components/VegaDeclarativeChart/index.js +0 -1
  317. package/lib/components/VegaDeclarativeChart/index.js.map +0 -1
  318. package/lib/components/VerticalBarChart/VerticalBarChart.js +0 -930
  319. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  320. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +0 -4
  321. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
  322. package/lib/components/VerticalBarChart/index.js +0 -3
  323. package/lib/components/VerticalBarChart/index.js.map +0 -1
  324. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +0 -86
  325. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
  326. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +0 -48
  327. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +0 -1
  328. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -1077
  329. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
  330. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -4
  331. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
  332. package/lib/components/VerticalStackedBarChart/index.js +0 -3
  333. package/lib/components/VerticalStackedBarChart/index.js.map +0 -1
  334. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +0 -74
  335. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
  336. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +0 -38
  337. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +0 -1
  338. package/lib/index.js +0 -26
  339. package/lib/index.js.map +0 -1
  340. package/lib/types/ChartAnnotation.js +0 -1
  341. package/lib/types/ChartAnnotation.js.map +0 -1
  342. package/lib/types/DataPoint.js +0 -3
  343. package/lib/types/DataPoint.js.map +0 -1
  344. package/lib/types/EventAnnotation.js +0 -1
  345. package/lib/types/EventAnnotation.js.map +0 -1
  346. package/lib/types/LegendDataItem.js +0 -1
  347. package/lib/types/LegendDataItem.js.map +0 -1
  348. package/lib/types/index.js +0 -3
  349. package/lib/types/index.js.map +0 -1
  350. package/lib/utilities/ChartTitle.js +0 -45
  351. package/lib/utilities/ChartTitle.js.map +0 -1
  352. package/lib/utilities/Common.styles.js +0 -117
  353. package/lib/utilities/Common.styles.js.map +0 -1
  354. package/lib/utilities/Common.styles.raw.js +0 -115
  355. package/lib/utilities/Common.styles.raw.js.map +0 -1
  356. package/lib/utilities/FocusableTooltipText.js +0 -65
  357. package/lib/utilities/FocusableTooltipText.js.map +0 -1
  358. package/lib/utilities/KeyCodes.js +0 -11
  359. package/lib/utilities/KeyCodes.js.map +0 -1
  360. package/lib/utilities/SVGTooltipText.js +0 -179
  361. package/lib/utilities/SVGTooltipText.js.map +0 -1
  362. package/lib/utilities/async-utils.js +0 -380
  363. package/lib/utilities/async-utils.js.map +0 -1
  364. package/lib/utilities/colors.js +0 -281
  365. package/lib/utilities/colors.js.map +0 -1
  366. package/lib/utilities/getWindow.js +0 -25
  367. package/lib/utilities/getWindow.js.map +0 -1
  368. package/lib/utilities/hooks.js +0 -34
  369. package/lib/utilities/hooks.js.map +0 -1
  370. package/lib/utilities/image-export-utils.js +0 -405
  371. package/lib/utilities/image-export-utils.js.map +0 -1
  372. package/lib/utilities/index.js +0 -5
  373. package/lib/utilities/index.js.map +0 -1
  374. package/lib/utilities/overflow-utils.js +0 -27
  375. package/lib/utilities/overflow-utils.js.map +0 -1
  376. package/lib/utilities/scatterpolar-utils.js +0 -52
  377. package/lib/utilities/scatterpolar-utils.js.map +0 -1
  378. package/lib/utilities/string.js +0 -32
  379. package/lib/utilities/string.js.map +0 -1
  380. package/lib/utilities/test-data.js +0 -565
  381. package/lib/utilities/test-data.js.map +0 -1
  382. package/lib/utilities/utilities.js +0 -1990
  383. package/lib/utilities/utilities.js.map +0 -1
  384. package/lib/utilities/vbc-utils.js +0 -51
  385. package/lib/utilities/vbc-utils.js.map +0 -1
  386. package/lib-commonjs/AnnotationOnlyChart.js +0 -6
  387. package/lib-commonjs/AnnotationOnlyChart.js.map +0 -1
  388. package/lib-commonjs/AreaChart.js +0 -6
  389. package/lib-commonjs/AreaChart.js.map +0 -1
  390. package/lib-commonjs/CartesianChart.js +0 -6
  391. package/lib-commonjs/CartesianChart.js.map +0 -1
  392. package/lib-commonjs/ChartTable.js +0 -6
  393. package/lib-commonjs/ChartTable.js.map +0 -1
  394. package/lib-commonjs/DeclarativeChart.js +0 -6
  395. package/lib-commonjs/DeclarativeChart.js.map +0 -1
  396. package/lib-commonjs/DonutChart.js +0 -6
  397. package/lib-commonjs/DonutChart.js.map +0 -1
  398. package/lib-commonjs/FunnelChart.js +0 -6
  399. package/lib-commonjs/FunnelChart.js.map +0 -1
  400. package/lib-commonjs/GanttChart.js +0 -6
  401. package/lib-commonjs/GanttChart.js.map +0 -1
  402. package/lib-commonjs/GaugeChart.js +0 -6
  403. package/lib-commonjs/GaugeChart.js.map +0 -1
  404. package/lib-commonjs/GroupedVerticalBarChart.js +0 -6
  405. package/lib-commonjs/GroupedVerticalBarChart.js.map +0 -1
  406. package/lib-commonjs/HeatMapChart.js +0 -6
  407. package/lib-commonjs/HeatMapChart.js.map +0 -1
  408. package/lib-commonjs/HorizontalBarChart.js +0 -6
  409. package/lib-commonjs/HorizontalBarChart.js.map +0 -1
  410. package/lib-commonjs/HorizontalBarChartWithAxis.js +0 -6
  411. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +0 -1
  412. package/lib-commonjs/Legends.js +0 -6
  413. package/lib-commonjs/Legends.js.map +0 -1
  414. package/lib-commonjs/LineChart.js +0 -6
  415. package/lib-commonjs/LineChart.js.map +0 -1
  416. package/lib-commonjs/PolarChart.js +0 -6
  417. package/lib-commonjs/PolarChart.js.map +0 -1
  418. package/lib-commonjs/Popover.js +0 -6
  419. package/lib-commonjs/Popover.js.map +0 -1
  420. package/lib-commonjs/ResponsiveContainer.js +0 -6
  421. package/lib-commonjs/ResponsiveContainer.js.map +0 -1
  422. package/lib-commonjs/SankeyChart.js +0 -6
  423. package/lib-commonjs/SankeyChart.js.map +0 -1
  424. package/lib-commonjs/ScatterChart.js +0 -6
  425. package/lib-commonjs/ScatterChart.js.map +0 -1
  426. package/lib-commonjs/Sparkline.js +0 -6
  427. package/lib-commonjs/Sparkline.js.map +0 -1
  428. package/lib-commonjs/VegaDeclarativeChart.js +0 -6
  429. package/lib-commonjs/VegaDeclarativeChart.js.map +0 -1
  430. package/lib-commonjs/VerticalBarChart.js +0 -6
  431. package/lib-commonjs/VerticalBarChart.js.map +0 -1
  432. package/lib-commonjs/VerticalStackedBarChart.js +0 -6
  433. package/lib-commonjs/VerticalStackedBarChart.js.map +0 -1
  434. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +0 -207
  435. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +0 -1
  436. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +0 -6
  437. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +0 -1
  438. package/lib-commonjs/components/AnnotationOnlyChart/index.js +0 -7
  439. package/lib-commonjs/components/AnnotationOnlyChart/index.js.map +0 -1
  440. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +0 -57
  441. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
  442. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +0 -34
  443. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +0 -1
  444. package/lib-commonjs/components/AreaChart/AreaChart.js +0 -938
  445. package/lib-commonjs/components/AreaChart/AreaChart.js.map +0 -1
  446. package/lib-commonjs/components/AreaChart/AreaChart.types.js +0 -7
  447. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +0 -1
  448. package/lib-commonjs/components/AreaChart/index.js +0 -8
  449. package/lib-commonjs/components/AreaChart/index.js.map +0 -1
  450. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +0 -96
  451. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
  452. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +0 -49
  453. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +0 -1
  454. package/lib-commonjs/components/ChartTable/ChartTable.js +0 -171
  455. package/lib-commonjs/components/ChartTable/ChartTable.js.map +0 -1
  456. package/lib-commonjs/components/ChartTable/ChartTable.types.js +0 -7
  457. package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +0 -1
  458. package/lib-commonjs/components/ChartTable/index.js +0 -8
  459. package/lib-commonjs/components/ChartTable/index.js.map +0 -1
  460. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +0 -200
  461. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
  462. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +0 -82
  463. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +0 -1
  464. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +0 -670
  465. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +0 -1
  466. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +0 -4
  467. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +0 -1
  468. package/lib-commonjs/components/CommonComponents/Annotations/index.js +0 -7
  469. package/lib-commonjs/components/CommonComponents/Annotations/index.js.map +0 -1
  470. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +0 -325
  471. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
  472. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +0 -174
  473. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +0 -1
  474. package/lib-commonjs/components/CommonComponents/CartesianChart.js +0 -673
  475. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +0 -1
  476. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +0 -5
  477. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +0 -1
  478. package/lib-commonjs/components/CommonComponents/ChartPopover.js +0 -207
  479. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +0 -1
  480. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +0 -4
  481. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +0 -1
  482. package/lib-commonjs/components/CommonComponents/index.js +0 -11
  483. package/lib-commonjs/components/CommonComponents/index.js.map +0 -1
  484. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +0 -268
  485. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
  486. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +0 -144
  487. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +0 -1
  488. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +0 -238
  489. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
  490. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +0 -141
  491. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +0 -1
  492. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +0 -400
  493. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +0 -1
  494. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +0 -195
  495. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +0 -1
  496. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -3577
  497. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +0 -1
  498. package/lib-commonjs/components/DeclarativeChart/index.js +0 -6
  499. package/lib-commonjs/components/DeclarativeChart/index.js.map +0 -1
  500. package/lib-commonjs/components/DonutChart/Arc/Arc.js +0 -125
  501. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +0 -1
  502. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +0 -4
  503. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +0 -1
  504. package/lib-commonjs/components/DonutChart/Arc/index.js +0 -7
  505. package/lib-commonjs/components/DonutChart/Arc/index.js.map +0 -1
  506. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +0 -110
  507. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
  508. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js +0 -63
  509. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +0 -1
  510. package/lib-commonjs/components/DonutChart/DonutChart.js +0 -356
  511. package/lib-commonjs/components/DonutChart/DonutChart.js.map +0 -1
  512. package/lib-commonjs/components/DonutChart/DonutChart.types.js +0 -7
  513. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +0 -1
  514. package/lib-commonjs/components/DonutChart/Pie/Pie.js +0 -79
  515. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +0 -1
  516. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +0 -4
  517. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +0 -1
  518. package/lib-commonjs/components/DonutChart/Pie/index.js +0 -7
  519. package/lib-commonjs/components/DonutChart/Pie/index.js.map +0 -1
  520. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +0 -55
  521. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
  522. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js +0 -44
  523. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +0 -1
  524. package/lib-commonjs/components/DonutChart/index.js +0 -8
  525. package/lib-commonjs/components/DonutChart/index.js.map +0 -1
  526. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +0 -145
  527. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
  528. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +0 -76
  529. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +0 -1
  530. package/lib-commonjs/components/FunnelChart/FunnelChart.js +0 -412
  531. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +0 -1
  532. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js +0 -7
  533. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +0 -1
  534. package/lib-commonjs/components/FunnelChart/funnelGeometry.js +0 -246
  535. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +0 -1
  536. package/lib-commonjs/components/FunnelChart/index.js +0 -7
  537. package/lib-commonjs/components/FunnelChart/index.js.map +0 -1
  538. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +0 -118
  539. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
  540. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +0 -79
  541. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +0 -1
  542. package/lib-commonjs/components/GanttChart/GanttChart.js +0 -546
  543. package/lib-commonjs/components/GanttChart/GanttChart.js.map +0 -1
  544. package/lib-commonjs/components/GanttChart/GanttChart.types.js +0 -7
  545. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +0 -1
  546. package/lib-commonjs/components/GanttChart/index.js +0 -7
  547. package/lib-commonjs/components/GanttChart/index.js.map +0 -1
  548. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +0 -42
  549. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +0 -1
  550. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +0 -42
  551. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +0 -1
  552. package/lib-commonjs/components/GaugeChart/GaugeChart.js +0 -597
  553. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +0 -1
  554. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +0 -7
  555. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +0 -1
  556. package/lib-commonjs/components/GaugeChart/index.js +0 -8
  557. package/lib-commonjs/components/GaugeChart/index.js.map +0 -1
  558. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +0 -281
  559. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
  560. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +0 -167
  561. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +0 -1
  562. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -818
  563. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
  564. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -7
  565. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
  566. package/lib-commonjs/components/GroupedVerticalBarChart/index.js +0 -8
  567. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +0 -1
  568. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -116
  569. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
  570. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +0 -56
  571. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +0 -1
  572. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +0 -688
  573. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +0 -1
  574. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +0 -7
  575. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
  576. package/lib-commonjs/components/HeatMapChart/index.js +0 -8
  577. package/lib-commonjs/components/HeatMapChart/index.js.map +0 -1
  578. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -71
  579. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
  580. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +0 -60
  581. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +0 -1
  582. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +0 -417
  583. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
  584. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -17
  585. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
  586. package/lib-commonjs/components/HorizontalBarChart/index.js +0 -8
  587. package/lib-commonjs/components/HorizontalBarChart/index.js.map +0 -1
  588. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +0 -264
  589. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
  590. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +0 -139
  591. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +0 -1
  592. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -726
  593. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
  594. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -7
  595. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
  596. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +0 -8
  597. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +0 -1
  598. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -86
  599. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
  600. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +0 -70
  601. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +0 -1
  602. package/lib-commonjs/components/Legends/Legends.js +0 -333
  603. package/lib-commonjs/components/Legends/Legends.js.map +0 -1
  604. package/lib-commonjs/components/Legends/Legends.types.js +0 -6
  605. package/lib-commonjs/components/Legends/Legends.types.js.map +0 -1
  606. package/lib-commonjs/components/Legends/OverflowMenu.js +0 -44
  607. package/lib-commonjs/components/Legends/OverflowMenu.js.map +0 -1
  608. package/lib-commonjs/components/Legends/index.js +0 -8
  609. package/lib-commonjs/components/Legends/index.js.map +0 -1
  610. package/lib-commonjs/components/Legends/shape.js +0 -47
  611. package/lib-commonjs/components/Legends/shape.js.map +0 -1
  612. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +0 -456
  613. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +0 -1
  614. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js +0 -178
  615. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +0 -1
  616. package/lib-commonjs/components/LineChart/LineChart.js +0 -1337
  617. package/lib-commonjs/components/LineChart/LineChart.js.map +0 -1
  618. package/lib-commonjs/components/LineChart/LineChart.types.js +0 -6
  619. package/lib-commonjs/components/LineChart/LineChart.types.js.map +0 -1
  620. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +0 -129
  621. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
  622. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +0 -70
  623. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
  624. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +0 -53
  625. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
  626. package/lib-commonjs/components/LineChart/index.js +0 -9
  627. package/lib-commonjs/components/LineChart/index.js.map +0 -1
  628. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +0 -132
  629. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +0 -1
  630. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +0 -63
  631. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +0 -1
  632. package/lib-commonjs/components/PolarChart/PolarChart.js +0 -587
  633. package/lib-commonjs/components/PolarChart/PolarChart.js.map +0 -1
  634. package/lib-commonjs/components/PolarChart/PolarChart.types.js +0 -7
  635. package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +0 -1
  636. package/lib-commonjs/components/PolarChart/PolarChart.utils.js +0 -204
  637. package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +0 -1
  638. package/lib-commonjs/components/PolarChart/index.js +0 -7
  639. package/lib-commonjs/components/PolarChart/index.js.map +0 -1
  640. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js +0 -107
  641. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
  642. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js +0 -75
  643. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js.map +0 -1
  644. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +0 -107
  645. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +0 -1
  646. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +0 -7
  647. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +0 -1
  648. package/lib-commonjs/components/ResponsiveContainer/index.js +0 -8
  649. package/lib-commonjs/components/ResponsiveContainer/index.js.map +0 -1
  650. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +0 -50
  651. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
  652. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +0 -47
  653. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +0 -1
  654. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js +0 -28
  655. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +0 -1
  656. package/lib-commonjs/components/SankeyChart/SankeyChart.js +0 -1042
  657. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +0 -1
  658. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +0 -6
  659. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +0 -1
  660. package/lib-commonjs/components/SankeyChart/index.js +0 -8
  661. package/lib-commonjs/components/SankeyChart/index.js.map +0 -1
  662. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +0 -202
  663. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
  664. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +0 -97
  665. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +0 -1
  666. package/lib-commonjs/components/ScatterChart/ScatterChart.js +0 -550
  667. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +0 -1
  668. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +0 -7
  669. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +0 -1
  670. package/lib-commonjs/components/ScatterChart/index.js +0 -8
  671. package/lib-commonjs/components/ScatterChart/index.js.map +0 -1
  672. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +0 -120
  673. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
  674. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +0 -55
  675. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +0 -1
  676. package/lib-commonjs/components/Sparkline/Sparkline.js +0 -129
  677. package/lib-commonjs/components/Sparkline/Sparkline.js.map +0 -1
  678. package/lib-commonjs/components/Sparkline/Sparkline.types.js +0 -7
  679. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +0 -1
  680. package/lib-commonjs/components/Sparkline/index.js +0 -8
  681. package/lib-commonjs/components/Sparkline/index.js.map +0 -1
  682. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +0 -57
  683. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
  684. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js +0 -45
  685. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js.map +0 -1
  686. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js +0 -274
  687. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +0 -1
  688. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +0 -35
  689. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +0 -1
  690. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +0 -412
  691. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +0 -1
  692. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +0 -533
  693. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +0 -1
  694. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +0 -3214
  695. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +0 -1
  696. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js +0 -31
  697. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js.map +0 -1
  698. package/lib-commonjs/components/VegaDeclarativeChart/index.js +0 -6
  699. package/lib-commonjs/components/VegaDeclarativeChart/index.js.map +0 -1
  700. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +0 -932
  701. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
  702. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +0 -7
  703. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
  704. package/lib-commonjs/components/VerticalBarChart/index.js +0 -8
  705. package/lib-commonjs/components/VerticalBarChart/index.js.map +0 -1
  706. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +0 -128
  707. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
  708. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +0 -64
  709. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +0 -1
  710. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -1088
  711. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
  712. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -7
  713. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
  714. package/lib-commonjs/components/VerticalStackedBarChart/index.js +0 -8
  715. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +0 -1
  716. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +0 -116
  717. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
  718. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +0 -56
  719. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +0 -1
  720. package/lib-commonjs/index.js +0 -31
  721. package/lib-commonjs/index.js.map +0 -1
  722. package/lib-commonjs/types/ChartAnnotation.js +0 -4
  723. package/lib-commonjs/types/ChartAnnotation.js.map +0 -1
  724. package/lib-commonjs/types/DataPoint.js +0 -6
  725. package/lib-commonjs/types/DataPoint.js.map +0 -1
  726. package/lib-commonjs/types/EventAnnotation.js +0 -4
  727. package/lib-commonjs/types/EventAnnotation.js.map +0 -1
  728. package/lib-commonjs/types/LegendDataItem.js +0 -4
  729. package/lib-commonjs/types/LegendDataItem.js.map +0 -1
  730. package/lib-commonjs/types/index.js +0 -8
  731. package/lib-commonjs/types/index.js.map +0 -1
  732. package/lib-commonjs/utilities/ChartTitle.js +0 -53
  733. package/lib-commonjs/utilities/ChartTitle.js.map +0 -1
  734. package/lib-commonjs/utilities/Common.styles.js +0 -138
  735. package/lib-commonjs/utilities/Common.styles.js.map +0 -1
  736. package/lib-commonjs/utilities/Common.styles.raw.js +0 -138
  737. package/lib-commonjs/utilities/Common.styles.raw.js.map +0 -1
  738. package/lib-commonjs/utilities/FocusableTooltipText.js +0 -75
  739. package/lib-commonjs/utilities/FocusableTooltipText.js.map +0 -1
  740. package/lib-commonjs/utilities/KeyCodes.js +0 -21
  741. package/lib-commonjs/utilities/KeyCodes.js.map +0 -1
  742. package/lib-commonjs/utilities/SVGTooltipText.js +0 -189
  743. package/lib-commonjs/utilities/SVGTooltipText.js.map +0 -1
  744. package/lib-commonjs/utilities/async-utils.js +0 -382
  745. package/lib-commonjs/utilities/async-utils.js.map +0 -1
  746. package/lib-commonjs/utilities/colors.js +0 -311
  747. package/lib-commonjs/utilities/colors.js.map +0 -1
  748. package/lib-commonjs/utilities/getWindow.js +0 -28
  749. package/lib-commonjs/utilities/getWindow.js.map +0 -1
  750. package/lib-commonjs/utilities/hooks.js +0 -45
  751. package/lib-commonjs/utilities/hooks.js.map +0 -1
  752. package/lib-commonjs/utilities/image-export-utils.js +0 -423
  753. package/lib-commonjs/utilities/image-export-utils.js.map +0 -1
  754. package/lib-commonjs/utilities/index.js +0 -10
  755. package/lib-commonjs/utilities/index.js.map +0 -1
  756. package/lib-commonjs/utilities/overflow-utils.js +0 -36
  757. package/lib-commonjs/utilities/overflow-utils.js.map +0 -1
  758. package/lib-commonjs/utilities/scatterpolar-utils.js +0 -67
  759. package/lib-commonjs/utilities/scatterpolar-utils.js.map +0 -1
  760. package/lib-commonjs/utilities/string.js +0 -29
  761. package/lib-commonjs/utilities/string.js.map +0 -1
  762. package/lib-commonjs/utilities/test-data.js +0 -628
  763. package/lib-commonjs/utilities/test-data.js.map +0 -1
  764. package/lib-commonjs/utilities/utilities.js +0 -2016
  765. package/lib-commonjs/utilities/utilities.js.map +0 -1
  766. package/lib-commonjs/utilities/vbc-utils.js +0 -72
  767. package/lib-commonjs/utilities/vbc-utils.js.map +0 -1
@@ -1,1337 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "LineChart", {
7
- enumerable: true,
8
- get: function() {
9
- return LineChart;
10
- }
11
- });
12
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
- const _useLineChartStylesstyles = require("./useLineChartStyles.styles");
15
- const _d3selection = require("d3-selection");
16
- const _d3array = require("d3-array");
17
- const _index = require("../Legends/index");
18
- const _d3shape = require("d3-shape");
19
- const _reactutilities = require("@fluentui/react-utilities");
20
- const _index1 = require("../../utilities/index");
21
- const _index2 = require("../../index");
22
- const _EventAnnotation = require("./eventAnnotation/EventAnnotation");
23
- const _reacttheme = require("@fluentui/react-theme");
24
- const _scatterpolarutils = require("../../utilities/scatterpolar-utils");
25
- const _chartutilities = require("@fluentui/chart-utilities");
26
- const _hooks = require("../../utilities/hooks");
27
- var PointSize = /*#__PURE__*/ function(PointSize) {
28
- PointSize[PointSize["hoverSize"] = 11] = "hoverSize";
29
- PointSize[PointSize["invisibleSize"] = 1] = "invisibleSize";
30
- return PointSize;
31
- }(PointSize || {});
32
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
- const bisect = (0, _d3array.bisector)((d)=>d.x).left;
34
- const DEFAULT_LINE_STROKE_SIZE = 4;
35
- // The given shape of a icon must be 2.5 times bigger than line width (known as stroke width)
36
- const PATH_MULTIPLY_SIZE = 2.5;
37
- /**
38
- *
39
- * @param x units from origin
40
- * @param y units from origin
41
- * @param w is the legnth of the each side of a shape
42
- * @param index index to get the shape path
43
- */ const _getPointPath = (x, y, w, index)=>{
44
- const allPointPaths = [
45
- // circle path
46
- `M${x - w / 2} ${y}
47
- A${w / 2} ${w / 2} 0 1 0 ${x + w / 2} ${y}
48
- M${x - w / 2} ${y}
49
- A ${w / 2} ${w / 2} 0 1 1 ${x + w / 2} ${y}
50
- `,
51
- //square
52
- `M${x - w / 2} ${y - w / 2}
53
- L${x + w / 2} ${y - w / 2}
54
- L${x + w / 2} ${y + w / 2}
55
- L${x - w / 2} ${y + w / 2}
56
- Z`,
57
- //triangle
58
- `M${x - w / 2} ${y - 0.2886 * w}
59
- H ${x + w / 2}
60
- L${x} ${y + 0.5774 * w} Z`,
61
- //diamond
62
- `M${x} ${y - w / 2}
63
- L${x + w / 2} ${y}
64
- L${x} ${y + w / 2}
65
- L${x - w / 2} ${y}
66
- Z`,
67
- //pyramid
68
- `M${x} ${y - 0.5774 * w}
69
- L${x + w / 2} ${y + 0.2886 * w}
70
- L${x - w / 2} ${y + 0.2886 * w} Z`,
71
- //hexagon
72
- `M${x - 0.5 * w} ${y - 0.866 * w}
73
- L${x + 0.5 * w} ${y - 0.866 * w}
74
- L${x + w} ${y}
75
- L${x + 0.5 * w} ${y + 0.866 * w}
76
- L${x - 0.5 * w} ${y + 0.866 * w}
77
- L${x - w} ${y}
78
- Z`,
79
- //pentagon
80
- `M${x} ${y - 0.851 * w}
81
- L${x + 0.6884 * w} ${y - 0.2633 * w}
82
- L${x + 0.5001 * w} ${y + 0.6884 * w}
83
- L${x - 0.5001 * w} ${y + 0.6884 * w}
84
- L${x - 0.6884 * w} ${y - 0.2633 * w}
85
- Z`,
86
- //octagon
87
- `M${x - 0.5001 * w} ${y - 1.207 * w}
88
- L${x + 0.5001 * w} ${y - 1.207 * w}
89
- L${x + 1.207 * w} ${y - 0.5001 * w}
90
- L${x + 1.207 * w} ${y + 0.5001 * w}
91
- L${x + 0.5001 * w} ${y + 1.207 * w}
92
- L${x - 0.5001 * w} ${y + 1.207 * w}
93
- L${x - 1.207 * w} ${y + 0.5001 * w}
94
- L${x - 1.207 * w} ${y - 0.5001 * w}
95
- Z`
96
- ];
97
- return allPointPaths[index];
98
- };
99
- const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, ...restProps }, forwardedRef)=>{
100
- var _props_legendProps_selectedLegends, _props_legendProps;
101
- const props = {
102
- isCalloutForStack,
103
- ...restProps
104
- };
105
- let _hasMarkersMode = false;
106
- let _isXAxisDateType = false;
107
- let _isScatterPolar = false;
108
- let _points = _injectIndexPropertyInLineChartData(props.data.lineChartData);
109
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
110
- let _xAxisScale = '';
111
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
112
- let _yScalePrimary = '';
113
- const _circleId = (0, _reactutilities.useId)('circle');
114
- const _lineId = (0, _reactutilities.useId)('lineID');
115
- const _borderId = (0, _reactutilities.useId)('borderID');
116
- const _verticalLine = (0, _reactutilities.useId)('verticalLine');
117
- const _colorFillBarPatternId = (0, _reactutilities.useId)('colorFillBarPattern');
118
- let _uniqueCallOutID = '';
119
- const _refArray = [];
120
- let margins;
121
- let eventLabelHeight = 36;
122
- let lines;
123
- let _renderedColorFillBars;
124
- const _colorFillBars = _react.useRef([]);
125
- const _rectId = (0, _reactutilities.useId)('containerRectLD');
126
- const _staticHighlightCircle = (0, _reactutilities.useId)('staticHighlightCircle');
127
- const _firstRenderOptimization = true;
128
- const _emptyChartId = (0, _reactutilities.useId)('_LineChart_empty');
129
- const _colorFillBarId = (0, _reactutilities.useId)('_colorFillBarId');
130
- const _isRTL = (0, _index1.useRtl)();
131
- const xAxisCalloutAccessibilityData = {};
132
- const { cartesianChartRef, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend);
133
- let _yScaleSecondary;
134
- props.eventAnnotationProps && props.eventAnnotationProps.labelHeight && (eventLabelHeight = props.eventAnnotationProps.labelHeight);
135
- const [hoverXValue, setHoverXValue] = _react.useState('');
136
- const [activeLegend, setActiveLegend] = _react.useState('');
137
- const [yValueHover, setYValueHover] = _react.useState([]);
138
- const [selectedLegend, setSelectedLegend] = _react.useState('');
139
- const [selectedLegendPoints, setSelectedLegendPoints] = _react.useState(_injectIndexPropertyInLineChartData(props.data.lineChartData, true));
140
- const [selectedColorBarLegend, setSelectedColorBarLegend] = _react.useState([]);
141
- var _props_legendProps_selectedLegends_length;
142
- const [isSelectedLegend, setIsSelectedLegend] = _react.useState(((_props_legendProps_selectedLegends_length = (_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : (_props_legendProps_selectedLegends = _props_legendProps.selectedLegends) === null || _props_legendProps_selectedLegends === void 0 ? void 0 : _props_legendProps_selectedLegends.length) !== null && _props_legendProps_selectedLegends_length !== void 0 ? _props_legendProps_selectedLegends_length : 0) > 0);
143
- const [activePoint, setActivePoint] = _react.useState('');
144
- const [nearestCircleToHighlight, setNearestCircleToHighlight] = _react.useState(null);
145
- const [dataPointCalloutProps, setDataPointCalloutProps] = _react.useState();
146
- const [stackCalloutProps, setStackCalloutProps] = _react.useState();
147
- const [clickPosition, setClickPosition] = _react.useState({
148
- x: 0,
149
- y: 0
150
- });
151
- const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
152
- const [YValue, setYValue] = _react.useState('');
153
- const [legendVal, setLegendVal] = _react.useState('');
154
- const [lineColor, setLineColor] = _react.useState('');
155
- const [refSelected, setRefSelected] = _react.useState(null);
156
- const pointsRef = _react.useRef([]);
157
- const calloutPointsRef = _react.useRef({});
158
- const classes = (0, _useLineChartStylesstyles.useLineChartStyles)(props);
159
- _react.useEffect(()=>{
160
- /** note that height and width are not used to resize or set as dimesions of the chart,
161
- * fitParentContainer is responisble for setting the height and width or resizing of the svg/chart
162
- */ if (_points !== _injectIndexPropertyInLineChartData(props.data.lineChartData) || props.data !== _points) {
163
- pointsRef.current = _injectIndexPropertyInLineChartData(props.data.lineChartData);
164
- calloutPointsRef.current = (0, _index1.calloutData)(pointsRef.current);
165
- }
166
- }, [
167
- props.height,
168
- props.width,
169
- props.data
170
- ]);
171
- function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
172
- let domainNRangeValue;
173
- if (xAxisType === _index1.XAxisTypes.NumericAxis) {
174
- domainNRangeValue = (0, _index1.domainRangeOfNumericForAreaLineScatterCharts)(points, margins, width, isRTL, props.xScaleType, _hasMarkersMode, props.xMinValue, props.xMaxValue);
175
- } else if (xAxisType === _index1.XAxisTypes.DateAxis) {
176
- domainNRangeValue = (0, _index1.domainRangeOfDateForAreaLineScatterVerticalBarCharts)(points, margins, width, isRTL, tickValues, chartType, barWidth, _hasMarkersMode);
177
- } else {
178
- domainNRangeValue = {
179
- dStartValue: 0,
180
- dEndValue: 0,
181
- rStartValue: 0,
182
- rEndValue: 0
183
- };
184
- }
185
- return domainNRangeValue;
186
- }
187
- function _injectIndexPropertyInLineChartData(lineChartData, isFilterSelectedLegends = false) {
188
- const { allowMultipleShapesForPoints = false } = props;
189
- // Apply filter only if isPropChange is true
190
- const filteredData = isFilterSelectedLegends ? lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.filter((item)=>{
191
- var _props_legendProps_selectedLegends, _props_legendProps, _props_legendProps1;
192
- return ((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : (_props_legendProps_selectedLegends = _props_legendProps.selectedLegends) === null || _props_legendProps_selectedLegends === void 0 ? void 0 : _props_legendProps_selectedLegends.includes(item.legend)) || ((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegend) === item.legend;
193
- }) : lineChartData;
194
- var _filteredData_some;
195
- _hasMarkersMode = (_filteredData_some = filteredData === null || filteredData === void 0 ? void 0 : filteredData.some((item)=>{
196
- var _item_lineOptions_mode_includes, _item_lineOptions_mode, _item_lineOptions;
197
- return (_item_lineOptions = item.lineOptions) === null || _item_lineOptions === void 0 ? void 0 : (_item_lineOptions_mode = _item_lineOptions.mode) === null || _item_lineOptions_mode === void 0 ? void 0 : (_item_lineOptions_mode_includes = _item_lineOptions_mode.includes) === null || _item_lineOptions_mode_includes === void 0 ? void 0 : _item_lineOptions_mode_includes.call(_item_lineOptions_mode, 'markers');
198
- })) !== null && _filteredData_some !== void 0 ? _filteredData_some : false;
199
- _isScatterPolar = (0, _index1.isScatterPolarSeries)(filteredData);
200
- return filteredData ? filteredData.map((item, index)=>{
201
- let color;
202
- if (typeof item.color === 'undefined') {
203
- color = (0, _index1.getNextColor)(index, 0);
204
- } else {
205
- color = (0, _index1.getColorFromToken)(item.color);
206
- }
207
- return {
208
- ...item,
209
- index: allowMultipleShapesForPoints ? index : -1,
210
- color
211
- };
212
- }) : [];
213
- }
214
- function updatePosition(newX, newY) {
215
- const threshold = 1; // Set a threshold for movement
216
- const { x, y } = clickPosition;
217
- // Calculate the distance moved
218
- const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));
219
- // Update the position only if the distance moved is greater than the threshold
220
- if (distance > threshold) {
221
- setClickPosition({
222
- x: newX,
223
- y: newY
224
- });
225
- setPopoverOpen(true);
226
- }
227
- }
228
- function _getCustomizedCallout() {
229
- return props.onRenderCalloutPerStack ? props.onRenderCalloutPerStack(stackCalloutProps) : props.onRenderCalloutPerDataPoint ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps) : null;
230
- }
231
- function _getNumericMinMaxOfY(points, yAxisType, useSecondaryYScale) {
232
- const { startValue, endValue } = (0, _index1.findNumericMinMaxOfY)(points, yAxisType, useSecondaryYScale, useSecondaryYScale ? props.secondaryYScaleType : props.yScaleType);
233
- let yPadding = {
234
- start: 0,
235
- end: 0
236
- };
237
- if (_hasMarkersMode) {
238
- yPadding = (0, _index1.getDomainPaddingForMarkers)(startValue, endValue, useSecondaryYScale ? props.secondaryYScaleType : props.yScaleType);
239
- }
240
- return {
241
- startValue: startValue - yPadding.start,
242
- endValue: endValue + yPadding.end
243
- };
244
- }
245
- function _getMargins(_margins) {
246
- margins = _margins;
247
- }
248
- function _initializeLineChartData(xScale, yScalePrimary, containerHeight, containerWidth, xElement, yAxisElement, yScaleSecondary) {
249
- _xAxisScale = xScale;
250
- _yScalePrimary = yScalePrimary;
251
- _yScaleSecondary = yScaleSecondary;
252
- _renderedColorFillBars = props.colorFillBars ? _createColorFillBars(containerHeight) : [];
253
- lines = _createLines(xElement, containerHeight);
254
- }
255
- function _handleSingleLegendSelectionAction(lineChartItem) {
256
- if (selectedLegend === lineChartItem.legend) {
257
- setSelectedLegend('');
258
- _handleLegendClick(lineChartItem, null);
259
- } else {
260
- setSelectedLegend(lineChartItem.legend);
261
- _handleLegendClick(lineChartItem, lineChartItem.legend);
262
- }
263
- }
264
- function _onHoverCardHide() {
265
- setSelectedLegendPoints([]);
266
- setSelectedColorBarLegend([]);
267
- setIsSelectedLegend(false);
268
- }
269
- function _handleLegendClick(lineChartItem, selectedLegend) {
270
- if (lineChartItem.onLegendClick) {
271
- lineChartItem.onLegendClick(selectedLegend);
272
- }
273
- }
274
- function _createLegends(data) {
275
- const { legendProps, allowMultipleShapesForPoints = false } = props;
276
- const isLegendMultiSelectEnabled = !!(legendProps && !!legendProps.canSelectMultipleLegends);
277
- const mapLegendToPoints = {};
278
- data.forEach((point)=>{
279
- if (point.legend) {
280
- if (!mapLegendToPoints[point.legend]) {
281
- mapLegendToPoints[point.legend] = [];
282
- }
283
- mapLegendToPoints[point.legend].push(point);
284
- }
285
- });
286
- const legendDataItems = Object.entries(mapLegendToPoints).map(([legendTitle, points])=>{
287
- const representativePoint = points[0];
288
- // mapping data to the format Legends component needs
289
- const legend = {
290
- title: legendTitle,
291
- color: representativePoint.color,
292
- action: ()=>{
293
- if (isLegendMultiSelectEnabled) {
294
- points.forEach((p)=>_handleMultipleLineLegendSelectionAction(p));
295
- } else {
296
- points.forEach((p)=>_handleSingleLegendSelectionAction(p));
297
- }
298
- },
299
- onMouseOutAction: ()=>{
300
- setActiveLegend('');
301
- },
302
- hoverAction: ()=>{
303
- _handleChartMouseLeave();
304
- setActiveLegend(legendTitle);
305
- },
306
- ...representativePoint.legendShape && {
307
- shape: representativePoint.legendShape
308
- },
309
- ...allowMultipleShapesForPoints && {
310
- shape: _index1.Points[representativePoint.index % Object.keys(_index1.pointTypes).length]
311
- }
312
- };
313
- return legend;
314
- });
315
- const colorFillBarsLegendDataItems = props.colorFillBars ? props.colorFillBars.map((colorFillBar, index)=>{
316
- const title = colorFillBar.legend;
317
- const color = (0, _index1.getColorFromToken)(colorFillBar.color);
318
- const legend = {
319
- title,
320
- color,
321
- action: ()=>{
322
- if (isLegendMultiSelectEnabled) {
323
- _handleMultipleColorFillBarLegendSelectionAction(colorFillBar);
324
- } else {
325
- _handleSingleLegendSelectionAction(colorFillBar);
326
- }
327
- },
328
- onMouseOutAction: ()=>{
329
- setActiveLegend('');
330
- },
331
- hoverAction: ()=>{
332
- _handleChartMouseLeave();
333
- setActiveLegend(title);
334
- },
335
- opacity: _getColorFillBarOpacity(colorFillBar),
336
- stripePattern: colorFillBar.applyPattern
337
- };
338
- return legend;
339
- }) : [];
340
- return /*#__PURE__*/ _react.createElement(_index.Legends, {
341
- legends: [
342
- ...legendDataItems,
343
- ...colorFillBarsLegendDataItems
344
- ],
345
- enabledWrapLines: props.enabledLegendsWrapLines,
346
- overflowText: props.legendsOverflowText,
347
- ...isLegendMultiSelectEnabled && {
348
- onLegendHoverCardLeave: _onHoverCardHide
349
- },
350
- ...props.legendProps,
351
- legendRef: _legendsRef
352
- });
353
- }
354
- function _getBoxWidthOfShape(pointId, pointIndex, isLastPoint) {
355
- const { allowMultipleShapesForPoints = false, strokeWidth = DEFAULT_LINE_STROKE_SIZE } = props;
356
- if (allowMultipleShapesForPoints) {
357
- if (activePoint === pointId) {
358
- return 11;
359
- } else if (pointIndex === 1 || isLastPoint) {
360
- return strokeWidth * PATH_MULTIPLY_SIZE;
361
- } else {
362
- return 1;
363
- }
364
- } else {
365
- if (activePoint === pointId) {
366
- return 11;
367
- } else {
368
- return 1;
369
- }
370
- }
371
- }
372
- function _getPath(xPos, yPos, pointId, pointIndex, isLastPoint, pointOftheLine) {
373
- const { allowMultipleShapesForPoints = false } = props;
374
- let w = _getBoxWidthOfShape(pointId, pointIndex, isLastPoint);
375
- const index = allowMultipleShapesForPoints ? pointOftheLine % Object.keys(_index1.pointTypes).length : 0;
376
- const widthRatio = _index1.pointTypes[index].widthRatio;
377
- w = widthRatio > 1 ? w / widthRatio : w;
378
- return _getPointPath(xPos, yPos, w, index);
379
- }
380
- function _getPointFill(lineColor, pointId, pointIndex, isLastPoint) {
381
- const { allowMultipleShapesForPoints = false } = props;
382
- if (allowMultipleShapesForPoints) {
383
- if (pointIndex === 1 || isLastPoint) {
384
- if (activePoint === pointId) {
385
- return _reacttheme.tokens.colorNeutralBackground1;
386
- } else {
387
- return lineColor;
388
- }
389
- } else {
390
- if (activePoint === pointId) {
391
- return _reacttheme.tokens.colorNeutralBackground1;
392
- } else {
393
- return lineColor;
394
- }
395
- }
396
- } else {
397
- if (activePoint === pointId) {
398
- return _reacttheme.tokens.colorNeutralBackground1;
399
- } else {
400
- return lineColor;
401
- }
402
- }
403
- }
404
- function _createLines(xElement, containerHeight) {
405
- const lines = [];
406
- if (isSelectedLegend) {
407
- _points = selectedLegendPoints;
408
- } else {
409
- _points = _injectIndexPropertyInLineChartData(props.data.lineChartData);
410
- }
411
- const maxMarkerSize = (0, _d3array.max)(_points, (point)=>{
412
- return (0, _d3array.max)(point.data, (item)=>{
413
- return item.markerSize;
414
- });
415
- });
416
- for(let i = _points.length - 1; i >= 0; i--){
417
- var _points_i_gaps, _points_i_lineOptions, _points_i_lineOptions1;
418
- const linesForLine = [];
419
- const bordersForLine = [];
420
- const pointsForLine = [];
421
- const legendVal = _points[i].legend;
422
- const lineColor = _points[i].color;
423
- const verticaLineHeight = containerHeight - margins.bottom + 6;
424
- const useSecondaryYScale = !!(_points[i].useSecondaryYScale && _yScaleSecondary);
425
- const yScale = useSecondaryYScale ? _yScaleSecondary : _yScalePrimary;
426
- const extraMaxPixels = _hasMarkersMode ? (0, _index1.getRangeForScatterMarkerSize)({
427
- data: _points,
428
- xScale: _xAxisScale,
429
- yScalePrimary: _yScalePrimary,
430
- yScaleSecondary: _yScaleSecondary,
431
- useSecondaryYScale,
432
- xScaleType: props.xScaleType,
433
- yScaleType: props.yScaleType,
434
- secondaryYScaleType: props.secondaryYScaleType
435
- }) : 0;
436
- if (_points[i].data.length === 1) {
437
- const { x: x1, y: y1, xAxisCalloutData, xAxisCalloutAccessibilityData } = _points[i].data[0];
438
- const xPoint = _xAxisScale(x1);
439
- const yPoint = yScale(y1);
440
- if ((0, _index1.isPlottable)(xPoint, yPoint)) {
441
- var _points_i_lineOptions_mode, _points_i_lineOptions2;
442
- const circleId = `${_circleId}_${i}`;
443
- const isLegendSelected = _legendHighlighted(legendVal) || _noLegendHighlighted() || isSelectedLegend;
444
- const currentMarkerSize = _points[i].data[0].markerSize;
445
- const supportsTextMode = (_points_i_lineOptions2 = _points[i].lineOptions) === null || _points_i_lineOptions2 === void 0 ? void 0 : (_points_i_lineOptions_mode = _points_i_lineOptions2.mode) === null || _points_i_lineOptions_mode === void 0 ? void 0 : _points_i_lineOptions_mode.includes('text');
446
- const text = _points[i].data[0].text;
447
- const targetElement = document.getElementById(circleId);
448
- var _points_i_data__text;
449
- pointsForLine.push(/*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement(_react.Fragment, {
450
- key: `${circleId}_fragment`
451
- }, /*#__PURE__*/ _react.createElement("circle", {
452
- id: circleId,
453
- key: circleId,
454
- r: (0, _index1.calculateMarkerRadius)({
455
- pointMarkerSize: currentMarkerSize,
456
- minMarkerSize: 0,
457
- maxMarkerSize,
458
- extraMaxPixels,
459
- isContinuousXY: true,
460
- isActive: activePoint === circleId
461
- }),
462
- cx: xPoint,
463
- cy: yPoint,
464
- fill: activePoint === circleId ? _reacttheme.tokens.colorNeutralBackground1 : lineColor,
465
- opacity: isLegendSelected ? 1 : 0.1,
466
- tabIndex: isLegendSelected ? 0 : undefined,
467
- onMouseOver: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
468
- onMouseMove: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
469
- onMouseOut: _handleMouseOut,
470
- strokeWidth: activePoint === circleId ? DEFAULT_LINE_STROKE_SIZE : 0,
471
- stroke: activePoint === circleId ? lineColor : '',
472
- role: "img",
473
- "aria-label": (_points_i_data__text = _points[i].data[0].text) !== null && _points_i_data__text !== void 0 ? _points_i_data__text : _getAriaLabel(i, 0),
474
- ref: (e)=>{
475
- _refCallback(e, circleId);
476
- },
477
- onFocus: (event)=>_handleFocus(event, circleId, x1, xAxisCalloutData, circleId, targetElement, xAxisCalloutAccessibilityData),
478
- onBlur: _handleMouseOut,
479
- ..._getClickHandler(_points[i].data[0].onDataPointClick)
480
- }), !_isScatterPolar && supportsTextMode && text && /*#__PURE__*/ _react.createElement("text", {
481
- key: `${circleId}-label`,
482
- x: xPoint,
483
- y: yPoint + Math.max(currentMarkerSize ? currentMarkerSize * extraMaxPixels / maxMarkerSize : 3.5, 4) + 12,
484
- className: classes.markerLabel,
485
- opacity: isLegendSelected ? 1 : 0.1
486
- }, text))));
487
- }
488
- }
489
- let gapIndex = 0;
490
- var _points_i_gaps_sort;
491
- const gaps = (_points_i_gaps_sort = (_points_i_gaps = _points[i].gaps) === null || _points_i_gaps === void 0 ? void 0 : _points_i_gaps.sort((a, b)=>a.startIndex - b.startIndex)) !== null && _points_i_gaps_sort !== void 0 ? _points_i_gaps_sort : [];
492
- const lineCurve = (_points_i_lineOptions = _points[i].lineOptions) === null || _points_i_lineOptions === void 0 ? void 0 : _points_i_lineOptions.curve;
493
- // Use path rendering technique for larger datasets to optimize performance.
494
- if ((props.optimizeLargeData || lineCurve) && _points[i].data.length > 1) {
495
- var _points_i_lineOptions3, _points_i_lineOptions4;
496
- const line = (0, _d3shape.line)() // eslint-disable-next-line @typescript-eslint/no-explicit-any
497
- .x((d)=>_xAxisScale(d[0])) // eslint-disable-next-line @typescript-eslint/no-explicit-any
498
- .y((d)=>yScale(d[1])).curve((0, _index1.getCurveFactory)(lineCurve)).defined((d)=>(0, _index1.isPlottable)(_xAxisScale(d[0]), yScale(d[1])));
499
- const lineId = `${_lineId}_${i}`;
500
- const borderId = `${_borderId}_${i}`;
501
- const strokeWidth = ((_points_i_lineOptions3 = _points[i].lineOptions) === null || _points_i_lineOptions3 === void 0 ? void 0 : _points_i_lineOptions3.strokeWidth) || props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
502
- const isLegendSelected = _legendHighlighted(legendVal) || _noLegendHighlighted() || isSelectedLegend;
503
- const lineData = [];
504
- for(let k = 0; k < _points[i].data.length; k++){
505
- lineData.push([
506
- _points[i].data[k].x instanceof Date ? _points[i].data[k].x.getTime() : _points[i].data[k].x,
507
- _points[i].data[k].y
508
- ]);
509
- }
510
- // Check if lines should be drawn based on mode
511
- const lineMode = (_points_i_lineOptions4 = _points[i].lineOptions) === null || _points_i_lineOptions4 === void 0 ? void 0 : _points_i_lineOptions4.mode;
512
- const shouldDrawLines = lineMode !== 'markers';
513
- if (shouldDrawLines && isLegendSelected) {
514
- var _points_i_lineOptions5, _points_i_lineOptions6, _points_i_lineOptions7;
515
- const lineBorderWidth = ((_points_i_lineOptions5 = _points[i].lineOptions) === null || _points_i_lineOptions5 === void 0 ? void 0 : _points_i_lineOptions5.lineBorderWidth) ? Number.parseFloat(_points[i].lineOptions.lineBorderWidth.toString()) : 0;
516
- if (lineBorderWidth > 0) {
517
- var _points_i_lineOptions8, _points_i_lineOptions9;
518
- var _points_i_lineOptions_strokeLinecap;
519
- bordersForLine.push(/*#__PURE__*/ _react.createElement("path", {
520
- id: borderId,
521
- key: borderId,
522
- d: line(lineData),
523
- fill: "transparent",
524
- strokeLinecap: (_points_i_lineOptions_strokeLinecap = (_points_i_lineOptions8 = _points[i].lineOptions) === null || _points_i_lineOptions8 === void 0 ? void 0 : _points_i_lineOptions8.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap !== void 0 ? _points_i_lineOptions_strokeLinecap : 'round',
525
- strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth,
526
- stroke: ((_points_i_lineOptions9 = _points[i].lineOptions) === null || _points_i_lineOptions9 === void 0 ? void 0 : _points_i_lineOptions9.lineBorderColor) || _reacttheme.tokens.colorNeutralBackground1,
527
- opacity: 1
528
- }));
529
- }
530
- var _points_i_lineOptions_strokeLinecap1;
531
- linesForLine.push(/*#__PURE__*/ _react.createElement("path", {
532
- id: lineId,
533
- key: lineId,
534
- d: line(lineData),
535
- fill: "transparent",
536
- stroke: lineColor,
537
- strokeWidth: strokeWidth,
538
- strokeLinecap: (_points_i_lineOptions_strokeLinecap1 = (_points_i_lineOptions6 = _points[i].lineOptions) === null || _points_i_lineOptions6 === void 0 ? void 0 : _points_i_lineOptions6.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap1 !== void 0 ? _points_i_lineOptions_strokeLinecap1 : 'round',
539
- strokeDasharray: (_points_i_lineOptions7 = _points[i].lineOptions) === null || _points_i_lineOptions7 === void 0 ? void 0 : _points_i_lineOptions7.strokeDasharray,
540
- onMouseMove: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
541
- onMouseOver: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
542
- onMouseOut: _handleMouseOut,
543
- ..._getClickHandler(_points[i].onLineClick),
544
- opacity: 1,
545
- tabIndex: isLegendSelected ? 0 : undefined
546
- }));
547
- } else if (shouldDrawLines) {
548
- var _points_i_lineOptions10, _points_i_lineOptions11;
549
- var _points_i_lineOptions_strokeLinecap2;
550
- linesForLine.push(/*#__PURE__*/ _react.createElement("path", {
551
- id: lineId,
552
- key: lineId,
553
- d: line(lineData),
554
- fill: "transparent",
555
- tabIndex: -1,
556
- stroke: lineColor,
557
- strokeWidth: strokeWidth,
558
- strokeLinecap: (_points_i_lineOptions_strokeLinecap2 = (_points_i_lineOptions10 = _points[i].lineOptions) === null || _points_i_lineOptions10 === void 0 ? void 0 : _points_i_lineOptions10.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap2 !== void 0 ? _points_i_lineOptions_strokeLinecap2 : 'round',
559
- strokeDasharray: (_points_i_lineOptions11 = _points[i].lineOptions) === null || _points_i_lineOptions11 === void 0 ? void 0 : _points_i_lineOptions11.strokeDasharray,
560
- opacity: 0.1
561
- }));
562
- }
563
- // Always add the highlight circle for large dataset hover
564
- pointsForLine.push(/*#__PURE__*/ _react.createElement("circle", {
565
- id: `${_staticHighlightCircle}_${i}`,
566
- key: `${_staticHighlightCircle}_${i}`,
567
- r: 5.5,
568
- cx: 0,
569
- cy: 0,
570
- fill: _reacttheme.tokens.colorNeutralBackground1,
571
- strokeWidth: DEFAULT_LINE_STROKE_SIZE,
572
- tabIndex: isLegendSelected ? 0 : undefined,
573
- stroke: lineColor,
574
- visibility: 'hidden',
575
- onMouseMove: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
576
- onMouseOver: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
577
- onMouseOut: _handleMouseOut
578
- }));
579
- // Add individual markers if mode includes 'markers'
580
- const showMarkers = !!(lineMode === null || lineMode === void 0 ? void 0 : lineMode.includes('markers'));
581
- if (showMarkers) {
582
- for(let k = 0; k < _points[i].data.length; k++){
583
- const { x, y } = _points[i].data[k];
584
- const xPoint = _xAxisScale(x instanceof Date ? x.getTime() : x);
585
- const yPoint = yScale(y);
586
- if ((0, _index1.isPlottable)(xPoint, yPoint)) {
587
- var _points_i_data_k, _points_i;
588
- const markerSize = _points[i].data[k].markerSize;
589
- const perPointColor = (_points_i_data_k = _points[i].data[k]) === null || _points_i_data_k === void 0 ? void 0 : _points_i_data_k.markerColor;
590
- var _points_i_data_k_text;
591
- pointsForLine.push(/*#__PURE__*/ _react.createElement("circle", {
592
- key: `${_circleId}_${i}_${k}_marker`,
593
- r: (0, _index1.calculateMarkerRadius)({
594
- pointMarkerSize: markerSize,
595
- minMarkerSize: 0,
596
- maxMarkerSize,
597
- extraMaxPixels,
598
- isContinuousXY: true,
599
- isActive: activePoint === _circleId
600
- }),
601
- cx: xPoint,
602
- cy: yPoint,
603
- fill: activePoint === _circleId ? _reacttheme.tokens.colorNeutralBackground1 : perPointColor || ((_points_i = _points[i]) === null || _points_i === void 0 ? void 0 : _points_i.color) || lineColor,
604
- tabIndex: isLegendSelected ? 0 : undefined,
605
- stroke: perPointColor || lineColor,
606
- strokeWidth: 1,
607
- opacity: isLegendSelected ? 1 : 0.1,
608
- onMouseMove: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
609
- onMouseOver: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
610
- onFocus: (event)=>_onFocusLargeDataset(i, verticaLineHeight, event, yScale, k),
611
- onMouseOut: _handleMouseOut,
612
- role: "img",
613
- "aria-label": (_points_i_data_k_text = _points[i].data[k].text) !== null && _points_i_data_k_text !== void 0 ? _points_i_data_k_text : _getAriaLabel(i, k)
614
- }));
615
- }
616
- }
617
- }
618
- } else if (!props.optimizeLargeData) {
619
- for(let j = 1; j < _points[i].data.length; j++){
620
- var _points_i_lineOptions12, _points_i_lineOptions_mode1, _points_i_lineOptions13, _points_i_lineOptions_mode2, _points_i_lineOptions14;
621
- const gapResult = _checkInGap(j, gaps, gapIndex);
622
- const isInGap = gapResult.isInGap;
623
- gapIndex = gapResult.gapIndex;
624
- const lineId = `${_lineId}_${i}_${j}`;
625
- const borderId = `${_borderId}_${i}_${j}`;
626
- const circleId = `${_circleId}_${i}_${j}`;
627
- const { x: x1, y: y1, xAxisCalloutData, xAxisCalloutAccessibilityData } = _points[i].data[j - 1];
628
- const { x: x2, y: y2 } = _points[i].data[j];
629
- const xPoint1 = _xAxisScale(x1);
630
- const yPoint1 = yScale(y1);
631
- const xPoint2 = _xAxisScale(x2);
632
- const yPoint2 = yScale(y2);
633
- const strokeWidth = ((_points_i_lineOptions12 = _points[i].lineOptions) === null || _points_i_lineOptions12 === void 0 ? void 0 : _points_i_lineOptions12.strokeWidth) || props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
634
- const isLegendSelected = _legendHighlighted(legendVal) || _noLegendHighlighted() || isSelectedLegend;
635
- const currentPointHidden = _points[i].hideNonActiveDots && activePoint !== circleId;
636
- const supportsTextMode = (_points_i_lineOptions13 = _points[i].lineOptions) === null || _points_i_lineOptions13 === void 0 ? void 0 : (_points_i_lineOptions_mode1 = _points_i_lineOptions13.mode) === null || _points_i_lineOptions_mode1 === void 0 ? void 0 : _points_i_lineOptions_mode1.includes('text');
637
- const text = _points[i].data[j - 1].text;
638
- let currentMarkerSize = _points[i].data[j - 1].markerSize;
639
- if ((0, _index1.isPlottable)(xPoint1, yPoint1)) {
640
- var _points_i_lineOptions_mode3, _points_i_lineOptions15, _points_i_data_, _points_i_data_1, _points_i_data_2, _points_i_data_3;
641
- const path = _getPath(xPoint1, yPoint1, circleId, j, false, _points[i].index);
642
- const targetElement = document.getElementById(circleId);
643
- var _points_i_data__text1;
644
- pointsForLine.push(((_points_i_lineOptions15 = _points[i].lineOptions) === null || _points_i_lineOptions15 === void 0 ? void 0 : (_points_i_lineOptions_mode3 = _points_i_lineOptions15.mode) === null || _points_i_lineOptions_mode3 === void 0 ? void 0 : _points_i_lineOptions_mode3.includes('markers')) || supportsTextMode ? /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("circle", {
645
- id: circleId,
646
- key: circleId,
647
- r: (0, _index1.calculateMarkerRadius)({
648
- pointMarkerSize: currentMarkerSize,
649
- minMarkerSize: 0,
650
- maxMarkerSize,
651
- extraMaxPixels,
652
- isContinuousXY: true,
653
- isActive: activePoint === circleId
654
- }),
655
- cx: xPoint1,
656
- cy: yPoint1,
657
- tabIndex: isLegendSelected ? 0 : undefined,
658
- onMouseOver: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
659
- onMouseMove: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
660
- onMouseOut: _handleMouseOut,
661
- onFocus: (event)=>_handleFocus(event, lineId, x1, xAxisCalloutData, circleId, targetElement, xAxisCalloutAccessibilityData),
662
- onBlur: _handleMouseOut,
663
- ..._getClickHandler(_points[i].data[j - 1].onDataPointClick),
664
- opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01,
665
- fill: ((_points_i_data_ = _points[i].data[j - 1]) === null || _points_i_data_ === void 0 ? void 0 : _points_i_data_.markerColor) || _getPointFill(lineColor, circleId, j, false),
666
- stroke: ((_points_i_data_1 = _points[i].data[j - 1]) === null || _points_i_data_1 === void 0 ? void 0 : _points_i_data_1.markerColor) || lineColor,
667
- strokeWidth: strokeWidth,
668
- role: "img",
669
- "aria-label": (_points_i_data__text1 = _points[i].data[j - 1].text) !== null && _points_i_data__text1 !== void 0 ? _points_i_data__text1 : _getAriaLabel(i, j - 1)
670
- }), !_isScatterPolar && supportsTextMode && text && /*#__PURE__*/ _react.createElement("text", {
671
- key: `${circleId}-label`,
672
- x: xPoint1,
673
- y: yPoint1 + (0, _index1.calculateMarkerRadius)({
674
- pointMarkerSize: currentMarkerSize,
675
- minMarkerSize: 0,
676
- maxMarkerSize,
677
- extraMaxPixels,
678
- isContinuousXY: true
679
- }) + 12,
680
- className: classes.markerLabel,
681
- opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01
682
- }, text)) : /*#__PURE__*/ _react.createElement("path", {
683
- id: circleId,
684
- key: circleId,
685
- d: path,
686
- onMouseOver: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
687
- onMouseMove: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
688
- onMouseOut: _handleMouseOut,
689
- onFocus: (event)=>_handleFocus(event, lineId, x1, xAxisCalloutData, circleId, targetElement, xAxisCalloutAccessibilityData),
690
- onBlur: _handleMouseOut,
691
- ..._getClickHandler(_points[i].data[j - 1].onDataPointClick),
692
- opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01,
693
- fill: ((_points_i_data_2 = _points[i].data[j - 1]) === null || _points_i_data_2 === void 0 ? void 0 : _points_i_data_2.markerColor) || _getPointFill(lineColor, circleId, j, false),
694
- stroke: ((_points_i_data_3 = _points[i].data[j - 1]) === null || _points_i_data_3 === void 0 ? void 0 : _points_i_data_3.markerColor) || lineColor,
695
- strokeWidth: strokeWidth,
696
- role: "img",
697
- "aria-label": _getAriaLabel(i, j - 1),
698
- tabIndex: isLegendSelected ? 0 : undefined
699
- }));
700
- }
701
- if (j + 1 === _points[i].data.length) {
702
- var _points_i_lineOptions_mode4, _points_i_lineOptions16;
703
- // If this is last point of the line segment.
704
- const lastCircleId = `${circleId}${j}L`;
705
- const hiddenHoverCircleId = `${circleId}${j}D`;
706
- const lastPointHidden = _points[i].hideNonActiveDots && activePoint !== lastCircleId;
707
- const { xAxisCalloutData: lastCirlceXCallout, xAxisCalloutAccessibilityData: lastCirlceXCalloutAccessibilityData } = _points[i].data[j];
708
- currentMarkerSize = _points[i].data[j].markerSize;
709
- const lastSupportsTextMode = (_points_i_lineOptions16 = _points[i].lineOptions) === null || _points_i_lineOptions16 === void 0 ? void 0 : (_points_i_lineOptions_mode4 = _points_i_lineOptions16.mode) === null || _points_i_lineOptions_mode4 === void 0 ? void 0 : _points_i_lineOptions_mode4.includes('text');
710
- const lastText = _points[i].data[j].text;
711
- if ((0, _index1.isPlottable)(xPoint2, yPoint2)) {
712
- var _points_i_lineOptions_mode5, _points_i_lineOptions17, _points_i_data_j, _points_i_data_j1;
713
- const path = _getPath(xPoint2, yPoint2, lastCircleId, j, true, _points[i].index);
714
- const targetElement = document.getElementById(lastCircleId);
715
- var _points_i_data_j_text;
716
- pointsForLine.push(/*#__PURE__*/ _react.createElement(_react.Fragment, {
717
- key: `${lastCircleId}_container`
718
- }, ((_points_i_lineOptions17 = _points[i].lineOptions) === null || _points_i_lineOptions17 === void 0 ? void 0 : (_points_i_lineOptions_mode5 = _points_i_lineOptions17.mode) === null || _points_i_lineOptions_mode5 === void 0 ? void 0 : _points_i_lineOptions_mode5.includes('markers')) || lastSupportsTextMode ? /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("circle", {
719
- id: lastCircleId,
720
- key: lastCircleId,
721
- r: (0, _index1.calculateMarkerRadius)({
722
- pointMarkerSize: currentMarkerSize,
723
- minMarkerSize: 0,
724
- maxMarkerSize,
725
- extraMaxPixels,
726
- isContinuousXY: true,
727
- isActive: activePoint === lastCircleId
728
- }),
729
- cx: xPoint2,
730
- cy: yPoint2,
731
- tabIndex: isLegendSelected ? 0 : undefined,
732
- onMouseOver: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
733
- onMouseMove: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
734
- onMouseOut: _handleMouseOut,
735
- onFocus: (event)=>_handleFocus(event, lineId, x2, lastCirlceXCallout, lastCircleId, targetElement, lastCirlceXCalloutAccessibilityData),
736
- onBlur: _handleMouseOut,
737
- ..._getClickHandler(_points[i].data[j].onDataPointClick),
738
- opacity: isLegendSelected && !lastPointHidden ? 1 : 0.01,
739
- fill: _getPointFill(lineColor, lastCircleId, j, true),
740
- stroke: lineColor,
741
- strokeWidth: strokeWidth,
742
- role: "img",
743
- "aria-label": (_points_i_data_j_text = _points[i].data[j].text) !== null && _points_i_data_j_text !== void 0 ? _points_i_data_j_text : _getAriaLabel(i, j)
744
- }), !_isScatterPolar && lastSupportsTextMode && lastText && /*#__PURE__*/ _react.createElement("text", {
745
- key: `${lastCircleId}-label`,
746
- x: xPoint2,
747
- y: yPoint2 + (0, _index1.calculateMarkerRadius)({
748
- pointMarkerSize: currentMarkerSize,
749
- minMarkerSize: 0,
750
- maxMarkerSize,
751
- extraMaxPixels,
752
- isContinuousXY: true
753
- }) + 12,
754
- className: classes.markerLabel
755
- }, text)) : /*#__PURE__*/ _react.createElement("path", {
756
- id: lastCircleId,
757
- key: lastCircleId,
758
- d: path,
759
- onMouseOver: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
760
- onMouseMove: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
761
- onMouseOut: _handleMouseOut,
762
- onFocus: (event)=>_handleFocus(event, lineId, x2, lastCirlceXCallout, lastCircleId, targetElement, lastCirlceXCalloutAccessibilityData),
763
- onBlur: _handleMouseOut,
764
- ..._getClickHandler(_points[i].data[j].onDataPointClick),
765
- opacity: isLegendSelected && !lastPointHidden ? 1 : 0.01,
766
- fill: ((_points_i_data_j = _points[i].data[j]) === null || _points_i_data_j === void 0 ? void 0 : _points_i_data_j.markerColor) || _getPointFill(lineColor, lastCircleId, j, true),
767
- stroke: ((_points_i_data_j1 = _points[i].data[j]) === null || _points_i_data_j1 === void 0 ? void 0 : _points_i_data_j1.markerColor) || lineColor,
768
- strokeWidth: strokeWidth,
769
- role: "img",
770
- "aria-label": _getAriaLabel(i, j),
771
- tabIndex: isLegendSelected ? 0 : undefined
772
- }), /*#__PURE__*/ _react.createElement("circle", {
773
- id: hiddenHoverCircleId,
774
- key: hiddenHoverCircleId,
775
- r: 8,
776
- cx: xPoint2,
777
- cy: yPoint2,
778
- opacity: 0,
779
- width: 0,
780
- onMouseOver: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
781
- onMouseMove: (event)=>_handleHover(x2, y2, verticaLineHeight, lastCirlceXCallout, lastCircleId, lastCirlceXCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
782
- onMouseOut: _handleMouseOut,
783
- strokeWidth: 0,
784
- focusable: false,
785
- onBlur: _handleMouseOut
786
- })));
787
- }
788
- }
789
- if ((0, _index1.isPlottable)(xPoint1, yPoint1) && (0, _index1.isPlottable)(xPoint2, yPoint2) && (!_hasMarkersMode || ((_points_i_lineOptions14 = _points[i].lineOptions) === null || _points_i_lineOptions14 === void 0 ? void 0 : (_points_i_lineOptions_mode2 = _points_i_lineOptions14.mode) === null || _points_i_lineOptions_mode2 === void 0 ? void 0 : _points_i_lineOptions_mode2.includes('lines')))) {
790
- if (isLegendSelected) {
791
- // don't draw line if it is in a gap
792
- if (!isInGap) {
793
- var _points_i_lineOptions18, _points_i_lineOptions19, _points_i_lineOptions20, _points_i_lineOptions21;
794
- const lineBorderWidth = ((_points_i_lineOptions18 = _points[i].lineOptions) === null || _points_i_lineOptions18 === void 0 ? void 0 : _points_i_lineOptions18.lineBorderWidth) ? Number.parseFloat(_points[i].lineOptions.lineBorderWidth.toString()) : 0;
795
- const targetElement = document.getElementById(circleId);
796
- if (lineBorderWidth > 0) {
797
- var _points_i_lineOptions22, _points_i_lineOptions23;
798
- var _points_i_lineOptions_strokeLinecap3;
799
- bordersForLine.push(/*#__PURE__*/ _react.createElement("line", {
800
- id: borderId,
801
- key: borderId,
802
- x1: xPoint1,
803
- y1: yPoint1,
804
- x2: xPoint2,
805
- y2: yPoint2,
806
- strokeLinecap: (_points_i_lineOptions_strokeLinecap3 = (_points_i_lineOptions22 = _points[i].lineOptions) === null || _points_i_lineOptions22 === void 0 ? void 0 : _points_i_lineOptions22.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap3 !== void 0 ? _points_i_lineOptions_strokeLinecap3 : 'round',
807
- strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth,
808
- stroke: ((_points_i_lineOptions23 = _points[i].lineOptions) === null || _points_i_lineOptions23 === void 0 ? void 0 : _points_i_lineOptions23.lineBorderColor) || _reacttheme.tokens.colorNeutralBackground1,
809
- opacity: 1
810
- }));
811
- }
812
- var _points_i_lineOptions_strokeLinecap4;
813
- linesForLine.push(/*#__PURE__*/ _react.createElement("line", {
814
- id: lineId,
815
- key: lineId,
816
- x1: xPoint1,
817
- y1: yPoint1,
818
- x2: xPoint2,
819
- y2: yPoint2,
820
- strokeWidth: strokeWidth,
821
- ref: (e)=>{
822
- _refCallback(e, lineId);
823
- },
824
- onMouseOver: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
825
- onMouseMove: (event)=>_handleHover(x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, event, yScale, legendVal, lineColor, targetElement),
826
- onMouseOut: _handleMouseOut,
827
- stroke: lineColor,
828
- strokeLinecap: (_points_i_lineOptions_strokeLinecap4 = (_points_i_lineOptions19 = _points[i].lineOptions) === null || _points_i_lineOptions19 === void 0 ? void 0 : _points_i_lineOptions19.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap4 !== void 0 ? _points_i_lineOptions_strokeLinecap4 : 'round',
829
- strokeDasharray: (_points_i_lineOptions20 = _points[i].lineOptions) === null || _points_i_lineOptions20 === void 0 ? void 0 : _points_i_lineOptions20.strokeDasharray,
830
- strokeDashoffset: (_points_i_lineOptions21 = _points[i].lineOptions) === null || _points_i_lineOptions21 === void 0 ? void 0 : _points_i_lineOptions21.strokeDashoffset,
831
- opacity: 1,
832
- ..._getClickHandler(_points[i].onLineClick)
833
- }));
834
- }
835
- } else {
836
- if (!isInGap) {
837
- var _points_i_lineOptions24, _points_i_lineOptions25, _points_i_lineOptions26;
838
- var _points_i_lineOptions_strokeLinecap5;
839
- linesForLine.push(/*#__PURE__*/ _react.createElement("line", {
840
- id: lineId,
841
- key: lineId,
842
- x1: xPoint1,
843
- y1: yPoint1,
844
- x2: xPoint2,
845
- y2: yPoint2,
846
- strokeWidth: strokeWidth,
847
- stroke: lineColor,
848
- strokeLinecap: (_points_i_lineOptions_strokeLinecap5 = (_points_i_lineOptions24 = _points[i].lineOptions) === null || _points_i_lineOptions24 === void 0 ? void 0 : _points_i_lineOptions24.strokeLinecap) !== null && _points_i_lineOptions_strokeLinecap5 !== void 0 ? _points_i_lineOptions_strokeLinecap5 : 'round',
849
- strokeDasharray: (_points_i_lineOptions25 = _points[i].lineOptions) === null || _points_i_lineOptions25 === void 0 ? void 0 : _points_i_lineOptions25.strokeDasharray,
850
- strokeDashoffset: (_points_i_lineOptions26 = _points[i].lineOptions) === null || _points_i_lineOptions26 === void 0 ? void 0 : _points_i_lineOptions26.strokeDashoffset,
851
- opacity: 0.1
852
- }));
853
- }
854
- }
855
- }
856
- }
857
- }
858
- // Add filled area for scatterpolar charts
859
- const fillMode = (_points_i_lineOptions1 = _points[i].lineOptions) === null || _points_i_lineOptions1 === void 0 ? void 0 : _points_i_lineOptions1.fill;
860
- const isLegendSelected = _legendHighlighted(legendVal) || _noLegendHighlighted() || isSelectedLegend;
861
- if (fillMode === 'toself' && _points[i].data.length >= 3 && isLegendSelected && _isScatterPolar) {
862
- const getScaledXValue = (dataPoint)=>_xAxisScale(dataPoint.x instanceof Date ? dataPoint.x : dataPoint.x);
863
- const fillPathGenerator = (0, _d3shape.line)().x((dataPoint)=>getScaledXValue(dataPoint)).y((dataPoint)=>yScale(dataPoint.y)).curve((0, _index1.getCurveFactory)(lineCurve)).defined((dataPoint)=>(0, _index1.isPlottable)(getScaledXValue(dataPoint), yScale(dataPoint.y)));
864
- const fillPath = fillPathGenerator(_points[i].data);
865
- if (fillPath) {
866
- linesForLine.push(/*#__PURE__*/ _react.createElement("path", {
867
- key: `scatterpolar_fill_${i}`,
868
- d: `${fillPath}Z`,
869
- fill: lineColor,
870
- fillOpacity: 0.5,
871
- stroke: lineColor,
872
- strokeWidth: 2,
873
- strokeOpacity: 0.8,
874
- pointerEvents: "none"
875
- }));
876
- }
877
- }
878
- if (_isScatterPolar) {
879
- var _points_i1;
880
- pointsForLine.push(...(0, _scatterpolarutils.renderScatterPolarCategoryLabels)({
881
- xAxisScale: _xAxisScale,
882
- yAxisScale: yScale,
883
- className: classes.markerLabel || '',
884
- lineOptions: (_points_i1 = _points[i]) === null || _points_i1 === void 0 ? void 0 : _points_i1.lineOptions
885
- }));
886
- }
887
- lines.push(/*#__PURE__*/ _react.createElement("g", {
888
- key: `line_${i}`,
889
- role: "region",
890
- "aria-label": `${legendVal}, line ${i + 1} of ${_points.length} with ${_points[i].data.length} data points.`
891
- }, bordersForLine, linesForLine, pointsForLine));
892
- }
893
- return lines;
894
- }
895
- function _createColorFillBars(containerHeight) {
896
- const colorFillBars = [];
897
- if (isSelectedLegend) {
898
- _colorFillBars.current = selectedColorBarLegend;
899
- } else {
900
- _colorFillBars.current = props.colorFillBars;
901
- }
902
- const yMinMaxValues = (0, _index1.findNumericMinMaxOfY)(_points);
903
- const FILL_Y_PADDING = 3;
904
- for(let i = 0; i < _colorFillBars.current.length; i++){
905
- const colorFillBar = _colorFillBars.current[i];
906
- const colorFillBarId = `${_colorFillBarId}-${i}`;
907
- const color = (0, _index1.getColorFromToken)(colorFillBar.color);
908
- if (colorFillBar.applyPattern) {
909
- // Using a pattern element because CSS was unable to render diagonal stripes for rect elements
910
- colorFillBars.push(_getStripePattern(color, i));
911
- }
912
- for(let j = 0; j < colorFillBar.data.length; j++){
913
- const startX = colorFillBar.data[j].startX;
914
- const endX = colorFillBar.data[j].endX;
915
- const opacity = _legendHighlighted(colorFillBar.legend) || _noLegendHighlighted() || isSelectedLegend ? _getColorFillBarOpacity(colorFillBar) : 0.1;
916
- colorFillBars.push(/*#__PURE__*/ _react.createElement("rect", {
917
- fill: colorFillBar.applyPattern ? `url(#${_colorFillBarPatternId}_${i})` : color,
918
- fillOpacity: opacity,
919
- x: _isRTL ? _xAxisScale(endX) : _xAxisScale(startX),
920
- y: _yScalePrimary(yMinMaxValues.endValue) - FILL_Y_PADDING,
921
- width: Math.abs(_xAxisScale(endX) - _xAxisScale(startX)),
922
- height: _yScalePrimary(props.yMinValue || 0) - _yScalePrimary(yMinMaxValues.endValue) + FILL_Y_PADDING,
923
- key: `${colorFillBarId}${j}`
924
- }));
925
- }
926
- }
927
- return colorFillBars;
928
- }
929
- function _getStripePattern(color, id) {
930
- // This describes a tile pattern that resembles diagonal stripes
931
- // For more information: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
932
- const stripePath = 'M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8';
933
- return /*#__PURE__*/ _react.createElement("pattern", {
934
- id: `${_colorFillBarPatternId}_${id}`,
935
- width: 16,
936
- height: 16,
937
- key: `${_colorFillBarPatternId}_${id}`,
938
- patternUnits: 'userSpaceOnUse'
939
- }, /*#__PURE__*/ _react.createElement("path", {
940
- d: stripePath,
941
- stroke: color,
942
- strokeWidth: 1.25
943
- }));
944
- }
945
- function _checkInGap(pointIndex, gaps, currentGapIndex) {
946
- let gapIndex = currentGapIndex;
947
- let isInGap = false;
948
- while(gapIndex < gaps.length && pointIndex > gaps[gapIndex].endIndex){
949
- gapIndex++;
950
- }
951
- if (gapIndex < gaps.length && pointIndex > gaps[gapIndex].startIndex && pointIndex <= gaps[gapIndex].endIndex) {
952
- isInGap = true;
953
- }
954
- return {
955
- isInGap,
956
- gapIndex
957
- };
958
- }
959
- function _refCallback(element, legendTitle) {
960
- _refArray.push({
961
- index: legendTitle,
962
- refElement: element
963
- });
964
- }
965
- // Helper function to update highlight circle, vertical line, and callout for large datasets
966
- const _updateLargeDatasetHighlightAndCallout = (linenumber, lineHeight, pointToHighlight, xAxisCalloutData, formattedDate, yScale)=>{
967
- // Check if this point is plottable. If not, close the popover and return.
968
- const xPoint = _xAxisScale(pointToHighlight.x);
969
- const yPoint = yScale(pointToHighlight.y);
970
- if (!(0, _index1.isPlottable)(xPoint, yPoint)) {
971
- return;
972
- }
973
- const found = (0, _index1.findCalloutPoints)(calloutPointsRef.current, pointToHighlight.x);
974
- const pointToHighlightUpdated = nearestCircleToHighlight === null || nearestCircleToHighlight !== null && pointToHighlight !== null && (nearestCircleToHighlight.x !== pointToHighlight.x || nearestCircleToHighlight.y !== pointToHighlight.y);
975
- // if no points need to be called out then don't show vertical line and callout card
976
- if (found && pointToHighlightUpdated) {
977
- _uniqueCallOutID = `#${_staticHighlightCircle}_${linenumber}`;
978
- (0, _d3selection.select)(`#${_staticHighlightCircle}_${linenumber}`).attr('cx', `${xPoint}`).attr('cy', `${yPoint}`).attr('visibility', 'visibility');
979
- (0, _d3selection.select)(`#${_verticalLine}`).attr('transform', ()=>`translate(${xPoint}, ${yPoint})`).attr('visibility', 'visibility').attr('y2', `${lineHeight - 5 - yPoint}`);
980
- const targetElement = document.getElementById(`${_staticHighlightCircle}_${linenumber}`);
981
- const rect = targetElement.getBoundingClientRect();
982
- setNearestCircleToHighlight(pointToHighlight);
983
- updatePosition(rect.x, rect.y);
984
- setStackCalloutProps(found);
985
- setYValueHover(found.values);
986
- setDataPointCalloutProps(found);
987
- xAxisCalloutData ? setHoverXValue(xAxisCalloutData) : setHoverXValue(formattedDate);
988
- setActivePoint('');
989
- }
990
- if (!found) {
991
- setPopoverOpen(false);
992
- setNearestCircleToHighlight(pointToHighlight);
993
- setActivePoint('');
994
- }
995
- };
996
- const _onFocusLargeDataset = (linenumber, lineHeight, focusEvent, yScale, pointIndex)=>{
997
- focusEvent.persist();
998
- const { data } = props;
999
- const { lineChartData } = data;
1000
- // For focus events, we use the provided point index directly
1001
- const pointToHighlight = lineChartData[linenumber].data[pointIndex];
1002
- if (!pointToHighlight) {
1003
- return;
1004
- }
1005
- const { xAxisCalloutData } = pointToHighlight;
1006
- const formattedDate = pointToHighlight.x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(pointToHighlight.x, props.culture, props.useUTC) : pointToHighlight.x;
1007
- _updateLargeDatasetHighlightAndCallout(linenumber, lineHeight, pointToHighlight, xAxisCalloutData, formattedDate, yScale);
1008
- };
1009
- const _onMouseOverLargeDataset = (linenumber, lineHeight, mouseEvent, yScale)=>{
1010
- mouseEvent.persist();
1011
- const { data } = props;
1012
- const { lineChartData } = data;
1013
- // This will get the value of the X when mouse is on the chart
1014
- const xOffset = _xAxisScale.invert((0, _d3selection.pointer)(mouseEvent)[0], document.getElementById(_rectId));
1015
- const i = bisect(lineChartData[linenumber].data, xOffset);
1016
- const d0 = lineChartData[linenumber].data[i - 1];
1017
- const d1 = lineChartData[linenumber].data[i];
1018
- let axisType = null;
1019
- let xPointToHighlight = 0;
1020
- let index = null;
1021
- if (d0 === undefined && d1 !== undefined) {
1022
- xPointToHighlight = d1.x;
1023
- index = i;
1024
- } else if (d0 !== undefined && d1 === undefined) {
1025
- xPointToHighlight = d0.x;
1026
- index = i - 1;
1027
- } else {
1028
- axisType = (0, _index1.getTypeOfAxis)(lineChartData[linenumber].data[0].x, true);
1029
- let x0;
1030
- let point0;
1031
- let point1;
1032
- switch(axisType){
1033
- case _index1.XAxisTypes.DateAxis:
1034
- x0 = new Date(xOffset).getTime();
1035
- point0 = d0.x.getTime();
1036
- point1 = d1.x.getTime();
1037
- xPointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
1038
- index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
1039
- break;
1040
- case _index1.XAxisTypes.NumericAxis:
1041
- x0 = xOffset;
1042
- point0 = d0.x;
1043
- point1 = d1.x;
1044
- xPointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
1045
- index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
1046
- break;
1047
- default:
1048
- break;
1049
- }
1050
- }
1051
- const { xAxisCalloutData } = lineChartData[linenumber].data[index];
1052
- const formattedDate = xPointToHighlight instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(xPointToHighlight, props.culture, props.useUTC) : xPointToHighlight;
1053
- const pointToHighlight = lineChartData[linenumber].data[index];
1054
- _updateLargeDatasetHighlightAndCallout(linenumber, lineHeight, pointToHighlight, xAxisCalloutData, formattedDate, yScale);
1055
- };
1056
- function _handleFocus(event, lineId, x, xAxisCalloutData, circleId, targetElement, xAxisCalloutAccessibilityData) {
1057
- _uniqueCallOutID = circleId;
1058
- const formattedData = x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(x, props.culture, props.useUTC) : x;
1059
- const found = (0, _index1.findCalloutPoints)(calloutPointsRef.current, x);
1060
- // if no points need to be called out then don't show vertical line and callout card
1061
- if (found) {
1062
- (0, _d3selection.select)(`#${_verticalLine}`).attr('transform', ()=>`translate(${_xAxisScale(x)}, 0)`).attr('visibility', 'visibility');
1063
- _refArray.forEach((obj)=>{
1064
- if (obj.index === lineId) {
1065
- setPopoverOpen(true);
1066
- xAxisCalloutData ? setHoverXValue(xAxisCalloutData) : setHoverXValue('' + formattedData);
1067
- setYValueHover(found.values);
1068
- setRefSelected(targetElement);
1069
- setStackCalloutProps(found);
1070
- setDataPointCalloutProps(found);
1071
- setActivePoint(circleId);
1072
- }
1073
- });
1074
- } else {
1075
- setActivePoint(circleId);
1076
- }
1077
- }
1078
- function _handleHover(x, y, lineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, mouseEvent, yScale, legendVal, lineColor, targetElement) {
1079
- mouseEvent === null || mouseEvent === void 0 ? void 0 : mouseEvent.persist();
1080
- const formattedData = x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(x, props.culture, props.useUTC) : x;
1081
- const found = (0, _index1.findCalloutPoints)(calloutPointsRef.current, x);
1082
- let hoverDp = undefined;
1083
- if (props.isCalloutForStack === false && (found === null || found === void 0 ? void 0 : found.values)) {
1084
- const dp = (0, _index1.find)(found.values, (val)=>(val === null || val === void 0 ? void 0 : val.y) === y);
1085
- if (dp) {
1086
- hoverDp = {
1087
- x,
1088
- values: [
1089
- dp
1090
- ]
1091
- };
1092
- }
1093
- }
1094
- // if no points need to be called out then don't show vertical line and callout card
1095
- if (found) {
1096
- (0, _d3selection.select)(`#${_verticalLine}`).attr('transform', ()=>`translate(${_xAxisScale(x)}, ${yScale(y)})`).attr('visibility', 'visibility').attr('y2', `${lineHeight - 5 - yScale(y)}`);
1097
- if (_uniqueCallOutID !== circleId) {
1098
- _uniqueCallOutID = circleId;
1099
- setRefSelected(targetElement);
1100
- setPopoverOpen(true);
1101
- xAxisCalloutData ? setHoverXValue(xAxisCalloutData) : setHoverXValue('' + formattedData);
1102
- setYValueHover(found.values);
1103
- setYValue(y);
1104
- setLegendVal(legendVal);
1105
- setLineColor(lineColor);
1106
- setStackCalloutProps(found);
1107
- setDataPointCalloutProps(hoverDp);
1108
- setActivePoint(circleId);
1109
- setNearestCircleToHighlight(null);
1110
- }
1111
- } else {
1112
- setActivePoint(circleId);
1113
- setNearestCircleToHighlight(null);
1114
- }
1115
- }
1116
- /**
1117
- * Screen readers announce an element as clickable if the onClick attribute is set.
1118
- * This function sets the attribute only when a click event handler is provided.*/ function _getClickHandler(func) {
1119
- if (func) {
1120
- return {
1121
- onClick: func
1122
- };
1123
- }
1124
- return {};
1125
- }
1126
- function _handleMouseOut() {
1127
- (0, _d3selection.select)(`#${_verticalLine}`).attr('visibility', 'hidden');
1128
- }
1129
- function _handleChartMouseLeave() {
1130
- _uniqueCallOutID = null;
1131
- setActivePoint('');
1132
- if (isPopoverOpen) {
1133
- setPopoverOpen(false);
1134
- }
1135
- }
1136
- function _handleMultipleLineLegendSelectionAction(selectedLine) {
1137
- const selectedLineIndex = selectedLegendPoints.reduce((acc, line, index)=>{
1138
- if (acc > -1 || line.legend !== selectedLine.legend) {
1139
- return acc;
1140
- } else {
1141
- return index;
1142
- }
1143
- }, -1);
1144
- let selectedLines;
1145
- if (selectedLineIndex === -1) {
1146
- selectedLines = [
1147
- ...selectedLegendPoints,
1148
- selectedLine
1149
- ];
1150
- } else {
1151
- selectedLines = selectedLegendPoints.slice(0, selectedLineIndex).concat(selectedLegendPoints.slice(selectedLineIndex + 1));
1152
- }
1153
- const areAllLineLegendsSelected = props.data && selectedLines.length === props.data.lineChartData.length;
1154
- if (areAllLineLegendsSelected && (props.colorFillBars && props.colorFillBars.length === selectedColorBarLegend.length || !props.colorFillBars)) {
1155
- // Clear all legends if all legends including color fill bar legends are selected
1156
- // Or clear all legends if all legends are selected and there are no color fill bars
1157
- _clearMultipleLegendSelections();
1158
- } else if (!selectedLines.length && !selectedColorBarLegend.length) {
1159
- // Clear all legends if no legends including color fill bar legends are selected
1160
- _clearMultipleLegendSelections();
1161
- } else {
1162
- // Otherwise, set state when one or more legends are selected, including color fill bar legends
1163
- setSelectedLegendPoints(selectedLines);
1164
- setIsSelectedLegend(true);
1165
- }
1166
- const selectedLegendTitlesToPass = selectedLines.map((line)=>line.legend);
1167
- _handleLegendClick(selectedLine, selectedLegendTitlesToPass);
1168
- }
1169
- function _handleMultipleColorFillBarLegendSelectionAction(selectedColorFillBar) {
1170
- const selectedColorFillBarIndex = selectedColorBarLegend.reduce((acc, colorFillBar, index)=>{
1171
- if (acc > -1 || colorFillBar.legend !== selectedColorFillBar.legend) {
1172
- return acc;
1173
- } else {
1174
- return index;
1175
- }
1176
- }, -1);
1177
- let selectedColorFillBars;
1178
- if (selectedColorFillBarIndex === -1) {
1179
- selectedColorFillBars = [
1180
- ...selectedColorBarLegend,
1181
- selectedColorFillBar
1182
- ];
1183
- } else {
1184
- selectedColorFillBars = selectedColorBarLegend.slice(0, selectedColorFillBarIndex).concat(selectedColorBarLegend.slice(selectedColorFillBarIndex + 1));
1185
- }
1186
- const areAllColorFillBarLegendsSelected = selectedColorFillBars.length === (props.colorFillBars && props.colorFillBars.length);
1187
- if (areAllColorFillBarLegendsSelected && (props.data && props.data.lineChartData.length === selectedLegendPoints.length || !props.data)) {
1188
- // Clear all legends if all legends, including line legends, are selected
1189
- // Or clear all legends if all legends are selected and there is no line data
1190
- _clearMultipleLegendSelections();
1191
- } else if (!selectedColorFillBars.length && !selectedLegendPoints.length) {
1192
- // Clear all legends if no legends are selected, including line legends
1193
- _clearMultipleLegendSelections();
1194
- } else {
1195
- // set state when one or more legends are selected, including line legends
1196
- setSelectedColorBarLegend(selectedColorFillBars);
1197
- setIsSelectedLegend(true);
1198
- }
1199
- const selectedLegendTitlesToPass = selectedColorFillBars.map((colorFillBar)=>colorFillBar.legend);
1200
- _handleLegendClick(selectedColorFillBar, selectedLegendTitlesToPass);
1201
- }
1202
- function _clearMultipleLegendSelections() {
1203
- setSelectedColorBarLegend([]);
1204
- setSelectedLegendPoints([]);
1205
- setIsSelectedLegend(false);
1206
- }
1207
- /**
1208
- * This function checks if the given legend is highlighted or not.
1209
- * A legend can be highlighted in 2 ways:
1210
- * 1. selection: if the user clicks on it
1211
- * 2. hovering: if there is no selected legend and the user hovers over it*/ function _legendHighlighted(legend) {
1212
- return selectedLegend === legend || selectedLegend === '' && activeLegend === legend;
1213
- }
1214
- /**
1215
- * This function checks if none of the legends is selected or hovered.*/ function _noLegendHighlighted() {
1216
- return selectedLegend === '' && activeLegend === '';
1217
- }
1218
- function _getColorFillBarOpacity(colorFillBar) {
1219
- return colorFillBar.applyPattern ? 1 : 0.4;
1220
- }
1221
- function _getAriaLabel(lineIndex, pointIndex) {
1222
- var _point_callOutAccessibilityData;
1223
- const line = _points[lineIndex];
1224
- const point = line.data[pointIndex];
1225
- const formattedDate = point.x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(point.x, props.culture, props.useUTC) : point.x;
1226
- const xValue = point.xAxisCalloutData || formattedDate;
1227
- const legend = line.legend;
1228
- const yValue = point.yAxisCalloutData || point.y;
1229
- return ((_point_callOutAccessibilityData = point.callOutAccessibilityData) === null || _point_callOutAccessibilityData === void 0 ? void 0 : _point_callOutAccessibilityData.ariaLabel) || `${xValue}. ${legend}, ${yValue}.`;
1230
- }
1231
- function _getChartTitle() {
1232
- const { chartTitle, lineChartData } = props.data;
1233
- return (chartTitle ? `${chartTitle}. ` : '') + `Line chart with ${(lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.length) || 0} lines. `;
1234
- }
1235
- function _isChartEmpty() {
1236
- return !(props.data && props.data.lineChartData && props.data.lineChartData.length > 0 && props.data.lineChartData.filter((item)=>item.data.length).length > 0);
1237
- }
1238
- const { legendProps, tickValues, tickFormat, eventAnnotationProps } = props;
1239
- _points = _injectIndexPropertyInLineChartData(props.data.lineChartData);
1240
- _isXAxisDateType = (0, _index1.getXAxisType)(_points);
1241
- let points = _points;
1242
- if (legendProps && !!legendProps.canSelectMultipleLegends) {
1243
- points = selectedLegendPoints.length >= 1 ? selectedLegendPoints : _points;
1244
- calloutPointsRef.current = (0, _index1.calloutData)(points);
1245
- }
1246
- let legendBars = null;
1247
- // reduce computation cost by only creating legendBars
1248
- // if when hideLegend is false.
1249
- // NOTE: they are rendered only when hideLegend is false in CartesianChart.
1250
- if (!props.hideLegend) {
1251
- legendBars = _createLegends(_points); // ToDo: Memoize legends to improve performance.
1252
- }
1253
- const calloutProps = {
1254
- YValueHover: yValueHover,
1255
- hoverXValue,
1256
- YValue,
1257
- legend: legendVal,
1258
- color: lineColor,
1259
- XValue: hoverXValue,
1260
- descriptionMessage: props.getCalloutDescriptionMessage && stackCalloutProps ? props.getCalloutDescriptionMessage(stackCalloutProps) : undefined,
1261
- tabIndex: 0,
1262
- xAxisCalloutAccessibilityData,
1263
- ...props.calloutProps,
1264
- isPopoverOpen,
1265
- clickPosition,
1266
- positioning: {
1267
- target: refSelected
1268
- },
1269
- isCalloutForStack: props.isCalloutForStack,
1270
- culture: props.culture,
1271
- isCartesian: true,
1272
- customCallout: {
1273
- customizedCallout: _getCustomizedCallout() !== null ? _getCustomizedCallout() : undefined,
1274
- customCalloutProps: props.calloutPropsPerDataPoint ? props.calloutPropsPerDataPoint(dataPointCalloutProps) : undefined
1275
- }
1276
- };
1277
- const tickParams = {
1278
- tickValues,
1279
- tickFormat
1280
- };
1281
- return !_isChartEmpty() ? /*#__PURE__*/ _react.createElement(_index2.CartesianChart, {
1282
- ...props,
1283
- chartTitle: _getChartTitle(),
1284
- points: points,
1285
- chartType: _index1.ChartTypes.LineChart,
1286
- calloutProps: calloutProps,
1287
- tickParams: tickParams,
1288
- legendBars: legendBars,
1289
- createYAxis: _index1.createNumericYAxis,
1290
- getmargins: _getMargins,
1291
- getMinMaxOfYAxis: _getNumericMinMaxOfY,
1292
- getGraphData: _initializeLineChartData,
1293
- xAxisType: _isXAxisDateType ? _index1.XAxisTypes.DateAxis : _index1.XAxisTypes.NumericAxis,
1294
- ..._isScatterPolar ? {
1295
- yMaxValue: 1,
1296
- yMinValue: -1
1297
- } : {},
1298
- getDomainNRangeValues: _getDomainNRangeValues,
1299
- createStringYAxis: _index1.createStringYAxis,
1300
- onChartMouseLeave: _handleChartMouseLeave,
1301
- enableFirstRenderOptimization: props.enablePerfOptimization && _firstRenderOptimization,
1302
- componentRef: cartesianChartRef,
1303
- children: (props)=>{
1304
- _xAxisScale = props.xScale;
1305
- _yScalePrimary = props.yScalePrimary;
1306
- _yScaleSecondary = props.yScaleSecondary;
1307
- return /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("g", null, /*#__PURE__*/ _react.createElement("line", {
1308
- x1: 0,
1309
- y1: 0,
1310
- x2: 0,
1311
- y2: props.containerHeight,
1312
- stroke: '#323130',
1313
- id: _verticalLine,
1314
- visibility: 'hidden',
1315
- strokeDasharray: '5,5'
1316
- }), props.optimizeLargeData ? /*#__PURE__*/ _react.createElement("rect", {
1317
- id: _rectId,
1318
- width: props.containerWidth,
1319
- height: props.containerHeight,
1320
- fill: 'transparent'
1321
- }) : /*#__PURE__*/ _react.createElement(_react.Fragment, null), /*#__PURE__*/ _react.createElement("g", null, _renderedColorFillBars, lines), eventAnnotationProps && /*#__PURE__*/ _react.createElement(_EventAnnotation.EventsAnnotation, {
1322
- ...eventAnnotationProps,
1323
- scale: props.xScale,
1324
- chartYTop: margins.top + eventLabelHeight,
1325
- chartYBottom: props.containerHeight - 35
1326
- })));
1327
- }
1328
- }) : /*#__PURE__*/ _react.createElement("div", {
1329
- id: _emptyChartId,
1330
- role: 'alert',
1331
- style: {
1332
- opacity: '0'
1333
- },
1334
- "aria-label": 'Graph has no data to display'
1335
- });
1336
- });
1337
- LineChart.displayName = 'LineChart';