@fluentui/react-charts 0.0.0-nightly-20250728-0406.1 → 0.0.0-nightly-20250730-0406.1

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 (420) hide show
  1. package/CHANGELOG.md +34 -15
  2. package/dist/index.d.ts +198 -10
  3. package/lib/AreaChart.js.map +1 -1
  4. package/lib/CartesianChart.js.map +1 -1
  5. package/lib/DeclarativeChart.js.map +1 -1
  6. package/lib/DonutChart.js.map +1 -1
  7. package/lib/FunnelChart.js.map +1 -1
  8. package/lib/GanttChart.js +1 -0
  9. package/lib/GanttChart.js.map +1 -0
  10. package/lib/GaugeChart.js.map +1 -1
  11. package/lib/GroupedVerticalBarChart.js.map +1 -1
  12. package/lib/HeatMapChart.js.map +1 -1
  13. package/lib/HorizontalBarChart.js.map +1 -1
  14. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  15. package/lib/Legends.js.map +1 -1
  16. package/lib/LineChart.js.map +1 -1
  17. package/lib/Popover.js.map +1 -1
  18. package/lib/ResponsiveContainer.js.map +1 -1
  19. package/lib/SankeyChart.js.map +1 -1
  20. package/lib/ScatterChart.js.map +1 -1
  21. package/lib/Sparkline.js.map +1 -1
  22. package/lib/VerticalBarChart.js.map +1 -1
  23. package/lib/VerticalStackedBarChart.js.map +1 -1
  24. package/lib/components/AreaChart/AreaChart.js +3 -3
  25. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  26. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  27. package/lib/components/AreaChart/index.js.map +1 -1
  28. package/lib/components/AreaChart/useAreaChartStyles.styles.js +1 -2
  29. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +41 -0
  30. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -0
  31. package/lib/components/CommonComponents/CartesianChart.js +12 -8
  32. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  33. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  34. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  35. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
  36. package/lib/components/CommonComponents/index.js.map +1 -1
  37. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +1 -2
  38. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +128 -0
  39. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -0
  40. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +1 -2
  41. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +126 -0
  42. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -0
  43. package/lib/components/DeclarativeChart/DeclarativeChart.js +6 -1
  44. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  45. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +44 -13
  46. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  47. package/lib/components/DeclarativeChart/imageExporter.js +1 -0
  48. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -1
  49. package/lib/components/DeclarativeChart/index.js.map +1 -1
  50. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  51. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  52. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  53. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +1 -2
  54. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +44 -0
  55. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -0
  56. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  57. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  58. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  59. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  60. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  61. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +1 -2
  62. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js +29 -0
  63. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -0
  64. package/lib/components/DonutChart/index.js.map +1 -1
  65. package/lib/components/DonutChart/useDonutChartStyles.styles.js +1 -2
  66. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +45 -0
  67. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -0
  68. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  69. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  70. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
  71. package/lib/components/FunnelChart/index.js.map +1 -1
  72. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +1 -2
  73. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +51 -0
  74. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -0
  75. package/lib/components/GanttChart/GanttChart.js +530 -0
  76. package/lib/components/GanttChart/GanttChart.js.map +1 -0
  77. package/lib/components/GanttChart/GanttChart.types.js +4 -0
  78. package/lib/components/GanttChart/GanttChart.types.js.map +1 -0
  79. package/lib/components/GanttChart/index.js +2 -0
  80. package/lib/components/GanttChart/index.js.map +1 -0
  81. package/lib/components/GanttChart/useGanttChartStyles.styles.js +24 -0
  82. package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +1 -0
  83. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +23 -0
  84. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -0
  85. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  86. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  87. package/lib/components/GaugeChart/index.js.map +1 -1
  88. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +1 -2
  89. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +142 -0
  90. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -0
  91. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +61 -56
  92. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  93. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  94. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  95. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +1 -2
  96. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +53 -0
  97. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -0
  98. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  99. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  100. package/lib/components/HeatMapChart/index.js.map +1 -1
  101. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +1 -2
  102. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +38 -0
  103. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -0
  104. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +23 -26
  105. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  106. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +5 -3
  107. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  108. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  109. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +1 -2
  110. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +120 -0
  111. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -0
  112. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  113. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  114. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  115. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +1 -2
  116. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +39 -0
  117. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -0
  118. package/lib/components/Legends/Legends.js +7 -8
  119. package/lib/components/Legends/Legends.js.map +1 -1
  120. package/lib/components/Legends/Legends.types.js.map +1 -1
  121. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  122. package/lib/components/Legends/index.js.map +1 -1
  123. package/lib/components/Legends/shape.js +3 -3
  124. package/lib/components/Legends/shape.js.map +1 -1
  125. package/lib/components/Legends/useLegendsStyles.styles.js +33 -6
  126. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
  127. package/lib/components/Legends/useLegendsStyles.styles.raw.js +125 -0
  128. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -0
  129. package/lib/components/LineChart/LineChart.js +3 -3
  130. package/lib/components/LineChart/LineChart.js.map +1 -1
  131. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  132. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  133. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  134. package/lib/components/LineChart/eventAnnotation/Textbox.js +2 -1
  135. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  136. package/lib/components/LineChart/index.js.map +1 -1
  137. package/lib/components/LineChart/useLineChartStyles.styles.js +1 -2
  138. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +52 -0
  139. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -0
  140. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  141. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  142. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  143. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -2
  144. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +28 -0
  145. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -0
  146. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  147. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  148. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  149. package/lib/components/SankeyChart/index.js.map +1 -1
  150. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +1 -2
  151. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +77 -0
  152. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -0
  153. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  154. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  155. package/lib/components/ScatterChart/index.js.map +1 -1
  156. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +1 -2
  157. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +43 -0
  158. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -0
  159. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  160. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  161. package/lib/components/Sparkline/index.js.map +1 -1
  162. package/lib/components/Sparkline/useSparklineStyles.styles.js +1 -2
  163. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +30 -0
  164. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -0
  165. package/lib/components/VerticalBarChart/VerticalBarChart.js +56 -29
  166. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  167. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  168. package/lib/components/VerticalBarChart/index.js.map +1 -1
  169. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +1 -2
  170. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +58 -0
  171. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -0
  172. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +17 -10
  173. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  174. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  175. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  176. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +1 -2
  177. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +49 -0
  178. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -0
  179. package/lib/index.js +1 -0
  180. package/lib/index.js.map +1 -1
  181. package/lib/types/DataPoint.js +3 -1
  182. package/lib/types/DataPoint.js.map +1 -1
  183. package/lib/types/EventAnnotation.js.map +1 -1
  184. package/lib/types/LegendDataItem.js.map +1 -1
  185. package/lib/types/index.js.map +1 -1
  186. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  187. package/lib/utilities/KeyCodes.js.map +1 -1
  188. package/lib/utilities/SVGTooltipText.js +2 -0
  189. package/lib/utilities/SVGTooltipText.js.map +1 -1
  190. package/lib/utilities/async-utils.js.map +1 -1
  191. package/lib/utilities/colors.js.map +1 -1
  192. package/lib/utilities/getWindow.js.map +1 -1
  193. package/lib/utilities/index.js.map +1 -1
  194. package/lib/utilities/overflow-utils.js.map +1 -1
  195. package/lib/utilities/string.js.map +1 -1
  196. package/lib/utilities/test-data.js +236 -0
  197. package/lib/utilities/test-data.js.map +1 -1
  198. package/lib/utilities/utilities.js +95 -27
  199. package/lib/utilities/utilities.js.map +1 -1
  200. package/lib/utilities/vbc-utils.js +2 -2
  201. package/lib/utilities/vbc-utils.js.map +1 -1
  202. package/lib-commonjs/AreaChart.js.map +1 -1
  203. package/lib-commonjs/CartesianChart.js.map +1 -1
  204. package/lib-commonjs/DeclarativeChart.js.map +1 -1
  205. package/lib-commonjs/DonutChart.js.map +1 -1
  206. package/lib-commonjs/FunnelChart.js.map +1 -1
  207. package/lib-commonjs/GanttChart.js +6 -0
  208. package/lib-commonjs/GanttChart.js.map +1 -0
  209. package/lib-commonjs/GaugeChart.js.map +1 -1
  210. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  211. package/lib-commonjs/HeatMapChart.js.map +1 -1
  212. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  213. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  214. package/lib-commonjs/Legends.js.map +1 -1
  215. package/lib-commonjs/LineChart.js.map +1 -1
  216. package/lib-commonjs/Popover.js.map +1 -1
  217. package/lib-commonjs/ResponsiveContainer.js.map +1 -1
  218. package/lib-commonjs/SankeyChart.js.map +1 -1
  219. package/lib-commonjs/ScatterChart.js.map +1 -1
  220. package/lib-commonjs/Sparkline.js.map +1 -1
  221. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  222. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  223. package/lib-commonjs/components/AreaChart/AreaChart.js +3 -3
  224. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  225. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  226. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  227. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +1 -1
  228. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
  229. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +57 -0
  230. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -0
  231. package/lib-commonjs/components/CommonComponents/CartesianChart.js +11 -7
  232. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  233. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  234. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
  235. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -1
  236. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  237. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +1 -1
  238. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
  239. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +142 -0
  240. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -0
  241. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +1 -1
  242. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
  243. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +140 -0
  244. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -0
  245. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +5 -0
  246. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  247. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +47 -13
  248. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  249. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +1 -0
  250. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -1
  251. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
  252. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  253. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  254. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  255. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +1 -1
  256. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -1
  257. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js +58 -0
  258. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -0
  259. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  260. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  261. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  262. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  263. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  264. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +1 -1
  265. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -1
  266. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js +43 -0
  267. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -0
  268. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  269. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +1 -1
  270. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  271. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +59 -0
  272. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -0
  273. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
  274. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  275. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +1 -1
  276. package/lib-commonjs/components/FunnelChart/index.js.map +1 -1
  277. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +1 -1
  278. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
  279. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +65 -0
  280. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -0
  281. package/lib-commonjs/components/GanttChart/GanttChart.js +541 -0
  282. package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -0
  283. package/lib-commonjs/components/GanttChart/GanttChart.types.js +7 -0
  284. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -0
  285. package/lib-commonjs/components/GanttChart/index.js +7 -0
  286. package/lib-commonjs/components/GanttChart/index.js.map +1 -0
  287. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +39 -0
  288. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +1 -0
  289. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +39 -0
  290. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -0
  291. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  292. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  293. package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
  294. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +1 -1
  295. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
  296. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +160 -0
  297. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -0
  298. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +61 -56
  299. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  300. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  301. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  302. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +1 -1
  303. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
  304. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +69 -0
  305. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -0
  306. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  307. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  308. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  309. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +1 -1
  310. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
  311. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +56 -0
  312. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -0
  313. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +23 -26
  314. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  315. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -3
  316. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  317. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  318. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +1 -1
  319. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  320. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +134 -0
  321. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -0
  322. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  323. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  324. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  325. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +1 -1
  326. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
  327. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +55 -0
  328. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -0
  329. package/lib-commonjs/components/Legends/Legends.js +7 -8
  330. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  331. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  332. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -1
  333. package/lib-commonjs/components/Legends/index.js.map +1 -1
  334. package/lib-commonjs/components/Legends/shape.js +2 -2
  335. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  336. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +46 -5
  337. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -1
  338. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js +141 -0
  339. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +1 -0
  340. package/lib-commonjs/components/LineChart/LineChart.js +3 -3
  341. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  342. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  343. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  344. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  345. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +2 -1
  346. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  347. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  348. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +1 -1
  349. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  350. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +66 -0
  351. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -0
  352. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  353. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  354. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -1
  355. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -1
  356. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +1 -1
  357. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +46 -0
  358. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -0
  359. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  360. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  361. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  362. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  363. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +1 -1
  364. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  365. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +95 -0
  366. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -0
  367. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
  368. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  369. package/lib-commonjs/components/ScatterChart/index.js.map +1 -1
  370. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +1 -1
  371. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  372. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +57 -0
  373. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -0
  374. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  375. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  376. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  377. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +1 -1
  378. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -1
  379. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js +44 -0
  380. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -0
  381. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +56 -29
  382. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  383. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  384. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  385. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +1 -1
  386. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  387. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +74 -0
  388. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -0
  389. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +17 -10
  390. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  391. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  392. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  393. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +1 -1
  394. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  395. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +67 -0
  396. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -0
  397. package/lib-commonjs/index.js +1 -0
  398. package/lib-commonjs/index.js.map +1 -1
  399. package/lib-commonjs/types/DataPoint.js +3 -1
  400. package/lib-commonjs/types/DataPoint.js.map +1 -1
  401. package/lib-commonjs/types/EventAnnotation.js.map +1 -1
  402. package/lib-commonjs/types/LegendDataItem.js.map +1 -1
  403. package/lib-commonjs/types/index.js.map +1 -1
  404. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  405. package/lib-commonjs/utilities/KeyCodes.js.map +1 -1
  406. package/lib-commonjs/utilities/SVGTooltipText.js +2 -0
  407. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  408. package/lib-commonjs/utilities/async-utils.js.map +1 -1
  409. package/lib-commonjs/utilities/colors.js.map +1 -1
  410. package/lib-commonjs/utilities/getWindow.js.map +1 -1
  411. package/lib-commonjs/utilities/index.js.map +1 -1
  412. package/lib-commonjs/utilities/overflow-utils.js.map +1 -1
  413. package/lib-commonjs/utilities/string.js.map +1 -1
  414. package/lib-commonjs/utilities/test-data.js +245 -0
  415. package/lib-commonjs/utilities/test-data.js.map +1 -1
  416. package/lib-commonjs/utilities/utilities.js +91 -22
  417. package/lib-commonjs/utilities/utilities.js.map +1 -1
  418. package/lib-commonjs/utilities/vbc-utils.js +2 -2
  419. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  420. package/package.json +14 -24
