@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,1088 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "VerticalStackedBarChart", {
7
- enumerable: true,
8
- get: function() {
9
- return VerticalStackedBarChart;
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 _useVerticalStackedBarChartStylesstyles = require("./useVerticalStackedBarChartStyles.styles");
16
- const _d3scale = require("d3-scale");
17
- const _reactutilities = require("@fluentui/react-utilities");
18
- const _reacttheme = require("@fluentui/react-theme");
19
- const _reacttabster = require("@fluentui/react-tabster");
20
- const _index = require("../../index");
21
- const _index1 = require("../../utilities/index");
22
- const _chartutilities = require("@fluentui/chart-utilities");
23
- const _hooks = require("../../utilities/hooks");
24
- const barGapMultiplier = 0.2;
25
- const barGapMin = 1;
26
- const MIN_DOMAIN_MARGIN = 8;
27
- const VerticalStackedBarChart = /*#__PURE__*/ _react.forwardRef((_props, forwardedRef)=>{
28
- var _props_legendProps;
29
- const props = {
30
- xAxisCategoryOrder: 'default',
31
- yAxisCategoryOrder: 'default',
32
- maxBarWidth: 24,
33
- ..._props
34
- };
35
- const _isRtl = (0, _index1.useRtl)();
36
- const _createLegendsForLine = (data)=>_getLineLegends(data);
37
- const _emptyChartId = (0, _reactutilities.useId)('_VSBC_empty');
38
- const _arrowNavigationAttributes = (0, _reacttabster.useArrowNavigationGroup)({
39
- axis: 'vertical',
40
- circular: true
41
- });
42
- let _points = [];
43
- let _dataset;
44
- let _xAxisLabels = [];
45
- let _bars;
46
- let _xAxisType = props.data && props.data.length > 0 ? (0, _index1.getTypeOfAxis)(props.data[0].xAxisPoint, true) : _index1.XAxisTypes.StringAxis;
47
- let _barWidth = 0;
48
- let _colors;
49
- let _margins;
50
- let _lineObject;
51
- let _yMax;
52
- let _yMin;
53
- let _calloutAnchorPoint;
54
- let _domainMargin = MIN_DOMAIN_MARGIN;
55
- let _xAxisInnerPadding = 0;
56
- let _xAxisOuterPadding = 0;
57
- const { cartesianChartRef, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend);
58
- const Y_ORIGIN = 0;
59
- let _yAxisType;
60
- let _yAxisLabels = [];
61
- const [selectedLegends, setSelectedLegends] = _react.useState(((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends) || []);
62
- const [activeLegend, setActiveLegend] = _react.useState(undefined);
63
- const [dataForHoverCard, setDataForHoverCard] = _react.useState(0);
64
- const [color, setColor] = _react.useState('');
65
- const [hoverXValue, setHoverXValue] = _react.useState('');
66
- const [YValueHover, setYValueHover] = _react.useState([]);
67
- const [xCalloutValue, setXCalloutValue] = _react.useState('');
68
- const [yCalloutValue, setYCalloutValue] = _react.useState('');
69
- const [activeXAxisDataPoint, setActiveXAxisDataPoint] = _react.useState('');
70
- const [calloutLegend, setCalloutLegend] = _react.useState('');
71
- const [stackCalloutProps, setStackCalloutProps] = _react.useState();
72
- const [dataPointCalloutProps, setDataPointCalloutProps] = _react.useState();
73
- const [callOutAccessibilityData, setCallOutAccessibilityData] = _react.useState();
74
- const [clickPosition, setClickPosition] = _react.useState({
75
- x: 0,
76
- y: 0
77
- });
78
- const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
79
- const prevPropsRef = _react.useRef(null);
80
- _react.useEffect(()=>{
81
- if (prevPropsRef.current) {
82
- var _prevProps_legendProps, _props_legendProps;
83
- const prevProps = prevPropsRef.current;
84
- 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)) {
85
- var _props_legendProps1;
86
- setSelectedLegends(((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegends) || []);
87
- }
88
- if (prevProps.height !== props.height || prevProps.width !== props.width || prevProps.data !== props.data) {
89
- _adjustProps();
90
- _dataset = _createDataSetLayer();
91
- }
92
- }
93
- prevPropsRef.current = props;
94
- }, [
95
- props
96
- ]);
97
- function _getLegendData(data, lineLegends) {
98
- if (props.hideLegend) {
99
- return /*#__PURE__*/ _react.createElement(_react.Fragment, null);
100
- }
101
- const defaultPalette = [
102
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color6),
103
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color1),
104
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color5),
105
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color7),
106
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color10)
107
- ];
108
- const actions = [];
109
- const { allowHoverOnLegend = true } = props;
110
- data.forEach((singleChartData)=>{
111
- singleChartData.chartData.forEach((point)=>{
112
- const color = point.color ? point.color : defaultPalette[Math.floor(Math.random() * 4 + 1)];
113
- const checkSimilarLegends = actions.filter((leg)=>leg.title === point.legend && leg.color === color);
114
- if (checkSimilarLegends.length > 0) {
115
- return;
116
- }
117
- const legend = {
118
- title: point.legend,
119
- color,
120
- hoverAction: allowHoverOnLegend ? ()=>{
121
- _handleChartMouseLeave();
122
- _onLegendHover(point.legend);
123
- } : undefined,
124
- onMouseOutAction: allowHoverOnLegend ? ()=>_onLegendLeave() : undefined
125
- };
126
- actions.push(legend);
127
- });
128
- });
129
- const legendsOfLine = [];
130
- if (lineLegends && lineLegends.length > 0) {
131
- lineLegends.forEach((point)=>{
132
- const legend = {
133
- title: point.title,
134
- color: point.color,
135
- isLineLegendInBarChart: true,
136
- hoverAction: allowHoverOnLegend ? ()=>{
137
- _handleChartMouseLeave();
138
- _onLegendHover(point.title);
139
- } : undefined,
140
- onMouseOutAction: allowHoverOnLegend ? ()=>_onLegendLeave() : undefined
141
- };
142
- legendsOfLine.push(legend);
143
- });
144
- }
145
- const totalLegends = actions.concat(legendsOfLine);
146
- return /*#__PURE__*/ _react.createElement(_index.Legends, {
147
- legends: totalLegends,
148
- enabledWrapLines: props.enabledLegendsWrapLines,
149
- overflowText: props.legendsOverflowText,
150
- ...props.legendProps,
151
- onChange: _onLegendSelectionChange,
152
- legendRef: _legendsRef
153
- });
154
- }
155
- function _getHighlightedLegend() {
156
- return selectedLegends.length > 0 ? selectedLegends : activeLegend ? [
157
- activeLegend
158
- ] : [];
159
- }
160
- function _lineHoverFocus(lineData, event) {
161
- let clientX = 0;
162
- let clientY = 0;
163
- if ('clientX' in event) {
164
- clientX = event.clientX;
165
- clientY = event.clientY;
166
- } else {
167
- const boundingRect = event.target.getBoundingClientRect();
168
- clientX = boundingRect.left + boundingRect.width / 2;
169
- clientY = boundingRect.top + boundingRect.height / 2;
170
- }
171
- if (_noLegendHighlighted() || _isLegendHighlighted(lineData.legend)) {
172
- _updatePosition(clientX, clientY);
173
- setPopoverOpen(true);
174
- setXCalloutValue(`${lineData.xItem.xAxisPoint}`);
175
- setYCalloutValue(`${lineData.yAxisCalloutData || lineData.data || lineData.y}`);
176
- setCalloutLegend(lineData.legend);
177
- setActiveXAxisDataPoint(lineData.xItem.xAxisPoint);
178
- setColor(lineData.color);
179
- }
180
- }
181
- function _onStackHoverFocus(stack, event) {
182
- var _stack_lineData;
183
- let clientX = 0;
184
- let clientY = 0;
185
- if ('clientX' in event) {
186
- clientX = event.clientX;
187
- clientY = event.clientY;
188
- } else {
189
- // Handle React FocusEvent or SVGGElement
190
- const element = 'target' in event ? event.target : event;
191
- const boundingRect = element.getBoundingClientRect();
192
- clientX = boundingRect.left + boundingRect.width / 2;
193
- clientY = boundingRect.top + boundingRect.height / 2;
194
- }
195
- if (!_noLegendHighlighted()) {
196
- var _stack_lineData1;
197
- stack = {
198
- ...stack,
199
- chartData: stack.chartData.filter((dataPoint)=>_isLegendHighlighted(dataPoint.legend)),
200
- lineData: (_stack_lineData1 = stack.lineData) === null || _stack_lineData1 === void 0 ? void 0 : _stack_lineData1.filter((dataPoint)=>_isLegendHighlighted(dataPoint.legend))
201
- };
202
- }
203
- const lineData = stack.lineData;
204
- const isLinesPresent = lineData !== undefined && lineData.length > 0;
205
- if (isLinesPresent) {
206
- lineData.forEach((item)=>{
207
- item.data = item.data || item.y;
208
- item.shouldDrawBorderBottom = true;
209
- });
210
- }
211
- _updatePosition(clientX, clientY);
212
- var _stack_lineData_length;
213
- setPopoverOpen(stack.chartData.length > 0 || ((_stack_lineData_length = (_stack_lineData = stack.lineData) === null || _stack_lineData === void 0 ? void 0 : _stack_lineData.length) !== null && _stack_lineData_length !== void 0 ? _stack_lineData_length : 0) > 0);
214
- setYValueHover(isLinesPresent ? [
215
- ...lineData.sort((a, b)=>a.data < b.data ? 1 : -1),
216
- ...stack.chartData.slice().reverse()
217
- ] : stack.chartData.slice().reverse());
218
- setHoverXValue(stack.xAxisPoint instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(stack.xAxisPoint, props.culture, props.useUTC) : stack.xAxisPoint);
219
- setStackCalloutProps(stack);
220
- setActiveXAxisDataPoint(stack.xAxisPoint);
221
- setCallOutAccessibilityData(stack.stackCallOutAccessibilityData);
222
- }
223
- function _handleChartMouseLeave() {
224
- _calloutAnchorPoint = null;
225
- setPopoverOpen(false);
226
- setActiveXAxisDataPoint('');
227
- }
228
- const _onClick = (data, mouseEvent)=>{
229
- var _props_onBarClick;
230
- (_props_onBarClick = props.onBarClick) === null || _props_onBarClick === void 0 ? void 0 : _props_onBarClick.call(props, mouseEvent, data);
231
- if (props.href && (0, _chartutilities.isSafeUrl)(props.href)) {
232
- window.location.href = props.href;
233
- }
234
- };
235
- function _adjustProps() {
236
- var _points_;
237
- _points = props.data || [];
238
- _barWidth = (0, _index1.getBarWidth)(props.barWidth, props.maxBarWidth);
239
- const defaultColors = [
240
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color6),
241
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color1),
242
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color5),
243
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color7),
244
- (0, _index1.getColorFromToken)(_index1.DataVizPalette.color10)
245
- ];
246
- _colors = defaultColors;
247
- const firstXValue = (_points_ = _points[0]) === null || _points_ === void 0 ? void 0 : _points_.xAxisPoint;
248
- _xAxisType = (0, _chartutilities.isInvalidValue)(firstXValue) ? _index1.XAxisTypes.StringAxis : (0, _index1.getTypeOfAxis)(firstXValue, true);
249
- _lineObject = _getFormattedLineData(props.data);
250
- _xAxisInnerPadding = (0, _index1.getScalePadding)(props.xAxisInnerPadding, props.xAxisPadding, _xAxisType === _index1.XAxisTypes.StringAxis ? 2 / 3 : 1 / 2);
251
- _xAxisOuterPadding = (0, _index1.getScalePadding)(props.xAxisOuterPadding, props.xAxisPadding, 0);
252
- _initYAxisParams();
253
- }
254
- function _createDataSetLayer() {
255
- const dataset = _points.map((singlePointData)=>{
256
- if (_yAxisType === _index1.YAxisType.StringAxis) {
257
- return {
258
- x: singlePointData.xAxisPoint,
259
- y: 0
260
- };
261
- }
262
- let total = 0;
263
- singlePointData.chartData.forEach((point)=>{
264
- total = total + point.data;
265
- });
266
- return {
267
- x: singlePointData.xAxisPoint,
268
- y: total
269
- };
270
- });
271
- _xAxisLabels = _getOrderedXAxisLabels();
272
- return dataset;
273
- }
274
- function _onLegendHover(legendTitle) {
275
- setActiveLegend(legendTitle);
276
- }
277
- function _onLegendLeave() {
278
- setActiveLegend(undefined);
279
- }
280
- function _onLegendSelectionChange(_selectedLegends, event, currentLegend) {
281
- var _props_legendProps, _props_legendProps1;
282
- if ((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.canSelectMultipleLegends) {
283
- setSelectedLegends(_selectedLegends);
284
- } else {
285
- setSelectedLegends(_selectedLegends.slice(-1));
286
- }
287
- if ((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.onChange) {
288
- props.legendProps.onChange(_selectedLegends, event, currentLegend);
289
- }
290
- }
291
- function _getMargins(margins) {
292
- _margins = margins;
293
- }
294
- function _getGraphData(xScale, yScale, containerHeight, containerWidth, xElement) {
295
- const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);
296
- return _bars = _createBar(xBarScale, _yAxisType === _index1.YAxisType.StringAxis ? yScale : yBarScale, containerHeight, xElement);
297
- }
298
- function _getAxisData(yAxisData) {
299
- if (yAxisData && yAxisData.yAxisDomainValues.length) {
300
- const { yAxisDomainValues: domainValue } = yAxisData;
301
- _yMax = Math.max(domainValue[domainValue.length - 1], props.yMaxValue || Y_ORIGIN);
302
- _yMin = Math.min(domainValue[0], props.yMinValue || Y_ORIGIN);
303
- }
304
- }
305
- /**
306
- * This function checks if the given legend is highlighted or not.
307
- * A legend can be highlighted in 2 ways:
308
- * 1. selection: if the user clicks on it
309
- * 2. hovering: if there is no selected legend and the user hovers over it
310
- */ function _isLegendHighlighted(legendTitle) {
311
- return _getHighlightedLegend().includes(legendTitle);
312
- }
313
- /**
314
- * This function checks if none of the legends is selected or hovered.
315
- */ function _noLegendHighlighted() {
316
- return _getHighlightedLegend().length === 0;
317
- }
318
- function _getAriaLabel(singleChartData, point, isLinePoint) {
319
- var _point_callOutAccessibilityData;
320
- if (!point) {
321
- var _singleChartData_lineData, _singleChartData_stackCallOutAccessibilityData;
322
- /** if shouldFocusWholeStack is true */ const xValue = singleChartData.xAxisCalloutData || (singleChartData.xAxisPoint instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(singleChartData.xAxisPoint, props.culture, props.useUTC) : singleChartData.xAxisPoint);
323
- const pointValues = singleChartData.chartData.map((pt)=>{
324
- const legend = pt.legend;
325
- const yValue = pt.yAxisCalloutData || pt.data;
326
- return _noLegendHighlighted() || _isLegendHighlighted(legend) ? `${legend}, ${yValue}.` : '';
327
- }).filter((str)=>str !== '').join(' ');
328
- const lineValues = (_singleChartData_lineData = singleChartData.lineData) === null || _singleChartData_lineData === void 0 ? void 0 : _singleChartData_lineData.map((ln)=>{
329
- const legend = ln.legend;
330
- const yValue = ln.yAxisCalloutData || ln.data || ln.y;
331
- return _noLegendHighlighted() || _isLegendHighlighted(legend) ? `${legend}, ${yValue}.` : '';
332
- }).filter((str)=>str !== '').join(' ');
333
- return ((_singleChartData_stackCallOutAccessibilityData = singleChartData.stackCallOutAccessibilityData) === null || _singleChartData_stackCallOutAccessibilityData === void 0 ? void 0 : _singleChartData_stackCallOutAccessibilityData.ariaLabel) || `${xValue}. ${pointValues}` + (lineValues ? ` ${lineValues}` : '');
334
- }
335
- /** if shouldFocusWholeStack is false */ const xValue = singleChartData.xAxisCalloutData || !isLinePoint && point.xAxisCalloutData || (singleChartData.xAxisPoint instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(singleChartData.xAxisPoint, props.culture, props.useUTC) : singleChartData.xAxisPoint);
336
- const legend = point.legend;
337
- const yValue = point.yAxisCalloutData || (isLinePoint ? point.data || point.y : point.data);
338
- return !isLinePoint && ((_point_callOutAccessibilityData = point.callOutAccessibilityData) === null || _point_callOutAccessibilityData === void 0 ? void 0 : _point_callOutAccessibilityData.ariaLabel) || `${xValue}. ${legend}, ${yValue}.`;
339
- }
340
- function _getCustomizedCallout() {
341
- const _isHavingLines = props.data.some((item)=>item.lineData && item.lineData.length > 0);
342
- return props.onRenderCalloutPerStack ? props.onRenderCalloutPerStack(stackCalloutProps) : props.onRenderCalloutPerDataPoint && !_isHavingLines ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps, _renderCallout) : null;
343
- }
344
- function _toFocusWholeStack() {
345
- const { isCalloutForStack = false } = props;
346
- return isCalloutForStack;
347
- }
348
- function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
349
- let domainNRangeValue;
350
- if (xAxisType === _index1.XAxisTypes.NumericAxis) {
351
- domainNRangeValue = (0, _index1.domainRangeOfVSBCNumeric)(points, margins, width, isRTL, barWidth);
352
- } else if (xAxisType === _index1.XAxisTypes.DateAxis) {
353
- domainNRangeValue = (0, _index1.domainRangeOfDateForAreaLineScatterVerticalBarCharts)(points, margins, width, isRTL, tickValues, chartType, barWidth);
354
- } else {
355
- domainNRangeValue = (0, _index1.domainRangeOfXStringAxis)(margins, width, isRTL);
356
- }
357
- return domainNRangeValue;
358
- }
359
- function _getFormattedLineData(data) {
360
- const linesData = [];
361
- const formattedLineData = {};
362
- data.forEach((item, index)=>{
363
- if (item.lineData) {
364
- item.lineData.forEach((line)=>{
365
- linesData.push({
366
- ...line,
367
- index,
368
- xItem: item
369
- });
370
- });
371
- }
372
- });
373
- linesData.forEach((item)=>{
374
- if (formattedLineData[item.legend]) {
375
- formattedLineData[item.legend].push(item);
376
- } else {
377
- formattedLineData[item.legend] = [
378
- item
379
- ];
380
- }
381
- });
382
- return formattedLineData;
383
- }
384
- function _getLineLegends(data) {
385
- const lineObject = _lineObject;
386
- const lineLegends = [];
387
- Object.keys(lineObject).forEach((item)=>{
388
- lineLegends.push({
389
- title: item,
390
- color: lineObject[item][0].color
391
- });
392
- });
393
- return lineLegends;
394
- }
395
- function _createLines(xScale, yScalePrimary, containerHeight, containerWidth, yScaleSecondary) {
396
- var _props_lineOptions;
397
- const lineObject = _getFormattedLineData(props.data);
398
- const lines = [];
399
- const borderForLines = [];
400
- const dots = [];
401
- //const { theme } = props;
402
- const lineBorderWidth = ((_props_lineOptions = props.lineOptions) === null || _props_lineOptions === void 0 ? void 0 : _props_lineOptions.lineBorderWidth) ? Number.parseFloat(props.lineOptions.lineBorderWidth.toString()) : 0;
403
- const xScaleBandwidthTranslate = _xAxisType !== _index1.XAxisTypes.StringAxis ? 0 : xScale.bandwidth() / 2;
404
- Object.keys(lineObject).forEach((item, index)=>{
405
- const shouldHighlight = _isLegendHighlighted(item) || _noLegendHighlighted();
406
- for(let i = 1; i < lineObject[item].length; i++){
407
- var _lineObject_item__lineOptions, _lineObject_item__lineOptions1, _lineObject_item__lineOptions2;
408
- const x1 = xScale(lineObject[item][i - 1].xItem.xAxisPoint);
409
- const useSecondaryYScale = lineObject[item][i - 1].useSecondaryYScale && lineObject[item][i].useSecondaryYScale && yScaleSecondary;
410
- const y1 = useSecondaryYScale ? yScaleSecondary(lineObject[item][i - 1].y) : yScalePrimary(lineObject[item][i - 1].y);
411
- const x2 = xScale(lineObject[item][i].xItem.xAxisPoint);
412
- const y2 = useSecondaryYScale ? yScaleSecondary(lineObject[item][i].y) : yScalePrimary(lineObject[item][i].y);
413
- const yScaleBandwidthTranslate = !useSecondaryYScale && _yAxisType === _index1.YAxisType.StringAxis ? yScalePrimary.bandwidth() / 2 : 0;
414
- if (lineBorderWidth > 0) {
415
- borderForLines.push(/*#__PURE__*/ _react.createElement("line", {
416
- key: `${index}-${i}-BorderLine`,
417
- x1: x1,
418
- y1: y1,
419
- x2: x2,
420
- y2: y2,
421
- opacity: shouldHighlight ? 1 : 0.1,
422
- strokeWidth: 3 + lineBorderWidth * 2,
423
- fill: "transparent",
424
- strokeLinecap: "round",
425
- stroke: _reacttheme.tokens.colorNeutralBackground1,
426
- transform: `translate(${xScaleBandwidthTranslate}, ${yScaleBandwidthTranslate})`
427
- }));
428
- }
429
- var _lineObject_item__lineOptions_strokeWidth, _lineObject_item__lineOptions_strokeLinecap;
430
- lines.push(/*#__PURE__*/ _react.createElement("line", {
431
- key: `${index}-${i}-line`,
432
- x1: x1,
433
- y1: y1,
434
- x2: x2,
435
- y2: y2,
436
- opacity: shouldHighlight ? 1 : 0.1,
437
- strokeWidth: (_lineObject_item__lineOptions_strokeWidth = (_lineObject_item__lineOptions = lineObject[item][0].lineOptions) === null || _lineObject_item__lineOptions === void 0 ? void 0 : _lineObject_item__lineOptions.strokeWidth) !== null && _lineObject_item__lineOptions_strokeWidth !== void 0 ? _lineObject_item__lineOptions_strokeWidth : 3,
438
- strokeLinecap: (_lineObject_item__lineOptions_strokeLinecap = (_lineObject_item__lineOptions1 = lineObject[item][0].lineOptions) === null || _lineObject_item__lineOptions1 === void 0 ? void 0 : _lineObject_item__lineOptions1.strokeLinecap) !== null && _lineObject_item__lineOptions_strokeLinecap !== void 0 ? _lineObject_item__lineOptions_strokeLinecap : 'round',
439
- strokeDasharray: (_lineObject_item__lineOptions2 = lineObject[item][0].lineOptions) === null || _lineObject_item__lineOptions2 === void 0 ? void 0 : _lineObject_item__lineOptions2.strokeDasharray,
440
- stroke: lineObject[item][i].color,
441
- transform: `translate(${xScaleBandwidthTranslate}, ${yScaleBandwidthTranslate})`,
442
- onMouseOver: (event)=>_lineHover(lineObject[item][i - 1], event),
443
- onMouseLeave: _handleMouseOut
444
- }));
445
- }
446
- });
447
- Object.keys(lineObject).forEach((item, index)=>{
448
- lineObject[item].forEach((circlePoint, subIndex)=>{
449
- const circleRef = {
450
- refElement: null
451
- };
452
- const yScaleBandwidthTranslate = !circlePoint.useSecondaryYScale && _yAxisType === _index1.YAxisType.StringAxis ? yScalePrimary.bandwidth() / 2 : 0;
453
- const shouldHighlight = _isLegendHighlighted(circlePoint.legend) || _noLegendHighlighted() ? true : false;
454
- dots.push(/*#__PURE__*/ _react.createElement("circle", {
455
- key: `${index}-${subIndex}-dot`,
456
- cx: xScale(circlePoint.xItem.xAxisPoint),
457
- cy: circlePoint.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(circlePoint.y) : yScalePrimary(circlePoint.y),
458
- onMouseOver: (event)=>_lineHover(circlePoint, event),
459
- onMouseLeave: _handleMouseOut,
460
- r: _getCircleOpacityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).radius,
461
- stroke: circlePoint.color,
462
- fill: _reacttheme.tokens.colorNeutralBackground1,
463
- strokeWidth: 3,
464
- // Elements with visibility: hidden cannot receive focus, so use opacity: 0 instead to hide them.
465
- // For more information, see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html
466
- opacity: _getCircleOpacityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).opacity,
467
- transform: `translate(${xScaleBandwidthTranslate}, ${yScaleBandwidthTranslate})`,
468
- ref: (e)=>{
469
- circleRef.refElement = e;
470
- },
471
- tabIndex: !props.hideTooltip && shouldHighlight ? 0 : undefined,
472
- onFocus: (event)=>_lineFocus(event, circlePoint, circleRef),
473
- onBlur: _handleMouseOut,
474
- role: "img",
475
- "aria-label": _getAriaLabel(circlePoint.xItem, circlePoint, true)
476
- }));
477
- });
478
- });
479
- return /*#__PURE__*/ _react.createElement(_react.Fragment, null, borderForLines, lines, dots);
480
- }
481
- function _getCircleOpacityAndRadius(xAxisPoint, legend) {
482
- if (!_noLegendHighlighted()) {
483
- if (xAxisPoint === activeXAxisDataPoint && _isLegendHighlighted(legend)) {
484
- return {
485
- opacity: 1,
486
- radius: 8
487
- };
488
- } else if (_isLegendHighlighted(legend)) {
489
- return {
490
- opacity: 1,
491
- radius: 0.3
492
- };
493
- } else {
494
- return {
495
- opacity: 0,
496
- radius: 0
497
- };
498
- }
499
- } else {
500
- return {
501
- opacity: activeXAxisDataPoint === xAxisPoint ? 1 : 0,
502
- radius: 8
503
- };
504
- }
505
- }
506
- function _renderCallout(props) {
507
- return props ? /*#__PURE__*/ _react.createElement(_index.ChartPopover, {
508
- culture: props.culture,
509
- XValue: props.xAxisCalloutData,
510
- xCalloutValue: xCalloutValue,
511
- yCalloutValue: yCalloutValue,
512
- clickPosition: clickPosition,
513
- isPopoverOpen: isPopoverOpen,
514
- legend: props.legend,
515
- YValue: props.yAxisCalloutData,
516
- color: props.color
517
- }) : null;
518
- }
519
- function _onRectHover(xAxisPoint, point, color, mouseEvent) {
520
- mouseEvent.persist();
521
- _onRectFocusHover(xAxisPoint, point, color, mouseEvent);
522
- }
523
- function _onRectFocusHover(xAxisPoint, point, color, mouseEvent) {
524
- let clientX = 0;
525
- let clientY = 0;
526
- if ('clientX' in mouseEvent) {
527
- clientX = mouseEvent.clientX;
528
- clientY = mouseEvent.clientY;
529
- } else {
530
- // Handle case where mouseEvent is an SVGGElement
531
- const boundingRect = mouseEvent.getBoundingClientRect();
532
- clientX = boundingRect.left + boundingRect.width / 2;
533
- clientY = boundingRect.top + boundingRect.height / 2;
534
- }
535
- if ((_calloutAnchorPoint === null || _calloutAnchorPoint === void 0 ? void 0 : _calloutAnchorPoint.chartDataPoint) !== point || (_calloutAnchorPoint === null || _calloutAnchorPoint === void 0 ? void 0 : _calloutAnchorPoint.xAxisDataPoint) !== xAxisPoint) {
536
- _calloutAnchorPoint = {
537
- chartDataPoint: point,
538
- xAxisDataPoint: xAxisPoint instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(xAxisPoint, props.culture, props.useUTC) : xAxisPoint.toString()
539
- };
540
- const xCalloutValue = point.xAxisCalloutData || (xAxisPoint instanceof Date ? (0, _chartutilities.formatDateToLocaleString)(xAxisPoint, props.culture, props.useUTC) : xAxisPoint.toString());
541
- _updatePosition(clientX, clientY);
542
- setPopoverOpen(_noLegendHighlighted() || _isLegendHighlighted(point.legend));
543
- setCalloutLegend(point.legend);
544
- setDataForHoverCard(point.data);
545
- setColor(color);
546
- setXCalloutValue(xCalloutValue);
547
- setYCalloutValue(point.yAxisCalloutData);
548
- setDataPointCalloutProps(point);
549
- setCallOutAccessibilityData(point.callOutAccessibilityData);
550
- }
551
- }
552
- function _lineHover(lineData, mouseEvent) {
553
- mouseEvent.persist();
554
- _lineHoverFocus(lineData, mouseEvent);
555
- }
556
- function _lineFocus(event, lineData, ref) {
557
- if (ref.refElement) {
558
- _lineHoverFocus(lineData, event);
559
- }
560
- }
561
- function _onStackHover(stack, mouseEvent) {
562
- mouseEvent.persist();
563
- _onStackHoverFocus(stack, mouseEvent);
564
- }
565
- function _onRectFocus(point, xAxisPoint, color, ref) {
566
- if (ref.refElement) {
567
- _onRectFocusHover(xAxisPoint, point, color, ref.refElement);
568
- }
569
- }
570
- function _onStackFocus(stack, groupRef) {
571
- if (groupRef.refElement) {
572
- _onStackHoverFocus(stack, groupRef.refElement);
573
- }
574
- }
575
- function _handleMouseOut() {
576
- /**/ }
577
- function _getBarGapAndScale(bars, yBarScale, defaultTotalHeight) {
578
- const { barGapMax = 0 } = props;
579
- let totalData = 0;
580
- let totalHeight;
581
- let sumOfPercent = 0;
582
- let scalingRatio;
583
- if (_yAxisType === _index1.YAxisType.StringAxis) {
584
- totalHeight = defaultTotalHeight !== null && defaultTotalHeight !== void 0 ? defaultTotalHeight : bars.reduce((total, bar)=>total + yBarScale(bar.data), 0);
585
- } else {
586
- // When displaying gaps between the bars, the height of each bar is
587
- // adjusted so that the total of all bars is not changed by the gaps
588
- totalData = bars.reduce((iter, value)=>iter + Math.abs(value.data), 0);
589
- totalHeight = defaultTotalHeight !== null && defaultTotalHeight !== void 0 ? defaultTotalHeight : Math.abs(yBarScale(totalData) - yBarScale(Y_ORIGIN));
590
- bars.forEach((point)=>{
591
- let value = Math.abs(point.data) / totalData * 100;
592
- if (value < 1 && value !== 0) {
593
- value = 1;
594
- }
595
- sumOfPercent += value;
596
- });
597
- scalingRatio = sumOfPercent !== 0 ? sumOfPercent / 100 : 1;
598
- }
599
- const gaps = barGapMax && bars.length - 1;
600
- const gapHeight = gaps && Math.max(barGapMin, Math.min(barGapMax, totalHeight * barGapMultiplier / gaps));
601
- const heightValueScale = _yAxisType === _index1.YAxisType.StringAxis ? 0 : (totalHeight - gapHeight * gaps) / (totalData * scalingRatio);
602
- return {
603
- gapHeight,
604
- heightValueScale,
605
- absStackTotal: totalData
606
- };
607
- }
608
- function _getScales(containerHeight, containerWidth) {
609
- const yDomain = [
610
- Math.min(Y_ORIGIN, _yMin),
611
- Math.max(Y_ORIGIN, _yMax)
612
- ];
613
- const yBarScale = (0, _d3scale.scaleLinear)().domain(yDomain).range([
614
- 0,
615
- containerHeight - _margins.bottom - _margins.top
616
- ]);
617
- if (_xAxisType === _index1.XAxisTypes.NumericAxis) {
618
- const xMax = (0, _d3array.max)(_dataset, (point)=>point.x);
619
- const xMin = (0, _d3array.min)(_dataset, (point)=>point.x);
620
- const xBarScale = (0, _d3scale.scaleLinear)().domain(_isRtl ? [
621
- xMax,
622
- xMin
623
- ] : [
624
- xMin,
625
- xMax
626
- ]).range([
627
- _margins.left + _domainMargin,
628
- containerWidth - _margins.right - _domainMargin
629
- ]);
630
- if (!(0, _index1.isScalePaddingDefined)(props.xAxisInnerPadding, props.xAxisPadding)) {
631
- xBarScale.nice();
632
- }
633
- return {
634
- xBarScale,
635
- yBarScale
636
- };
637
- }
638
- if (_xAxisType === _index1.XAxisTypes.DateAxis) {
639
- const sDate = (0, _d3array.min)(_dataset, (point)=>{
640
- return point.x;
641
- });
642
- const lDate = (0, _d3array.max)(_dataset, (point)=>{
643
- return point.x;
644
- });
645
- const xBarScale = props.useUTC ? (0, _d3scale.scaleUtc)() : (0, _d3scale.scaleTime)();
646
- xBarScale.domain(_isRtl ? [
647
- lDate,
648
- sDate
649
- ] : [
650
- sDate,
651
- lDate
652
- ]).range([
653
- _margins.left + _domainMargin,
654
- containerWidth - _margins.right - _domainMargin
655
- ]);
656
- return {
657
- xBarScale,
658
- yBarScale
659
- };
660
- }
661
- const xBarScale = (0, _d3scale.scaleBand)().domain(_xAxisLabels).range(_isRtl ? [
662
- containerWidth - _margins.right - _domainMargin,
663
- _margins.left + _domainMargin
664
- ] : [
665
- _margins.left + _domainMargin,
666
- containerWidth - _margins.right - _domainMargin
667
- ]).paddingInner(_xAxisInnerPadding).paddingOuter(_xAxisOuterPadding);
668
- return {
669
- xBarScale,
670
- yBarScale
671
- };
672
- }
673
- const _isChartEmpty = ()=>{
674
- return !(props.data && props.data.length > 0 && props.data.some((item)=>item.chartData.length > 0 || item.lineData && item.lineData.length > 0));
675
- };
676
- function _updatePosition(newX, newY) {
677
- const threshold = 1; // Set a threshold for movement
678
- const { x, y } = clickPosition;
679
- // Calculate the distance moved
680
- const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));
681
- // Update the position only if the distance moved is greater than the threshold
682
- if (distance > threshold) {
683
- setClickPosition({
684
- x: newX,
685
- y: newY
686
- });
687
- setPopoverOpen(true);
688
- }
689
- }
690
- function _getDomainMargins(containerWidth) {
691
- _domainMargin = MIN_DOMAIN_MARGIN;
692
- const totalWidth = (0, _index1.calcTotalWidth)(containerWidth, _margins, MIN_DOMAIN_MARGIN);
693
- if (_xAxisType === _index1.XAxisTypes.StringAxis) {
694
- if ((0, _index1.isScalePaddingDefined)(props.xAxisOuterPadding, props.xAxisPadding)) {
695
- // Setting the domain margin for string x-axis to 0 because the xAxisOuterPadding prop is now available
696
- // to adjust the space before the first bar and after the last bar.
697
- _domainMargin = 0;
698
- } else if (props.barWidth !== 'auto') {
699
- // Update the bar width so that when CartesianChart rerenders,
700
- // the following calculations don't use the previous bar width.
701
- _barWidth = (0, _index1.getBarWidth)(props.barWidth, props.maxBarWidth);
702
- /** Total width required to render the bars. Directly proportional to bar width */ const reqWidth = (0, _index1.calcRequiredWidth)(_barWidth, _xAxisLabels.length, _xAxisInnerPadding);
703
- if (totalWidth >= reqWidth) {
704
- // Center align the chart by setting equal left and right margins for domain
705
- _domainMargin = MIN_DOMAIN_MARGIN + (totalWidth - reqWidth) / 2;
706
- }
707
- } else if (props.mode === 'plotly' && _xAxisLabels.length > 1) {
708
- // Calculate the remaining width after rendering bars at their maximum allowable width
709
- const bandwidth = (0, _index1.calcBandwidth)(totalWidth, _xAxisLabels.length, _xAxisInnerPadding);
710
- const barWidth = (0, _index1.getBarWidth)(props.barWidth, props.maxBarWidth, bandwidth);
711
- let reqWidth = (0, _index1.calcRequiredWidth)(barWidth, _xAxisLabels.length, _xAxisInnerPadding);
712
- const margin1 = (totalWidth - reqWidth) / 2;
713
- let margin2 = Number.POSITIVE_INFINITY;
714
- if (!props.hideTickOverlap) {
715
- // Calculate the remaining width after accounting for the space required to render x-axis labels
716
- const step = (0, _index1.calculateLongestLabelWidth)(_xAxisLabels) + 20;
717
- reqWidth = (_xAxisLabels.length - _xAxisInnerPadding) * step;
718
- margin2 = (totalWidth - reqWidth) / 2;
719
- }
720
- _domainMargin = MIN_DOMAIN_MARGIN + Math.max(0, Math.min(margin1, margin2));
721
- }
722
- } else {
723
- var _props_data;
724
- const data = ((_props_data = props.data) === null || _props_data === void 0 ? void 0 : _props_data.map((point)=>point.xAxisPoint)) || [];
725
- _barWidth = (0, _index1.getBarWidth)(props.barWidth, props.maxBarWidth, (0, _index1.calculateAppropriateBarWidth)(data, totalWidth, _xAxisInnerPadding));
726
- _domainMargin = MIN_DOMAIN_MARGIN + _barWidth / 2;
727
- }
728
- return {
729
- ..._margins,
730
- left: _margins.left + _domainMargin,
731
- right: _margins.right + _domainMargin
732
- };
733
- }
734
- function _getChartTitle() {
735
- const { chartTitle, data } = props;
736
- const numLines = Object.keys(_lineObject).length;
737
- return (chartTitle ? `${chartTitle}. ` : '') + `Vertical bar chart with ${(data === null || data === void 0 ? void 0 : data.length) || 0} stacked bars` + (numLines > 0 ? ` and ${numLines} lines` : '') + '. ';
738
- }
739
- const classes = (0, _useVerticalStackedBarChartStylesstyles.useVerticalStackedBarChartStyles)(props);
740
- function _createBar(xBarScale, yBarScale, containerHeight, xElement) {
741
- const { barCornerRadius = 0, barMinimumHeight = 0 } = props;
742
- const shouldFocusWholeStack = _toFocusWholeStack();
743
- if (_xAxisType === _index1.XAxisTypes.StringAxis) {
744
- _barWidth = (0, _index1.getBarWidth)(props.barWidth, props.maxBarWidth, xBarScale.bandwidth());
745
- }
746
- const bars = _points.map((singleChartData, indexNumber)=>{
747
- const xPoint = xBarScale(_xAxisType === _index1.XAxisTypes.NumericAxis ? singleChartData.xAxisPoint : _xAxisType === _index1.XAxisTypes.DateAxis ? singleChartData.xAxisPoint : singleChartData.xAxisPoint);
748
- const xScaleBandwidthTranslate = _xAxisType !== _index1.XAxisTypes.StringAxis ? -_barWidth / 2 : (xBarScale.bandwidth() - _barWidth) / 2;
749
- let barTotalValue = 0;
750
- const barsToDisplay = singleChartData.chartData.filter((point)=>point.data !== 0 && point.data !== '' && !(_yAxisType === _index1.YAxisType.StringAxis && typeof yBarScale(point.data) === 'undefined'));
751
- if (!barsToDisplay.length) {
752
- return undefined;
753
- }
754
- const { gapHeight, heightValueScale, absStackTotal } = _getBarGapAndScale(barsToDisplay, yBarScale);
755
- if (heightValueScale < 0) {
756
- return undefined;
757
- }
758
- const yBaseline = containerHeight - _margins.bottom - (_yAxisType === _index1.YAxisType.StringAxis ? 0 : yBarScale(Y_ORIGIN));
759
- let yPositiveStart = yBaseline;
760
- let yNegativeStart = yBaseline;
761
- let yPoint = 0;
762
- let heightOfLastBar = 0;
763
- const singleBar = barsToDisplay.map((point, index)=>{
764
- const startColor = point.color ? point.color : _colors[index];
765
- const ref = {};
766
- const shouldHighlight = _isLegendHighlighted(point.legend) || _noLegendHighlighted() ? true : false;
767
- const rectFocusProps = !shouldFocusWholeStack && shouldHighlight && {
768
- 'aria-label': _getAriaLabel(singleChartData, point),
769
- onMouseOver: (event)=>_onRectHover(singleChartData.xAxisPoint, point, startColor, event),
770
- onMouseMove: (event)=>_onRectHover(singleChartData.xAxisPoint, point, startColor, event),
771
- onMouseLeave: _handleMouseOut,
772
- onFocus: ()=>_onRectFocus(point, singleChartData.xAxisPoint, startColor, ref),
773
- onBlur: _handleMouseOut,
774
- onClick: (event)=>_onClick(point, event),
775
- role: 'img',
776
- tabIndex: !props.hideTooltip && shouldHighlight ? 0 : undefined
777
- };
778
- let barHeight;
779
- const gapOffset = index ? gapHeight : 0;
780
- if (_yAxisType === _index1.YAxisType.StringAxis) {
781
- barHeight = Math.max(containerHeight - _margins.bottom - (yBarScale(point.data) + yBarScale.bandwidth() / 2) - gapOffset, barMinimumHeight, 1);
782
- yPositiveStart -= barHeight + gapOffset;
783
- yPoint = yPositiveStart;
784
- } else {
785
- barHeight = Math.abs(heightValueScale * point.data);
786
- // FIXME: The current scaling logic may produce different min and gap heights for each bar stack.
787
- const minHeight = Math.max(heightValueScale * absStackTotal / 100.0, barMinimumHeight);
788
- if (barHeight < minHeight) {
789
- barHeight = minHeight;
790
- }
791
- if (point.data >= Y_ORIGIN) {
792
- yPositiveStart -= barHeight + gapOffset;
793
- yPoint = yPositiveStart;
794
- } else {
795
- yPoint = yNegativeStart + gapOffset;
796
- yNegativeStart = yPoint + barHeight;
797
- }
798
- barTotalValue += point.data;
799
- heightOfLastBar = index === barsToDisplay.length - 1 ? barHeight : 0;
800
- }
801
- if (barCornerRadius && barHeight > barCornerRadius && index === barsToDisplay.length - 1) {
802
- return /*#__PURE__*/ _react.createElement(_react.Fragment, {
803
- key: index + indexNumber + `${shouldFocusWholeStack}`
804
- }, /*#__PURE__*/ _react.createElement("path", {
805
- className: classes.opacityChangeOnHover,
806
- d: `
807
- M ${xPoint} ${yPoint + barCornerRadius}
808
- a ${barCornerRadius} ${barCornerRadius} 0 0 1 ${barCornerRadius} ${-barCornerRadius}
809
- h ${_barWidth - 2 * barCornerRadius}
810
- a ${barCornerRadius} ${barCornerRadius} 0 0 1 ${barCornerRadius} ${barCornerRadius}
811
- v ${barHeight - barCornerRadius}
812
- h ${-_barWidth}
813
- z
814
- `,
815
- fill: startColor,
816
- opacity: shouldHighlight ? 1 : 0.1,
817
- rx: props.roundCorners ? 3 : 0,
818
- ref: (e)=>{
819
- ref.refElement = e;
820
- },
821
- transform: `translate(${xScaleBandwidthTranslate}, 0)`,
822
- cursor: props.href ? 'pointer' : 'default',
823
- ...rectFocusProps
824
- }));
825
- }
826
- if (barHeight < 0) {
827
- return /*#__PURE__*/ _react.createElement(_react.Fragment, {
828
- key: index + indexNumber
829
- }, " ");
830
- }
831
- return /*#__PURE__*/ _react.createElement(_react.Fragment, {
832
- key: index + indexNumber
833
- }, /*#__PURE__*/ _react.createElement("rect", {
834
- className: classes.opacityChangeOnHover,
835
- x: xPoint,
836
- y: yPoint,
837
- width: _barWidth,
838
- height: barHeight,
839
- fill: startColor,
840
- opacity: shouldHighlight ? 1 : 0.1,
841
- cursor: props.href ? 'pointer' : 'default',
842
- rx: props.roundCorners ? 3 : 0,
843
- ref: (e)=>{
844
- ref.refElement = e;
845
- },
846
- ...rectFocusProps,
847
- transform: `translate(${xScaleBandwidthTranslate}, 0)`
848
- }));
849
- });
850
- const groupRef = {};
851
- const someBarsActive = singleChartData.chartData.filter((dataPoint)=>_noLegendHighlighted() || _isLegendHighlighted(dataPoint.legend)).length > 0;
852
- // FIXME: Making the entire stack focusable when stack callout is enabled adds unnecessary complexity
853
- // and can reduce usability in certain scenarios. Instead, each individual element within the stack
854
- // should be focusable on its own, with its own aria-label. This behavior is also seen in Highcharts.
855
- const stackFocusProps = shouldFocusWholeStack && someBarsActive && {
856
- 'aria-label': _getAriaLabel(singleChartData),
857
- onMouseOver: (event)=>_onStackHover(singleChartData, event),
858
- onMouseMove: (event)=>_onStackHover(singleChartData, event),
859
- onMouseLeave: _handleMouseOut,
860
- onFocus: ()=>_onStackFocus(singleChartData, groupRef),
861
- onBlur: _handleMouseOut,
862
- onClick: (event)=>_onClick(singleChartData, event),
863
- role: 'img',
864
- tabIndex: !props.hideTooltip ? 0 : undefined
865
- };
866
- let showLabel = false;
867
- let barLabel = 0;
868
- let selectedBarTotalValue = 0;
869
- let customBarLabel = undefined;
870
- if (!props.hideLabels && _yAxisType !== _index1.YAxisType.StringAxis) {
871
- // Collect all bars with barLabel that match the legend filter
872
- const barLabelsToDisplay = barsToDisplay.filter((point)=>point.barLabel && (_noLegendHighlighted() || _isLegendHighlighted(point.legend)));
873
- // For stacked bars, we want to show the total of the stack, not individual bar labels
874
- // Only use customBarLabel if there's exactly one bar with a label in the stack
875
- if (barLabelsToDisplay.length === 1) {
876
- customBarLabel = barLabelsToDisplay[0].barLabel;
877
- }
878
- if (_noLegendHighlighted()) {
879
- showLabel = true;
880
- barLabel = customBarLabel !== null && customBarLabel !== void 0 ? customBarLabel : barTotalValue;
881
- selectedBarTotalValue = barTotalValue;
882
- } else {
883
- barsToDisplay.forEach((point)=>{
884
- if (_isLegendHighlighted(point.legend)) {
885
- showLabel = true;
886
- selectedBarTotalValue += point.data;
887
- }
888
- });
889
- barLabel = customBarLabel !== null && customBarLabel !== void 0 ? customBarLabel : selectedBarTotalValue;
890
- }
891
- }
892
- return /*#__PURE__*/ _react.createElement("g", {
893
- key: indexNumber + `${shouldFocusWholeStack}`
894
- }, /*#__PURE__*/ _react.createElement("g", {
895
- id: `${indexNumber}-singleBar`,
896
- ref: (e)=>{
897
- groupRef.refElement = e;
898
- },
899
- ...stackFocusProps
900
- }, singleBar), !props.hideLabels && _barWidth >= 16 && showLabel && /*#__PURE__*/ _react.createElement("text", {
901
- x: xPoint + _barWidth / 2,
902
- //if total bar value >=0, show label above top bar, otherwise below bottom bar
903
- y: selectedBarTotalValue >= Y_ORIGIN ? yPoint - 6 : yPoint + heightOfLastBar + 12,
904
- textAnchor: "middle",
905
- className: classes.barLabel,
906
- "aria-label": `Total: ${barLabel}`,
907
- role: "img",
908
- transform: `translate(${xScaleBandwidthTranslate}, 0)`,
909
- style: {
910
- direction: 'ltr',
911
- unicodeBidi: 'isolate'
912
- }
913
- }, typeof barLabel === 'string' ? barLabel : typeof props.yAxisTickFormat === 'function' ? props.yAxisTickFormat(barLabel) : (0, _index1.formatScientificLimitWidth)(barLabel)));
914
- });
915
- return bars.filter((bar)=>!!bar);
916
- }
917
- function _getMinMaxOfYAxis(dataset, yAxisType, useSecondaryYScale) {
918
- if (!useSecondaryYScale) {
919
- return (0, _index1.findVSBCNumericMinMaxOfY)(dataset);
920
- }
921
- const values = [];
922
- props.data.forEach((xPoint)=>{
923
- var _xPoint_lineData;
924
- (_xPoint_lineData = xPoint.lineData) === null || _xPoint_lineData === void 0 ? void 0 : _xPoint_lineData.forEach((point)=>{
925
- // useSecondaryYScale is applicable only for lines in VSBC
926
- if (point.useSecondaryYScale) {
927
- values.push(point.y);
928
- }
929
- });
930
- });
931
- return {
932
- startValue: (0, _d3array.min)(values),
933
- endValue: (0, _d3array.max)(values)
934
- };
935
- }
936
- function _initYAxisParams() {
937
- if (_points[0].chartData.length > 0) {
938
- _yAxisType = (0, _index1.getTypeOfAxis)(_points[0].chartData[0].data, false);
939
- } else {
940
- Object.keys(_lineObject).forEach((lineLegend)=>{
941
- if (!_lineObject[lineLegend][0].useSecondaryYScale) {
942
- _yAxisType = (0, _index1.getTypeOfAxis)(_lineObject[lineLegend][0].y, false);
943
- }
944
- });
945
- }
946
- _yAxisLabels = _getOrderedYAxisLabels();
947
- }
948
- function _getYDomainMargins(containerHeight) {
949
- /**
950
- * Specifies the extra top margin to apply above the highest y-axis tick label.
951
- * Useful when stacked bars extend beyond the combined height of all y-axis labels (or categories).
952
- */ let yAxisTickMarginTop = 0;
953
- /** Total height available to render the bars */ const totalHeight = containerHeight - _margins.bottom - _margins.top;
954
- if (_yAxisType === _index1.YAxisType.StringAxis) {
955
- /** Maximum height of the stacked bars, expressed in multiples of the height of a y-axis label (or category) */ let maxBarHeightInLabels = 0;
956
- _points.forEach((xPoint)=>{
957
- /** Height of the stacked bar, expressed in multiples of the height of a y-axis label (or category) */ let barHeightInLabels = 0;
958
- xPoint.chartData.forEach((bar)=>{
959
- barHeightInLabels += _yAxisLabels.indexOf(`${bar.data}`) + 1;
960
- });
961
- maxBarHeightInLabels = Math.max(maxBarHeightInLabels, barHeightInLabels);
962
- });
963
- /** Height of a y-axis label (or category) */ const yAxisLabelHeight = maxBarHeightInLabels === 0 ? 0 : totalHeight / maxBarHeightInLabels;
964
- yAxisTickMarginTop += yAxisLabelHeight * (maxBarHeightInLabels - _yAxisLabels.length);
965
- }
966
- return {
967
- ..._margins,
968
- top: _margins.top + yAxisTickMarginTop
969
- };
970
- }
971
- function _getOrderedXAxisLabels() {
972
- if (_xAxisType !== _index1.XAxisTypes.StringAxis) {
973
- return [];
974
- }
975
- return (0, _index1.sortAxisCategories)(_mapCategoryToValues(), props.xAxisCategoryOrder);
976
- }
977
- function _getOrderedYAxisLabels() {
978
- if (_yAxisType !== _index1.YAxisType.StringAxis) {
979
- return [];
980
- }
981
- return (0, _index1.sortAxisCategories)(_mapCategoryToValues(true), props.yAxisCategoryOrder);
982
- }
983
- function _mapCategoryToValues(isYAxis = false) {
984
- const categoryToValues = {};
985
- _points.forEach((point)=>{
986
- var _point_lineData;
987
- point.chartData.forEach((bar)=>{
988
- const category = isYAxis ? bar.data : point.xAxisPoint;
989
- const value = isYAxis ? point.xAxisPoint : bar.data;
990
- if (!categoryToValues[category]) {
991
- categoryToValues[category] = [];
992
- }
993
- if (typeof value === 'number') {
994
- categoryToValues[category].push(value);
995
- }
996
- });
997
- (_point_lineData = point.lineData) === null || _point_lineData === void 0 ? void 0 : _point_lineData.forEach((linePoint)=>{
998
- if (isYAxis && linePoint.useSecondaryYScale) {
999
- return;
1000
- }
1001
- const category = isYAxis ? linePoint.y : point.xAxisPoint;
1002
- const value = isYAxis ? point.xAxisPoint : linePoint.y;
1003
- if (!categoryToValues[category]) {
1004
- categoryToValues[category] = [];
1005
- }
1006
- if (typeof value === 'number') {
1007
- categoryToValues[category].push(value);
1008
- }
1009
- });
1010
- });
1011
- return categoryToValues;
1012
- }
1013
- if (!_isChartEmpty()) {
1014
- _adjustProps();
1015
- const _isHavingLines = props.data.some((item)=>item.lineData && item.lineData.length > 0);
1016
- const shouldFocusWholeStack = _toFocusWholeStack();
1017
- _dataset = _createDataSetLayer();
1018
- const legendBars = _getLegendData(_points, _createLegendsForLine(props.data));
1019
- const calloutProps = {
1020
- color,
1021
- legend: calloutLegend,
1022
- XValue: xCalloutValue,
1023
- YValue: yCalloutValue ? yCalloutValue : dataForHoverCard,
1024
- YValueHover,
1025
- hoverXValue,
1026
- ...props.calloutProps,
1027
- ...(0, _index1.getAccessibleDataObject)(callOutAccessibilityData),
1028
- clickPosition,
1029
- isPopoverOpen,
1030
- isCalloutForStack: shouldFocusWholeStack,
1031
- isCartesian: true,
1032
- customCallout: {
1033
- customizedCallout: _getCustomizedCallout() !== null ? _getCustomizedCallout() : undefined,
1034
- customCalloutProps: props.calloutPropsPerDataPoint ? props.calloutPropsPerDataPoint(dataPointCalloutProps) : undefined
1035
- }
1036
- };
1037
- const tickParams = {
1038
- tickValues: props.tickValues,
1039
- tickFormat: props.tickFormat
1040
- };
1041
- return /*#__PURE__*/ _react.createElement(_index.CartesianChart, {
1042
- ...props,
1043
- chartTitle: _getChartTitle(),
1044
- points: _dataset,
1045
- chartType: _index1.ChartTypes.VerticalStackedBarChart,
1046
- xAxisType: _xAxisType,
1047
- getMinMaxOfYAxis: _getMinMaxOfYAxis,
1048
- calloutProps: calloutProps,
1049
- createYAxis: _index1.createNumericYAxis,
1050
- tickParams: tickParams,
1051
- legendBars: legendBars,
1052
- datasetForXAxisDomain: _xAxisLabels,
1053
- isCalloutForStack: shouldFocusWholeStack,
1054
- getDomainNRangeValues: _getDomainNRangeValues,
1055
- createStringYAxis: _index1.createStringYAxis,
1056
- barwidth: _barWidth,
1057
- getmargins: _getMargins,
1058
- getGraphData: _getGraphData,
1059
- getAxisData: _getAxisData,
1060
- onChartMouseLeave: _handleChartMouseLeave,
1061
- getDomainMargins: _getDomainMargins,
1062
- ..._xAxisType === _index1.XAxisTypes.StringAxis && {
1063
- xAxisInnerPadding: _xAxisInnerPadding,
1064
- xAxisOuterPadding: _xAxisOuterPadding
1065
- },
1066
- componentRef: cartesianChartRef,
1067
- showRoundOffXTickValues: !(0, _index1.isScalePaddingDefined)(props.xAxisInnerPadding, props.xAxisPadding),
1068
- yAxisType: _yAxisType,
1069
- stringDatasetForYAxisDomain: [
1070
- '',
1071
- ..._yAxisLabels
1072
- ],
1073
- getYDomainMargins: _getYDomainMargins,
1074
- /* eslint-disable react/jsx-no-bind */ children: (props)=>{
1075
- return /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("g", _arrowNavigationAttributes, _bars), /*#__PURE__*/ _react.createElement("g", null, _isHavingLines && _createLines(props.xScale, props.yScalePrimary, props.containerHeight, props.containerWidth, props.yScaleSecondary)));
1076
- }
1077
- });
1078
- }
1079
- return /*#__PURE__*/ _react.createElement("div", {
1080
- id: _emptyChartId,
1081
- role: 'alert',
1082
- style: {
1083
- opacity: '0'
1084
- },
1085
- "aria-label": 'Graph has no data to display'
1086
- });
1087
- });
1088
- VerticalStackedBarChart.displayName = 'VerticalStackedBarChart';