@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,938 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AreaChart", {
7
- enumerable: true,
8
- get: function() {
9
- return AreaChart;
10
- }
11
- });
12
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
- const _d3array = require("d3-array");
15
- const _d3selection = require("d3-selection");
16
- const _reacttheme = require("@fluentui/react-theme");
17
- const _d3shape = require("d3-shape");
18
- const _index = require("../../index");
19
- const _index1 = require("../../utilities/index");
20
- const _reactutilities = require("@fluentui/react-utilities");
21
- const _index2 = require("../Legends/index");
22
- const _chartutilities = require("@fluentui/chart-utilities");
23
- const _hooks = require("../../utilities/hooks");
24
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
- const bisect = (0, _d3array.bisector)((d)=>d.x).left;
26
- var InterceptVisibility = /*#__PURE__*/ function(InterceptVisibility) {
27
- InterceptVisibility["show"] = "visibility";
28
- InterceptVisibility["hide"] = "hidden";
29
- return InterceptVisibility;
30
- }(InterceptVisibility || {});
31
- const AreaChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
32
- var _props_legendProps;
33
- const _uniqueIdForGraph = (0, _reactutilities.useId)('areaChart_');
34
- const _verticalLineId = (0, _reactutilities.useId)('verticalLine_');
35
- const _circleId = (0, _reactutilities.useId)('circle');
36
- const _rectId = (0, _reactutilities.useId)('rectangle');
37
- //enableComputationOptimization is used for optimized code to group data points by x value
38
- //from O(n^2) to O(n) using a map.
39
- const _enableComputationOptimization = true;
40
- const _firstRenderOptimization = true;
41
- const _emptyChartId = (0, _reactutilities.useId)('_AreaChart_empty');
42
- let _containsSecondaryYAxis = false;
43
- const _hasMissingXValues = _containsMissingXValues();
44
- const _hasDuplicateXValues = _xCoordinateContainsMultipleY();
45
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
- let _calloutPoints;
47
- let _createSet;
48
- let _colors;
49
- let _opacity;
50
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
- let _data;
52
- let _chart;
53
- let _margins;
54
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
- let _xAxisRectScale;
56
- // determines if the given area chart has multiple stacked bar charts
57
- let _isMultiStackChart;
58
- const { cartesianChartRef, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend);
59
- const [selectedLegends, setSelectedLegends] = _react.useState(((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends) || []);
60
- const [activeLegend, setActiveLegend] = _react.useState(undefined);
61
- const [hoverXValue, setHoverXValue] = _react.useState('');
62
- const [YValueHover, setYValueHover] = _react.useState([]);
63
- const [lineXValue, setLineXValue] = _react.useState(0);
64
- const [displayOfLine, setDisplayOfLine] = _react.useState("hidden");
65
- const [isCircleClicked, setIsCircleClicked] = _react.useState(false);
66
- const [nearestCircleToHighlight, setNearestCircleToHighlight] = _react.useState(null);
67
- const [activePoint, setActivePoint] = _react.useState('');
68
- const [dataPointCalloutProps, setDataPointCalloutProps] = _react.useState();
69
- const [stackCalloutProps, setStackCalloutProps] = _react.useState();
70
- const [xAxisCalloutAccessibilityData, setXAxisCalloutAccessibilityData] = _react.useState();
71
- const [clickPosition, setClickPosition] = _react.useState({
72
- x: 0,
73
- y: 0
74
- });
75
- const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
76
- const prevPropsRef = _react.useRef(null);
77
- _react.useEffect(()=>{
78
- if (prevPropsRef.current) {
79
- var _prevProps_legendProps, _props_legendProps;
80
- const prevProps = prevPropsRef.current;
81
- if (!(0, _index1.areArraysEqual)((_prevProps_legendProps = prevProps.legendProps) === null || _prevProps_legendProps === void 0 ? void 0 : _prevProps_legendProps.selectedLegends, (_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends)) {
82
- var _props_legendProps1;
83
- setSelectedLegends(((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegends) || []);
84
- }
85
- }
86
- prevPropsRef.current = props;
87
- }, [
88
- props
89
- ]);
90
- function _getMinMaxOfYAxis(points, yAxisType, useSecondaryYScale) {
91
- return (0, _index1.findNumericMinMaxOfY)(points, yAxisType, useSecondaryYScale);
92
- }
93
- function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
94
- let domainNRangeValue;
95
- if (xAxisType === _index1.XAxisTypes.NumericAxis) {
96
- domainNRangeValue = (0, _index1.domainRangeOfNumericForAreaLineScatterCharts)(points, margins, width, isRTL);
97
- } else if (xAxisType === _index1.XAxisTypes.DateAxis) {
98
- domainNRangeValue = (0, _index1.domainRangeOfDateForAreaLineScatterVerticalBarCharts)(points, margins, width, isRTL, tickValues, chartType, barWidth);
99
- } else {
100
- domainNRangeValue = {
101
- dStartValue: 0,
102
- dEndValue: 0,
103
- rStartValue: 0,
104
- rEndValue: 0
105
- };
106
- }
107
- return domainNRangeValue;
108
- }
109
- function _getMargins(margins) {
110
- _margins = margins;
111
- }
112
- function _onRectMouseMove(mouseEvent) {
113
- mouseEvent.persist();
114
- const { data } = props;
115
- const { lineChartData } = data;
116
- _updatePosition(mouseEvent.clientX, mouseEvent.clientY);
117
- // This will get the value of the X when mouse is on the chart
118
- // eslint-disable-next-line @nx/workspace-no-restricted-globals
119
- const xOffset = _xAxisRectScale.invert((0, _d3selection.pointer)(mouseEvent)[0], document.getElementById(_rectId));
120
- const i = bisect(lineChartData[0].data, xOffset);
121
- const d0 = lineChartData[0].data[i - 1];
122
- const d1 = lineChartData[0].data[i];
123
- let pointToHighlight = null;
124
- let index = null;
125
- const axisType = lineChartData[0].data.length > 0 ? (0, _index1.getTypeOfAxis)(lineChartData[0].data[0].x, true) : null;
126
- if (d0 === undefined && d1 !== undefined) {
127
- pointToHighlight = d1.x;
128
- index = i;
129
- } else if (d0 !== undefined && d1 === undefined) {
130
- pointToHighlight = d0.x;
131
- index = i - 1;
132
- } else {
133
- let x0;
134
- let point0;
135
- let point1;
136
- switch(axisType){
137
- case _index1.XAxisTypes.DateAxis:
138
- x0 = new Date(xOffset).getTime();
139
- point0 = d0.x.getTime();
140
- point1 = d1.x.getTime();
141
- pointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
142
- index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
143
- break;
144
- case _index1.XAxisTypes.NumericAxis:
145
- x0 = xOffset;
146
- point0 = d0.x;
147
- point1 = d1.x;
148
- pointToHighlight = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? d1.x : d0.x;
149
- index = Math.abs(x0 - point0) > Math.abs(x0 - point1) ? i : i - 1;
150
- break;
151
- default:
152
- break;
153
- }
154
- }
155
- // eslint-disable-next-line @typescript-eslint/no-shadow
156
- const { xAxisCalloutData, xAxisCalloutAccessibilityData } = lineChartData[0].data[index];
157
- const formattedDate = pointToHighlight instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(pointToHighlight, props.culture, props.useUTC) : pointToHighlight;
158
- const found = (0, _index1.findCalloutPoints)(_calloutPoints, pointToHighlight);
159
- const _nearestCircleToHighlight = axisType === _index1.XAxisTypes.DateAxis ? pointToHighlight.getTime() : pointToHighlight;
160
- // if no points need to be called out then don't show vertical line and callout card
161
- if (found) {
162
- const filteredValues = _getFilteredLegendValues(found.values);
163
- setNearestCircleToHighlight(_nearestCircleToHighlight);
164
- setLineXValue(_xAxisRectScale(pointToHighlight));
165
- setDisplayOfLine("visibility");
166
- setIsCircleClicked(false);
167
- setStackCalloutProps({
168
- ...found,
169
- values: filteredValues
170
- });
171
- setYValueHover(filteredValues);
172
- setDataPointCalloutProps({
173
- ...found,
174
- values: filteredValues
175
- });
176
- setHoverXValue(xAxisCalloutData ? xAxisCalloutData : formattedDate);
177
- setXAxisCalloutAccessibilityData(xAxisCalloutAccessibilityData);
178
- setActivePoint('');
179
- } else {
180
- setPopoverOpen(false);
181
- setNearestCircleToHighlight(nearestCircleToHighlight);
182
- setDisplayOfLine("hidden");
183
- setIsCircleClicked(false);
184
- }
185
- }
186
- /**
187
- * just cleaning up the state which we have set in the mouse move event
188
- */ function _onRectMouseOut() {
189
- /**/ }
190
- function _updatePosition(newX, newY) {
191
- const threshold = 1; // Set a threshold for movement
192
- const { x, y } = clickPosition;
193
- // Calculate the distance moved
194
- const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));
195
- // Update the position only if the distance moved is greater than the threshold
196
- if (distance > threshold) {
197
- setClickPosition({
198
- x: newX,
199
- y: newY
200
- });
201
- setPopoverOpen(true);
202
- }
203
- }
204
- function _handleChartMouseLeave() {
205
- setPopoverOpen(false);
206
- setNearestCircleToHighlight(null);
207
- setLineXValue(0);
208
- setDisplayOfLine("hidden");
209
- setIsCircleClicked(false);
210
- setStackCalloutProps(undefined);
211
- setDataPointCalloutProps(undefined);
212
- setHoverXValue(undefined);
213
- setYValueHover([]);
214
- }
215
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
216
- function _getDataPoints(keys, dataSet) {
217
- var _props_legendProps;
218
- const renderPoints = [];
219
- let maxOfYVal = 0;
220
- if (_shouldFillToZeroY()) {
221
- keys.forEach((key, index)=>{
222
- const currentLayer = [];
223
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
224
- dataSet.forEach((d)=>{
225
- currentLayer.push({
226
- values: [
227
- 0,
228
- d[key]
229
- ],
230
- xVal: d.xVal
231
- });
232
- if (d[key] > maxOfYVal) {
233
- maxOfYVal = d[key];
234
- }
235
- });
236
- renderPoints.push(currentLayer);
237
- });
238
- } else {
239
- const dataValues = (0, _d3shape.stack)().keys(keys)(dataSet);
240
- maxOfYVal = (0, _d3array.max)(dataValues[dataValues.length - 1], (dp)=>dp[1]);
241
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
242
- dataValues.forEach((layer)=>{
243
- const currentLayer = [];
244
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
245
- layer.forEach((d)=>{
246
- currentLayer.push({
247
- values: d,
248
- xVal: d.data.xVal
249
- });
250
- });
251
- renderPoints.push(currentLayer);
252
- });
253
- }
254
- _isMultiStackChart = !!(((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends) ? (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) >= 1 : (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) > 1);
255
- return {
256
- renderData: renderPoints,
257
- // The maxOfYVal prop is only required for the primary y-axis. When the data includes
258
- // a secondary y-axis, the mode defaults to tozeroy, so maxOfYVal should be calculated using
259
- // only the data points associated with the primary y-axis.
260
- maxOfYVal: _containsSecondaryYAxis ? (0, _index1.findNumericMinMaxOfY)(props.data.lineChartData).endValue : maxOfYVal
261
- };
262
- }
263
- function _createDataSet(points) {
264
- if (props.enablePerfOptimization && _enableComputationOptimization && !_hasDuplicateXValues) {
265
- const allChartPoints = [];
266
- const dataSet = [];
267
- const colors = [];
268
- const opacity = [];
269
- const calloutPoints = (0, _index1.calloutData)(points);
270
- points && points.length && points.forEach((singleChartPoint)=>{
271
- colors.push(singleChartPoint.color);
272
- opacity.push(singleChartPoint.opacity || 1);
273
- allChartPoints.push(...singleChartPoint.data);
274
- });
275
- const mapOfXvalToListOfDataPoints = {};
276
- allChartPoints.forEach((dataPoint)=>{
277
- const xValue = dataPoint.x instanceof Date ? dataPoint.x.toLocaleString() : dataPoint.x;
278
- // map of x value to the list of data points which share the same x value .
279
- if (mapOfXvalToListOfDataPoints[xValue]) {
280
- mapOfXvalToListOfDataPoints[xValue].push(dataPoint);
281
- } else {
282
- mapOfXvalToListOfDataPoints[xValue] = [
283
- dataPoint
284
- ];
285
- }
286
- });
287
- Object.keys(mapOfXvalToListOfDataPoints).forEach((key)=>{
288
- const value = mapOfXvalToListOfDataPoints[key];
289
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
290
- const singleDataset = {};
291
- value.forEach((singleDataPoint, index)=>{
292
- singleDataset.xVal = singleDataPoint.x;
293
- singleDataset[`chart${index}`] = singleDataPoint.y;
294
- });
295
- dataSet.push(singleDataset);
296
- });
297
- // get keys from dataset, used to render data
298
- const keysLength = dataSet && Object.keys(dataSet[0]).length;
299
- const keys = [];
300
- for(let i = 0; i < keysLength - 1; i++){
301
- const keyVal = `chart${i}`;
302
- keys.push(keyVal);
303
- }
304
- // Data used to draw graph
305
- const data = _getDataPoints(keys, dataSet);
306
- return {
307
- colors,
308
- opacity,
309
- keys,
310
- data,
311
- calloutPoints
312
- };
313
- } else {
314
- const allChartPoints = [];
315
- const dataSet = [];
316
- const colors = [];
317
- const opacity = [];
318
- const calloutPoints = (0, _index1.calloutData)(points);
319
- let data = {};
320
- const keys = [];
321
- let index = 0;
322
- points && points.length && points.forEach((singleChartPoint)=>{
323
- // if legend is not populated, then assign a legend
324
- if (_hasDuplicateXValues && !singleChartPoint.legend) {
325
- singleChartPoint.legend = `chart${index}`;
326
- ++index;
327
- }
328
- singleChartPoint.data.forEach((point)=>{
329
- point.legend = singleChartPoint.legend;
330
- });
331
- colors.push(singleChartPoint.color);
332
- opacity.push(singleChartPoint.opacity || 1);
333
- allChartPoints.push(...singleChartPoint.data);
334
- });
335
- if (!_hasDuplicateXValues) {
336
- let tempArr = allChartPoints;
337
- while(tempArr.length){
338
- const valToCheck = tempArr[0].x instanceof Date ? tempArr[0].x.toLocaleString() : tempArr[0].x;
339
- const filteredChartPoints = tempArr.filter((point)=>(point.x instanceof Date ? point.x.toLocaleString() : point.x) === valToCheck);
340
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
341
- const singleDataset = {};
342
- filteredChartPoints.forEach((singleDataPoint, id)=>{
343
- singleDataset.xVal = singleDataPoint.x;
344
- singleDataset[`chart${id}`] = singleDataPoint.y;
345
- });
346
- dataSet.push(singleDataset);
347
- // removing compared objects from array
348
- const val = tempArr[0].x instanceof Date ? tempArr[0].x.toLocaleString() : tempArr[0].x;
349
- tempArr = tempArr.filter((point)=>(point.x instanceof Date ? point.x.toLocaleString() : point.x) !== val);
350
- }
351
- // get keys from dataset, used to create stacked data
352
- const keysLength = dataSet && Object.keys(dataSet[0]).length;
353
- for(let i = 0; i < keysLength - 1; i++){
354
- const keyVal = `chart${i}`;
355
- keys.push(keyVal);
356
- }
357
- // Data used to draw graph
358
- data = _getDataPoints(keys, dataSet);
359
- } else {
360
- const datasetForDuplicateValues = _createDatasetForXCoordinateWithMultipleYValues(allChartPoints);
361
- data = _getDataPoints(datasetForDuplicateValues.keys, datasetForDuplicateValues.filteredDataSet);
362
- }
363
- return {
364
- colors,
365
- opacity,
366
- keys,
367
- data,
368
- calloutPoints
369
- };
370
- }
371
- }
372
- function _createDatasetForXCoordinateWithMultipleYValues(allChartPoints) {
373
- const dataSet = [];
374
- // Group data points by x-axis value
375
- const groupedData = {};
376
- allChartPoints.forEach((dataPoint)=>{
377
- const xValue = dataPoint.x instanceof Date ? dataPoint.x.toLocaleString() : dataPoint.x;
378
- if (!groupedData[xValue]) {
379
- groupedData[xValue] = [];
380
- }
381
- groupedData[xValue].push(dataPoint);
382
- });
383
- // Aggregate data points for each x-axis value
384
- Object.keys(groupedData).forEach((xValue)=>{
385
- const dataPoints = groupedData[xValue];
386
- dataPoints.forEach((dataPoint, id)=>{
387
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
388
- const singleDataset = {
389
- xVal: dataPoints[0].x
390
- };
391
- const key = dataPoint.legend ? dataPoint.legend : `chart${id}`;
392
- singleDataset[key] = dataPoint.y;
393
- dataSet.push(singleDataset);
394
- });
395
- });
396
- // get all unique keys from each array within the dataSet
397
- const allLegends = [];
398
- dataSet.forEach((item)=>{
399
- Object.keys(item).forEach((key)=>{
400
- if (key !== 'xVal' && !allLegends.includes(key)) {
401
- allLegends.push(key);
402
- }
403
- });
404
- });
405
- dataSet.forEach((item)=>{
406
- allLegends.forEach((legend)=>{
407
- if (!item[legend]) {
408
- item[legend] = 0; // Fill with 0 if the legend is missing
409
- }
410
- });
411
- });
412
- // exclude all items within dataset having all legend values 0
413
- const filteredDataSet = dataSet.filter((item)=>{
414
- return allLegends.some((legend)=>item[legend] !== 0);
415
- });
416
- const keys = Array.from(new Set(filteredDataSet.flatMap((item)=>Object.keys(item).filter((key)=>key !== 'xVal'))));
417
- return {
418
- keys,
419
- filteredDataSet
420
- };
421
- }
422
- function _getCustomizedCallout() {
423
- return props.onRenderCalloutPerStack ? props.onRenderCalloutPerStack(stackCalloutProps) : props.onRenderCalloutPerDataPoint ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps) : null;
424
- }
425
- function _getGraphData(xAxis, yAxis, containerHeight, containerWidth, xElement, yAxisElement, yScaleSecondary) {
426
- _chart = _drawGraph(containerHeight, xAxis, yAxis, yScaleSecondary, xElement);
427
- }
428
- function _onLegendHover(legend) {
429
- setActiveLegend(legend);
430
- }
431
- function _onLegendLeave() {
432
- setActiveLegend(undefined);
433
- }
434
- function _getLegendData(points) {
435
- const data = points;
436
- const actions = [];
437
- data.forEach((singleChartData)=>{
438
- const color = singleChartData.color;
439
- const checkSimilarLegends = actions.filter((leg)=>leg.title === singleChartData.legend && leg.color === color);
440
- if (checkSimilarLegends.length > 0) {
441
- return;
442
- }
443
- const legend = {
444
- title: singleChartData.legend,
445
- color,
446
- hoverAction: ()=>{
447
- _handleChartMouseLeave();
448
- _onLegendHover(singleChartData.legend);
449
- },
450
- onMouseOutAction: ()=>{
451
- _onLegendLeave();
452
- }
453
- };
454
- actions.push(legend);
455
- });
456
- return /*#__PURE__*/ _react.createElement(_index2.Legends, {
457
- legends: actions,
458
- enabledWrapLines: props.enabledLegendsWrapLines,
459
- ...props.legendProps,
460
- onChange: _onLegendSelectionChange,
461
- legendRef: _legendsRef
462
- });
463
- }
464
- function _onLegendSelectionChange(selectedLegends, event, currentLegend) {
465
- var _props_legendProps, _props_legendProps1;
466
- if ((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.canSelectMultipleLegends) {
467
- setSelectedLegends(selectedLegends);
468
- } else {
469
- setSelectedLegends(selectedLegends.slice(-1));
470
- }
471
- if ((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.onChange) {
472
- props.legendProps.onChange(selectedLegends, event, currentLegend);
473
- }
474
- }
475
- function _onDataPointClick(func) {
476
- if (func) {
477
- func();
478
- }
479
- setIsCircleClicked(true);
480
- }
481
- function _getOpacity(legend) {
482
- if (!_isMultiStackChart) {
483
- return 0.7;
484
- } else {
485
- const opacity = _legendHighlighted(legend) || _noLegendHighlighted() ? 0.7 : 0.1;
486
- return opacity;
487
- }
488
- }
489
- function _getLineOpacity(legend) {
490
- if (!_isMultiStackChart) {
491
- return 1;
492
- } else {
493
- let opacity = 0.3;
494
- if (isPopoverOpen) {
495
- opacity = 1;
496
- }
497
- if (!_noLegendHighlighted()) {
498
- opacity = _legendHighlighted(legend) ? 0 : 0.1;
499
- }
500
- return opacity;
501
- }
502
- }
503
- function _updateCircleFillColor(xDataPoint, lineColor, circleId) {
504
- let fillColor = lineColor;
505
- if (nearestCircleToHighlight === xDataPoint || activePoint === circleId) {
506
- if (!isCircleClicked) {
507
- fillColor = _reacttheme.tokens.colorNeutralBackground1;
508
- }
509
- }
510
- return fillColor;
511
- }
512
- function _drawGraph(containerHeight, xScale, yScalePrimary, yScaleSecondary, xElement) {
513
- const points = _addDefaultColors(props.data.lineChartData);
514
- const { pointOptions, pointLineOptions } = props.data;
515
- const graph = [];
516
- let lineColor;
517
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
518
- _data.forEach((singleStackedData, index)=>{
519
- var _points_index, _points_index_lineOptions, _points_index1, _points_index_lineOptions1, _points_index2, _points_index_lineOptions2, _points_index3, _points_index_lineOptions3, _points_index4, _points_index_lineOptions4, _points_index5;
520
- const yScale = ((_points_index = points[index]) === null || _points_index === void 0 ? void 0 : _points_index.useSecondaryYScale) && yScaleSecondary ? yScaleSecondary : yScalePrimary;
521
- const curveFactory = (0, _index1.getCurveFactory)((_points_index1 = points[index]) === null || _points_index1 === void 0 ? void 0 : (_points_index_lineOptions = _points_index1.lineOptions) === null || _points_index_lineOptions === void 0 ? void 0 : _points_index_lineOptions.curve, _d3shape.curveMonotoneX);
522
- const area = (0, _d3shape.area)() // eslint-disable-next-line @typescript-eslint/no-explicit-any
523
- .x((d)=>xScale(d.xVal)) // eslint-disable-next-line @typescript-eslint/no-explicit-any
524
- .y0((d)=>yScale(d.values[0])) // eslint-disable-next-line @typescript-eslint/no-explicit-any
525
- .y1((d)=>yScale(d.values[1])).curve(curveFactory);
526
- const line = (0, _d3shape.line)() // eslint-disable-next-line @typescript-eslint/no-explicit-any
527
- .x((d)=>xScale(d.xVal)) // eslint-disable-next-line @typescript-eslint/no-explicit-any
528
- .y((d)=>yScale(d.values[1])).curve(curveFactory);
529
- const layerOpacity = _shouldFillToZeroY() ? 0.8 : _opacity[index];
530
- var _points_index_lineOptions_strokeWidth;
531
- graph.push(/*#__PURE__*/ _react.createElement(_react.Fragment, {
532
- key: `${index}-graph-${_uniqueIdForGraph}`
533
- }, props.enableGradient && /*#__PURE__*/ _react.createElement("defs", null, /*#__PURE__*/ _react.createElement("linearGradient", {
534
- id: `gradient_${index}`,
535
- x1: "0%",
536
- x2: "0%",
537
- y1: "0%",
538
- y2: "100%"
539
- }, /*#__PURE__*/ _react.createElement("stop", {
540
- offset: "0",
541
- stopColor: _colors[index]
542
- }), /*#__PURE__*/ _react.createElement("stop", {
543
- offset: "100%",
544
- stopColor: "transparent"
545
- }))), /*#__PURE__*/ _react.createElement("path", {
546
- id: `${index}-line-${_uniqueIdForGraph}`,
547
- d: line(singleStackedData),
548
- fill: 'transparent',
549
- strokeWidth: (_points_index_lineOptions_strokeWidth = (_points_index2 = points[index]) === null || _points_index2 === void 0 ? void 0 : (_points_index_lineOptions1 = _points_index2.lineOptions) === null || _points_index_lineOptions1 === void 0 ? void 0 : _points_index_lineOptions1.strokeWidth) !== null && _points_index_lineOptions_strokeWidth !== void 0 ? _points_index_lineOptions_strokeWidth : 3,
550
- stroke: _colors[index],
551
- opacity: _getLineOpacity(points[index].legend),
552
- onMouseMove: (event)=>_onRectMouseMove(event),
553
- onMouseOut: _onRectMouseOut,
554
- onMouseOver: (event)=>_onRectMouseMove(event),
555
- strokeDasharray: (_points_index3 = points[index]) === null || _points_index3 === void 0 ? void 0 : (_points_index_lineOptions2 = _points_index3.lineOptions) === null || _points_index_lineOptions2 === void 0 ? void 0 : _points_index_lineOptions2.strokeDasharray,
556
- strokeDashoffset: (_points_index4 = points[index]) === null || _points_index4 === void 0 ? void 0 : (_points_index_lineOptions3 = _points_index4.lineOptions) === null || _points_index_lineOptions3 === void 0 ? void 0 : _points_index_lineOptions3.strokeDashoffset,
557
- strokeLinecap: (_points_index5 = points[index]) === null || _points_index5 === void 0 ? void 0 : (_points_index_lineOptions4 = _points_index5.lineOptions) === null || _points_index_lineOptions4 === void 0 ? void 0 : _points_index_lineOptions4.strokeLinecap
558
- }), singleStackedData.length === 1 ? /*#__PURE__*/ _react.createElement("circle", {
559
- id: `${index}-graph-${_uniqueIdForGraph}`,
560
- cx: xScale(singleStackedData[0].xVal),
561
- cy: yScale(singleStackedData[0].values[1]),
562
- r: 6,
563
- stroke: _colors[index],
564
- strokeWidth: 3,
565
- fill: _colors[index],
566
- opacity: layerOpacity,
567
- fillOpacity: _getOpacity(points[index].legend),
568
- onMouseMove: (event)=>_onRectMouseMove(event),
569
- onFocus: (event)=>_handleFocus(event, index, 0, `${_circleId}_${index}`),
570
- onMouseOut: _onRectMouseOut,
571
- onMouseOver: (event)=>_onRectMouseMove(event)
572
- }) : /*#__PURE__*/ _react.createElement("path", {
573
- id: `${index}-graph-${_uniqueIdForGraph}`,
574
- d: area(singleStackedData),
575
- fill: props.enableGradient ? `url(#gradient_${index})` : _colors[index],
576
- opacity: layerOpacity,
577
- fillOpacity: _getOpacity(points[index].legend),
578
- onMouseMove: (event)=>_onRectMouseMove(event),
579
- onMouseOut: _onRectMouseOut,
580
- onMouseOver: (event)=>_onRectMouseMove(event),
581
- ...props.optimizeLargeData && {
582
- tabIndex: _legendHighlighted(points[index].legend) || _noLegendHighlighted() ? 0 : undefined,
583
- role: 'img',
584
- 'aria-label': `${points[index].legend}, series ${index + 1} of ${points.length} with ${points[index].data.length} data points.`
585
- }
586
- })));
587
- });
588
- const circleRadius = pointOptions && pointOptions.r ? Number(pointOptions.r) : 8;
589
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
590
- _data.forEach((singleStackedData, index)=>{
591
- var _points_index;
592
- if (points.length === index) {
593
- return;
594
- }
595
- const yScale = ((_points_index = points[index]) === null || _points_index === void 0 ? void 0 : _points_index.useSecondaryYScale) && yScaleSecondary ? yScaleSecondary : yScalePrimary;
596
- if (!props.optimizeLargeData || singleStackedData.length === 1) {
597
- // Render circles for all data points
598
- graph.push(/*#__PURE__*/ _react.createElement("g", {
599
- key: `${index}-dots-${_uniqueIdForGraph}`,
600
- clipPath: "url(#clip)",
601
- role: "region",
602
- "aria-label": `${points[index].legend}, series ${index + 1} of ${points.length} with ${points[index].data.length} data points.`
603
- }, singleStackedData.map((singlePoint, pointIndex)=>{
604
- const circleId = `${_circleId}_${index * _data[0].length + pointIndex}`;
605
- const xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
606
- lineColor = points[index].color;
607
- const legend = points[index].legend;
608
- return /*#__PURE__*/ _react.createElement("circle", {
609
- key: circleId,
610
- id: circleId,
611
- tabIndex: _legendHighlighted(points[index].legend) || _noLegendHighlighted() ? 0 : undefined,
612
- cx: xScale(singlePoint.xVal),
613
- cy: yScale(singlePoint.values[1]),
614
- stroke: lineColor,
615
- strokeWidth: 3,
616
- fill: _updateCircleFillColor(xDataPoint, lineColor, circleId),
617
- onMouseOut: _onRectMouseOut,
618
- onMouseOver: (event)=>_onRectMouseMove(event),
619
- ..._getOnClickHandler(points, index, pointIndex),
620
- onFocus: (event)=>_handleFocus(event, index, pointIndex, circleId),
621
- onBlur: _handleBlur,
622
- ...(0, _index1.getSecureProps)(pointOptions),
623
- r: _getCircleRadius(xDataPoint, circleRadius, circleId, legend),
624
- role: "img",
625
- "aria-label": !_hasDuplicateXValues && !_hasMissingXValues && _getAriaLabel(index, pointIndex) || undefined
626
- });
627
- })));
628
- } else {
629
- // Render circles for data points close to the mouse pointer only
630
- singleStackedData.forEach((singlePoint, pointIndex)=>{
631
- const xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
632
- if (nearestCircleToHighlight === xDataPoint) {
633
- const circleId = `${_circleId}_${index * _data[0].length + pointIndex}`;
634
- lineColor = points[index].color;
635
- const legend = points[index].legend;
636
- graph.push(/*#__PURE__*/ _react.createElement("circle", {
637
- key: circleId,
638
- id: circleId,
639
- cx: xScale(singlePoint.xVal),
640
- cy: yScale(singlePoint.values[1]),
641
- stroke: lineColor,
642
- strokeWidth: 3,
643
- fill: _updateCircleFillColor(xDataPoint, lineColor, circleId),
644
- onMouseOut: _onRectMouseOut,
645
- onMouseOver: (event)=>_onRectMouseMove(event),
646
- onFocus: (event)=>_handleFocus(event, index, pointIndex, circleId),
647
- ..._getOnClickHandler(points, index, pointIndex),
648
- ...(0, _index1.getSecureProps)(pointOptions),
649
- r: _getCircleRadius(xDataPoint, circleRadius, circleId, legend)
650
- }));
651
- }
652
- });
653
- }
654
- });
655
- graph.push(/*#__PURE__*/ _react.createElement("line", {
656
- id: _verticalLineId,
657
- key: _verticalLineId,
658
- x1: lineXValue,
659
- y1: 0,
660
- x2: lineXValue,
661
- y2: containerHeight,
662
- strokeWidth: 1,
663
- strokeDasharray: 5.5,
664
- stroke: lineColor,
665
- opacity: 0.5,
666
- visibility: displayOfLine,
667
- ...(0, _index1.getSecureProps)(pointLineOptions)
668
- }));
669
- return graph;
670
- }
671
- function _getOnClickHandler(points, index, pointIndex) {
672
- if (!_hasDuplicateXValues && !_hasMissingXValues) {
673
- return {
674
- onClick: ()=>_onDataPointClick(points[index].data[pointIndex].onDataPointClick)
675
- };
676
- }
677
- return {};
678
- }
679
- function _getCircleRadius(xDataPoint, circleRadius, circleId, legend) {
680
- // Show the circle if no legends are selected or if the point's legend is in the selected legends
681
- if (!_noLegendHighlighted() && !_legendHighlighted(legend)) {
682
- return 0;
683
- }
684
- if (isCircleClicked && nearestCircleToHighlight === xDataPoint) {
685
- return 1;
686
- } else if (nearestCircleToHighlight === xDataPoint || activePoint === circleId) {
687
- return circleRadius;
688
- } else {
689
- return 0;
690
- }
691
- }
692
- /**
693
- * This function checks if the given legend is highlighted or not.
694
- * A legend can be highlighted in 2 ways:
695
- * 1. selection: if the user clicks on it
696
- * 2. hovering: if there is no selected legend and the user hovers over it
697
- */ function _legendHighlighted(legend) {
698
- return _getHighlightedLegend().includes(legend);
699
- }
700
- /**
701
- * This function checks if none of the legends is selected or hovered.
702
- */ function _noLegendHighlighted() {
703
- return _getHighlightedLegend().length === 0;
704
- }
705
- function _getHighlightedLegend() {
706
- return selectedLegends.length > 0 ? selectedLegends : activeLegend ? [
707
- activeLegend
708
- ] : [];
709
- }
710
- function _addDefaultColors(lineChartData) {
711
- if (_hasMissingXValues) {
712
- // get union of all x values
713
- const allXValues = new Set();
714
- lineChartData && lineChartData.forEach((line)=>{
715
- line.data.forEach((point)=>{
716
- const xValue = point.x instanceof Date ? point.x.toLocaleString() : point.x;
717
- allXValues.add(xValue);
718
- });
719
- });
720
- lineChartData && lineChartData.forEach((line)=>{
721
- allXValues.forEach((xValue)=>{
722
- const point = line.data.find((item)=>{
723
- return item.x instanceof Date ? item.x.toLocaleString() === xValue : item.x === xValue;
724
- });
725
- if (!point) {
726
- line.data.push({
727
- x: typeof xValue === 'string' ? new Date(xValue) : xValue,
728
- y: 0,
729
- legend: line.legend
730
- });
731
- }
732
- });
733
- // sort the data points by x value
734
- line.data.sort((a, b)=>{
735
- const xA = a.x instanceof Date ? a.x.getTime() : a.x;
736
- const xB = b.x instanceof Date ? b.x.getTime() : b.x;
737
- return xA < xB ? -1 : xA > xB ? 1 : 0;
738
- });
739
- });
740
- }
741
- return lineChartData ? lineChartData.map((item, index)=>{
742
- let color;
743
- // isInverted property is applicable to v8 themes only
744
- if (typeof item.color === 'undefined') {
745
- color = (0, _index1.getNextColor)(index, 0);
746
- } else {
747
- color = (0, _index1.getColorFromToken)(item.color);
748
- }
749
- return {
750
- ...item,
751
- color
752
- };
753
- }) : [];
754
- }
755
- function _handleFocus(event, lineIndex, pointIndex, circleId) {
756
- let cx = 0;
757
- let cy = 0;
758
- const targetRect = event.target.getBoundingClientRect();
759
- cx = targetRect.left + targetRect.width / 2;
760
- cy = targetRect.top + targetRect.height / 2;
761
- _updatePosition(cx, cy);
762
- const { x, y, xAxisCalloutData } = props.data.lineChartData[lineIndex].data[pointIndex];
763
- const formattedDate = x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(x, props.culture, props.useUTC) : x;
764
- const found = (0, _index1.findCalloutPoints)(_calloutPoints, x);
765
- if (found) {
766
- // Show details in the callout for the focused point only
767
- found.values = found.values.filter((e)=>e.y === y);
768
- const filteredValues = _getFilteredLegendValues(found.values);
769
- setPopoverOpen(true);
770
- setHoverXValue(xAxisCalloutData ? xAxisCalloutData : formattedDate);
771
- setYValueHover(filteredValues);
772
- setStackCalloutProps({
773
- ...found,
774
- values: filteredValues
775
- });
776
- setDataPointCalloutProps({
777
- ...found,
778
- values: filteredValues
779
- });
780
- setActivePoint(circleId);
781
- }
782
- }
783
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
784
- function _getFilteredLegendValues(values) {
785
- return !_noLegendHighlighted() ? values.filter((value)=>_legendHighlighted(value.legend)) : values;
786
- }
787
- function _handleBlur() {
788
- setPopoverOpen(false);
789
- setHoverXValue(undefined);
790
- setYValueHover([]);
791
- setStackCalloutProps(undefined);
792
- setDataPointCalloutProps(undefined);
793
- setActivePoint('');
794
- }
795
- function _getAriaLabel(lineIndex, pointIndex) {
796
- var _point_callOutAccessibilityData;
797
- const line = props.data.lineChartData[lineIndex];
798
- const point = line.data[pointIndex];
799
- const formattedDate = point.x instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(point.x, props.culture, props.useUTC) : point.x;
800
- const xValue = point.xAxisCalloutData || formattedDate;
801
- const legend = line.legend;
802
- const yValue = point.yAxisCalloutData || point.y;
803
- return ((_point_callOutAccessibilityData = point.callOutAccessibilityData) === null || _point_callOutAccessibilityData === void 0 ? void 0 : _point_callOutAccessibilityData.ariaLabel) || `${xValue}. ${legend}, ${yValue}.`;
804
- }
805
- function _isChartEmpty() {
806
- return !(props.data && props.data.lineChartData && props.data.lineChartData.length > 0 && // eslint-disable-next-line @typescript-eslint/no-explicit-any
807
- props.data.lineChartData.filter((item)=>item.data.length === 0).length === 0);
808
- }
809
- function _getChartTitle() {
810
- const { chartTitle, lineChartData } = props.data;
811
- return (chartTitle ? `${chartTitle}. ` : '') + `Area chart with ${(lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.length) || 0} data series. `;
812
- }
813
- function _xCoordinateContainsMultipleY() {
814
- const { lineChartData } = props.data;
815
- if (!lineChartData) {
816
- return false;
817
- }
818
- for (const item of lineChartData){
819
- const xValueMap = {};
820
- for (const point of item.data){
821
- const xValue = point.x instanceof Date ? point.x.toLocaleString() : point.x;
822
- if (!xValueMap[xValue]) {
823
- xValueMap[xValue] = [];
824
- }
825
- xValueMap[xValue].push(point.y);
826
- if (xValueMap[xValue].length > 1) {
827
- return true;
828
- }
829
- }
830
- }
831
- return false;
832
- }
833
- function _containsMissingXValues() {
834
- const { lineChartData } = props.data;
835
- if (!lineChartData) {
836
- return false;
837
- }
838
- const allXValues = new Set();
839
- lineChartData.forEach((line)=>{
840
- line.data.forEach((point)=>{
841
- const xValue = point.x instanceof Date ? point.x.toLocaleString() : point.x;
842
- allXValues.add(xValue);
843
- });
844
- });
845
- // for all x values, check if the x value is present in all series
846
- let hasMissingValues = false;
847
- lineChartData.forEach((line)=>{
848
- allXValues.forEach((xValue)=>{
849
- const point = line.data.find((item)=>{
850
- return item.x instanceof Date ? item.x.toLocaleString() === xValue : item.x === xValue;
851
- });
852
- if (!point) {
853
- hasMissingValues = true;
854
- }
855
- });
856
- });
857
- return hasMissingValues;
858
- }
859
- function _shouldFillToZeroY() {
860
- return props.mode === 'tozeroy' || _containsSecondaryYAxis;
861
- }
862
- if (!_isChartEmpty()) {
863
- const { lineChartData } = props.data;
864
- const points = _addDefaultColors(lineChartData);
865
- _containsSecondaryYAxis = !!props.secondaryYScaleOptions && points.some((point)=>point.useSecondaryYScale);
866
- _createSet = _createDataSet;
867
- const { colors, opacity, data, calloutPoints } = _createSet(points);
868
- _calloutPoints = calloutPoints;
869
- const isXAxisDateType = (0, _index1.getXAxisType)(points);
870
- _colors = colors;
871
- _opacity = opacity;
872
- _data = data.renderData;
873
- const legends = _getLegendData(points);
874
- const tickParams = {
875
- tickValues: props.tickValues,
876
- tickFormat: props.tickFormat
877
- };
878
- const calloutProps = {
879
- YValueHover: YValueHover,
880
- hoverXValue: hoverXValue,
881
- xAxisCalloutAccessibilityData,
882
- ...props.calloutProps,
883
- clickPosition,
884
- isPopoverOpen: isPopoverOpen && !_hasDuplicateXValues && !_hasMissingXValues,
885
- isCartesian: true,
886
- customCallout: {
887
- customizedCallout: _getCustomizedCallout() !== null ? _getCustomizedCallout() : undefined,
888
- customCalloutProps: props.calloutPropsPerDataPoint ? props.calloutPropsPerDataPoint(dataPointCalloutProps) : undefined
889
- },
890
- isCalloutForStack: true
891
- };
892
- return /*#__PURE__*/ _react.createElement(_index.CartesianChart, {
893
- ...props,
894
- chartTitle: _getChartTitle(),
895
- points: points,
896
- chartType: _index1.ChartTypes.AreaChart,
897
- calloutProps: calloutProps,
898
- legendBars: legends,
899
- createYAxis: _index1.createNumericYAxis,
900
- xAxisType: isXAxisDateType ? _index1.XAxisTypes.DateAxis : _index1.XAxisTypes.NumericAxis,
901
- tickParams: tickParams,
902
- maxOfYVal: data.maxOfYVal,
903
- getGraphData: _getGraphData,
904
- getDomainNRangeValues: _getDomainNRangeValues,
905
- createStringYAxis: _index1.createStringYAxis,
906
- getmargins: _getMargins,
907
- onChartMouseLeave: _handleChartMouseLeave,
908
- getMinMaxOfYAxis: _getMinMaxOfYAxis,
909
- enableFirstRenderOptimization: props.enablePerfOptimization && _firstRenderOptimization,
910
- componentRef: cartesianChartRef,
911
- /* eslint-disable react/jsx-no-bind */ // eslint-disable-next-line @typescript-eslint/no-shadow
912
- children: (props)=>{
913
- _xAxisRectScale = props.xScale;
914
- const ticks = _xAxisRectScale.ticks();
915
- const width1 = _xAxisRectScale(ticks[ticks.length - 1]);
916
- const rectHeight = props.containerHeight - _margins.top;
917
- return /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("g", null, /*#__PURE__*/ _react.createElement("rect", {
918
- id: _rectId,
919
- width: width1,
920
- height: rectHeight,
921
- fill: 'transparent',
922
- onMouseMove: (event)=>_onRectMouseMove(event),
923
- onMouseOut: _onRectMouseOut,
924
- onMouseOver: (event)=>_onRectMouseMove(event)
925
- })), /*#__PURE__*/ _react.createElement("g", null, _chart));
926
- }
927
- });
928
- }
929
- return /*#__PURE__*/ _react.createElement("div", {
930
- id: _emptyChartId,
931
- role: 'alert',
932
- style: {
933
- opacity: '0'
934
- },
935
- "aria-label": 'Graph has no data to display'
936
- });
937
- });
938
- AreaChart.displayName = 'AreaChart';