package/CHANGELOG.md CHANGED
@@ -1,28 +1,47 @@
1
1
  # Change Log - @fluentui/react-charts
2
2
 
3
- This log was last generated on Mon, 28 Jul 2025 04:21:31 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 30 Jul 2025 04:20:48 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20250728-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v0.0.0-nightly-20250728-0406.1)
7
+ ## [0.0.0-nightly-20250730-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v0.0.0-nightly-20250730-0406.1)
8
8
 
9
- Mon, 28 Jul 2025 04:21:31 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.1.9..@fluentui/react-charts_v0.0.0-nightly-20250728-0406.1)
9
+ Wed, 30 Jul 2025 04:20:48 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.1.10..@fluentui/react-charts_v0.0.0-nightly-20250730-0406.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-button to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
17
- - Bump @fluentui/react-overflow to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
18
- - Bump @fluentui/react-popover to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
21
- - Bump @fluentui/react-theme to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
22
- - Bump @fluentui/react-tooltip to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
23
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
24
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
25
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20250728-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/6a7a3b5af5a8c7ac9b8f35873b704ef22acbe708) by beachball)
15
+ - Bump @fluentui/react-button to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
17
+ - Bump @fluentui/react-overflow to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
18
+ - Bump @fluentui/react-popover to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
19
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
20
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
21
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
22
+ - Bump @fluentui/react-tooltip to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
23
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
24
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
25
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20250730-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/85c10fea1078ca6bf626dbcda564f707c4facaa9) by beachball)
26
+
27
+ ## [9.1.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.1.10)
28
+
29
+ Mon, 28 Jul 2025 18:48:17 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.1.9..@fluentui/react-charts_v9.1.10)
31
+
32
+ ### Patches
33
+
34
+ - fix callout position issues ([PR #34868](https://github.com/microsoft/fluentui/pull/34868) by anushgupta@microsoft.com)
35
+ - mitigate xss vulnerabilities ([PR #34920](https://github.com/microsoft/fluentui/pull/34920) by anushgupta@microsoft.com)
36
+ - Add Gantt chart in v9 ([PR #34909](https://github.com/microsoft/fluentui/pull/34909) by anushgupta@microsoft.com)
37
+ - funnel chart in v9 ([PR #34866](https://github.com/microsoft/fluentui/pull/34866) by anushgupta@microsoft.com)
38
+ - Bump @fluentui/react-button to v9.6.1 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
39
+ - Bump @fluentui/react-jsx-runtime to v9.1.3 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
40
+ - Bump @fluentui/react-overflow to v9.5.1 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
41
+ - Bump @fluentui/react-popover to v9.12.1 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
42
+ - Bump @fluentui/react-tabster to v9.26.1 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
43
+ - Bump @fluentui/react-tooltip to v9.8.1 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
44
+ - Bump @fluentui/react-utilities to v9.23.0 ([PR #34918](https://github.com/microsoft/fluentui/pull/34918) by beachball)
26
45
 
27
46
  ## [9.1.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.1.9)
28
47
 
package/dist/index.d.ts CHANGED
@@ -107,6 +107,25 @@ export declare interface AreaChartStyleProps extends CartesianChartStyleProps {
107
107
  export declare interface AreaChartStyles extends CartesianChartStyles {
108
108
  }
109
109
 
110
+ /**
111
+ * Specifies the ordering options for axis categories in Cartesian charts.
112
+ *
113
+ * - `'default'`: Uses the original order before custom ordering was supported.
114
+ * In some charts, this behaves the same as `'data'`.
115
+ * - `'data'`: Preserves the order of categories as provided in the input data.
116
+ * - `string[]`: Explicitly defines the custom order of categories as an array of category names.
117
+ * - `'category ascending' | 'category descending'`: Orders categories alphanumerically.
118
+ * - `'total ascending' | 'total descending'`: Orders categories by the total of their associated values.
119
+ * - `'min ascending' | 'min descending'`: Orders by the minimum value within each category.
120
+ * - `'max ascending' | 'max descending'`: Orders by the maximum value within each category.
121
+ * - `'sum ascending' | 'sum descending'`: Orders by the sum of values for each category (same as 'total').
122
+ * - `'mean ascending' | 'mean descending'`: Orders by the average of values in each category.
123
+ * - `'median ascending' | 'median descending'`: Orders by the median value of each category.
124
+ *
125
+ * {@docCategory CartesianChart}
126
+ */
127
+ export declare type AxisCategoryOrder = 'default' | 'data' | string[] | 'category ascending' | 'category descending' | 'total ascending' | 'total descending' | 'min ascending' | 'min descending' | 'max ascending' | 'max descending' | 'sum ascending' | 'sum descending' | 'mean ascending' | 'mean descending' | 'median ascending' | 'median descending';
128
+
110
129
  /**
111
130
  * {@docCategory ChartData}
112
131
  */
@@ -405,6 +424,28 @@ export declare interface CartesianChartProps {
405
424
  * the public methods and properties of the component.
406
425
  */
407
426
  componentRef?: React_2.RefObject<Chart>;
427
+ /**
428
+ * Prop to set the x axis annotation. Used to display additional information on the x-axis.
429
+ * This is shown on the top of the chart.
430
+ * @default undefined
431
+ */
432
+ xAxisAnnotation?: string;
433
+ /**
434
+ * Prop to set the y axis annotation. Used to display additional information on the y-axis.
435
+ * This is shown on the right side of the chart. Not shown if secondary y-axis is enabled.
436
+ * @default undefined
437
+ */
438
+ yAxisAnnotation?: string;
439
+ /**
440
+ * Specifies the ordering logic for categories (or string tick labels) on the x-axis.
441
+ * @default 'default'
442
+ */
443
+ xAxisCategoryOrder?: AxisCategoryOrder;
444
+ /**
445
+ * Specifies the ordering logic for categories (or string tick labels) on the y-axis.
446
+ * @default 'default'
447
+ */
448
+ yAxisCategoryOrder?: AxisCategoryOrder;
408
449
  }
409
450
 
410
451
  /**
@@ -530,9 +571,10 @@ export declare interface Chart {
530
571
  * default: show the datapoint.x value
531
572
  * fraction: show the fraction of datapoint.x/datapoint.y
532
573
  * percentage: show the percentage of (datapoint.x/datapoint.y)%
574
+ * hidden: do not show any data text
533
575
  * {@docCategory HorizontalBarChart}
534
576
  */
535
- export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
577
+ export declare type ChartDataMode = 'default' | 'fraction' | 'percentage' | 'hidden';
536
578
 
537
579
  /**
538
580
  * {@docCategory ChartData}
@@ -564,7 +606,7 @@ export declare interface ChartDataPoint {
564
606
  placeHolder?: boolean;
565
607
  /**
566
608
  * Callout data for x axis
567
- * This is an optional prop, If haven;t given legend will take
609
+ * This is an optional prop, If haven't given legend will take
568
610
  */
569
611
  xAxisCalloutData?: string;
570
612
  /**
@@ -656,7 +698,8 @@ declare enum ChartTypes {
656
698
  GroupedVerticalBarChart = 4,
657
699
  HeatMapChart = 5,
658
700
  HorizontalBarChartWithAxis = 6,
659
- ScatterChart = 7
701
+ ScatterChart = 7,
702
+ GanttChart = 8
660
703
  }
661
704
 
662
705
  export declare interface ChildProps {
@@ -1096,6 +1139,132 @@ export declare interface FunnelChartStyles {
1096
1139
  calloutContentRoot?: string;
1097
1140
  }
1098
1141
 
1142
+ export declare const GanttChart: React_2.FunctionComponent<GanttChartProps>;
1143
+
1144
+ /**
1145
+ * {@docCategory IChartData}
1146
+ */
1147
+ export declare interface GanttChartDataPoint {
1148
+ /**
1149
+ * Dependent value of the data point, rendered along the x-axis.
1150
+ */
1151
+ x: {
1152
+ start: Date | number;
1153
+ end: Date | number;
1154
+ };
1155
+ /**
1156
+ * Independent value of the data point, rendered along the y-axis.
1157
+ * If y is a number, then each y-coordinate is plotted at its y-coordinate.
1158
+ * If y is a string, then the data is evenly spaced along the y-axis.
1159
+ */
1160
+ y: number | string;
1161
+ /**
1162
+ * Legend text for the datapoint in the chart
1163
+ */
1164
+ legend?: string;
1165
+ /**
1166
+ * color for the legend in the chart
1167
+ */
1168
+ color?: string;
1169
+ /**
1170
+ * Gradient for the legend in the chart. If not provided, it will fallback on the default color palette.
1171
+ * If provided, it will override the color prop. granted `enableGradient` is set to true for the chart.
1172
+ */
1173
+ gradient?: [string, string];
1174
+ /**
1175
+ * Callout data for x axis
1176
+ * This is an optional prop, If haven't given legend will take
1177
+ */
1178
+ xAxisCalloutData?: string;
1179
+ /**
1180
+ * Callout data for y axis
1181
+ * This is an optional prop, If haven't given data will take
1182
+ */
1183
+ yAxisCalloutData?: string;
1184
+ /**
1185
+ * onClick action for each datapoint in the chart
1186
+ */
1187
+ onClick?: VoidFunction;
1188
+ /**
1189
+ * Accessibility data for callout
1190
+ */
1191
+ callOutAccessibilityData?: AccessibilityProps;
1192
+ }
1193
+
1194
+ /**
1195
+ * Gantt Chart properties
1196
+ * {@docCategory GanttChart}
1197
+ */
1198
+ export declare interface GanttChartProps extends CartesianChartProps {
1199
+ /**
1200
+ * An array of data points to be rendered in the chart.
1201
+ */
1202
+ data?: GanttChartDataPoint[];
1203
+ /**
1204
+ * Callback function to render a custom callout for each data point.
1205
+ */
1206
+ onRenderCalloutPerDataPoint?: RenderFunction<GanttChartDataPoint>;
1207
+ /**
1208
+ * Height of each bar, in pixels.
1209
+ */
1210
+ barHeight?: number;
1211
+ /**
1212
+ * Title of the chart.
1213
+ */
1214
+ chartTitle?: string;
1215
+ /**
1216
+ * Locale identifier string used to format numbers and dates according to the specified culture.
1217
+ * Example: 'en-US', 'fr-FR'.
1218
+ */
1219
+ culture?: string;
1220
+ /**
1221
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
1222
+ * Takes a number in the range [0, 1].
1223
+ * @default 1/2
1224
+ */
1225
+ yAxisPadding?: number;
1226
+ /**
1227
+ * If true, truncates y-axis tick labels longer than `noOfCharsToTruncate` with ellipses
1228
+ * and displays them in a tooltip on hover.
1229
+ * @default false
1230
+ */
1231
+ showYAxisLablesTooltip?: boolean;
1232
+ /**
1233
+ * If true, renders full y-axis tick labels without truncation.
1234
+ * @default false
1235
+ */
1236
+ showYAxisLables?: boolean;
1237
+ /**
1238
+ * If true, enables gradient fills for the bars.
1239
+ * @default false
1240
+ */
1241
+ enableGradient?: boolean;
1242
+ /**
1243
+ * If true, applies rounded corners to the bars.
1244
+ * @default false
1245
+ */
1246
+ roundCorners?: boolean;
1247
+ /**
1248
+ * Maximum height of each bar, in pixels.
1249
+ * @default 24
1250
+ */
1251
+ maxBarHeight?: number;
1252
+ }
1253
+
1254
+ /**
1255
+ * Gantt Chart style properties
1256
+ * {@docCategory GanttChart}
1257
+ */
1258
+ export declare interface GanttChartStyleProps extends CartesianChartStyleProps {
1259
+ }
1260
+
1261
+ /**
1262
+ * Gantt Chart styles
1263
+ * {@docCategory GanttChart}
1264
+ */
1265
+ export declare interface GanttChartStyles extends CartesianChartStyles {
1266
+ }
1267
+
1099
1268
  export declare const GaugeChart: React_2.FunctionComponent<GaugeChartProps>;
1100
1269
 
1101
1270
  /**
@@ -1471,7 +1640,7 @@ export declare interface GVBarChartSeriesPoint {
1471
1640
  legend: string;
1472
1641
  /**
1473
1642
  * Callout data for x axis
1474
- * This is an optional prop, If haven;t given legend will take
1643
+ * This is an optional prop, If haven't given legend will take
1475
1644
  */
1476
1645
  xAxisCalloutData?: string;
1477
1646
  /**
@@ -1774,6 +1943,11 @@ export declare interface HorizontalBarChartProps extends React_2.RefAttributes<H
1774
1943
  * Define a custom callout props override
1775
1944
  */
1776
1945
  calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
1946
+ /**
1947
+ * When true, chart will display legends even if a bar ( row ) has only one data point.
1948
+ * @default false
1949
+ */
1950
+ showLegendForSinglePointBar?: boolean;
1777
1951
  }
1778
1952
 
1779
1953
  /**
@@ -1869,7 +2043,7 @@ export declare interface HorizontalBarChartWithAxisDataPoint {
1869
2043
  color?: string;
1870
2044
  /**
1871
2045
  * Callout data for x axis
1872
- * This is an optional prop, If haven;t given legend will take
2046
+ * This is an optional prop, If haven't given legend will take
1873
2047
  */
1874
2048
  xAxisCalloutData?: string;
1875
2049
  /**
@@ -2139,6 +2313,10 @@ export declare interface Legend {
2139
2313
  */
2140
2314
  isLineLegendInBarChart?: boolean;
2141
2315
  nativeButtonProps?: React_2.ButtonHTMLAttributes<HTMLButtonElement>;
2316
+ /**
2317
+ * The annotation for the legend, function returning a React node
2318
+ */
2319
+ legendAnnotation?: () => React_2.ReactNode;
2142
2320
  }
2143
2321
 
2144
2322
  export declare interface LegendDataItem {
@@ -2305,6 +2483,11 @@ export declare interface LegendsStyles {
2305
2483
  * Style for the area that is resizable
2306
2484
  */
2307
2485
  resizableArea?: string;
2486
+ legendContainer?: string;
2487
+ /**
2488
+ * Style for the annotation that is used in the legend
2489
+ */
2490
+ annotation?: string;
2308
2491
  }
2309
2492
 
2310
2493
  export declare interface LegendState {
@@ -2711,7 +2894,7 @@ export declare interface ModifiedCartesianChartProps extends CartesianChartProps
2711
2894
  /**
2712
2895
  * Get the min and max values of the y-axis
2713
2896
  */
2714
- getMinMaxOfYAxis: (points: LineChartPoints[] | HorizontalBarChartWithAxisDataPoint[] | VerticalBarChartDataPoint[] | DataPoint[] | ScatterChartDataPoint[], yAxisType: YAxisType | undefined, useSecondaryYScale?: boolean) => {
2897
+ getMinMaxOfYAxis: (points: LineChartPoints[] | HorizontalBarChartWithAxisDataPoint[] | VerticalBarChartDataPoint[] | DataPoint[] | ScatterChartDataPoint[] | GanttChartDataPoint[], yAxisType: YAxisType | undefined, useSecondaryYScale?: boolean) => {
2715
2898
  startValue: number;
2716
2899
  endValue: number;
2717
2900
  };
@@ -2722,11 +2905,16 @@ export declare interface ModifiedCartesianChartProps extends CartesianChartProps
2722
2905
  /**
2723
2906
  * Get the domain and range values
2724
2907
  */
2725
- getDomainNRangeValues: (points: LineChartPoints[] | VerticalBarChartDataPoint[] | VerticalStackedBarDataPoint[] | HorizontalBarChartWithAxisDataPoint[] | GroupedVerticalBarChartData[] | HeatMapChartDataPoint[], margins: Margins, width: number, chartType: ChartTypes, isRTL: boolean, xAxisType: XAxisTypes, barWidth: number, tickValues: Date[] | number[] | string[] | undefined, shiftX: number) => IDomainNRange;
2908
+ getDomainNRangeValues: (points: LineChartPoints[] | VerticalBarChartDataPoint[] | VerticalStackedBarDataPoint[] | HorizontalBarChartWithAxisDataPoint[] | GroupedVerticalBarChartData[] | HeatMapChartDataPoint[] | GanttChartDataPoint[], margins: Margins, width: number, chartType: ChartTypes, isRTL: boolean, xAxisType: XAxisTypes, barWidth: number, tickValues: Date[] | number[] | string[] | undefined, shiftX: number) => IDomainNRange;
2726
2909
  /**
2727
2910
  * Create the string y-axis
2728
2911
  */
2729
2912
  createStringYAxis: (yAxisParams: IYAxisParams, dataPoints: string[], isRtl: boolean, barWidth: number | undefined, chartType?: ChartTypes) => ScaleBand<string>;
2913
+ /**
2914
+ * Controls whether the numeric x-axis domain should be extended to start and end at nice rounded values.
2915
+ * @default true
2916
+ */
2917
+ showRoundOffXTickValues?: boolean;
2730
2918
  }
2731
2919
 
2732
2920
  declare type NodesInColumns = {
@@ -3246,7 +3434,7 @@ export declare interface VerticalBarChartDataPoint {
3246
3434
  color?: string;
3247
3435
  /**
3248
3436
  * Callout data for x axis
3249
- * This is an optional prop, If haven;t given legend will take
3437
+ * This is an optional prop, If haven't given legend will take
3250
3438
  */
3251
3439
  xAxisCalloutData?: string;
3252
3440
  /**
@@ -3363,7 +3551,7 @@ export declare interface VerticalBarChartProps extends CartesianChartProps {
3363
3551
  * Specifies the mode of the chart.
3364
3552
  * @default 'default'
3365
3553
  */
3366
- mode?: 'default' | 'plotly';
3554
+ mode?: 'default' | 'plotly' | 'histogram';
3367
3555
  }
3368
3556
 
3369
3557
  /**
@@ -3593,7 +3781,7 @@ export declare interface VSChartDataPoint {
3593
3781
  color?: string;
3594
3782
  /**
3595
3783
  * Callout data for x axis
3596
- * This is an optional prop, If haven;t given legend will take
3784
+ * This is an optional prop, If haven't given legend will take
3597
3785
  */
3598
3786
  xAxisCalloutData?: string;
3599
3787
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["AreaChart.ts"],"sourcesContent":["export * from './components/AreaChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,+BAA+B"}
1
+ {"version":3,"sources":["../src/AreaChart.ts"],"sourcesContent":["export * from './components/AreaChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["CartesianChart.ts"],"sourcesContent":["export * from './components/CommonComponents/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,sCAAsC"}
1
+ {"version":3,"sources":["../src/CartesianChart.ts"],"sourcesContent":["export * from './components/CommonComponents/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["DeclarativeChart.ts"],"sourcesContent":["export * from './components/DeclarativeChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,sCAAsC"}
1
+ {"version":3,"sources":["../src/DeclarativeChart.ts"],"sourcesContent":["export * from './components/DeclarativeChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["DonutChart.ts"],"sourcesContent":["export * from './components/DonutChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
1
+ {"version":3,"sources":["../src/DonutChart.ts"],"sourcesContent":["export * from './components/DonutChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["FunnelChart.ts"],"sourcesContent":["export * from './components/FunnelChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,iCAAiC"}
1
+ {"version":3,"sources":["../src/FunnelChart.ts"],"sourcesContent":["export * from './components/FunnelChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,iCAAiC"}
@@ -0,0 +1 @@
1
+ export * from './components/GanttChart/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/GanttChart.ts"],"sourcesContent":["export * from './components/GanttChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["GaugeChart.ts"],"sourcesContent":["export * from './components/GaugeChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
1
+ {"version":3,"sources":["../src/GaugeChart.ts"],"sourcesContent":["export * from './components/GaugeChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["GroupedVerticalBarChart.ts"],"sourcesContent":["export * from './components/GroupedVerticalBarChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,6CAA6C"}
1
+ {"version":3,"sources":["../src/GroupedVerticalBarChart.ts"],"sourcesContent":["export * from './components/GroupedVerticalBarChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,6CAA6C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["HeatMapChart.ts"],"sourcesContent":["export * from './components/HeatMapChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,kCAAkC"}
1
+ {"version":3,"sources":["../src/HeatMapChart.ts"],"sourcesContent":["export * from './components/HeatMapChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["HorizontalBarChart.ts"],"sourcesContent":["export * from './components/HorizontalBarChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,wCAAwC"}
1
+ {"version":3,"sources":["../src/HorizontalBarChart.ts"],"sourcesContent":["export * from './components/HorizontalBarChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["HorizontalBarChartWithAxis.ts"],"sourcesContent":["export * from './components/HorizontalBarChartWithAxis/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gDAAgD"}
1
+ {"version":3,"sources":["../src/HorizontalBarChartWithAxis.ts"],"sourcesContent":["export * from './components/HorizontalBarChartWithAxis/index';\n"],"names":[],"mappings":"AAAA,cAAc,gDAAgD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Legends.ts"],"sourcesContent":["export * from './components/Legends/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,6BAA6B"}
1
+ {"version":3,"sources":["../src/Legends.ts"],"sourcesContent":["export * from './components/Legends/index';\n"],"names":[],"mappings":"AAAA,cAAc,6BAA6B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["LineChart.ts"],"sourcesContent":["export * from './components/LineChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,+BAA+B"}
1
+ {"version":3,"sources":["../src/LineChart.ts"],"sourcesContent":["export * from './components/LineChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Popover.ts"],"sourcesContent":["export * from './components/CommonComponents/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,sCAAsC"}
1
+ {"version":3,"sources":["../src/Popover.ts"],"sourcesContent":["export * from './components/CommonComponents/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ResponsiveContainer.ts"],"sourcesContent":["export * from './components/ResponsiveContainer/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,yCAAyC"}
1
+ {"version":3,"sources":["../src/ResponsiveContainer.ts"],"sourcesContent":["export * from './components/ResponsiveContainer/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["SankeyChart.ts"],"sourcesContent":["export * from './components/SankeyChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,iCAAiC"}
1
+ {"version":3,"sources":["../src/SankeyChart.ts"],"sourcesContent":["export * from './components/SankeyChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,iCAAiC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ScatterChart.ts"],"sourcesContent":["export * from './components/ScatterChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,kCAAkC"}
1
+ {"version":3,"sources":["../src/ScatterChart.ts"],"sourcesContent":["export * from './components/ScatterChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Sparkline.ts"],"sourcesContent":["export * from './components/Sparkline/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,+BAA+B"}
1
+ {"version":3,"sources":["../src/Sparkline.ts"],"sourcesContent":["export * from './components/Sparkline/index';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["VerticalBarChart.ts"],"sourcesContent":["export * from './components/VerticalBarChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,sCAAsC"}
1
+ {"version":3,"sources":["../src/VerticalBarChart.ts"],"sourcesContent":["export * from './components/VerticalBarChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["VerticalStackedBarChart.ts"],"sourcesContent":["export * from './components/VerticalStackedBarChart/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,6CAA6C"}
1
+ {"version":3,"sources":["../src/VerticalStackedBarChart.ts"],"sourcesContent":["export * from './components/VerticalStackedBarChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,6CAA6C"}
@@ -11,11 +11,11 @@ import { useId } from '@fluentui/react-utilities';
11
11
  import { Legends } from '../Legends/index';
12
12
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
13
  const bisect = bisector((d)=>d.x).left;
14
- var InterceptVisibility;
15
- (function(InterceptVisibility) {
14
+ var InterceptVisibility = /*#__PURE__*/ function(InterceptVisibility) {
16
15
  InterceptVisibility["show"] = "visibility";
17
16
  InterceptVisibility["hide"] = "hidden";
18
- })(InterceptVisibility || (InterceptVisibility = {}));
17
+ return InterceptVisibility;
18
+ }(InterceptVisibility || {});
19
19
  //by default d3-shape 3.2.0 limits the< path> data point precision to 3 digits(d3/d3-path#10)
20
20
  export const AreaChart = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
21
21
  var _props_legendProps;