@fluentui/react-charts 9.3.28 → 9.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -4
  3. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  4. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -1
  5. package/lib/components/AnnotationOnlyChart/index.js.map +1 -1
  6. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -1
  7. package/lib/components/AreaChart/AreaChart.js +2 -2
  8. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  9. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  10. package/lib/components/AreaChart/index.js.map +1 -1
  11. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  12. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  13. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  14. package/lib/components/ChartTable/index.js.map +1 -1
  15. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  16. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +19 -29
  17. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  18. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  19. package/lib/components/CommonComponents/Annotations/index.js.map +1 -1
  20. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +2 -2
  21. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
  22. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +2 -2
  23. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  24. package/lib/components/CommonComponents/CartesianChart.js +11 -15
  25. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  26. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  27. package/lib/components/CommonComponents/ChartPopover.js +1 -1
  28. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  29. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
  30. package/lib/components/CommonComponents/index.js.map +1 -1
  31. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  32. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  33. package/lib/components/DeclarativeChart/DeclarativeChart.js +9 -9
  34. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  35. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +4 -4
  36. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  37. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +92 -110
  38. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  39. package/lib/components/DeclarativeChart/index.js.map +1 -1
  40. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  41. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  42. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  43. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  44. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  45. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  46. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  47. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  48. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  49. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -1
  50. package/lib/components/DonutChart/index.js.map +1 -1
  51. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  52. package/lib/components/FunnelChart/FunnelChart.js +5 -5
  53. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  54. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  55. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
  56. package/lib/components/FunnelChart/index.js.map +1 -1
  57. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  58. package/lib/components/GanttChart/GanttChart.js +3 -3
  59. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  60. package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
  61. package/lib/components/GanttChart/index.js.map +1 -1
  62. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  63. package/lib/components/GaugeChart/GaugeChart.js +1 -1
  64. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  65. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  66. package/lib/components/GaugeChart/index.js.map +1 -1
  67. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  68. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +20 -21
  69. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  70. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  71. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  72. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  73. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  74. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  75. package/lib/components/HeatMapChart/index.js.map +1 -1
  76. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
  77. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +5 -6
  78. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  79. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  80. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  81. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  82. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +2 -3
  83. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  84. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  85. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  86. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  87. package/lib/components/Legends/Legends.js +1 -2
  88. package/lib/components/Legends/Legends.js.map +1 -1
  89. package/lib/components/Legends/Legends.types.js.map +1 -1
  90. package/lib/components/Legends/OverflowMenu.js +1 -1
  91. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  92. package/lib/components/Legends/index.js.map +1 -1
  93. package/lib/components/Legends/shape.js.map +1 -1
  94. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  95. package/lib/components/LineChart/LineChart.js +23 -23
  96. package/lib/components/LineChart/LineChart.js.map +1 -1
  97. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  98. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  99. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  100. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  101. package/lib/components/LineChart/index.js.map +1 -1
  102. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  103. package/lib/components/PolarChart/PolarChart.js +3 -4
  104. package/lib/components/PolarChart/PolarChart.js.map +1 -1
  105. package/lib/components/PolarChart/PolarChart.types.js.map +1 -1
  106. package/lib/components/PolarChart/PolarChart.utils.js +3 -3
  107. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
  108. package/lib/components/PolarChart/index.js.map +1 -1
  109. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -1
  110. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +1 -1
  111. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  112. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  113. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  114. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -1
  115. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  116. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  117. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  118. package/lib/components/SankeyChart/index.js.map +1 -1
  119. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  120. package/lib/components/ScatterChart/ScatterChart.js +1 -2
  121. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  122. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  123. package/lib/components/ScatterChart/index.js.map +1 -1
  124. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  125. package/lib/components/Sparkline/Sparkline.js +1 -3
  126. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  127. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  128. package/lib/components/Sparkline/index.js.map +1 -1
  129. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -1
  130. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -1
  131. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -1
  132. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +2 -2
  133. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -1
  134. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -1
  135. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +37 -45
  136. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  137. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -1
  138. package/lib/components/VegaDeclarativeChart/index.js.map +1 -1
  139. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  140. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  141. package/lib/components/VerticalBarChart/index.js.map +1 -1
  142. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  143. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +5 -5
  144. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  145. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  146. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  147. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  148. package/lib/types/ChartAnnotation.js.map +1 -1
  149. package/lib/types/DataPoint.js.map +1 -1
  150. package/lib/types/EventAnnotation.js.map +1 -1
  151. package/lib/types/LegendDataItem.js.map +1 -1
  152. package/lib/types/index.js.map +1 -1
  153. package/lib/utilities/ChartTitle.js +3 -4
  154. package/lib/utilities/ChartTitle.js.map +1 -1
  155. package/lib/utilities/Common.styles.js +1 -4
  156. package/lib/utilities/Common.styles.js.map +1 -1
  157. package/lib/utilities/Common.styles.raw.js +1 -4
  158. package/lib/utilities/Common.styles.raw.js.map +1 -1
  159. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  160. package/lib/utilities/KeyCodes.js.map +1 -1
  161. package/lib/utilities/SVGTooltipText.js.map +1 -1
  162. package/lib/utilities/async-utils.js.map +1 -1
  163. package/lib/utilities/colors.js.map +1 -1
  164. package/lib/utilities/getWindow.js.map +1 -1
  165. package/lib/utilities/hooks.js.map +1 -1
  166. package/lib/utilities/image-export-utils.js.map +1 -1
  167. package/lib/utilities/index.js.map +1 -1
  168. package/lib/utilities/overflow-utils.js.map +1 -1
  169. package/lib/utilities/scatterpolar-utils.js +3 -4
  170. package/lib/utilities/scatterpolar-utils.js.map +1 -1
  171. package/lib/utilities/string.js.map +1 -1
  172. package/lib/utilities/test-data/specialChartNames.js.map +1 -1
  173. package/lib/utilities/test-data.js.map +1 -1
  174. package/lib/utilities/utilities.js +9 -9
  175. package/lib/utilities/utilities.js.map +1 -1
  176. package/lib/utilities/vbc-utils.js.map +1 -1
  177. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs +1 -4
  178. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs.map +1 -1
  179. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.cjs.map +1 -1
  180. package/lib-commonjs/components/AnnotationOnlyChart/index.cjs.map +1 -1
  181. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.cjs.map +1 -1
  182. package/lib-commonjs/components/AreaChart/AreaChart.cjs +2 -2
  183. package/lib-commonjs/components/AreaChart/AreaChart.cjs.map +1 -1
  184. package/lib-commonjs/components/AreaChart/AreaChart.types.cjs.map +1 -1
  185. package/lib-commonjs/components/AreaChart/index.cjs.map +1 -1
  186. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs +3 -3
  187. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs.map +1 -1
  188. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs +3 -3
  189. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs.map +1 -1
  190. package/lib-commonjs/components/ChartTable/ChartTable.cjs.map +1 -1
  191. package/lib-commonjs/components/ChartTable/ChartTable.types.cjs.map +1 -1
  192. package/lib-commonjs/components/ChartTable/index.cjs.map +1 -1
  193. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs +3 -3
  194. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs.map +1 -1
  195. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs +3 -3
  196. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs.map +1 -1
  197. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs +19 -29
  198. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs.map +1 -1
  199. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.cjs.map +1 -1
  200. package/lib-commonjs/components/CommonComponents/Annotations/index.cjs.map +1 -1
  201. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs +14 -14
  202. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs.map +1 -1
  203. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs +14 -14
  204. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs.map +1 -1
  205. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs +11 -15
  206. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs.map +1 -1
  207. package/lib-commonjs/components/CommonComponents/CartesianChart.types.cjs.map +1 -1
  208. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs +1 -1
  209. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs.map +1 -1
  210. package/lib-commonjs/components/CommonComponents/ChartPopover.types.cjs.map +1 -1
  211. package/lib-commonjs/components/CommonComponents/index.cjs.map +1 -1
  212. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs +3 -3
  213. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs.map +1 -1
  214. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs +3 -3
  215. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs.map +1 -1
  216. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs +3 -3
  217. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs.map +1 -1
  218. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs +3 -3
  219. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs.map +1 -1
  220. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs +9 -9
  221. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs.map +1 -1
  222. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs +13 -13
  223. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs.map +1 -1
  224. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs +122 -140
  225. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs.map +1 -1
  226. package/lib-commonjs/components/DeclarativeChart/index.cjs.map +1 -1
  227. package/lib-commonjs/components/DonutChart/Arc/Arc.cjs.map +1 -1
  228. package/lib-commonjs/components/DonutChart/Arc/Arc.types.cjs.map +1 -1
  229. package/lib-commonjs/components/DonutChart/Arc/index.cjs.map +1 -1
  230. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs +3 -3
  231. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs.map +1 -1
  232. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs +3 -3
  233. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs.map +1 -1
  234. package/lib-commonjs/components/DonutChart/DonutChart.cjs.map +1 -1
  235. package/lib-commonjs/components/DonutChart/DonutChart.types.cjs.map +1 -1
  236. package/lib-commonjs/components/DonutChart/Pie/Pie.cjs.map +1 -1
  237. package/lib-commonjs/components/DonutChart/Pie/Pie.types.cjs.map +1 -1
  238. package/lib-commonjs/components/DonutChart/Pie/index.cjs.map +1 -1
  239. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs +3 -3
  240. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs.map +1 -1
  241. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs +3 -3
  242. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs.map +1 -1
  243. package/lib-commonjs/components/DonutChart/index.cjs.map +1 -1
  244. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs +3 -3
  245. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs.map +1 -1
  246. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs +3 -3
  247. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs.map +1 -1
  248. package/lib-commonjs/components/FunnelChart/FunnelChart.cjs +5 -5
  249. package/lib-commonjs/components/FunnelChart/FunnelChart.cjs.map +1 -1
  250. package/lib-commonjs/components/FunnelChart/FunnelChart.types.cjs.map +1 -1
  251. package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs +6 -6
  252. package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs.map +1 -1
  253. package/lib-commonjs/components/FunnelChart/index.cjs.map +1 -1
  254. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs +3 -3
  255. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs.map +1 -1
  256. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs +3 -3
  257. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs.map +1 -1
  258. package/lib-commonjs/components/GanttChart/GanttChart.cjs +3 -3
  259. package/lib-commonjs/components/GanttChart/GanttChart.cjs.map +1 -1
  260. package/lib-commonjs/components/GanttChart/GanttChart.types.cjs.map +1 -1
  261. package/lib-commonjs/components/GanttChart/index.cjs.map +1 -1
  262. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs +3 -3
  263. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs.map +1 -1
  264. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs +3 -3
  265. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs.map +1 -1
  266. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs +9 -9
  267. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs.map +1 -1
  268. package/lib-commonjs/components/GaugeChart/GaugeChart.types.cjs.map +1 -1
  269. package/lib-commonjs/components/GaugeChart/index.cjs.map +1 -1
  270. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs +3 -3
  271. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs.map +1 -1
  272. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs +3 -3
  273. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs.map +1 -1
  274. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs +20 -21
  275. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs.map +1 -1
  276. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.cjs.map +1 -1
  277. package/lib-commonjs/components/GroupedVerticalBarChart/index.cjs.map +1 -1
  278. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs +3 -3
  279. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs.map +1 -1
  280. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs +3 -3
  281. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs.map +1 -1
  282. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs.map +1 -1
  283. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.cjs.map +1 -1
  284. package/lib-commonjs/components/HeatMapChart/index.cjs.map +1 -1
  285. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs +3 -3
  286. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs.map +1 -1
  287. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs +3 -3
  288. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs.map +1 -1
  289. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs +5 -6
  290. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs.map +1 -1
  291. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.cjs.map +1 -1
  292. package/lib-commonjs/components/HorizontalBarChart/index.cjs.map +1 -1
  293. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs +3 -3
  294. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs.map +1 -1
  295. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs +3 -3
  296. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs.map +1 -1
  297. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs +2 -3
  298. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs.map +1 -1
  299. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.cjs.map +1 -1
  300. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.cjs.map +1 -1
  301. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs +3 -3
  302. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs.map +1 -1
  303. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs +3 -3
  304. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs.map +1 -1
  305. package/lib-commonjs/components/Legends/Legends.cjs +1 -2
  306. package/lib-commonjs/components/Legends/Legends.cjs.map +1 -1
  307. package/lib-commonjs/components/Legends/Legends.types.cjs.map +1 -1
  308. package/lib-commonjs/components/Legends/OverflowMenu.cjs +1 -1
  309. package/lib-commonjs/components/Legends/OverflowMenu.cjs.map +1 -1
  310. package/lib-commonjs/components/Legends/index.cjs.map +1 -1
  311. package/lib-commonjs/components/Legends/shape.cjs.map +1 -1
  312. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs +11 -11
  313. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs.map +1 -1
  314. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs +11 -11
  315. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs.map +1 -1
  316. package/lib-commonjs/components/LineChart/LineChart.cjs +23 -23
  317. package/lib-commonjs/components/LineChart/LineChart.cjs.map +1 -1
  318. package/lib-commonjs/components/LineChart/LineChart.types.cjs.map +1 -1
  319. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.cjs.map +1 -1
  320. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.cjs.map +1 -1
  321. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.cjs.map +1 -1
  322. package/lib-commonjs/components/LineChart/index.cjs.map +1 -1
  323. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs +3 -3
  324. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs.map +1 -1
  325. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs +3 -3
  326. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs.map +1 -1
  327. package/lib-commonjs/components/PolarChart/PolarChart.cjs +3 -4
  328. package/lib-commonjs/components/PolarChart/PolarChart.cjs.map +1 -1
  329. package/lib-commonjs/components/PolarChart/PolarChart.types.cjs.map +1 -1
  330. package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs +10 -10
  331. package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs.map +1 -1
  332. package/lib-commonjs/components/PolarChart/index.cjs.map +1 -1
  333. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs +3 -3
  334. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs.map +1 -1
  335. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs +3 -3
  336. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs.map +1 -1
  337. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs +1 -1
  338. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs.map +1 -1
  339. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.cjs.map +1 -1
  340. package/lib-commonjs/components/ResponsiveContainer/index.cjs.map +1 -1
  341. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs +3 -3
  342. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs.map +1 -1
  343. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs +3 -3
  344. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs.map +1 -1
  345. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.cjs.map +1 -1
  346. package/lib-commonjs/components/SankeyChart/SankeyChart.cjs +5 -5
  347. package/lib-commonjs/components/SankeyChart/SankeyChart.cjs.map +1 -1
  348. package/lib-commonjs/components/SankeyChart/SankeyChart.types.cjs.map +1 -1
  349. package/lib-commonjs/components/SankeyChart/index.cjs.map +1 -1
  350. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs +3 -3
  351. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs.map +1 -1
  352. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs +3 -3
  353. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs.map +1 -1
  354. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs +1 -2
  355. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs.map +1 -1
  356. package/lib-commonjs/components/ScatterChart/ScatterChart.types.cjs.map +1 -1
  357. package/lib-commonjs/components/ScatterChart/index.cjs.map +1 -1
  358. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs +3 -3
  359. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs.map +1 -1
  360. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs +3 -3
  361. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs.map +1 -1
  362. package/lib-commonjs/components/Sparkline/Sparkline.cjs +1 -3
  363. package/lib-commonjs/components/Sparkline/Sparkline.cjs.map +1 -1
  364. package/lib-commonjs/components/Sparkline/Sparkline.types.cjs.map +1 -1
  365. package/lib-commonjs/components/Sparkline/index.cjs.map +1 -1
  366. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs +3 -3
  367. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs.map +1 -1
  368. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs +3 -3
  369. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs.map +1 -1
  370. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.cjs.map +1 -1
  371. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs +3 -3
  372. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs.map +1 -1
  373. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs +7 -7
  374. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs.map +1 -1
  375. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs.map +1 -1
  376. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs +54 -62
  377. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs.map +1 -1
  378. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.cjs.map +1 -1
  379. package/lib-commonjs/components/VegaDeclarativeChart/index.cjs.map +1 -1
  380. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs.map +1 -1
  381. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.cjs.map +1 -1
  382. package/lib-commonjs/components/VerticalBarChart/index.cjs.map +1 -1
  383. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs +3 -3
  384. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs.map +1 -1
  385. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs +3 -3
  386. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs.map +1 -1
  387. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs +5 -5
  388. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs.map +1 -1
  389. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.cjs.map +1 -1
  390. package/lib-commonjs/components/VerticalStackedBarChart/index.cjs.map +1 -1
  391. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs +3 -3
  392. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs.map +1 -1
  393. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs +3 -3
  394. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs.map +1 -1
  395. package/lib-commonjs/types/ChartAnnotation.cjs.map +1 -1
  396. package/lib-commonjs/types/DataPoint.cjs.map +1 -1
  397. package/lib-commonjs/types/EventAnnotation.cjs.map +1 -1
  398. package/lib-commonjs/types/LegendDataItem.cjs.map +1 -1
  399. package/lib-commonjs/types/index.cjs.map +1 -1
  400. package/lib-commonjs/utilities/ChartTitle.cjs +3 -4
  401. package/lib-commonjs/utilities/ChartTitle.cjs.map +1 -1
  402. package/lib-commonjs/utilities/Common.styles.cjs +9 -12
  403. package/lib-commonjs/utilities/Common.styles.cjs.map +1 -1
  404. package/lib-commonjs/utilities/Common.styles.raw.cjs +9 -12
  405. package/lib-commonjs/utilities/Common.styles.raw.cjs.map +1 -1
  406. package/lib-commonjs/utilities/FocusableTooltipText.cjs.map +1 -1
  407. package/lib-commonjs/utilities/KeyCodes.cjs.map +1 -1
  408. package/lib-commonjs/utilities/SVGTooltipText.cjs.map +1 -1
  409. package/lib-commonjs/utilities/async-utils.cjs.map +1 -1
  410. package/lib-commonjs/utilities/colors.cjs +7 -7
  411. package/lib-commonjs/utilities/colors.cjs.map +1 -1
  412. package/lib-commonjs/utilities/getWindow.cjs.map +1 -1
  413. package/lib-commonjs/utilities/hooks.cjs.map +1 -1
  414. package/lib-commonjs/utilities/image-export-utils.cjs +3 -3
  415. package/lib-commonjs/utilities/image-export-utils.cjs.map +1 -1
  416. package/lib-commonjs/utilities/index.cjs.map +1 -1
  417. package/lib-commonjs/utilities/overflow-utils.cjs +4 -4
  418. package/lib-commonjs/utilities/overflow-utils.cjs.map +1 -1
  419. package/lib-commonjs/utilities/scatterpolar-utils.cjs +6 -7
  420. package/lib-commonjs/utilities/scatterpolar-utils.cjs.map +1 -1
  421. package/lib-commonjs/utilities/string.cjs +1 -1
  422. package/lib-commonjs/utilities/string.cjs.map +1 -1
  423. package/lib-commonjs/utilities/test-data/specialChartNames.cjs.map +1 -1
  424. package/lib-commonjs/utilities/test-data.cjs +18 -18
  425. package/lib-commonjs/utilities/test-data.cjs.map +1 -1
  426. package/lib-commonjs/utilities/utilities.cjs +92 -92
  427. package/lib-commonjs/utilities/utilities.cjs.map +1 -1
  428. package/lib-commonjs/utilities/vbc-utils.cjs +7 -7
  429. package/lib-commonjs/utilities/vbc-utils.cjs.map +1 -1
  430. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/VegaDeclarativeChart/VegaLiteTypes.ts"],"sourcesContent":["/**\n * Vega-Lite TypeScript interfaces for declarative chart specifications.\n * This is a minimal subset focused on line/point charts with basic encodings.\n *\n * RECOMMENDED: For full type coverage, install the official vega-lite package:\n * ```\n * npm install vega-lite\n * ```\n * Then import `TopLevelSpec` from 'vega-lite' for complete schema support.\n *\n * The types provided here are a lightweight alternative that covers common use cases\n * without requiring the full vega-lite dependency (~5.8MB unpacked).\n *\n * Full Vega-Lite spec: https://vega.github.io/vega-lite/docs/\n *\n * TODO: Add support for:\n * - Transform operations (filter, aggregate, calculate, etc.)\n * - Remote data sources (url, named datasets)\n * - Facet and concatenation for multi-view layouts\n * - Selection interactions\n * - Additional mark types (bar, area, etc.)\n * - Conditional encodings\n * - Tooltip customization\n */\n\n/**\n * Vega-Lite data type for field encodings\n */\nexport type VegaLiteType = 'quantitative' | 'temporal' | 'ordinal' | 'nominal' | 'geojson';\n\n/**\n * Vega-Lite mark types\n */\nexport type VegaLiteMark = 'line' | 'point' | 'circle' | 'square' | 'bar' | 'area' | 'rect' | 'rule' | 'text' | 'arc';\n\n/**\n * Vega-Lite scale type\n */\nexport type VegaLiteScaleType =\n | 'linear'\n | 'log'\n | 'pow'\n | 'sqrt'\n | 'symlog'\n | 'time'\n | 'utc'\n | 'ordinal'\n | 'band'\n | 'point';\n\n/**\n * Vega-Lite interpolation method\n */\nexport type VegaLiteInterpolate =\n | 'linear'\n | 'linear-closed'\n | 'step'\n | 'step-before'\n | 'step-after'\n | 'basis'\n | 'cardinal'\n | 'monotone'\n | 'natural';\n\n/**\n * Vega-Lite axis configuration\n */\nexport interface VegaLiteAxis {\n /**\n * Axis title\n */\n title?: string | null;\n\n /**\n * Format string for axis tick labels\n * Uses d3-format for quantitative and d3-time-format for temporal\n */\n format?: string;\n\n /**\n * Tick values to display\n */\n values?: number[] | string[];\n\n /**\n * Number of ticks\n */\n tickCount?: number;\n\n /**\n * Grid visibility\n */\n grid?: boolean;\n}\n\n/**\n * Vega-Lite scale configuration\n */\nexport interface VegaLiteScale {\n /**\n * Scale type\n */\n type?: VegaLiteScaleType;\n\n /**\n * Domain values [min, max]\n */\n domain?: (number | string)[];\n\n /**\n * Range values [min, max]\n */\n range?: [number | string, number | string] | string[];\n\n /**\n * Color scheme name (e.g., 'category10', 'tableau10')\n */\n scheme?: string;\n\n /**\n * Whether scale domain should include zero\n */\n zero?: boolean;\n\n /**\n * Whether to reverse the scale\n */\n reverse?: boolean;\n}\n\n/**\n * Vega-Lite legend configuration\n */\nexport interface VegaLiteLegend {\n /**\n * Legend title\n */\n title?: string | null;\n\n /**\n * Hide the legend\n */\n disable?: boolean;\n}\n\n/**\n * Vega-Lite sort specification\n */\nexport type VegaLiteSort =\n | 'ascending'\n | 'descending'\n | null\n | {\n field?: string;\n op?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n order?: 'ascending' | 'descending';\n }\n | string[];\n\n/**\n * Vega-Lite binning configuration\n */\nexport interface VegaLiteBin {\n /**\n * Maximum number of bins\n */\n maxbins?: number;\n\n /**\n * Exact step size between bins\n */\n step?: number;\n\n /**\n * Extent [min, max] for binning\n */\n extent?: [number, number];\n\n /**\n * Base for nice bin values (e.g., 10 for powers of 10)\n */\n base?: number;\n\n /**\n * Whether to include the boundary in bins\n */\n anchor?: number;\n}\n\n/**\n * Vega-Lite position encoding channel (x or y)\n */\nexport interface VegaLitePositionEncoding {\n /**\n * Field name in data\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Constant value for encoding (for reference lines and annotations)\n */\n value?: number | string | Date;\n\n /**\n * Datum value for encoding (alternative to value)\n */\n datum?: number | string | Date;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Sort order for categorical axes\n * Supports: 'ascending', 'descending', null, array of values, or object with field/op/order\n */\n sort?: VegaLiteSort;\n\n /**\n * Binning configuration for histograms\n * Set to true for default binning or provide custom bin parameters\n */\n bin?: boolean | VegaLiteBin;\n\n /**\n * Stack configuration for area/bar charts\n * - null: disable stacking\n * - 'zero': stack from zero baseline (default for area charts)\n * - 'center': center stack\n * - 'normalize': normalize to 100%\n */\n stack?: null | 'zero' | 'center' | 'normalize';\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis title (shorthand alternative to axis.title)\n */\n title?: string;\n\n /**\n * Time unit for temporal fields (e.g., 'yearmonth', 'month', 'day')\n */\n timeUnit?: string;\n}\n\n/**\n * Vega-Lite color encoding channel\n */\nexport interface VegaLiteColorEncoding {\n /**\n * Field name for color differentiation\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Legend configuration\n */\n legend?: VegaLiteLegend | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Fixed color value\n */\n value?: string;\n\n /**\n * Conditional color encoding with a test expression\n */\n condition?: {\n test: string;\n value: string;\n };\n}\n\n/**\n * Vega-Lite size encoding channel\n */\nexport interface VegaLiteSizeEncoding {\n /**\n * Field name for size encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed size value\n */\n value?: number;\n}\n\n/**\n * Vega-Lite shape encoding channel\n */\nexport interface VegaLiteShapeEncoding {\n /**\n * Field name for shape encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed shape value\n */\n value?: string;\n}\n\n/**\n * Vega-Lite theta encoding channel for pie/donut charts and polar coordinates\n */\nexport interface VegaLiteThetaEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration for polar charts\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration for polar charts\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite radius encoding channel for polar charts\n */\nexport interface VegaLiteRadiusEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite text encoding channel\n */\nexport interface VegaLiteTextEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed text value\n */\n value?: string;\n\n /**\n * Datum value for text encoding\n */\n datum?: string | number;\n}\n\n/**\n * Vega-Lite encoding channels\n */\nexport interface VegaLiteEncoding {\n /**\n * X-axis encoding\n */\n x?: VegaLitePositionEncoding;\n\n /**\n * Y-axis encoding\n */\n y?: VegaLitePositionEncoding;\n\n /**\n * Color encoding for series differentiation\n */\n color?: VegaLiteColorEncoding;\n\n /**\n * Size encoding for point marks\n */\n size?: VegaLiteSizeEncoding;\n\n /**\n * Shape encoding for point marks\n */\n shape?: VegaLiteShapeEncoding;\n\n /**\n * Theta encoding for pie/donut charts and polar coordinates\n */\n theta?: VegaLiteThetaEncoding;\n\n /**\n * Radius encoding for polar charts\n */\n radius?: VegaLiteRadiusEncoding;\n\n /**\n * X2 encoding for interval marks (rect, rule, bar with ranges)\n */\n x2?: VegaLitePositionEncoding;\n\n /**\n * Y2 encoding for interval marks (rect, rule, bar with ranges)\n */\n y2?: VegaLitePositionEncoding;\n\n /**\n * Text encoding for text marks\n */\n text?: VegaLiteTextEncoding;\n\n /**\n * xOffset encoding for grouped bar charts\n */\n xOffset?: VegaLitePositionEncoding;\n\n /**\n * Tooltip encoding (single field or array of fields)\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n tooltip?: any;\n}\n\n/**\n * Vega-Lite mark definition (can be string or object)\n */\nexport type VegaLiteMarkDef =\n | VegaLiteMark\n | {\n type: VegaLiteMark;\n /**\n * Mark color\n */\n color?: string;\n /**\n * Line interpolation method\n */\n interpolate?: VegaLiteInterpolate;\n /**\n * Point marker visibility\n */\n point?: boolean | { filled?: boolean; size?: number };\n /**\n * Stroke width\n */\n strokeWidth?: number;\n /**\n * Stroke dash pattern (e.g., [5, 5] for dashed, [2, 2] for dotted)\n */\n strokeDash?: number[];\n /**\n * Fill opacity\n */\n fillOpacity?: number;\n /**\n * Stroke opacity\n */\n strokeOpacity?: number;\n /**\n * Overall opacity\n */\n opacity?: number;\n /**\n * Inner radius for arc/pie/donut marks (0-1 or pixel value)\n */\n innerRadius?: number;\n /**\n * Outer radius for arc/pie marks (pixel value)\n */\n outerRadius?: number;\n };\n\n/**\n * Vega-Lite inline data\n */\nexport interface VegaLiteData {\n /**\n * Inline data values (array of objects)\n */\n values?: Array<Record<string, unknown>>;\n\n /**\n * URL to load data from\n * TODO: Implement remote data loading\n */\n url?: string;\n\n /**\n * Named dataset reference\n * TODO: Implement named dataset resolution\n */\n name?: string;\n\n /**\n * Data format specification\n * TODO: Implement format parsing (csv, json, etc.)\n */\n format?: {\n type?: 'json' | 'csv' | 'tsv';\n parse?: Record<string, string>;\n };\n}\n\n/**\n * Base Vega-Lite spec unit (single view)\n */\nexport interface VegaLiteUnitSpec {\n /**\n * Mark type\n */\n mark: VegaLiteMarkDef;\n\n /**\n * Encoding channels\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data specification\n */\n data?: VegaLiteData;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite layer spec (multiple overlaid views)\n */\nexport interface VegaLiteLayerSpec {\n /**\n * Layer array\n */\n layer: VegaLiteUnitSpec[];\n\n /**\n * Shared data across layers\n */\n data?: VegaLiteData;\n\n /**\n * Shared encoding across layers\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite title configuration with styling options\n */\nexport interface VegaLiteTitleParams {\n /**\n * Title text\n */\n text: string;\n\n /**\n * Subtitle text\n */\n subtitle?: string;\n\n /**\n * Font for the title\n */\n font?: string;\n\n /**\n * Font size for the title\n */\n fontSize?: number;\n\n /**\n * Font style for the title (e.g., 'normal', 'italic')\n */\n fontStyle?: string;\n\n /**\n * Font weight for the title (e.g., 'normal', 'bold', 100-900)\n */\n fontWeight?: string | number;\n\n /**\n * Color of the title text\n */\n color?: string;\n\n /**\n * Horizontal anchor position for the title\n * - 'start': left-aligned\n * - 'middle': centered\n * - 'end': right-aligned\n */\n anchor?: 'start' | 'middle' | 'end';\n\n /**\n * Vertical offset from the top of the chart\n */\n offset?: number;\n\n /**\n * Additional padding around the subtitle\n */\n subtitlePadding?: number;\n}\n\n/**\n * Top-level Vega-Lite specification\n */\nexport interface VegaLiteSpec {\n /**\n * Schema version\n */\n $schema?: string;\n\n /**\n * Chart title - can be a string or a detailed title configuration\n */\n title?: string | VegaLiteTitleParams;\n\n /**\n * Chart description\n */\n description?: string;\n\n /**\n * Chart width\n */\n width?: number | 'container';\n\n /**\n * Chart height\n */\n height?: number | 'container';\n\n /**\n * Data specification (for single/layer specs)\n */\n data?: VegaLiteData;\n\n /**\n * Mark type (for single view)\n */\n mark?: VegaLiteMarkDef;\n\n /**\n * Encoding channels (for single view)\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Horizontal concatenation for multi-plot layouts\n */\n hconcat?: VegaLiteSpec[];\n\n /**\n * Vertical concatenation for multi-plot layouts\n */\n vconcat?: VegaLiteSpec[];\n\n /**\n * Layer specification\n */\n layer?: VegaLiteUnitSpec[];\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n\n /**\n * Background color\n */\n background?: string;\n\n /**\n * Padding configuration\n */\n padding?: number | { top?: number; bottom?: number; left?: number; right?: number };\n\n /**\n * Auto-size configuration\n */\n autosize?: string | { type?: string; contains?: string };\n\n /**\n * Configuration overrides\n * TODO: Implement config resolution\n */\n config?: Record<string, unknown>;\n\n /**\n * Interactive selection definitions\n * TODO: Implement selection support\n */\n selection?: Record<string, unknown>;\n\n /**\n * Facet specification for small multiples\n * TODO: Implement facet support\n */\n facet?: Record<string, unknown>;\n\n /**\n * Repeat specification for small multiples\n * TODO: Implement repeat support\n */\n repeat?: Record<string, unknown>;\n\n /**\n * Scale resolution configuration\n * Controls whether scales are shared or independent across views\n */\n resolve?: {\n scale?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n axis?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n };\n legend?: {\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n };\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBC,GAED;;CAEC,GA4oBD;;CAEC,GACD,WA6HC"}
1
+ {"version":3,"sources":["../../../src/components/VegaDeclarativeChart/VegaLiteTypes.ts"],"sourcesContent":["/**\n * Vega-Lite TypeScript interfaces for declarative chart specifications.\n * This is a minimal subset focused on line/point charts with basic encodings.\n *\n * RECOMMENDED: For full type coverage, install the official vega-lite package:\n * ```\n * npm install vega-lite\n * ```\n * Then import `TopLevelSpec` from 'vega-lite' for complete schema support.\n *\n * The types provided here are a lightweight alternative that covers common use cases\n * without requiring the full vega-lite dependency (~5.8MB unpacked).\n *\n * Full Vega-Lite spec: https://vega.github.io/vega-lite/docs/\n *\n * TODO: Add support for:\n * - Transform operations (filter, aggregate, calculate, etc.)\n * - Remote data sources (url, named datasets)\n * - Facet and concatenation for multi-view layouts\n * - Selection interactions\n * - Additional mark types (bar, area, etc.)\n * - Conditional encodings\n * - Tooltip customization\n */\n\n/**\n * Vega-Lite data type for field encodings\n */\nexport type VegaLiteType = 'quantitative' | 'temporal' | 'ordinal' | 'nominal' | 'geojson';\n\n/**\n * Vega-Lite mark types\n */\nexport type VegaLiteMark = 'line' | 'point' | 'circle' | 'square' | 'bar' | 'area' | 'rect' | 'rule' | 'text' | 'arc';\n\n/**\n * Vega-Lite scale type\n */\nexport type VegaLiteScaleType =\n | 'linear'\n | 'log'\n | 'pow'\n | 'sqrt'\n | 'symlog'\n | 'time'\n | 'utc'\n | 'ordinal'\n | 'band'\n | 'point';\n\n/**\n * Vega-Lite interpolation method\n */\nexport type VegaLiteInterpolate =\n | 'linear'\n | 'linear-closed'\n | 'step'\n | 'step-before'\n | 'step-after'\n | 'basis'\n | 'cardinal'\n | 'monotone'\n | 'natural';\n\n/**\n * Vega-Lite axis configuration\n */\nexport interface VegaLiteAxis {\n /**\n * Axis title\n */\n title?: string | null;\n\n /**\n * Format string for axis tick labels\n * Uses d3-format for quantitative and d3-time-format for temporal\n */\n format?: string;\n\n /**\n * Tick values to display\n */\n values?: number[] | string[];\n\n /**\n * Number of ticks\n */\n tickCount?: number;\n\n /**\n * Grid visibility\n */\n grid?: boolean;\n}\n\n/**\n * Vega-Lite scale configuration\n */\nexport interface VegaLiteScale {\n /**\n * Scale type\n */\n type?: VegaLiteScaleType;\n\n /**\n * Domain values [min, max]\n */\n domain?: (number | string)[];\n\n /**\n * Range values [min, max]\n */\n range?: [number | string, number | string] | string[];\n\n /**\n * Color scheme name (e.g., 'category10', 'tableau10')\n */\n scheme?: string;\n\n /**\n * Whether scale domain should include zero\n */\n zero?: boolean;\n\n /**\n * Whether to reverse the scale\n */\n reverse?: boolean;\n}\n\n/**\n * Vega-Lite legend configuration\n */\nexport interface VegaLiteLegend {\n /**\n * Legend title\n */\n title?: string | null;\n\n /**\n * Hide the legend\n */\n disable?: boolean;\n}\n\n/**\n * Vega-Lite sort specification\n */\nexport type VegaLiteSort =\n | 'ascending'\n | 'descending'\n | null\n | {\n field?: string;\n op?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n order?: 'ascending' | 'descending';\n }\n | string[];\n\n/**\n * Vega-Lite binning configuration\n */\nexport interface VegaLiteBin {\n /**\n * Maximum number of bins\n */\n maxbins?: number;\n\n /**\n * Exact step size between bins\n */\n step?: number;\n\n /**\n * Extent [min, max] for binning\n */\n extent?: [number, number];\n\n /**\n * Base for nice bin values (e.g., 10 for powers of 10)\n */\n base?: number;\n\n /**\n * Whether to include the boundary in bins\n */\n anchor?: number;\n}\n\n/**\n * Vega-Lite position encoding channel (x or y)\n */\nexport interface VegaLitePositionEncoding {\n /**\n * Field name in data\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Constant value for encoding (for reference lines and annotations)\n */\n value?: number | string | Date;\n\n /**\n * Datum value for encoding (alternative to value)\n */\n datum?: number | string | Date;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Sort order for categorical axes\n * Supports: 'ascending', 'descending', null, array of values, or object with field/op/order\n */\n sort?: VegaLiteSort;\n\n /**\n * Binning configuration for histograms\n * Set to true for default binning or provide custom bin parameters\n */\n bin?: boolean | VegaLiteBin;\n\n /**\n * Stack configuration for area/bar charts\n * - null: disable stacking\n * - 'zero': stack from zero baseline (default for area charts)\n * - 'center': center stack\n * - 'normalize': normalize to 100%\n */\n stack?: null | 'zero' | 'center' | 'normalize';\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis title (shorthand alternative to axis.title)\n */\n title?: string;\n\n /**\n * Time unit for temporal fields (e.g., 'yearmonth', 'month', 'day')\n */\n timeUnit?: string;\n}\n\n/**\n * Vega-Lite color encoding channel\n */\nexport interface VegaLiteColorEncoding {\n /**\n * Field name for color differentiation\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Legend configuration\n */\n legend?: VegaLiteLegend | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Fixed color value\n */\n value?: string;\n\n /**\n * Conditional color encoding with a test expression\n */\n condition?: {\n test: string;\n value: string;\n };\n}\n\n/**\n * Vega-Lite size encoding channel\n */\nexport interface VegaLiteSizeEncoding {\n /**\n * Field name for size encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed size value\n */\n value?: number;\n}\n\n/**\n * Vega-Lite shape encoding channel\n */\nexport interface VegaLiteShapeEncoding {\n /**\n * Field name for shape encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed shape value\n */\n value?: string;\n}\n\n/**\n * Vega-Lite theta encoding channel for pie/donut charts and polar coordinates\n */\nexport interface VegaLiteThetaEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration for polar charts\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration for polar charts\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite radius encoding channel for polar charts\n */\nexport interface VegaLiteRadiusEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite text encoding channel\n */\nexport interface VegaLiteTextEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed text value\n */\n value?: string;\n\n /**\n * Datum value for text encoding\n */\n datum?: string | number;\n}\n\n/**\n * Vega-Lite encoding channels\n */\nexport interface VegaLiteEncoding {\n /**\n * X-axis encoding\n */\n x?: VegaLitePositionEncoding;\n\n /**\n * Y-axis encoding\n */\n y?: VegaLitePositionEncoding;\n\n /**\n * Color encoding for series differentiation\n */\n color?: VegaLiteColorEncoding;\n\n /**\n * Size encoding for point marks\n */\n size?: VegaLiteSizeEncoding;\n\n /**\n * Shape encoding for point marks\n */\n shape?: VegaLiteShapeEncoding;\n\n /**\n * Theta encoding for pie/donut charts and polar coordinates\n */\n theta?: VegaLiteThetaEncoding;\n\n /**\n * Radius encoding for polar charts\n */\n radius?: VegaLiteRadiusEncoding;\n\n /**\n * X2 encoding for interval marks (rect, rule, bar with ranges)\n */\n x2?: VegaLitePositionEncoding;\n\n /**\n * Y2 encoding for interval marks (rect, rule, bar with ranges)\n */\n y2?: VegaLitePositionEncoding;\n\n /**\n * Text encoding for text marks\n */\n text?: VegaLiteTextEncoding;\n\n /**\n * xOffset encoding for grouped bar charts\n */\n xOffset?: VegaLitePositionEncoding;\n\n /**\n * Tooltip encoding (single field or array of fields)\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n tooltip?: any;\n}\n\n/**\n * Vega-Lite mark definition (can be string or object)\n */\nexport type VegaLiteMarkDef =\n | VegaLiteMark\n | {\n type: VegaLiteMark;\n /**\n * Mark color\n */\n color?: string;\n /**\n * Line interpolation method\n */\n interpolate?: VegaLiteInterpolate;\n /**\n * Point marker visibility\n */\n point?: boolean | { filled?: boolean; size?: number };\n /**\n * Stroke width\n */\n strokeWidth?: number;\n /**\n * Stroke dash pattern (e.g., [5, 5] for dashed, [2, 2] for dotted)\n */\n strokeDash?: number[];\n /**\n * Fill opacity\n */\n fillOpacity?: number;\n /**\n * Stroke opacity\n */\n strokeOpacity?: number;\n /**\n * Overall opacity\n */\n opacity?: number;\n /**\n * Inner radius for arc/pie/donut marks (0-1 or pixel value)\n */\n innerRadius?: number;\n /**\n * Outer radius for arc/pie marks (pixel value)\n */\n outerRadius?: number;\n };\n\n/**\n * Vega-Lite inline data\n */\nexport interface VegaLiteData {\n /**\n * Inline data values (array of objects)\n */\n values?: Array<Record<string, unknown>>;\n\n /**\n * URL to load data from\n * TODO: Implement remote data loading\n */\n url?: string;\n\n /**\n * Named dataset reference\n * TODO: Implement named dataset resolution\n */\n name?: string;\n\n /**\n * Data format specification\n * TODO: Implement format parsing (csv, json, etc.)\n */\n format?: {\n type?: 'json' | 'csv' | 'tsv';\n parse?: Record<string, string>;\n };\n}\n\n/**\n * Base Vega-Lite spec unit (single view)\n */\nexport interface VegaLiteUnitSpec {\n /**\n * Mark type\n */\n mark: VegaLiteMarkDef;\n\n /**\n * Encoding channels\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data specification\n */\n data?: VegaLiteData;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite layer spec (multiple overlaid views)\n */\nexport interface VegaLiteLayerSpec {\n /**\n * Layer array\n */\n layer: VegaLiteUnitSpec[];\n\n /**\n * Shared data across layers\n */\n data?: VegaLiteData;\n\n /**\n * Shared encoding across layers\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite title configuration with styling options\n */\nexport interface VegaLiteTitleParams {\n /**\n * Title text\n */\n text: string;\n\n /**\n * Subtitle text\n */\n subtitle?: string;\n\n /**\n * Font for the title\n */\n font?: string;\n\n /**\n * Font size for the title\n */\n fontSize?: number;\n\n /**\n * Font style for the title (e.g., 'normal', 'italic')\n */\n fontStyle?: string;\n\n /**\n * Font weight for the title (e.g., 'normal', 'bold', 100-900)\n */\n fontWeight?: string | number;\n\n /**\n * Color of the title text\n */\n color?: string;\n\n /**\n * Horizontal anchor position for the title\n * - 'start': left-aligned\n * - 'middle': centered\n * - 'end': right-aligned\n */\n anchor?: 'start' | 'middle' | 'end';\n\n /**\n * Vertical offset from the top of the chart\n */\n offset?: number;\n\n /**\n * Additional padding around the subtitle\n */\n subtitlePadding?: number;\n}\n\n/**\n * Top-level Vega-Lite specification\n */\nexport interface VegaLiteSpec {\n /**\n * Schema version\n */\n $schema?: string;\n\n /**\n * Chart title - can be a string or a detailed title configuration\n */\n title?: string | VegaLiteTitleParams;\n\n /**\n * Chart description\n */\n description?: string;\n\n /**\n * Chart width\n */\n width?: number | 'container';\n\n /**\n * Chart height\n */\n height?: number | 'container';\n\n /**\n * Data specification (for single/layer specs)\n */\n data?: VegaLiteData;\n\n /**\n * Mark type (for single view)\n */\n mark?: VegaLiteMarkDef;\n\n /**\n * Encoding channels (for single view)\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Horizontal concatenation for multi-plot layouts\n */\n hconcat?: VegaLiteSpec[];\n\n /**\n * Vertical concatenation for multi-plot layouts\n */\n vconcat?: VegaLiteSpec[];\n\n /**\n * Layer specification\n */\n layer?: VegaLiteUnitSpec[];\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n\n /**\n * Background color\n */\n background?: string;\n\n /**\n * Padding configuration\n */\n padding?: number | { top?: number; bottom?: number; left?: number; right?: number };\n\n /**\n * Auto-size configuration\n */\n autosize?: string | { type?: string; contains?: string };\n\n /**\n * Configuration overrides\n * TODO: Implement config resolution\n */\n config?: Record<string, unknown>;\n\n /**\n * Interactive selection definitions\n * TODO: Implement selection support\n */\n selection?: Record<string, unknown>;\n\n /**\n * Facet specification for small multiples\n * TODO: Implement facet support\n */\n facet?: Record<string, unknown>;\n\n /**\n * Repeat specification for small multiples\n * TODO: Implement repeat support\n */\n repeat?: Record<string, unknown>;\n\n /**\n * Scale resolution configuration\n * Controls whether scales are shared or independent across views\n */\n resolve?: {\n scale?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n axis?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n };\n legend?: {\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n };\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBC,GAED;;CAEC,GA4oBD;;CAEC,GACD,WA6HC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/VegaDeclarativeChart/index.ts"],"sourcesContent":["export * from './VegaDeclarativeChart';\n"],"names":[],"mappings":";;;;;uBAAc,4BAAyB"}
1
+ {"version":3,"sources":["../../../src/components/VegaDeclarativeChart/index.ts"],"sourcesContent":["export * from './VegaDeclarativeChart';\n"],"names":[],"mappings":";;;;;uBAAc,4BAAyB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/VerticalBarChart/VerticalBarChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useVerticalBarChartStyles } from './useVerticalBarChartStyles.styles';\nimport { max as d3Max, min as d3Min } from 'd3-array';\nimport { line as d3Line } from 'd3-shape';\nimport type { ScaleLinear as D3ScaleLinear } from 'd3-scale';\nimport { scaleLinear as d3ScaleLinear, scaleBand as d3ScaleBand, scaleUtc as d3ScaleUtc } from 'd3-scale';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\nimport type {\n AccessibilityProps,\n Margins,\n Legend,\n RefArrayData,\n VerticalBarChartProps,\n VerticalBarChartDataPoint,\n ChildProps,\n YValueHover,\n DataPoint,\n} from '../../index';\nimport { CartesianChart, Legends, ChartPopover } from '../../index';\nimport type { IAxisData, NumericAxis, IDomainNRange } from '../../utilities/index';\nimport {\n ChartTypes,\n getAccessibleDataObject,\n XAxisTypes,\n getTypeOfAxis,\n formatScientificLimitWidth,\n getBarWidth,\n getScalePadding,\n isScalePaddingDefined,\n calculateAppropriateBarWidth,\n useRtl,\n areArraysEqual,\n calculateLongestLabelWidth,\n findVerticalNumericMinMaxOfY,\n createNumericYAxis,\n domainRangeOfVerticalNumeric,\n domainRangeOfDateForAreaLineScatterVerticalBarCharts,\n domainRangeOfXStringAxis,\n createStringYAxis,\n calcTotalWidth,\n calcBandwidth,\n calcRequiredWidth,\n sortAxisCategories,\n} from '../../utilities/index';\nimport { useImageExport } from '../../utilities/hooks';\n\nenum CircleVisbility {\n show = 'visibility',\n hide = 'hidden',\n}\n\nconst MIN_DOMAIN_MARGIN = 8;\n\n// Create a VerticalBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalBarchart component\n * {@docCategory VerticalBarChart}\n */\nexport const VerticalBarChart: React.FunctionComponent<VerticalBarChartProps> = React.forwardRef<\n HTMLDivElement,\n VerticalBarChartProps\n>((_props, forwardedRef) => {\n const props: VerticalBarChartProps = {\n xAxisCategoryOrder: 'default',\n maxBarWidth: 24,\n ..._props,\n };\n let _points: VerticalBarChartDataPoint[] = [];\n let _barWidth: number = 0;\n let _colors: string[];\n const _refArray: RefArrayData[] = [];\n let margins: Margins;\n const _useRtl: boolean = useRtl();\n let _bars: JSXElement[];\n let _xAxisLabels: string[];\n let _yMax: number;\n let _yMin: number;\n let _isHavingLine: boolean = _checkForLine();\n let _xAxisType: XAxisTypes;\n let _calloutAnchorPoint: VerticalBarChartDataPoint | null;\n let _domainMargin: number;\n const _emptyChartId: string = useId('_VBC_empty');\n const _vbcLineId: string = useId('_VBC_line_');\n const _vbcPointId: string = useId('_VBC_point_');\n const _vbcBarId: string = useId('_VBC_bar_');\n let _xAxisInnerPadding: number = 0;\n let _xAxisOuterPadding: number = 0;\n type ColorScale = (_p?: number) => string;\n const { cartesianChartRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend);\n\n const [color, setColor] = React.useState<string>('');\n const [dataForHoverCard, setDataForHoverCard] = React.useState<number>(0);\n const [activeLegend, setActiveLegend] = React.useState<string | undefined>(undefined);\n const [xCalloutValue, setXCalloutValue] = React.useState<string | undefined>('');\n const [yCalloutValue, setYCalloutValue] = React.useState<string | undefined>('');\n const [activeXdataPoint, setActiveXDatapoint] = React.useState<string | number | Date | null>(null);\n const [hoveredYValues, setYValueHover] = React.useState<YValueHover[]>();\n const [hoverXValue, setHoverXValue] = React.useState<string | number | undefined>('');\n const [calloutLegend, setCalloutLegend] = React.useState<string>('');\n const [callOutAccessibilityData, setCalloutAccessibilityData] = React.useState<AccessibilityProps>();\n const [dataPointCalloutProps, setDataPointCalloutProps] = React.useState<VerticalBarChartDataPoint>();\n const [clickPosition, setClickPosition] = React.useState({ x: 0, y: 0 });\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>(props.legendProps?.selectedLegends || []);\n const prevPropsRef = React.useRef<VerticalBarChartProps | null>(null);\n\n React.useEffect(() => {\n if (prevPropsRef.current) {\n const prevProps = prevPropsRef.current;\n if (!areArraysEqual(prevProps.legendProps?.selectedLegends, props.legendProps?.selectedLegends)) {\n setSelectedLegends(props.legendProps?.selectedLegends || []);\n }\n if (prevProps.height !== props.height || prevProps.width !== props.width) {\n _adjustProps();\n }\n }\n prevPropsRef.current = props;\n }, [props, prevPropsRef, _adjustProps]);\n\n function _getDomainNRangeValues(\n points: DataPoint[],\n margins: Margins,\n width: number,\n chartType: ChartTypes,\n isRTL: boolean,\n xAxisType: XAxisTypes,\n barWidth: number,\n tickValues: Date[] | number[] | undefined,\n ) {\n let domainNRangeValue: IDomainNRange;\n if (xAxisType === XAxisTypes.NumericAxis) {\n domainNRangeValue = domainRangeOfVerticalNumeric(points, margins, width, isRTL, barWidth!);\n } else if (xAxisType === XAxisTypes.DateAxis) {\n domainNRangeValue = domainRangeOfDateForAreaLineScatterVerticalBarCharts(\n points,\n margins,\n width,\n isRTL,\n tickValues! as Date[],\n chartType,\n barWidth,\n );\n } else {\n domainNRangeValue = domainRangeOfXStringAxis(margins, width, isRTL);\n }\n return domainNRangeValue;\n }\n\n function _createLine(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale: any,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n yScalePrimary: any,\n containerHeight: number = 0,\n containerWidth: number = 0,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n yScaleSecondary?: any,\n ): React.ReactNode {\n const isStringAxis = _xAxisType === XAxisTypes.StringAxis;\n const colorScale = _createColors();\n const { data, lineLegendColor = tokens.colorPaletteYellowBackground1, lineLegendText } = props;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const lineData: Array<any> = [];\n const line: JSXElement[] = [];\n data &&\n data.forEach((item: VerticalBarChartDataPoint, index: number) => {\n if (item.lineData && item.lineData.y) {\n lineData.push({\n x: item.x,\n y: item.lineData!.y,\n useSecondaryYScale: item.lineData!.useSecondaryYScale ?? false,\n point: item,\n index,\n });\n }\n });\n const linePath = d3Line()\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .x((d: any) => (isStringAxis ? xScale(d.x) + 0.5 * xScale.bandwidth() : xScale(d.x)))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .y((d: any) => (d.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(d.y) : yScalePrimary(d.y)));\n const shouldHighlight = _legendHighlighted(lineLegendText!) || _noLegendHighlighted() ? true : false;\n const lineBorderWidth = props.lineOptions?.lineBorderWidth\n ? Number.parseFloat(props.lineOptions!.lineBorderWidth!.toString())\n : 0;\n\n if (lineBorderWidth > 0) {\n line.push(\n <path\n key={_vbcLineId}\n id={_vbcLineId}\n opacity={shouldHighlight ? 1 : 0.1}\n d={linePath(lineData)!}\n fill=\"transparent\"\n strokeLinecap=\"square\"\n strokeWidth={3 + lineBorderWidth * 2}\n className={classes.lineBorder}\n />,\n );\n }\n line.push(\n <path\n key={_vbcLineId}\n id={_vbcLineId}\n opacity={shouldHighlight ? 1 : 0.1}\n d={linePath(lineData)!}\n fill=\"transparent\"\n strokeLinecap=\"square\"\n strokeWidth={3}\n stroke={lineLegendColor}\n />,\n );\n\n const dots: React.ReactNode[] = lineData.map(\n (\n item: {\n x: number | string;\n y: number;\n useSecondaryYScale: boolean;\n point: VerticalBarChartDataPoint;\n index: number;\n },\n index: number,\n ) => {\n // Create an object to store line point ref so that the object can be passed by reference to the focus handler\n const circleRef: { refElement: SVGCircleElement | null } = { refElement: null };\n return (\n <circle\n key={index}\n id={`${_vbcPointId}-${index}`}\n cx={isStringAxis ? xScale(item.x) + 0.5 * xScale.bandwidth() : xScale(item.x)}\n cy={item.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(item.y) : yScalePrimary(item.y)}\n onMouseOver={event =>\n _legendHighlighted(lineLegendText!)\n ? _lineHover(item.point, event)\n : _onBarHover(item.point, colorScale(item.y), event)\n }\n onMouseOut={_onBarLeave}\n r={_getCircleVisibilityAndRadius(item.x, lineLegendText!).radius}\n stroke={lineLegendColor}\n fill={tokens.colorNeutralBackground1}\n strokeWidth={3}\n visibility={_getCircleVisibilityAndRadius(item.x, lineLegendText!).visibility}\n onClick={item.point.lineData?.onClick}\n // When no legend is highlighted: Line points are automatically displayed along with the bars\n // at the same x-axis point in the stack callout. So to prevent an increase in focusable elements\n // and avoid conveying duplicate info, make these line points non-focusable.\n data-is-focusable={_legendHighlighted(lineLegendText!)}\n ref={e => {\n circleRef.refElement = e;\n }}\n onFocus={event => _lineFocus(event, item.point, circleRef)}\n onBlur={_handleChartMouseLeave}\n tabIndex={_legendHighlighted(lineLegendText!) ? 0 : undefined}\n />\n );\n },\n );\n\n return (\n <>\n {line}\n {dots}\n </>\n );\n }\n\n function _getCircleVisibilityAndRadius(\n xAxisPoint: string | number | Date,\n legend: string,\n ): { visibility: CircleVisbility; radius: number } {\n if (!_noLegendHighlighted()) {\n if (xAxisPoint === activeXdataPoint && _legendHighlighted(legend)) {\n return { visibility: CircleVisbility.show, radius: 8 };\n } else if (_legendHighlighted(legend)) {\n // Don't hide the circle to keep it focusable. For more information,\n // see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html\n return { visibility: CircleVisbility.show, radius: 0.3 };\n } else {\n return { visibility: CircleVisbility.hide, radius: 0 };\n }\n } else {\n return {\n visibility: activeXdataPoint === xAxisPoint ? CircleVisbility.show : CircleVisbility.hide,\n radius: 8,\n };\n }\n }\n\n function _checkForLine(): boolean {\n const { data } = props;\n return data!.some((item: VerticalBarChartDataPoint) => item?.lineData?.y !== undefined);\n }\n\n function _adjustProps(): void {\n _xAxisType =\n props.data! && props.data!.length > 0\n ? (getTypeOfAxis(props.data![0].x, true) as XAxisTypes)\n : XAxisTypes.StringAxis;\n _points = props.data || [];\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth, undefined, props.mode);\n const defaultColors: string[] = [\n tokens.colorPaletteBlueForeground2,\n tokens.colorPaletteCornflowerForeground2,\n tokens.colorPaletteDarkGreenForeground2,\n tokens.colorPaletteNavyForeground2,\n tokens.colorPaletteDarkOrangeForeground2,\n ];\n _colors = props.colors || defaultColors;\n _isHavingLine = _checkForLine();\n _xAxisInnerPadding =\n props.mode === 'histogram'\n ? 0\n : getScalePadding(\n props.xAxisInnerPadding,\n props.xAxisPadding,\n _xAxisType === XAxisTypes.StringAxis ? 2 / 3 : 1 / 2,\n );\n _xAxisOuterPadding = getScalePadding(props.xAxisOuterPadding, props.xAxisPadding, 0);\n }\n\n function _getMargins(_margins: Margins) {\n margins = _margins;\n }\n\n function _renderContentForBothLineAndBars(point: VerticalBarChartDataPoint): JSXElement {\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n const content: JSXElement[] = YValueHover.map((item: YValueHover, index: number) => {\n return (\n <>\n <ChartPopover\n culture={props.culture}\n clickPosition={clickPosition}\n isPopoverOpen={isPopoverOpen}\n legend={item.legend!}\n {...(index === 0 && { XValue: `${hoverXValue || item.data}` })}\n YValue={item.data || item.y}\n color={item.color}\n isCalloutForStack={false}\n />\n </>\n );\n });\n return <>{content}</>;\n }\n\n function _renderContentForOnlyBars(_props: VerticalBarChartDataPoint): JSXElement {\n return (\n <>\n <ChartPopover\n XValue={_props.xAxisCalloutData || (_props.x as string)}\n xCalloutValue={xCalloutValue}\n yCalloutValue={yCalloutValue}\n culture={props.culture}\n clickPosition={clickPosition}\n isPopoverOpen={isPopoverOpen}\n legend={_props.legend!}\n YValue={_props.yAxisCalloutData || _props.y}\n color={!props.useSingleColor && _props.color ? _props.color : _createColors()(_props.y)}\n isCalloutForStack={false}\n />\n </>\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-shadow\n function _renderCallout(props?: VerticalBarChartDataPoint): JSXElement | null {\n return props ? (_isHavingLine ? _renderContentForBothLineAndBars(props) : _renderContentForOnlyBars(props)) : null;\n }\n\n function _getCustomizedCallout() {\n return props.onRenderCalloutPerDataPoint\n ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps, _renderCallout)\n : null;\n }\n\n function _getGraphData(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale: any,\n yScale: NumericAxis,\n containerHeight: number,\n containerWidth: number,\n xElement?: SVGElement | null,\n ) {\n return (_bars =\n _xAxisType === XAxisTypes.NumericAxis\n ? _createNumericBars(containerHeight, containerWidth, xElement!)\n : _xAxisType === XAxisTypes.DateAxis\n ? _createDateBars(containerHeight, containerWidth, xElement!)\n : _createStringBars(containerHeight, containerWidth, xElement!));\n }\n\n function _createColors(): D3ScaleLinear<string, string> | ColorScale {\n const increment = _colors.length <= 1 ? 1 : 1 / (_colors.length - 1);\n const { useSingleColor = false } = props;\n if (useSingleColor) {\n return (_p?: number) => {\n const { colors } = props;\n return colors && colors.length > 0 ? colors[0] : tokens.colorPaletteBlueBackground2;\n };\n }\n const domainValues = [];\n for (let i = 0; i < _colors.length; i++) {\n domainValues.push(increment * i * _yMax);\n }\n const colorScale = d3ScaleLinear<string>().domain(domainValues).range(_colors);\n return colorScale;\n }\n\n function _refCallback(element: SVGRectElement, legendTitle: string): void {\n _refArray.push({ index: legendTitle, refElement: element });\n }\n\n function _getCalloutContentForLineAndBar(point: VerticalBarChartDataPoint): {\n YValueHover: YValueHover[];\n hoverXValue: string | number | undefined;\n } {\n const YValueHover: YValueHover[] = [];\n const { useSingleColor = false } = props;\n const { data, lineLegendText, lineLegendColor = tokens.colorPaletteYellowBackground1 } = props;\n const selectedPoint = data!.filter((xDataPoint: VerticalBarChartDataPoint) => xDataPoint.x === point.x);\n // Check if the line legend is highlighted or no legend is highlighted\n if (\n _isHavingLine &&\n selectedPoint[0].lineData?.y !== undefined &&\n (_legendHighlighted(lineLegendText) || _noLegendHighlighted())\n ) {\n // Add callout data for the line\n YValueHover.push({\n legend: lineLegendText,\n color: lineLegendColor,\n y: selectedPoint[0].lineData?.y,\n data: selectedPoint[0].lineData?.yAxisCalloutData,\n yAxisCalloutData: selectedPoint[0].lineData?.yAxisCalloutData,\n });\n }\n // Check if the bar legend is highlighted or no legend is highlighted\n if (selectedLegends.includes(selectedPoint[0].legend!) || _noLegendHighlighted()) {\n // Add callout data for the bar\n YValueHover.push({\n legend: selectedPoint[0].legend,\n y: selectedPoint[0].y,\n color: !useSingleColor\n ? selectedPoint[0].color\n ? selectedPoint[0].color\n : _createColors()(selectedPoint[0].y)\n : _createColors()(1),\n data: selectedPoint[0].yAxisCalloutData,\n yAxisCalloutData: selectedPoint[0].yAxisCalloutData,\n });\n }\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const hoverXValue = point.x instanceof Date ? point.x.toLocaleString() : point.x.toString();\n return {\n YValueHover,\n hoverXValue: point.xAxisCalloutData || hoverXValue,\n };\n }\n\n function _onBarHover(\n point: VerticalBarChartDataPoint,\n // eslint-disable-next-line @typescript-eslint/no-shadow\n color: string,\n mouseEvent: React.MouseEvent<SVGElement>,\n ): void {\n mouseEvent.persist();\n\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n if (_calloutAnchorPoint !== point) {\n _calloutAnchorPoint = point;\n /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */\n updatePosition(mouseEvent.clientX, mouseEvent.clientY);\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(point.legend));\n setDataForHoverCard(point.y);\n setCalloutLegend(point.legend!);\n setColor(point.color || color);\n // To display callout value, if no callout value given, taking given point.x value as a string.\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setDataPointCalloutProps(point);\n // Hovering over a bar should highlight corresponding line points only when no legend is selected\n setActiveXDatapoint(_noLegendHighlighted() ? point.x : null);\n setYValueHover(YValueHover);\n setHoverXValue(hoverXValue);\n setCalloutAccessibilityData(point.callOutAccessibilityData);\n }\n }\n\n function _onBarLeave(): void {\n /**/\n }\n\n function _handleChartMouseLeave(): void {\n _calloutAnchorPoint = null;\n setPopoverOpen(false);\n setActiveXDatapoint(null);\n setYValueHover([]);\n setHoverXValue('');\n }\n\n function _onBarFocus(\n event: React.FocusEvent<SVGRectElement, Element>,\n point: VerticalBarChartDataPoint,\n refArrayIndexNumber: number,\n color: string,\n ): void {\n let x = 0;\n let y = 0;\n\n const targetRect = (event.target as SVGRectElement).getBoundingClientRect();\n x = targetRect.left + targetRect.width / 2;\n y = targetRect.top + targetRect.height / 2;\n updatePosition(x, y);\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n _refArray.forEach((obj: RefArrayData, index: number) => {\n if (obj.index === point.legend! && refArrayIndexNumber === index) {\n /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(point.legend));\n setDataForHoverCard(point.y);\n setCalloutLegend(point.legend!);\n setColor(point.color || color);\n // To display callout value, if no callout value given, taking given point.x value as a string.\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setYCalloutValue(point.yAxisCalloutData!);\n setDataPointCalloutProps(point);\n // Hovering over a bar should highlight corresponding line points only when no legend is selected\n setActiveXDatapoint(point.x);\n setYValueHover(YValueHover);\n setHoverXValue(hoverXValue);\n setCalloutAccessibilityData(point.callOutAccessibilityData);\n }\n });\n }\n\n function _lineHover(point: VerticalBarChartDataPoint, mouseEvent: React.MouseEvent<SVGElement>) {\n mouseEvent.persist();\n _lineHoverFocus(point, mouseEvent);\n }\n\n function _lineFocus(\n event: React.FocusEvent<SVGCircleElement, Element>,\n point: VerticalBarChartDataPoint,\n ref: { refElement: SVGCircleElement | null },\n ) {\n if (ref.refElement) {\n _lineHoverFocus(point, ref.refElement);\n }\n }\n\n function _lineHoverFocus(\n point: VerticalBarChartDataPoint,\n _refSelected: React.MouseEvent<SVGElement> | SVGCircleElement,\n ) {\n const { lineLegendText = '', lineLegendColor = tokens.colorPaletteYellowBackground1 } = props;\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(lineLegendText));\n setCalloutLegend(lineLegendText);\n setDataForHoverCard(point.lineData!.y);\n setColor(lineLegendColor);\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setYCalloutValue(point.lineData!.yAxisCalloutData);\n setDataPointCalloutProps(point);\n setActiveXDatapoint(point.x);\n }\n\n function _getScales(\n containerHeight: number,\n containerWidth: number,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): { xBarScale: any; yBarScale: any } {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let xBarScale: any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const yBarScale: any = d3ScaleLinear()\n .domain([_yMin, _yMax])\n .range([0, containerHeight - margins.bottom! - margins.top!]);\n\n if (_xAxisType === XAxisTypes.NumericAxis) {\n const xMax = d3Max(_points, (point: VerticalBarChartDataPoint) => point.x as number)!;\n const xMin = d3Min(_points, (point: VerticalBarChartDataPoint) => point.x as number)!;\n xBarScale = d3ScaleLinear()\n .domain(_useRtl ? [xMax, xMin] : [xMin, xMax])\n .range([margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin]);\n if (!isScalePaddingDefined(props.xAxisInnerPadding, props.xAxisPadding) && props.mode !== 'histogram') {\n xBarScale.nice();\n }\n } else if (_xAxisType === XAxisTypes.DateAxis) {\n const sDate = d3Min(_points, (point: VerticalBarChartDataPoint) => point.x as Date)!;\n const lDate = d3Max(_points, (point: VerticalBarChartDataPoint) => point.x as Date)!;\n xBarScale = d3ScaleUtc()\n .domain([sDate, lDate])\n .range(\n _useRtl\n ? [containerWidth - margins.right! - _domainMargin, margins.left! + _domainMargin]\n : [margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin],\n );\n } else {\n xBarScale = d3ScaleBand()\n .domain(_xAxisLabels)\n .range(\n _useRtl\n ? [containerWidth - margins.right! - _domainMargin, margins.left! + _domainMargin]\n : [margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin],\n )\n .paddingInner(_xAxisInnerPadding)\n .paddingOuter(_xAxisOuterPadding);\n }\n\n return { xBarScale, yBarScale };\n }\n\n const classes = useVerticalBarChartStyles(props);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _calculateMinBarHeight(yMin: number, yMax: number, yReferencePoint: number, yBarScale: any): number {\n const maxHeightFromBaseline =\n yMax < 0\n ? Math.abs(yMin - yReferencePoint)\n : Math.max(Math.abs(yMax - yReferencePoint), Math.abs(yMin - yReferencePoint));\n return Math.ceil(yBarScale(maxHeightFromBaseline) / 100.0);\n }\n\n function _createNumericBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { useSingleColor = false } = props;\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x as number) - _barWidth / 2;\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n return (\n <g key={`${point.x}_${index}` as string} role=\"presentation\">\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n onMouseLeave={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n onBlur={_onBarLeave}\n fill={point.color && !useSingleColor ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n opacity={shouldHighlight ? 1 : 0.1}\n rx={props.roundCorners ? 3 : 0}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _createStringBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x);\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n // Setting the bar width here is safe because there are no dependencies earlier in the code\n // that rely on the width of bars in vertical bar charts with string x-axis.\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth, xBarScale.bandwidth(), props.mode);\n return (\n <g\n key={point.x instanceof Date ? `${point.x.getTime()}_${index}` : `${point.x}_${index}`}\n transform={`translate(${0.5 * (xBarScale.bandwidth() - _barWidth)}, 0)`}\n role=\"presentation\"\n >\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n onMouseLeave={_onBarLeave}\n onBlur={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n fill={point.color ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n rx={props.roundCorners ? 3 : 0}\n opacity={shouldHighlight ? 1 : 0.1}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _createDateBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { useSingleColor = false } = props;\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x as number) - _barWidth / 2;\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n return (\n <g key={point.x instanceof Date ? `${point.x.getTime()}_${index}` : `${point.x}_${index}`} role=\"presentation\">\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n className={classes.opacityChangeOnHover}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n onMouseLeave={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n onBlur={_onBarLeave}\n fill={point.color && !useSingleColor ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n rx={props.roundCorners ? 3 : 0}\n opacity={shouldHighlight ? 1 : 0.1}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _onLegendHover(legendTitle: string): void {\n setActiveLegend(legendTitle);\n }\n\n function _onLegendLeave(): void {\n setActiveLegend(undefined);\n }\n\n function _getLegendData(data: VerticalBarChartDataPoint[]): JSXElement {\n const { useSingleColor } = props;\n const { lineLegendText, lineLegendColor = tokens.colorPaletteYellowForeground1 } = props;\n const actions: Legend[] = [];\n const mapLegendToColor: Record<string, string> = Object.create(null);\n data.forEach((point: VerticalBarChartDataPoint, _index: number) => {\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const color: string = !useSingleColor ? point.color! : _createColors()(1);\n mapLegendToColor[point.legend!] = color;\n });\n Object.entries(mapLegendToColor).forEach(([legendTitle, color]) => {\n // mapping data to the format Legends component needs\n const legend: Legend = {\n title: legendTitle,\n color,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(legendTitle);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n };\n actions.push(legend);\n });\n if (_isHavingLine && lineLegendText && lineLegendColor) {\n const lineLegend: Legend = {\n title: lineLegendText,\n color: lineLegendColor,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(lineLegendText);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n isLineLegendInBarChart: true,\n };\n actions.unshift(lineLegend);\n }\n const legends = (\n <Legends\n legends={actions}\n enabledWrapLines={props.enabledLegendsWrapLines}\n overflowText={props.legendsOverflowText}\n {...props.legendProps}\n selectedLegends={selectedLegends}\n onChange={_onLegendSelectionChange}\n legendRef={_legendsRef}\n />\n );\n return legends;\n }\n\n function _onLegendSelectionChange(\n legendsSelected: string[],\n event: React.MouseEvent<HTMLButtonElement>,\n currentLegend?: Legend,\n ): void {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(legendsSelected);\n } else {\n setSelectedLegends(legendsSelected.slice(-1));\n }\n\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(legendsSelected, event, currentLegend);\n }\n }\n\n function _getAxisData(yAxisData: IAxisData) {\n if (yAxisData && yAxisData.yAxisDomainValues.length) {\n const { yAxisDomainValues: domainValue } = yAxisData;\n _yMax = Math.max(domainValue[domainValue.length - 1], props.yMaxValue || 0);\n _yMin = Math.min(domainValue[0], props.yMinValue || 0);\n }\n }\n\n /**\n * This function checks if the given legend is highlighted or not.\n * A legend can be highlighted in 2 ways:\n * 1. selection: if the user clicks on it\n * 2. hovering: if there is no selected legend and the user hovers over it\n */\n function _legendHighlighted(legendTitle: string | undefined): boolean {\n return _getHighlightedLegend().includes(legendTitle!);\n }\n\n /**\n * This function checks if none of the legends is selected or hovered.\n */\n function _noLegendHighlighted(): boolean {\n return _getHighlightedLegend().length === 0;\n }\n\n function _getHighlightedLegend() {\n return selectedLegends.length > 0 ? selectedLegends : activeLegend ? [activeLegend] : [];\n }\n\n function _getAriaLabel(point: VerticalBarChartDataPoint): string {\n const xValue = point.xAxisCalloutData\n ? point.xAxisCalloutData\n : point.x instanceof Date\n ? point.x.toLocaleString()\n : point.x;\n const legend = point.legend;\n const yValue = point.yAxisCalloutData || point.y;\n const lineLegend = props.lineLegendText || 'Line';\n const lineYValue = point.lineData?.yAxisCalloutData || point.lineData?.y;\n return (\n point.callOutAccessibilityData?.ariaLabel ||\n `${xValue}. ` +\n (legend ? `${legend}, ` : '') +\n `${yValue}.` +\n (typeof lineYValue !== 'undefined' ? ` ${lineLegend}, ${lineYValue}.` : '')\n );\n }\n\n function _renderBarLabel(\n xPoint: number,\n yPoint: number,\n barValue: number,\n legend: string,\n isNegativeBar: boolean,\n customBarLabel?: string,\n ) {\n if (props.hideLabels || _barWidth < 16 || !(_legendHighlighted(legend) || _noLegendHighlighted())) {\n return null;\n }\n\n // Use custom barLabel if provided, otherwise use the formatted barValue\n const displayLabel =\n customBarLabel !== undefined\n ? customBarLabel\n : typeof props.yAxisTickFormat === 'function'\n ? props.yAxisTickFormat(barValue)\n : formatScientificLimitWidth(barValue);\n\n return (\n <text\n x={xPoint + _barWidth / 2}\n y={isNegativeBar ? yPoint + 12 : yPoint - 6}\n textAnchor=\"middle\"\n className={classes.barLabel}\n aria-hidden={true}\n style={{ direction: 'ltr', unicodeBidi: 'isolate' }}\n >\n {displayLabel}\n </text>\n );\n }\n\n function _getDomainMargins(containerWidth: number): Margins {\n _domainMargin = MIN_DOMAIN_MARGIN;\n\n const mapX: Record<string, number | string | Date> = {};\n props.data?.forEach(point => {\n if (point.x instanceof Date) {\n mapX[point.x.getTime()] = point.x;\n } else {\n mapX[point.x] = point.x;\n }\n });\n const uniqueX = Object.values(mapX);\n\n /** Total width available to render the bars */\n const totalWidth = calcTotalWidth(containerWidth, margins, MIN_DOMAIN_MARGIN);\n\n if (_xAxisType === XAxisTypes.StringAxis) {\n if (isScalePaddingDefined(props.xAxisOuterPadding, props.xAxisPadding)) {\n // Setting the domain margin for string x-axis to 0 because the xAxisOuterPadding prop is now available\n // to adjust the space before the first bar and after the last bar.\n _domainMargin = 0;\n } else if (props.barWidth !== 'auto' && props.mode !== 'histogram') {\n // Update the bar width so that when CartesianChart rerenders,\n // the following calculations don't use the previous bar width.\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth);\n /** Total width required to render the bars. Directly proportional to bar width */\n const reqWidth = calcRequiredWidth(_barWidth, uniqueX.length, _xAxisInnerPadding);\n\n if (totalWidth >= reqWidth) {\n // Center align the chart by setting equal left and right margins for domain\n _domainMargin = MIN_DOMAIN_MARGIN + (totalWidth - reqWidth) / 2;\n }\n } else if (['plotly', 'histogram'].includes(props.mode!) && uniqueX.length > 1) {\n // Calculate the remaining width after rendering bars at their maximum allowable width\n const bandwidth = calcBandwidth(totalWidth, uniqueX.length, _xAxisInnerPadding);\n const barWidth = getBarWidth(props.barWidth, props.maxBarWidth, bandwidth, props.mode);\n let reqWidth = calcRequiredWidth(barWidth, uniqueX.length, _xAxisInnerPadding);\n const margin1 = (totalWidth - reqWidth) / 2;\n\n let margin2 = Number.POSITIVE_INFINITY;\n // This logic may introduce gaps between histogram bars when the barWidth is restricted.\n // So disable it for histogram mode.\n if (props.mode !== 'histogram') {\n // Calculate the remaining width after accounting for the space required to render x-axis labels\n const step = calculateLongestLabelWidth(uniqueX as string[]) + 20;\n reqWidth = (uniqueX.length - _xAxisInnerPadding) * step;\n margin2 = (totalWidth - reqWidth) / 2;\n }\n\n _domainMargin = MIN_DOMAIN_MARGIN + Math.max(0, Math.min(margin1, margin2));\n }\n } else {\n if (props.mode === 'histogram') {\n // Try center-aligning the bars to eliminate any gaps caused by a restricted barWidth.\n // This only works if the bin centers are consistent across all legend groups; otherwise,\n // the calculated domainMargin may be too small.\n const barWidth = props.maxBarWidth!;\n const reqWidth = calcRequiredWidth(barWidth, uniqueX.length, _xAxisInnerPadding);\n _domainMargin += Math.max(0, (totalWidth - reqWidth) / 2);\n }\n\n // The histogram may appear distorted when bin centers/sizes vary across different legend groups.\n // Currently, we calculate the appropriate bar width using the closest unique x-values to make\n // the bars of the same legend group adjacent. But these x-values can come from different legend groups\n // and result in misleading visuals. Even if we compute bar widths separately within each group,\n // we still lack support for rendering bars with different widths and must use the minimum width,\n // which can cause the same issue.\n // Solution: Instead of estimating the appropriate bar width, render each bar to span the full range\n // of its corresponding bin explicitly.\n _barWidth = getBarWidth(\n props.barWidth,\n props.maxBarWidth,\n calculateAppropriateBarWidth(\n uniqueX as number[] | Date[],\n calcTotalWidth(containerWidth, margins, _domainMargin),\n _xAxisInnerPadding,\n ),\n props.mode,\n );\n _domainMargin += _barWidth / 2;\n _domainMargin += _barWidth / 2;\n }\n\n return {\n ...margins,\n left: margins.left! + _domainMargin,\n right: margins.right! + _domainMargin,\n };\n }\n\n function _getChartTitle(): string {\n const { chartTitle, data } = props;\n return (\n (chartTitle ? `${chartTitle}. ` : '') +\n `Vertical bar chart with ${data?.length || 0} bars` +\n (_isHavingLine ? ' and 1 line' : '') +\n '. '\n );\n }\n\n function _isChartEmpty(): boolean {\n return _points.length === 0 || (_points.every(point => point.y === 0) && !_isHavingLine);\n }\n\n function _getOrderedXAxisLabels() {\n if (_xAxisType !== XAxisTypes.StringAxis) {\n return [];\n }\n\n return sortAxisCategories(_mapCategoryToValues(), props.xAxisCategoryOrder);\n }\n\n function _mapCategoryToValues() {\n const categoryToValues: Record<string, number[]> = Object.create(null);\n _points.forEach(point => {\n const xValue = point.x as string;\n if (!categoryToValues[xValue]) {\n categoryToValues[xValue] = [];\n }\n categoryToValues[xValue].push(point.y);\n if (point.lineData) {\n categoryToValues[xValue].push(point.lineData.y);\n }\n });\n return categoryToValues;\n }\n\n function _getBarsGroupLabel(): string {\n // Calculate number of unique series and total data points for accessibility label\n const uniqueSeries = new Set(_points.map(point => point.legend)).size;\n const totalDataPoints = _points.length;\n return `${uniqueSeries} series and ${totalDataPoints} bars`;\n }\n\n function updatePosition(newX: number, newY: number) {\n const threshold = 1; // Set a threshold for movement\n const { x, y } = clickPosition;\n // Calculate the distance moved\n const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));\n // Update the position only if the distance moved is greater than the threshold\n if (distance > threshold) {\n setClickPosition({ x: newX, y: newY });\n setPopoverOpen(true);\n }\n }\n\n _adjustProps();\n _xAxisLabels = _getOrderedXAxisLabels();\n _yMax = Math.max(d3Max(_points, (point: VerticalBarChartDataPoint) => point.y)!, props.yMaxValue || 0);\n _yMin = Math.min(d3Min(_points, (point: VerticalBarChartDataPoint) => point.y)!, props.yMinValue || 0);\n const legendBars: JSXElement = _getLegendData(_points);\n const calloutProps = {\n ...(_isHavingLine && {\n YValueHover: hoveredYValues,\n hoverXValue,\n }),\n color,\n legend: calloutLegend,\n XValue: xCalloutValue,\n YValue: yCalloutValue ? yCalloutValue : dataForHoverCard,\n ...props.calloutProps,\n ...getAccessibleDataObject(callOutAccessibilityData),\n clickPosition,\n isPopoverOpen,\n isCalloutForStack: _isHavingLine && (_noLegendHighlighted() || _getHighlightedLegend().length > 1),\n culture: props.culture,\n isCartesian: true,\n customCallout: {\n customizedCallout: _getCustomizedCallout() != null ? _getCustomizedCallout()! : undefined,\n customCalloutProps: props.calloutPropsPerDataPoint\n ? props.calloutPropsPerDataPoint(dataPointCalloutProps!)\n : undefined,\n },\n };\n\n const tickParams = {\n tickValues: props.tickValues,\n tickFormat: props.tickFormat,\n };\n return !_isChartEmpty() ? (\n <CartesianChart\n {...props}\n points={_points}\n chartTitle={_getChartTitle()}\n chartType={ChartTypes.VerticalBarChart}\n xAxisType={_xAxisType!}\n createYAxis={createNumericYAxis}\n calloutProps={calloutProps}\n tickParams={tickParams}\n {...(_isHavingLine && _noLegendHighlighted() && { isCalloutForStack: true })}\n legendBars={legendBars}\n datasetForXAxisDomain={_xAxisLabels}\n barwidth={_barWidth}\n createStringYAxis={createStringYAxis}\n getmargins={_getMargins}\n getMinMaxOfYAxis={findVerticalNumericMinMaxOfY}\n getGraphData={_getGraphData}\n getDomainNRangeValues={_getDomainNRangeValues}\n getAxisData={_getAxisData}\n onChartMouseLeave={_handleChartMouseLeave}\n onChartBlur={_handleChartMouseLeave}\n getDomainMargins={_getDomainMargins}\n {...(_xAxisType! === XAxisTypes.StringAxis && {\n xAxisInnerPadding: _xAxisInnerPadding,\n xAxisOuterPadding: _xAxisOuterPadding,\n })}\n componentRef={cartesianChartRef}\n showRoundOffXTickValues={\n !isScalePaddingDefined(props.xAxisInnerPadding, props.xAxisPadding) && props.mode !== 'histogram'\n }\n /* eslint-disable react/jsx-no-bind */\n\n children={(props: ChildProps) => {\n return (\n <>\n <g role=\"listbox\" aria-label={_getBarsGroupLabel()}>\n {_bars}\n </g>\n {_isHavingLine && (\n <g>\n {_createLine(\n props.xScale!,\n props.yScalePrimary!,\n props.containerHeight,\n props.containerWidth,\n props.yScaleSecondary,\n )}\n </g>\n )}\n </>\n );\n }}\n />\n ) : (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n});\nVerticalBarChart.displayName = 'VerticalBarChart';\n"],"names":["React","useVerticalBarChartStyles","max","d3Max","min","d3Min","line","d3Line","scaleLinear","d3ScaleLinear","scaleBand","d3ScaleBand","scaleUtc","d3ScaleUtc","useId","tokens","CartesianChart","Legends","ChartPopover","ChartTypes","getAccessibleDataObject","XAxisTypes","getTypeOfAxis","formatScientificLimitWidth","getBarWidth","getScalePadding","isScalePaddingDefined","calculateAppropriateBarWidth","useRtl","areArraysEqual","calculateLongestLabelWidth","findVerticalNumericMinMaxOfY","createNumericYAxis","domainRangeOfVerticalNumeric","domainRangeOfDateForAreaLineScatterVerticalBarCharts","domainRangeOfXStringAxis","createStringYAxis","calcTotalWidth","calcBandwidth","calcRequiredWidth","sortAxisCategories","useImageExport","CircleVisbility","MIN_DOMAIN_MARGIN","VerticalBarChart","forwardRef","_props","forwardedRef","props","xAxisCategoryOrder","maxBarWidth","_points","_barWidth","_colors","_refArray","margins","_useRtl","_bars","_xAxisLabels","_yMax","_yMin","_isHavingLine","_checkForLine","_xAxisType","_calloutAnchorPoint","_domainMargin","_emptyChartId","_vbcLineId","_vbcPointId","_vbcBarId","_xAxisInnerPadding","_xAxisOuterPadding","cartesianChartRef","legendsRef","_legendsRef","componentRef","hideLegend","color","setColor","useState","dataForHoverCard","setDataForHoverCard","activeLegend","setActiveLegend","undefined","xCalloutValue","setXCalloutValue","yCalloutValue","setYCalloutValue","activeXdataPoint","setActiveXDatapoint","hoveredYValues","setYValueHover","hoverXValue","setHoverXValue","calloutLegend","setCalloutLegend","callOutAccessibilityData","setCalloutAccessibilityData","dataPointCalloutProps","setDataPointCalloutProps","clickPosition","setClickPosition","x","y","isPopoverOpen","setPopoverOpen","selectedLegends","setSelectedLegends","legendProps","prevPropsRef","useRef","useEffect","current","prevProps","height","width","_adjustProps","_getDomainNRangeValues","points","chartType","isRTL","xAxisType","barWidth","tickValues","domainNRangeValue","NumericAxis","DateAxis","_createLine","xScale","yScalePrimary","containerHeight","containerWidth","yScaleSecondary","isStringAxis","StringAxis","colorScale","_createColors","data","lineLegendColor","colorPaletteYellowBackground1","lineLegendText","lineData","forEach","item","index","push","useSecondaryYScale","point","linePath","d","bandwidth","shouldHighlight","_legendHighlighted","_noLegendHighlighted","lineBorderWidth","lineOptions","Number","parseFloat","toString","path","key","id","opacity","fill","strokeLinecap","strokeWidth","className","classes","lineBorder","stroke","dots","map","circleRef","refElement","circle","cx","cy","onMouseOver","event","_lineHover","_onBarHover","onMouseOut","_onBarLeave","r","_getCircleVisibilityAndRadius","radius","colorNeutralBackground1","visibility","onClick","data-is-focusable","ref","e","onFocus","_lineFocus","onBlur","_handleChartMouseLeave","tabIndex","xAxisPoint","legend","some","length","mode","defaultColors","colorPaletteBlueForeground2","colorPaletteCornflowerForeground2","colorPaletteDarkGreenForeground2","colorPaletteNavyForeground2","colorPaletteDarkOrangeForeground2","colors","xAxisInnerPadding","xAxisPadding","xAxisOuterPadding","_getMargins","_margins","_renderContentForBothLineAndBars","YValueHover","_getCalloutContentForLineAndBar","content","culture","XValue","YValue","isCalloutForStack","_renderContentForOnlyBars","xAxisCalloutData","yAxisCalloutData","useSingleColor","_renderCallout","_getCustomizedCallout","onRenderCalloutPerDataPoint","_getGraphData","yScale","xElement","_createNumericBars","_createDateBars","_createStringBars","increment","_p","colorPaletteBlueBackground2","domainValues","i","domain","range","_refCallback","element","legendTitle","selectedPoint","filter","xDataPoint","includes","Date","toLocaleString","mouseEvent","persist","updatePosition","clientX","clientY","toLocaleDateString","_onBarFocus","refArrayIndexNumber","targetRect","target","getBoundingClientRect","left","top","obj","_lineHoverFocus","_refSelected","_getScales","xBarScale","yBarScale","bottom","xMax","xMin","right","nice","sDate","lDate","paddingInner","paddingOuter","_calculateMinBarHeight","yMin","yMax","yReferencePoint","maxHeightFromBaseline","Math","abs","ceil","bars","barHeight","isHeightNegative","minBarHeight","adjustedBarHeight","Fragment","xPoint","yPoint","baselineHeight","g","role","rect","aria-label","_getAriaLabel","onMouseLeave","hideTooltip","rx","roundCorners","_renderBarLabel","barLabel","getTime","transform","opacityChangeOnHover","_onLegendHover","_onLegendLeave","_getLegendData","colorPaletteYellowForeground1","actions","mapLegendToColor","Object","create","_index","entries","title","hoverAction","onMouseOutAction","lineLegend","isLineLegendInBarChart","unshift","legends","enabledWrapLines","enabledLegendsWrapLines","overflowText","legendsOverflowText","onChange","_onLegendSelectionChange","legendRef","legendsSelected","currentLegend","canSelectMultipleLegends","slice","_getAxisData","yAxisData","yAxisDomainValues","domainValue","yMaxValue","yMinValue","_getHighlightedLegend","xValue","yValue","lineYValue","ariaLabel","barValue","isNegativeBar","customBarLabel","hideLabels","displayLabel","yAxisTickFormat","text","textAnchor","aria-hidden","style","direction","unicodeBidi","_getDomainMargins","mapX","uniqueX","values","totalWidth","reqWidth","margin1","margin2","POSITIVE_INFINITY","step","_getChartTitle","chartTitle","_isChartEmpty","every","_getOrderedXAxisLabels","_mapCategoryToValues","categoryToValues","_getBarsGroupLabel","uniqueSeries","Set","size","totalDataPoints","newX","newY","threshold","distance","sqrt","pow","legendBars","calloutProps","isCartesian","customCallout","customizedCallout","customCalloutProps","calloutPropsPerDataPoint","tickParams","tickFormat","createYAxis","datasetForXAxisDomain","barwidth","getmargins","getMinMaxOfYAxis","getGraphData","getDomainNRangeValues","getAxisData","onChartMouseLeave","onChartBlur","getDomainMargins","showRoundOffXTickValues","children","div","displayName"],"mappings":"AAAA;;;;;+BA8Da4C;;;;;;;iEA5DU,QAAQ;iDACW,wCAAqC;yBACpC,WAAW;yBACvB,WAAW;yBAEqD,WAAW;gCACpF,4BAA4B;4BAE3B,wBAAwB;uBAYO,iBAAc;wBAyB7D,2BAAwB;uBACA,2BAAwB;AAEvD,IAAKF,kBAAAA,WAAAA,GAAAA,SAAAA,eAAAA;;;WAAAA;EAAAA,mBAAAA,CAAAA;AAKL,MAAMC,oBAAoB;AAOnB,yBAAMC,WAAAA,GAAmE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AAElK,MAAMmK,YAAY,KAAKnK,MAAM0J,IAAI,KAAK;QAExF,oCAAoC,GAEpCiN,UAAU,CAAC3W;YACT,OAAA,WAAA,GACE,OAAA,aAAA,CAAA,OAAA,QAAA,EAAA,MAAA,WAAA,GACE,OAAA,aAAA,CAACyP,KAAAA;gBAAEC,MAAK;gBAAUE,cAAY+E;eAC3BlU,QAEFI,iBAAAA,WAAAA,GACC,OAAA,aAAA,CAAC4O,KAAAA,MACEzK,YACChF,MAAMiF,MAAM,EACZjF,MAAMkF,aAAa,EACnBlF,MAAMmF,eAAe,EACrBnF,MAAMoF,cAAc,EACpBpF,MAAMqF,eAAe;QAMjC;uBAGF,OAAA,aAAA,CAACuR,OAAAA;QAAI1P,IAAIhG;QAAewO,MAAM;QAAS6D,OAAO;YAAEpM,SAAS;QAAI;QAAGyI,cAAY;;AAEhF,GAAG;AACHhQ,iBAAiBiX,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/VerticalBarChart/VerticalBarChart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useVerticalBarChartStyles } from './useVerticalBarChartStyles.styles';\nimport { max as d3Max, min as d3Min } from 'd3-array';\nimport { line as d3Line } from 'd3-shape';\nimport type { ScaleLinear as D3ScaleLinear } from 'd3-scale';\nimport { scaleLinear as d3ScaleLinear, scaleBand as d3ScaleBand, scaleUtc as d3ScaleUtc } from 'd3-scale';\nimport { useId } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\nimport type {\n AccessibilityProps,\n Margins,\n Legend,\n RefArrayData,\n VerticalBarChartProps,\n VerticalBarChartDataPoint,\n ChildProps,\n YValueHover,\n DataPoint,\n} from '../../index';\nimport { CartesianChart, Legends, ChartPopover } from '../../index';\nimport type { IAxisData, NumericAxis, IDomainNRange } from '../../utilities/index';\nimport {\n ChartTypes,\n getAccessibleDataObject,\n XAxisTypes,\n getTypeOfAxis,\n formatScientificLimitWidth,\n getBarWidth,\n getScalePadding,\n isScalePaddingDefined,\n calculateAppropriateBarWidth,\n useRtl,\n areArraysEqual,\n calculateLongestLabelWidth,\n findVerticalNumericMinMaxOfY,\n createNumericYAxis,\n domainRangeOfVerticalNumeric,\n domainRangeOfDateForAreaLineScatterVerticalBarCharts,\n domainRangeOfXStringAxis,\n createStringYAxis,\n calcTotalWidth,\n calcBandwidth,\n calcRequiredWidth,\n sortAxisCategories,\n} from '../../utilities/index';\nimport { useImageExport } from '../../utilities/hooks';\n\nenum CircleVisbility {\n show = 'visibility',\n hide = 'hidden',\n}\n\nconst MIN_DOMAIN_MARGIN = 8;\n\n// Create a VerticalBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalBarchart component\n * {@docCategory VerticalBarChart}\n */\nexport const VerticalBarChart: React.FunctionComponent<VerticalBarChartProps> = React.forwardRef<\n HTMLDivElement,\n VerticalBarChartProps\n>((_props, forwardedRef) => {\n const props: VerticalBarChartProps = {\n xAxisCategoryOrder: 'default',\n maxBarWidth: 24,\n ..._props,\n };\n let _points: VerticalBarChartDataPoint[] = [];\n let _barWidth: number = 0;\n let _colors: string[];\n const _refArray: RefArrayData[] = [];\n let margins: Margins;\n const _useRtl: boolean = useRtl();\n let _bars: JSXElement[];\n let _xAxisLabels: string[];\n let _yMax: number;\n let _yMin: number;\n let _isHavingLine: boolean = _checkForLine();\n let _xAxisType: XAxisTypes;\n let _calloutAnchorPoint: VerticalBarChartDataPoint | null;\n let _domainMargin: number;\n const _emptyChartId: string = useId('_VBC_empty');\n const _vbcLineId: string = useId('_VBC_line_');\n const _vbcPointId: string = useId('_VBC_point_');\n const _vbcBarId: string = useId('_VBC_bar_');\n let _xAxisInnerPadding: number = 0;\n let _xAxisOuterPadding: number = 0;\n type ColorScale = (_p?: number) => string;\n const { cartesianChartRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend);\n\n const [color, setColor] = React.useState<string>('');\n const [dataForHoverCard, setDataForHoverCard] = React.useState<number>(0);\n const [activeLegend, setActiveLegend] = React.useState<string | undefined>(undefined);\n const [xCalloutValue, setXCalloutValue] = React.useState<string | undefined>('');\n const [yCalloutValue, setYCalloutValue] = React.useState<string | undefined>('');\n const [activeXdataPoint, setActiveXDatapoint] = React.useState<string | number | Date | null>(null);\n const [hoveredYValues, setYValueHover] = React.useState<YValueHover[]>();\n const [hoverXValue, setHoverXValue] = React.useState<string | number | undefined>('');\n const [calloutLegend, setCalloutLegend] = React.useState<string>('');\n const [callOutAccessibilityData, setCalloutAccessibilityData] = React.useState<AccessibilityProps>();\n const [dataPointCalloutProps, setDataPointCalloutProps] = React.useState<VerticalBarChartDataPoint>();\n const [clickPosition, setClickPosition] = React.useState({ x: 0, y: 0 });\n const [isPopoverOpen, setPopoverOpen] = React.useState(false);\n const [selectedLegends, setSelectedLegends] = React.useState<string[]>(props.legendProps?.selectedLegends || []);\n const prevPropsRef = React.useRef<VerticalBarChartProps | null>(null);\n\n React.useEffect(() => {\n if (prevPropsRef.current) {\n const prevProps = prevPropsRef.current;\n if (!areArraysEqual(prevProps.legendProps?.selectedLegends, props.legendProps?.selectedLegends)) {\n setSelectedLegends(props.legendProps?.selectedLegends || []);\n }\n if (prevProps.height !== props.height || prevProps.width !== props.width) {\n _adjustProps();\n }\n }\n prevPropsRef.current = props;\n }, [props, prevPropsRef, _adjustProps]);\n\n function _getDomainNRangeValues(\n points: DataPoint[],\n margins: Margins,\n width: number,\n chartType: ChartTypes,\n isRTL: boolean,\n xAxisType: XAxisTypes,\n barWidth: number,\n tickValues: Date[] | number[] | undefined,\n ) {\n let domainNRangeValue: IDomainNRange;\n if (xAxisType === XAxisTypes.NumericAxis) {\n domainNRangeValue = domainRangeOfVerticalNumeric(points, margins, width, isRTL, barWidth!);\n } else if (xAxisType === XAxisTypes.DateAxis) {\n domainNRangeValue = domainRangeOfDateForAreaLineScatterVerticalBarCharts(\n points,\n margins,\n width,\n isRTL,\n tickValues! as Date[],\n chartType,\n barWidth,\n );\n } else {\n domainNRangeValue = domainRangeOfXStringAxis(margins, width, isRTL);\n }\n return domainNRangeValue;\n }\n\n function _createLine(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale: any,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n yScalePrimary: any,\n containerHeight: number = 0,\n containerWidth: number = 0,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n yScaleSecondary?: any,\n ): React.ReactNode {\n const isStringAxis = _xAxisType === XAxisTypes.StringAxis;\n const colorScale = _createColors();\n const { data, lineLegendColor = tokens.colorPaletteYellowBackground1, lineLegendText } = props;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const lineData: Array<any> = [];\n const line: JSXElement[] = [];\n data &&\n data.forEach((item: VerticalBarChartDataPoint, index: number) => {\n if (item.lineData && item.lineData.y) {\n lineData.push({\n x: item.x,\n y: item.lineData!.y,\n useSecondaryYScale: item.lineData!.useSecondaryYScale ?? false,\n point: item,\n index,\n });\n }\n });\n const linePath = d3Line()\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .x((d: any) => (isStringAxis ? xScale(d.x) + 0.5 * xScale.bandwidth() : xScale(d.x)))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .y((d: any) => (d.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(d.y) : yScalePrimary(d.y)));\n const shouldHighlight = _legendHighlighted(lineLegendText!) || _noLegendHighlighted() ? true : false;\n const lineBorderWidth = props.lineOptions?.lineBorderWidth\n ? Number.parseFloat(props.lineOptions!.lineBorderWidth!.toString())\n : 0;\n\n if (lineBorderWidth > 0) {\n line.push(\n <path\n key={_vbcLineId}\n id={_vbcLineId}\n opacity={shouldHighlight ? 1 : 0.1}\n d={linePath(lineData)!}\n fill=\"transparent\"\n strokeLinecap=\"square\"\n strokeWidth={3 + lineBorderWidth * 2}\n className={classes.lineBorder}\n />,\n );\n }\n line.push(\n <path\n key={_vbcLineId}\n id={_vbcLineId}\n opacity={shouldHighlight ? 1 : 0.1}\n d={linePath(lineData)!}\n fill=\"transparent\"\n strokeLinecap=\"square\"\n strokeWidth={3}\n stroke={lineLegendColor}\n />,\n );\n\n const dots: React.ReactNode[] = lineData.map(\n (\n item: {\n x: number | string;\n y: number;\n useSecondaryYScale: boolean;\n point: VerticalBarChartDataPoint;\n index: number;\n },\n index: number,\n ) => {\n // Create an object to store line point ref so that the object can be passed by reference to the focus handler\n const circleRef: { refElement: SVGCircleElement | null } = { refElement: null };\n return (\n <circle\n key={index}\n id={`${_vbcPointId}-${index}`}\n cx={isStringAxis ? xScale(item.x) + 0.5 * xScale.bandwidth() : xScale(item.x)}\n cy={item.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(item.y) : yScalePrimary(item.y)}\n onMouseOver={event =>\n _legendHighlighted(lineLegendText!)\n ? _lineHover(item.point, event)\n : _onBarHover(item.point, colorScale(item.y), event)\n }\n onMouseOut={_onBarLeave}\n r={_getCircleVisibilityAndRadius(item.x, lineLegendText!).radius}\n stroke={lineLegendColor}\n fill={tokens.colorNeutralBackground1}\n strokeWidth={3}\n visibility={_getCircleVisibilityAndRadius(item.x, lineLegendText!).visibility}\n onClick={item.point.lineData?.onClick}\n // When no legend is highlighted: Line points are automatically displayed along with the bars\n // at the same x-axis point in the stack callout. So to prevent an increase in focusable elements\n // and avoid conveying duplicate info, make these line points non-focusable.\n data-is-focusable={_legendHighlighted(lineLegendText!)}\n ref={e => {\n circleRef.refElement = e;\n }}\n onFocus={event => _lineFocus(event, item.point, circleRef)}\n onBlur={_handleChartMouseLeave}\n tabIndex={_legendHighlighted(lineLegendText!) ? 0 : undefined}\n />\n );\n },\n );\n\n return (\n <>\n {line}\n {dots}\n </>\n );\n }\n\n function _getCircleVisibilityAndRadius(\n xAxisPoint: string | number | Date,\n legend: string,\n ): { visibility: CircleVisbility; radius: number } {\n if (!_noLegendHighlighted()) {\n if (xAxisPoint === activeXdataPoint && _legendHighlighted(legend)) {\n return { visibility: CircleVisbility.show, radius: 8 };\n } else if (_legendHighlighted(legend)) {\n // Don't hide the circle to keep it focusable. For more information,\n // see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html\n return { visibility: CircleVisbility.show, radius: 0.3 };\n } else {\n return { visibility: CircleVisbility.hide, radius: 0 };\n }\n } else {\n return {\n visibility: activeXdataPoint === xAxisPoint ? CircleVisbility.show : CircleVisbility.hide,\n radius: 8,\n };\n }\n }\n\n function _checkForLine(): boolean {\n const { data } = props;\n return data!.some((item: VerticalBarChartDataPoint) => item?.lineData?.y !== undefined);\n }\n\n function _adjustProps(): void {\n _xAxisType =\n props.data! && props.data!.length > 0\n ? (getTypeOfAxis(props.data![0].x, true) as XAxisTypes)\n : XAxisTypes.StringAxis;\n _points = props.data || [];\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth, undefined, props.mode);\n const defaultColors: string[] = [\n tokens.colorPaletteBlueForeground2,\n tokens.colorPaletteCornflowerForeground2,\n tokens.colorPaletteDarkGreenForeground2,\n tokens.colorPaletteNavyForeground2,\n tokens.colorPaletteDarkOrangeForeground2,\n ];\n _colors = props.colors || defaultColors;\n _isHavingLine = _checkForLine();\n _xAxisInnerPadding =\n props.mode === 'histogram'\n ? 0\n : getScalePadding(\n props.xAxisInnerPadding,\n props.xAxisPadding,\n _xAxisType === XAxisTypes.StringAxis ? 2 / 3 : 1 / 2,\n );\n _xAxisOuterPadding = getScalePadding(props.xAxisOuterPadding, props.xAxisPadding, 0);\n }\n\n function _getMargins(_margins: Margins) {\n margins = _margins;\n }\n\n function _renderContentForBothLineAndBars(point: VerticalBarChartDataPoint): JSXElement {\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n const content: JSXElement[] = YValueHover.map((item: YValueHover, index: number) => {\n return (\n <>\n <ChartPopover\n culture={props.culture}\n clickPosition={clickPosition}\n isPopoverOpen={isPopoverOpen}\n legend={item.legend!}\n {...(index === 0 && { XValue: `${hoverXValue || item.data}` })}\n YValue={item.data || item.y}\n color={item.color}\n isCalloutForStack={false}\n />\n </>\n );\n });\n return <>{content}</>;\n }\n\n function _renderContentForOnlyBars(_props: VerticalBarChartDataPoint): JSXElement {\n return (\n <>\n <ChartPopover\n XValue={_props.xAxisCalloutData || (_props.x as string)}\n xCalloutValue={xCalloutValue}\n yCalloutValue={yCalloutValue}\n culture={props.culture}\n clickPosition={clickPosition}\n isPopoverOpen={isPopoverOpen}\n legend={_props.legend!}\n YValue={_props.yAxisCalloutData || _props.y}\n color={!props.useSingleColor && _props.color ? _props.color : _createColors()(_props.y)}\n isCalloutForStack={false}\n />\n </>\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-shadow\n function _renderCallout(props?: VerticalBarChartDataPoint): JSXElement | null {\n return props ? (_isHavingLine ? _renderContentForBothLineAndBars(props) : _renderContentForOnlyBars(props)) : null;\n }\n\n function _getCustomizedCallout() {\n return props.onRenderCalloutPerDataPoint\n ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps, _renderCallout)\n : null;\n }\n\n function _getGraphData(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n xScale: any,\n yScale: NumericAxis,\n containerHeight: number,\n containerWidth: number,\n xElement?: SVGElement | null,\n ) {\n return (_bars =\n _xAxisType === XAxisTypes.NumericAxis\n ? _createNumericBars(containerHeight, containerWidth, xElement!)\n : _xAxisType === XAxisTypes.DateAxis\n ? _createDateBars(containerHeight, containerWidth, xElement!)\n : _createStringBars(containerHeight, containerWidth, xElement!));\n }\n\n function _createColors(): D3ScaleLinear<string, string> | ColorScale {\n const increment = _colors.length <= 1 ? 1 : 1 / (_colors.length - 1);\n const { useSingleColor = false } = props;\n if (useSingleColor) {\n return (_p?: number) => {\n const { colors } = props;\n return colors && colors.length > 0 ? colors[0] : tokens.colorPaletteBlueBackground2;\n };\n }\n const domainValues = [];\n for (let i = 0; i < _colors.length; i++) {\n domainValues.push(increment * i * _yMax);\n }\n const colorScale = d3ScaleLinear<string>().domain(domainValues).range(_colors);\n return colorScale;\n }\n\n function _refCallback(element: SVGRectElement, legendTitle: string): void {\n _refArray.push({ index: legendTitle, refElement: element });\n }\n\n function _getCalloutContentForLineAndBar(point: VerticalBarChartDataPoint): {\n YValueHover: YValueHover[];\n hoverXValue: string | number | undefined;\n } {\n const YValueHover: YValueHover[] = [];\n const { useSingleColor = false } = props;\n const { data, lineLegendText, lineLegendColor = tokens.colorPaletteYellowBackground1 } = props;\n const selectedPoint = data!.filter((xDataPoint: VerticalBarChartDataPoint) => xDataPoint.x === point.x);\n // Check if the line legend is highlighted or no legend is highlighted\n if (\n _isHavingLine &&\n selectedPoint[0].lineData?.y !== undefined &&\n (_legendHighlighted(lineLegendText) || _noLegendHighlighted())\n ) {\n // Add callout data for the line\n YValueHover.push({\n legend: lineLegendText,\n color: lineLegendColor,\n y: selectedPoint[0].lineData?.y,\n data: selectedPoint[0].lineData?.yAxisCalloutData,\n yAxisCalloutData: selectedPoint[0].lineData?.yAxisCalloutData,\n });\n }\n // Check if the bar legend is highlighted or no legend is highlighted\n if (selectedLegends.includes(selectedPoint[0].legend!) || _noLegendHighlighted()) {\n // Add callout data for the bar\n YValueHover.push({\n legend: selectedPoint[0].legend,\n y: selectedPoint[0].y,\n color: !useSingleColor\n ? selectedPoint[0].color\n ? selectedPoint[0].color\n : _createColors()(selectedPoint[0].y)\n : _createColors()(1),\n data: selectedPoint[0].yAxisCalloutData,\n yAxisCalloutData: selectedPoint[0].yAxisCalloutData,\n });\n }\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const hoverXValue = point.x instanceof Date ? point.x.toLocaleString() : point.x.toString();\n return {\n YValueHover,\n hoverXValue: point.xAxisCalloutData || hoverXValue,\n };\n }\n\n function _onBarHover(\n point: VerticalBarChartDataPoint,\n // eslint-disable-next-line @typescript-eslint/no-shadow\n color: string,\n mouseEvent: React.MouseEvent<SVGElement>,\n ): void {\n mouseEvent.persist();\n\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n if (_calloutAnchorPoint !== point) {\n _calloutAnchorPoint = point;\n /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */\n updatePosition(mouseEvent.clientX, mouseEvent.clientY);\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(point.legend));\n setDataForHoverCard(point.y);\n setCalloutLegend(point.legend!);\n setColor(point.color || color);\n // To display callout value, if no callout value given, taking given point.x value as a string.\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setDataPointCalloutProps(point);\n // Hovering over a bar should highlight corresponding line points only when no legend is selected\n setActiveXDatapoint(_noLegendHighlighted() ? point.x : null);\n setYValueHover(YValueHover);\n setHoverXValue(hoverXValue);\n setCalloutAccessibilityData(point.callOutAccessibilityData);\n }\n }\n\n function _onBarLeave(): void {\n /**/\n }\n\n function _handleChartMouseLeave(): void {\n _calloutAnchorPoint = null;\n setPopoverOpen(false);\n setActiveXDatapoint(null);\n setYValueHover([]);\n setHoverXValue('');\n }\n\n function _onBarFocus(\n event: React.FocusEvent<SVGRectElement, Element>,\n point: VerticalBarChartDataPoint,\n refArrayIndexNumber: number,\n color: string,\n ): void {\n let x = 0;\n let y = 0;\n\n const targetRect = (event.target as SVGRectElement).getBoundingClientRect();\n x = targetRect.left + targetRect.width / 2;\n y = targetRect.top + targetRect.height / 2;\n updatePosition(x, y);\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { YValueHover, hoverXValue } = _getCalloutContentForLineAndBar(point);\n _refArray.forEach((obj: RefArrayData, index: number) => {\n if (obj.index === point.legend! && refArrayIndexNumber === index) {\n /** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(point.legend));\n setDataForHoverCard(point.y);\n setCalloutLegend(point.legend!);\n setColor(point.color || color);\n // To display callout value, if no callout value given, taking given point.x value as a string.\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setYCalloutValue(point.yAxisCalloutData!);\n setDataPointCalloutProps(point);\n // Hovering over a bar should highlight corresponding line points only when no legend is selected\n setActiveXDatapoint(point.x);\n setYValueHover(YValueHover);\n setHoverXValue(hoverXValue);\n setCalloutAccessibilityData(point.callOutAccessibilityData);\n }\n });\n }\n\n function _lineHover(point: VerticalBarChartDataPoint, mouseEvent: React.MouseEvent<SVGElement>) {\n mouseEvent.persist();\n _lineHoverFocus(point, mouseEvent);\n }\n\n function _lineFocus(\n event: React.FocusEvent<SVGCircleElement, Element>,\n point: VerticalBarChartDataPoint,\n ref: { refElement: SVGCircleElement | null },\n ) {\n if (ref.refElement) {\n _lineHoverFocus(point, ref.refElement);\n }\n }\n\n function _lineHoverFocus(\n point: VerticalBarChartDataPoint,\n _refSelected: React.MouseEvent<SVGElement> | SVGCircleElement,\n ) {\n const { lineLegendText = '', lineLegendColor = tokens.colorPaletteYellowBackground1 } = props;\n setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(lineLegendText));\n setCalloutLegend(lineLegendText);\n setDataForHoverCard(point.lineData!.y);\n setColor(lineLegendColor);\n setXCalloutValue(\n point.xAxisCalloutData || (point.x instanceof Date ? point.x.toLocaleDateString() : point.x.toString()),\n );\n setYCalloutValue(point.lineData!.yAxisCalloutData);\n setDataPointCalloutProps(point);\n setActiveXDatapoint(point.x);\n }\n\n function _getScales(\n containerHeight: number,\n containerWidth: number,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): { xBarScale: any; yBarScale: any } {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let xBarScale: any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const yBarScale: any = d3ScaleLinear()\n .domain([_yMin, _yMax])\n .range([0, containerHeight - margins.bottom! - margins.top!]);\n\n if (_xAxisType === XAxisTypes.NumericAxis) {\n const xMax = d3Max(_points, (point: VerticalBarChartDataPoint) => point.x as number)!;\n const xMin = d3Min(_points, (point: VerticalBarChartDataPoint) => point.x as number)!;\n xBarScale = d3ScaleLinear()\n .domain(_useRtl ? [xMax, xMin] : [xMin, xMax])\n .range([margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin]);\n if (!isScalePaddingDefined(props.xAxisInnerPadding, props.xAxisPadding) && props.mode !== 'histogram') {\n xBarScale.nice();\n }\n } else if (_xAxisType === XAxisTypes.DateAxis) {\n const sDate = d3Min(_points, (point: VerticalBarChartDataPoint) => point.x as Date)!;\n const lDate = d3Max(_points, (point: VerticalBarChartDataPoint) => point.x as Date)!;\n xBarScale = d3ScaleUtc()\n .domain([sDate, lDate])\n .range(\n _useRtl\n ? [containerWidth - margins.right! - _domainMargin, margins.left! + _domainMargin]\n : [margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin],\n );\n } else {\n xBarScale = d3ScaleBand()\n .domain(_xAxisLabels)\n .range(\n _useRtl\n ? [containerWidth - margins.right! - _domainMargin, margins.left! + _domainMargin]\n : [margins.left! + _domainMargin, containerWidth - margins.right! - _domainMargin],\n )\n .paddingInner(_xAxisInnerPadding)\n .paddingOuter(_xAxisOuterPadding);\n }\n\n return { xBarScale, yBarScale };\n }\n\n const classes = useVerticalBarChartStyles(props);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _calculateMinBarHeight(yMin: number, yMax: number, yReferencePoint: number, yBarScale: any): number {\n const maxHeightFromBaseline =\n yMax < 0\n ? Math.abs(yMin - yReferencePoint)\n : Math.max(Math.abs(yMax - yReferencePoint), Math.abs(yMin - yReferencePoint));\n return Math.ceil(yBarScale(maxHeightFromBaseline) / 100.0);\n }\n\n function _createNumericBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { useSingleColor = false } = props;\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x as number) - _barWidth / 2;\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n return (\n <g key={`${point.x}_${index}` as string} role=\"presentation\">\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n onMouseLeave={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n onBlur={_onBarLeave}\n fill={point.color && !useSingleColor ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n opacity={shouldHighlight ? 1 : 0.1}\n rx={props.roundCorners ? 3 : 0}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _createStringBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x);\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n // Setting the bar width here is safe because there are no dependencies earlier in the code\n // that rely on the width of bars in vertical bar charts with string x-axis.\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth, xBarScale.bandwidth(), props.mode);\n return (\n <g\n key={point.x instanceof Date ? `${point.x.getTime()}_${index}` : `${point.x}_${index}`}\n transform={`translate(${0.5 * (xBarScale.bandwidth() - _barWidth)}, 0)`}\n role=\"presentation\"\n >\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n onMouseLeave={_onBarLeave}\n onBlur={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n fill={point.color ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n rx={props.roundCorners ? 3 : 0}\n opacity={shouldHighlight ? 1 : 0.1}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _createDateBars(containerHeight: number, containerWidth: number, xElement: SVGElement): JSXElement[] {\n const { useSingleColor = false } = props;\n const { xBarScale, yBarScale } = _getScales(containerHeight, containerWidth);\n const colorScale = _createColors();\n const yReferencePoint = _yMax < 0 ? _yMax : 0;\n const bars = _points.map((point: VerticalBarChartDataPoint, index: number) => {\n const shouldHighlight = _legendHighlighted(point.legend!) || _noLegendHighlighted() ? true : false;\n let barHeight: number = yBarScale(point.y) - yBarScale(yReferencePoint);\n const isHeightNegative = barHeight < 0;\n barHeight = Math.abs(barHeight);\n // Calculate threshold for minimum visible bar height\n const minBarHeight = _calculateMinBarHeight(_yMin, _yMax, yReferencePoint, yBarScale);\n let adjustedBarHeight = barHeight;\n\n if (barHeight === 0) {\n return <React.Fragment key={point.x as string}> </React.Fragment>;\n }\n // Adjust bar height if it's smaller than the threshold\n else if (barHeight <= minBarHeight) {\n adjustedBarHeight = minBarHeight;\n }\n const xPoint = xBarScale(point.x as number) - _barWidth / 2;\n const yPoint =\n containerHeight -\n margins.bottom! -\n (isHeightNegative ? -1 * adjustedBarHeight : adjustedBarHeight) -\n yBarScale(yReferencePoint);\n const baselineHeight = containerHeight - margins.bottom! - yBarScale(yReferencePoint);\n return (\n <g key={point.x instanceof Date ? `${point.x.getTime()}_${index}` : `${point.x}_${index}`} role=\"presentation\">\n <rect\n id={`${_vbcBarId}-${index}`}\n x={xPoint}\n className={classes.opacityChangeOnHover}\n y={!isHeightNegative ? yPoint : baselineHeight}\n width={_barWidth}\n height={adjustedBarHeight}\n ref={(e: SVGRectElement) => {\n _refCallback(e, point.legend!);\n }}\n onClick={point.onClick}\n onMouseOver={event => _onBarHover(point, colorScale(point.y), event)}\n aria-label={_getAriaLabel(point)}\n role=\"option\"\n onMouseLeave={_onBarLeave}\n onFocus={event => _onBarFocus(event, point, index, colorScale(point.y))}\n onBlur={_onBarLeave}\n fill={point.color && !useSingleColor ? point.color : colorScale(point.y)}\n tabIndex={!props.hideTooltip && shouldHighlight ? 0 : undefined}\n rx={props.roundCorners ? 3 : 0}\n opacity={shouldHighlight ? 1 : 0.1}\n />\n {_renderBarLabel(xPoint, yPoint, point.y, point.legend!, isHeightNegative, point.barLabel)}\n </g>\n );\n });\n return bars;\n }\n\n function _onLegendHover(legendTitle: string): void {\n setActiveLegend(legendTitle);\n }\n\n function _onLegendLeave(): void {\n setActiveLegend(undefined);\n }\n\n function _getLegendData(data: VerticalBarChartDataPoint[]): JSXElement {\n const { useSingleColor } = props;\n const { lineLegendText, lineLegendColor = tokens.colorPaletteYellowForeground1 } = props;\n const actions: Legend[] = [];\n const mapLegendToColor: Record<string, string> = Object.create(null);\n data.forEach((point: VerticalBarChartDataPoint, _index: number) => {\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const color: string = !useSingleColor ? point.color! : _createColors()(1);\n mapLegendToColor[point.legend!] = color;\n });\n Object.entries(mapLegendToColor).forEach(([legendTitle, color]) => {\n // mapping data to the format Legends component needs\n const legend: Legend = {\n title: legendTitle,\n color,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(legendTitle);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n };\n actions.push(legend);\n });\n if (_isHavingLine && lineLegendText && lineLegendColor) {\n const lineLegend: Legend = {\n title: lineLegendText,\n color: lineLegendColor,\n hoverAction: () => {\n _handleChartMouseLeave();\n _onLegendHover(lineLegendText);\n },\n onMouseOutAction: () => {\n _onLegendLeave();\n },\n isLineLegendInBarChart: true,\n };\n actions.unshift(lineLegend);\n }\n const legends = (\n <Legends\n legends={actions}\n enabledWrapLines={props.enabledLegendsWrapLines}\n overflowText={props.legendsOverflowText}\n {...props.legendProps}\n selectedLegends={selectedLegends}\n onChange={_onLegendSelectionChange}\n legendRef={_legendsRef}\n />\n );\n return legends;\n }\n\n function _onLegendSelectionChange(\n legendsSelected: string[],\n event: React.MouseEvent<HTMLButtonElement>,\n currentLegend?: Legend,\n ): void {\n if (props.legendProps?.canSelectMultipleLegends) {\n setSelectedLegends(legendsSelected);\n } else {\n setSelectedLegends(legendsSelected.slice(-1));\n }\n\n if (props.legendProps?.onChange) {\n props.legendProps.onChange(legendsSelected, event, currentLegend);\n }\n }\n\n function _getAxisData(yAxisData: IAxisData) {\n if (yAxisData && yAxisData.yAxisDomainValues.length) {\n const { yAxisDomainValues: domainValue } = yAxisData;\n _yMax = Math.max(domainValue[domainValue.length - 1], props.yMaxValue || 0);\n _yMin = Math.min(domainValue[0], props.yMinValue || 0);\n }\n }\n\n /**\n * This function checks if the given legend is highlighted or not.\n * A legend can be highlighted in 2 ways:\n * 1. selection: if the user clicks on it\n * 2. hovering: if there is no selected legend and the user hovers over it\n */\n function _legendHighlighted(legendTitle: string | undefined): boolean {\n return _getHighlightedLegend().includes(legendTitle!);\n }\n\n /**\n * This function checks if none of the legends is selected or hovered.\n */\n function _noLegendHighlighted(): boolean {\n return _getHighlightedLegend().length === 0;\n }\n\n function _getHighlightedLegend() {\n return selectedLegends.length > 0 ? selectedLegends : activeLegend ? [activeLegend] : [];\n }\n\n function _getAriaLabel(point: VerticalBarChartDataPoint): string {\n const xValue = point.xAxisCalloutData\n ? point.xAxisCalloutData\n : point.x instanceof Date\n ? point.x.toLocaleString()\n : point.x;\n const legend = point.legend;\n const yValue = point.yAxisCalloutData || point.y;\n const lineLegend = props.lineLegendText || 'Line';\n const lineYValue = point.lineData?.yAxisCalloutData || point.lineData?.y;\n return (\n point.callOutAccessibilityData?.ariaLabel ||\n `${xValue}. ` +\n (legend ? `${legend}, ` : '') +\n `${yValue}.` +\n (typeof lineYValue !== 'undefined' ? ` ${lineLegend}, ${lineYValue}.` : '')\n );\n }\n\n function _renderBarLabel(\n xPoint: number,\n yPoint: number,\n barValue: number,\n legend: string,\n isNegativeBar: boolean,\n customBarLabel?: string,\n ) {\n if (props.hideLabels || _barWidth < 16 || !(_legendHighlighted(legend) || _noLegendHighlighted())) {\n return null;\n }\n\n // Use custom barLabel if provided, otherwise use the formatted barValue\n const displayLabel =\n customBarLabel !== undefined\n ? customBarLabel\n : typeof props.yAxisTickFormat === 'function'\n ? props.yAxisTickFormat(barValue)\n : formatScientificLimitWidth(barValue);\n\n return (\n <text\n x={xPoint + _barWidth / 2}\n y={isNegativeBar ? yPoint + 12 : yPoint - 6}\n textAnchor=\"middle\"\n className={classes.barLabel}\n aria-hidden={true}\n style={{ direction: 'ltr', unicodeBidi: 'isolate' }}\n >\n {displayLabel}\n </text>\n );\n }\n\n function _getDomainMargins(containerWidth: number): Margins {\n _domainMargin = MIN_DOMAIN_MARGIN;\n\n const mapX: Record<string, number | string | Date> = {};\n props.data?.forEach(point => {\n if (point.x instanceof Date) {\n mapX[point.x.getTime()] = point.x;\n } else {\n mapX[point.x] = point.x;\n }\n });\n const uniqueX = Object.values(mapX);\n\n /** Total width available to render the bars */\n const totalWidth = calcTotalWidth(containerWidth, margins, MIN_DOMAIN_MARGIN);\n\n if (_xAxisType === XAxisTypes.StringAxis) {\n if (isScalePaddingDefined(props.xAxisOuterPadding, props.xAxisPadding)) {\n // Setting the domain margin for string x-axis to 0 because the xAxisOuterPadding prop is now available\n // to adjust the space before the first bar and after the last bar.\n _domainMargin = 0;\n } else if (props.barWidth !== 'auto' && props.mode !== 'histogram') {\n // Update the bar width so that when CartesianChart rerenders,\n // the following calculations don't use the previous bar width.\n _barWidth = getBarWidth(props.barWidth, props.maxBarWidth);\n /** Total width required to render the bars. Directly proportional to bar width */\n const reqWidth = calcRequiredWidth(_barWidth, uniqueX.length, _xAxisInnerPadding);\n\n if (totalWidth >= reqWidth) {\n // Center align the chart by setting equal left and right margins for domain\n _domainMargin = MIN_DOMAIN_MARGIN + (totalWidth - reqWidth) / 2;\n }\n } else if (['plotly', 'histogram'].includes(props.mode!) && uniqueX.length > 1) {\n // Calculate the remaining width after rendering bars at their maximum allowable width\n const bandwidth = calcBandwidth(totalWidth, uniqueX.length, _xAxisInnerPadding);\n const barWidth = getBarWidth(props.barWidth, props.maxBarWidth, bandwidth, props.mode);\n let reqWidth = calcRequiredWidth(barWidth, uniqueX.length, _xAxisInnerPadding);\n const margin1 = (totalWidth - reqWidth) / 2;\n\n let margin2 = Number.POSITIVE_INFINITY;\n // This logic may introduce gaps between histogram bars when the barWidth is restricted.\n // So disable it for histogram mode.\n if (props.mode !== 'histogram') {\n // Calculate the remaining width after accounting for the space required to render x-axis labels\n const step = calculateLongestLabelWidth(uniqueX as string[]) + 20;\n reqWidth = (uniqueX.length - _xAxisInnerPadding) * step;\n margin2 = (totalWidth - reqWidth) / 2;\n }\n\n _domainMargin = MIN_DOMAIN_MARGIN + Math.max(0, Math.min(margin1, margin2));\n }\n } else {\n if (props.mode === 'histogram') {\n // Try center-aligning the bars to eliminate any gaps caused by a restricted barWidth.\n // This only works if the bin centers are consistent across all legend groups; otherwise,\n // the calculated domainMargin may be too small.\n const barWidth = props.maxBarWidth!;\n const reqWidth = calcRequiredWidth(barWidth, uniqueX.length, _xAxisInnerPadding);\n _domainMargin += Math.max(0, (totalWidth - reqWidth) / 2);\n }\n\n // The histogram may appear distorted when bin centers/sizes vary across different legend groups.\n // Currently, we calculate the appropriate bar width using the closest unique x-values to make\n // the bars of the same legend group adjacent. But these x-values can come from different legend groups\n // and result in misleading visuals. Even if we compute bar widths separately within each group,\n // we still lack support for rendering bars with different widths and must use the minimum width,\n // which can cause the same issue.\n // Solution: Instead of estimating the appropriate bar width, render each bar to span the full range\n // of its corresponding bin explicitly.\n _barWidth = getBarWidth(\n props.barWidth,\n props.maxBarWidth,\n calculateAppropriateBarWidth(\n uniqueX as number[] | Date[],\n calcTotalWidth(containerWidth, margins, _domainMargin),\n _xAxisInnerPadding,\n ),\n props.mode,\n );\n _domainMargin += _barWidth / 2;\n _domainMargin += _barWidth / 2;\n }\n\n return {\n ...margins,\n left: margins.left! + _domainMargin,\n right: margins.right! + _domainMargin,\n };\n }\n\n function _getChartTitle(): string {\n const { chartTitle, data } = props;\n return (\n (chartTitle ? `${chartTitle}. ` : '') +\n `Vertical bar chart with ${data?.length || 0} bars` +\n (_isHavingLine ? ' and 1 line' : '') +\n '. '\n );\n }\n\n function _isChartEmpty(): boolean {\n return _points.length === 0 || (_points.every(point => point.y === 0) && !_isHavingLine);\n }\n\n function _getOrderedXAxisLabels() {\n if (_xAxisType !== XAxisTypes.StringAxis) {\n return [];\n }\n\n return sortAxisCategories(_mapCategoryToValues(), props.xAxisCategoryOrder);\n }\n\n function _mapCategoryToValues() {\n const categoryToValues: Record<string, number[]> = Object.create(null);\n _points.forEach(point => {\n const xValue = point.x as string;\n if (!categoryToValues[xValue]) {\n categoryToValues[xValue] = [];\n }\n categoryToValues[xValue].push(point.y);\n if (point.lineData) {\n categoryToValues[xValue].push(point.lineData.y);\n }\n });\n return categoryToValues;\n }\n\n function _getBarsGroupLabel(): string {\n // Calculate number of unique series and total data points for accessibility label\n const uniqueSeries = new Set(_points.map(point => point.legend)).size;\n const totalDataPoints = _points.length;\n return `${uniqueSeries} series and ${totalDataPoints} bars`;\n }\n\n function updatePosition(newX: number, newY: number) {\n const threshold = 1; // Set a threshold for movement\n const { x, y } = clickPosition;\n // Calculate the distance moved\n const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));\n // Update the position only if the distance moved is greater than the threshold\n if (distance > threshold) {\n setClickPosition({ x: newX, y: newY });\n setPopoverOpen(true);\n }\n }\n\n _adjustProps();\n _xAxisLabels = _getOrderedXAxisLabels();\n _yMax = Math.max(d3Max(_points, (point: VerticalBarChartDataPoint) => point.y)!, props.yMaxValue || 0);\n _yMin = Math.min(d3Min(_points, (point: VerticalBarChartDataPoint) => point.y)!, props.yMinValue || 0);\n const legendBars: JSXElement = _getLegendData(_points);\n const calloutProps = {\n ...(_isHavingLine && {\n YValueHover: hoveredYValues,\n hoverXValue,\n }),\n color,\n legend: calloutLegend,\n XValue: xCalloutValue,\n YValue: yCalloutValue ? yCalloutValue : dataForHoverCard,\n ...props.calloutProps,\n ...getAccessibleDataObject(callOutAccessibilityData),\n clickPosition,\n isPopoverOpen,\n isCalloutForStack: _isHavingLine && (_noLegendHighlighted() || _getHighlightedLegend().length > 1),\n culture: props.culture,\n isCartesian: true,\n customCallout: {\n customizedCallout: _getCustomizedCallout() != null ? _getCustomizedCallout()! : undefined,\n customCalloutProps: props.calloutPropsPerDataPoint\n ? props.calloutPropsPerDataPoint(dataPointCalloutProps!)\n : undefined,\n },\n };\n\n const tickParams = {\n tickValues: props.tickValues,\n tickFormat: props.tickFormat,\n };\n return !_isChartEmpty() ? (\n <CartesianChart\n {...props}\n points={_points}\n chartTitle={_getChartTitle()}\n chartType={ChartTypes.VerticalBarChart}\n xAxisType={_xAxisType!}\n createYAxis={createNumericYAxis}\n calloutProps={calloutProps}\n tickParams={tickParams}\n {...(_isHavingLine && _noLegendHighlighted() && { isCalloutForStack: true })}\n legendBars={legendBars}\n datasetForXAxisDomain={_xAxisLabels}\n barwidth={_barWidth}\n createStringYAxis={createStringYAxis}\n getmargins={_getMargins}\n getMinMaxOfYAxis={findVerticalNumericMinMaxOfY}\n getGraphData={_getGraphData}\n getDomainNRangeValues={_getDomainNRangeValues}\n getAxisData={_getAxisData}\n onChartMouseLeave={_handleChartMouseLeave}\n onChartBlur={_handleChartMouseLeave}\n getDomainMargins={_getDomainMargins}\n {...(_xAxisType! === XAxisTypes.StringAxis && {\n xAxisInnerPadding: _xAxisInnerPadding,\n xAxisOuterPadding: _xAxisOuterPadding,\n })}\n componentRef={cartesianChartRef}\n showRoundOffXTickValues={\n !isScalePaddingDefined(props.xAxisInnerPadding, props.xAxisPadding) && props.mode !== 'histogram'\n }\n /* eslint-disable react/jsx-no-bind */\n\n children={(props: ChildProps) => {\n return (\n <>\n <g role=\"listbox\" aria-label={_getBarsGroupLabel()}>\n {_bars}\n </g>\n {_isHavingLine && (\n <g>\n {_createLine(\n props.xScale!,\n props.yScalePrimary!,\n props.containerHeight,\n props.containerWidth,\n props.yScaleSecondary,\n )}\n </g>\n )}\n </>\n );\n }}\n />\n ) : (\n <div id={_emptyChartId} role={'alert'} style={{ opacity: '0' }} aria-label={'Graph has no data to display'} />\n );\n});\nVerticalBarChart.displayName = 'VerticalBarChart';\n"],"names":["React","useVerticalBarChartStyles","max","d3Max","min","d3Min","line","d3Line","scaleLinear","d3ScaleLinear","scaleBand","d3ScaleBand","scaleUtc","d3ScaleUtc","useId","tokens","CartesianChart","Legends","ChartPopover","ChartTypes","getAccessibleDataObject","XAxisTypes","getTypeOfAxis","formatScientificLimitWidth","getBarWidth","getScalePadding","isScalePaddingDefined","calculateAppropriateBarWidth","useRtl","areArraysEqual","calculateLongestLabelWidth","findVerticalNumericMinMaxOfY","createNumericYAxis","domainRangeOfVerticalNumeric","domainRangeOfDateForAreaLineScatterVerticalBarCharts","domainRangeOfXStringAxis","createStringYAxis","calcTotalWidth","calcBandwidth","calcRequiredWidth","sortAxisCategories","useImageExport","CircleVisbility","MIN_DOMAIN_MARGIN","VerticalBarChart","forwardRef","_props","forwardedRef","props","xAxisCategoryOrder","maxBarWidth","_points","_barWidth","_colors","_refArray","margins","_useRtl","_bars","_xAxisLabels","_yMax","_yMin","_isHavingLine","_checkForLine","_xAxisType","_calloutAnchorPoint","_domainMargin","_emptyChartId","_vbcLineId","_vbcPointId","_vbcBarId","_xAxisInnerPadding","_xAxisOuterPadding","cartesianChartRef","legendsRef","_legendsRef","componentRef","hideLegend","color","setColor","useState","dataForHoverCard","setDataForHoverCard","activeLegend","setActiveLegend","undefined","xCalloutValue","setXCalloutValue","yCalloutValue","setYCalloutValue","activeXdataPoint","setActiveXDatapoint","hoveredYValues","setYValueHover","hoverXValue","setHoverXValue","calloutLegend","setCalloutLegend","callOutAccessibilityData","setCalloutAccessibilityData","dataPointCalloutProps","setDataPointCalloutProps","clickPosition","setClickPosition","x","y","isPopoverOpen","setPopoverOpen","selectedLegends","setSelectedLegends","legendProps","prevPropsRef","useRef","useEffect","current","prevProps","height","width","_adjustProps","_getDomainNRangeValues","points","chartType","isRTL","xAxisType","barWidth","tickValues","domainNRangeValue","NumericAxis","DateAxis","_createLine","xScale","yScalePrimary","containerHeight","containerWidth","yScaleSecondary","isStringAxis","StringAxis","colorScale","_createColors","data","lineLegendColor","colorPaletteYellowBackground1","lineLegendText","lineData","forEach","item","index","push","useSecondaryYScale","point","linePath","d","bandwidth","shouldHighlight","_legendHighlighted","_noLegendHighlighted","lineBorderWidth","lineOptions","Number","parseFloat","toString","path","key","id","opacity","fill","strokeLinecap","strokeWidth","className","classes","lineBorder","stroke","dots","map","circleRef","refElement","circle","cx","cy","onMouseOver","event","_lineHover","_onBarHover","onMouseOut","_onBarLeave","r","_getCircleVisibilityAndRadius","radius","colorNeutralBackground1","visibility","onClick","data-is-focusable","ref","e","onFocus","_lineFocus","onBlur","_handleChartMouseLeave","tabIndex","xAxisPoint","legend","some","length","mode","defaultColors","colorPaletteBlueForeground2","colorPaletteCornflowerForeground2","colorPaletteDarkGreenForeground2","colorPaletteNavyForeground2","colorPaletteDarkOrangeForeground2","colors","xAxisInnerPadding","xAxisPadding","xAxisOuterPadding","_getMargins","_margins","_renderContentForBothLineAndBars","YValueHover","_getCalloutContentForLineAndBar","content","culture","XValue","YValue","isCalloutForStack","_renderContentForOnlyBars","xAxisCalloutData","yAxisCalloutData","useSingleColor","_renderCallout","_getCustomizedCallout","onRenderCalloutPerDataPoint","_getGraphData","yScale","xElement","_createNumericBars","_createDateBars","_createStringBars","increment","_p","colorPaletteBlueBackground2","domainValues","i","domain","range","_refCallback","element","legendTitle","selectedPoint","filter","xDataPoint","includes","Date","toLocaleString","mouseEvent","persist","updatePosition","clientX","clientY","toLocaleDateString","_onBarFocus","refArrayIndexNumber","targetRect","target","getBoundingClientRect","left","top","obj","_lineHoverFocus","_refSelected","_getScales","xBarScale","yBarScale","bottom","xMax","xMin","right","nice","sDate","lDate","paddingInner","paddingOuter","_calculateMinBarHeight","yMin","yMax","yReferencePoint","maxHeightFromBaseline","Math","abs","ceil","bars","barHeight","isHeightNegative","minBarHeight","adjustedBarHeight","Fragment","xPoint","yPoint","baselineHeight","g","role","rect","aria-label","_getAriaLabel","onMouseLeave","hideTooltip","rx","roundCorners","_renderBarLabel","barLabel","getTime","transform","opacityChangeOnHover","_onLegendHover","_onLegendLeave","_getLegendData","colorPaletteYellowForeground1","actions","mapLegendToColor","Object","create","_index","entries","title","hoverAction","onMouseOutAction","lineLegend","isLineLegendInBarChart","unshift","legends","enabledWrapLines","enabledLegendsWrapLines","overflowText","legendsOverflowText","onChange","_onLegendSelectionChange","legendRef","legendsSelected","currentLegend","canSelectMultipleLegends","slice","_getAxisData","yAxisData","yAxisDomainValues","domainValue","yMaxValue","yMinValue","_getHighlightedLegend","xValue","yValue","lineYValue","ariaLabel","barValue","isNegativeBar","customBarLabel","hideLabels","displayLabel","yAxisTickFormat","text","textAnchor","aria-hidden","style","direction","unicodeBidi","_getDomainMargins","mapX","uniqueX","values","totalWidth","reqWidth","margin1","margin2","POSITIVE_INFINITY","step","_getChartTitle","chartTitle","_isChartEmpty","every","_getOrderedXAxisLabels","_mapCategoryToValues","categoryToValues","_getBarsGroupLabel","uniqueSeries","Set","size","totalDataPoints","newX","newY","threshold","distance","sqrt","pow","legendBars","calloutProps","isCartesian","customCallout","customizedCallout","customCalloutProps","calloutPropsPerDataPoint","tickParams","tickFormat","createYAxis","datasetForXAxisDomain","barwidth","getmargins","getMinMaxOfYAxis","getGraphData","getDomainNRangeValues","getAxisData","onChartMouseLeave","onChartBlur","getDomainMargins","showRoundOffXTickValues","children","div","displayName"],"mappings":"AAAA;;;;;+BA8Da4C;;;;;;;iEA5DU,QAAQ;iDACW,wCAAqC;yBACpC,WAAW;yBACvB,WAAW;yBAEqD,WAAW;gCACpF,4BAA4B;4BAE3B,wBAAwB;uBAYO,iBAAc;wBAyB7D,2BAAwB;uBACA,2BAAwB;AAEvD,IAAKF,kBAAAA,WAAAA,GAAAA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AAmB5I;YACnB8I,mBAAmB7I;QACrB,CAAC;QACDI,cAAcH;QACdkV,yBACE,KAAChY,6BAAAA,EAAsBsB,MAAMkK,iBAAiB,EAAElK,MAAMmK,YAAY,KAAKnK,MAAM0J,IAAI,KAAK;QAExF,oCAAoC,GAEpCiN,UAAU,CAAC3W;YACT,OAAA,WAAA,GACE,OAAA,aAAA,CAAA,OAAA,QAAA,EAAA,MAAA,WAAA,GACE,OAAA,aAAA,CAACyP,KAAAA;gBAAEC,MAAK;gBAAUE,cAAY+E;eAC3BlU,QAEFI,iBAAAA,WAAAA,GACC,OAAA,aAAA,CAAC4O,KAAAA,MACEzK,YACChF,MAAMiF,MAAM,EACZjF,MAAMkF,aAAa,EACnBlF,MAAMmF,eAAe,EACrBnF,MAAMoF,cAAc,EACpBpF,MAAMqF,eAAe;QAMjC;uBAGF,OAAA,aAAA,CAACuR,OAAAA;QAAI1P,IAAIhG;QAAewO,MAAM;QAAS6D,OAAO;YAAEpM,SAAS;QAAI;QAAGyI,cAAY;;AAEhF,GAAG;AACHhQ,iBAAiBiX,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/VerticalBarChart/VerticalBarChart.types.ts"],"sourcesContent":["import type { RenderFunction } from '../../utilities/index';\nimport type {\n CartesianChartProps,\n CartesianChartStyleProps,\n CartesianChartStyles,\n VerticalBarChartDataPoint,\n} from '../../index';\nimport type { LineChartLineOptions } from '../../types/index';\n\n/**\n * Vertical Bar Chart properties\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartProps extends CartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: VerticalBarChartDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: RenderFunction<VerticalBarChartDataPoint>;\n\n /**\n * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,\n * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.\n * @default 16\n */\n barWidth?: number | 'default' | 'auto';\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * Legend text for the line datapoint in the chart\n */\n lineLegendText?: string;\n\n /**\n * color for the legend of the line in the chart\n * @default theme.yellow\n */\n\n lineLegendColor?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: Partial<VerticalBarChartStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n xAxisPadding?: number;\n\n /**\n * options for the line drawn\n */\n lineOptions?: LineChartLineOptions;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n\n /**\n * Maximum width of a bar, in pixels.\n * @default 24\n */\n maxBarWidth?: number;\n\n /**\n * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).\n * Takes a number in the range [0, 1]. Only applicable to string x-axis.\n * @default 2/3\n */\n xAxisInnerPadding?: number;\n\n /**\n * Padding before the first bar and after the last bar as a fraction of\n * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].\n * Only applicable to string x-axis.\n */\n xAxisOuterPadding?: number;\n\n /**\n * @default false\n * The prop used to enable gradient fill color for the chart.\n */\n enableGradient?: boolean;\n\n /**\n * @default false\n * The prop used to enable rounded corners for the chart.\n */\n roundCorners?: boolean;\n\n /**\n * Specifies the mode of the chart.\n * @default 'default'\n */\n mode?: 'default' | 'plotly' | 'histogram';\n}\n\n/**\n * Vertical Bar Chart style properties\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartStyleProps extends CartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\n/**\n * Vertical Bar Chart styles\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartStyles extends CartesianChartStyles {\n /**\n * Style for the bar labels\n */\n barLabel: string;\n\n /**\n * Styles for line border\n */\n lineBorder: string;\n}\n"],"names":[],"mappings":"AAyIA;;;CAGC,GACD,WAUC"}
1
+ {"version":3,"sources":["../../../src/components/VerticalBarChart/VerticalBarChart.types.ts"],"sourcesContent":["import type { RenderFunction } from '../../utilities/index';\nimport type {\n CartesianChartProps,\n CartesianChartStyleProps,\n CartesianChartStyles,\n VerticalBarChartDataPoint,\n} from '../../index';\nimport type { LineChartLineOptions } from '../../types/index';\n\n/**\n * Vertical Bar Chart properties\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartProps extends CartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: VerticalBarChartDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: RenderFunction<VerticalBarChartDataPoint>;\n\n /**\n * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,\n * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.\n * @default 16\n */\n barWidth?: number | 'default' | 'auto';\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * Legend text for the line datapoint in the chart\n */\n lineLegendText?: string;\n\n /**\n * color for the legend of the line in the chart\n * @default theme.yellow\n */\n\n lineLegendColor?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: Partial<VerticalBarChartStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n xAxisPadding?: number;\n\n /**\n * options for the line drawn\n */\n lineOptions?: LineChartLineOptions;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n\n /**\n * Maximum width of a bar, in pixels.\n * @default 24\n */\n maxBarWidth?: number;\n\n /**\n * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).\n * Takes a number in the range [0, 1]. Only applicable to string x-axis.\n * @default 2/3\n */\n xAxisInnerPadding?: number;\n\n /**\n * Padding before the first bar and after the last bar as a fraction of\n * the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].\n * Only applicable to string x-axis.\n */\n xAxisOuterPadding?: number;\n\n /**\n * @default false\n * The prop used to enable gradient fill color for the chart.\n */\n enableGradient?: boolean;\n\n /**\n * @default false\n * The prop used to enable rounded corners for the chart.\n */\n roundCorners?: boolean;\n\n /**\n * Specifies the mode of the chart.\n * @default 'default'\n */\n mode?: 'default' | 'plotly' | 'histogram';\n}\n\n/**\n * Vertical Bar Chart style properties\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartStyleProps extends CartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\n/**\n * Vertical Bar Chart styles\n * {@docCategory VerticalBarChart}\n */\nexport interface VerticalBarChartStyles extends CartesianChartStyles {\n /**\n * Style for the bar labels\n */\n barLabel: string;\n\n /**\n * Styles for line border\n */\n lineBorder: string;\n}\n"],"names":[],"mappings":"AAyIA;;;CAGC,GACD,WAUC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/VerticalBarChart/index.ts"],"sourcesContent":["export * from './VerticalBarChart';\nexport * from './VerticalBarChart.types';\nexport * from '../../types/index';\n"],"names":[],"mappings":";;;;;uBAAc,wBAAqB;uBACrB,8BAA2B;uBAC3B,uBAAoB"}
1
+ {"version":3,"sources":["../../../src/components/VerticalBarChart/index.ts"],"sourcesContent":["export * from './VerticalBarChart';\nexport * from './VerticalBarChart.types';\nexport * from '../../types/index';\n"],"names":[],"mappings":";;;;;uBAAc,wBAAqB;uBACrB,8BAA2B;uBAC3B,uBAAoB"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- useVerticalBarChartStyles: function() {
13
+ get useVerticalBarChartStyles () {
14
14
  return useVerticalBarChartStyles;
15
15
  },
16
- verticalbarchartClassNames: function() {
16
+ get verticalbarchartClassNames () {
17
17
  return verticalbarchartClassNames;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useVerticalBarChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { HighContrastSelector } from \"../../utilities/utilities.js\";\nimport { getBarLabelStyle, getTooltipStyle } from \"../../utilities/index.js\";\nexport const verticalbarchartClassNames = {\n opacityChangeOnHover: 'fui-vbc__opacityChangeOnHover',\n tooltip: 'fui-vbc__tooltip',\n barLabel: 'fui-vbc__barLabel',\n lineBorder: 'fui-vbc_lineBorder',\n root: '',\n xAxis: '',\n yAxis: '',\n legendContainer: '',\n hover: '',\n descriptionMessage: '',\n axisTitle: '',\n chartTitle: '',\n shapeStyles: '',\n chartWrapper: '',\n svgTooltip: '',\n chart: '',\n axisAnnotation: '',\n plotContainer: '',\n annotationLayer: ''\n};\nconst useStyles = makeStyles({\n opacityChangeOnHover: {},\n tooltip: getTooltipStyle(),\n barLabel: getBarLabelStyle(),\n lineBorder: {\n stroke: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n stroke: 'Canvas'\n }\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const useVerticalBarChartStyles = (props)=>{\n const baseStyles = useStyles();\n return {\n opacityChangeOnHover: mergeClasses(verticalbarchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),\n tooltip: mergeClasses(verticalbarchartClassNames.tooltip, baseStyles.tooltip /*props.styles?.tooltip*/ ),\n barLabel: mergeClasses(verticalbarchartClassNames.barLabel, baseStyles.barLabel /*props.styles?.barLabel*/ ),\n lineBorder: mergeClasses(verticalbarchartClassNames.lineBorder, baseStyles.lineBorder /*props.styles?.lineBorder*/ )\n };\n};\n"],"names":["__styles","mergeClasses","tokens","HighContrastSelector","getBarLabelStyle","getTooltipStyle","verticalbarchartClassNames","opacityChangeOnHover","tooltip","barLabel","lineBorder","root","xAxis","yAxis","legendContainer","hover","descriptionMessage","axisTitle","chartTitle","shapeStyles","chartWrapper","svgTooltip","chart","axisAnnotation","plotContainer","annotationLayer","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","Beiy3e4","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","qhf8xq","fsow6f","De3pzq","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","Bkecrkj","sj55zd","Bkfmm31","Bvjb7m6","ojy3ng","Bj7tp1g","d","p","m","useVerticalBarChartStyles","props","baseStyles"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAuCKuD,yBAAyB;;;IAlC7BjD,0BAA0B;;;;uBAJE,gBAAgB;AAIlD,mCAAmC;IACtCC,oBAAoB,EAAE,+BAA+B;IACrDC,OAAO,EAAE,kBAAkB;IAC3BC,QAAQ,EAAE,mBAAmB;IAC7BC,UAAU,EAAE,oBAAoB;IAChCC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,KAAK,EAAE,EAAE;IACTC,eAAe,EAAE,EAAE;IACnBC,KAAK,EAAE,EAAE;IACTC,kBAAkB,EAAE,EAAE;IACtBC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE,EAAE;IACfC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,EAAE;IACdC,KAAK,EAAE,EAAE;IACTC,cAAc,EAA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,MAAEN,mBAAY,EAACK,0BAA0B,CAACC,oBAAoB,EAAEkD,UAAU,CAAClD,oBAAoB,CAAC,oCAAA,EAAuC,CAAC;QAC5JC,OAAO,MAAEP,mBAAY,EAACK,0BAA0B,CAACE,OAAO,EAAEiD,UAAU,CAACjD,OAAO,CAAC,uBAAA,EAA0B,CAAC;QACxGC,QAAQ,MAAER,mBAAY,EAACK,0BAA0B,CAACG,QAAQ,EAAEgD,UAAU,CAAChD,QAAQ,CAAC,wBAAA,EAA2B,CAAC;QAC5GC,UAAU,MAAET,mBAAY,EAACK,0BAA0B,CAACI,UAAU,EAAE+C,UAAU,CAAC/C,UAAU,CAAC,0BAAA,EAA6B;IACvH,CAAC;AACL,CAAC"}
1
+ {"version":3,"sources":["useVerticalBarChartStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { HighContrastSelector } from \"../../utilities/utilities.js\";\nimport { getBarLabelStyle, getTooltipStyle } from \"../../utilities/index.js\";\nexport const verticalbarchartClassNames = {\n opacityChangeOnHover: 'fui-vbc__opacityChangeOnHover',\n tooltip: 'fui-vbc__tooltip',\n barLabel: 'fui-vbc__barLabel',\n lineBorder: 'fui-vbc_lineBorder',\n root: '',\n xAxis: '',\n yAxis: '',\n legendContainer: '',\n hover: '',\n descriptionMessage: '',\n axisTitle: '',\n chartTitle: '',\n shapeStyles: '',\n chartWrapper: '',\n svgTooltip: '',\n chart: '',\n axisAnnotation: '',\n plotContainer: '',\n annotationLayer: ''\n};\nconst useStyles = makeStyles({\n opacityChangeOnHover: {},\n tooltip: getTooltipStyle(),\n barLabel: getBarLabelStyle(),\n lineBorder: {\n stroke: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n stroke: 'Canvas'\n }\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const useVerticalBarChartStyles = (props)=>{\n const baseStyles = useStyles();\n return {\n opacityChangeOnHover: mergeClasses(verticalbarchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),\n tooltip: mergeClasses(verticalbarchartClassNames.tooltip, baseStyles.tooltip /*props.styles?.tooltip*/ ),\n barLabel: mergeClasses(verticalbarchartClassNames.barLabel, baseStyles.barLabel /*props.styles?.barLabel*/ ),\n lineBorder: mergeClasses(verticalbarchartClassNames.lineBorder, baseStyles.lineBorder /*props.styles?.lineBorder*/ )\n };\n};\n"],"names":["__styles","mergeClasses","tokens","HighContrastSelector","getBarLabelStyle","getTooltipStyle","verticalbarchartClassNames","opacityChangeOnHover","tooltip","barLabel","lineBorder","root","xAxis","yAxis","legendContainer","hover","descriptionMessage","axisTitle","chartTitle","shapeStyles","chartWrapper","svgTooltip","chart","axisAnnotation","plotContainer","annotationLayer","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","Beiy3e4","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","qhf8xq","fsow6f","De3pzq","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","Bkecrkj","sj55zd","Bkfmm31","Bvjb7m6","ojy3ng","Bj7tp1g","d","p","m","useVerticalBarChartStyles","props","baseStyles"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAuCKuD,yBAAyB;;;QAlC7BjD,0BAA0B;;;;uBAJE,gBAAgB;AAIlD,mCAAmC;IACtCC,oBAAoB,EAAE,+BAA+B;IACrDC,OAAO,EAAE,kBAAkB;IAC3BC,QAAQ,EAAE,mBAAmB;IAC7BC,UAAU,EAAE,oBAAoB;IAChCC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,KAAK,EAAE,EAAE;IACTC,eAAe,EAAE,EAAE;IACnBC,KAAK,EAAE,EAAE;IACTC,kBAAkB,EAAE,EAAE;IACtBC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE,EAAE;IACfC,YAAY,EAAE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