@fluentui/react-charts 9.3.5 → 9.3.7

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 (337) hide show
  1. package/CHANGELOG.md +42 -2
  2. package/dist/index.d.ts +239 -55
  3. package/lib/AnnotationOnlyChart.js +1 -0
  4. package/lib/AnnotationOnlyChart.js.map +1 -0
  5. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +194 -0
  6. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -0
  7. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +1 -0
  8. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -0
  9. package/lib/components/AnnotationOnlyChart/index.js +2 -0
  10. package/lib/components/AnnotationOnlyChart/index.js.map +1 -0
  11. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +31 -0
  12. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +1 -0
  13. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +23 -0
  14. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -0
  15. package/lib/components/AreaChart/AreaChart.js +3 -16
  16. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  17. package/lib/components/AreaChart/useAreaChartStyles.styles.js +11 -6
  18. package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
  19. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +3 -1
  20. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  21. package/lib/components/ChartTable/ChartTable.js +2 -10
  22. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  23. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  24. package/lib/components/ChartTable/useChartTableStyles.styles.js +59 -39
  25. package/lib/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
  26. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +5 -5
  27. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  28. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +617 -0
  29. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -0
  30. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +1 -0
  31. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -0
  32. package/lib/components/CommonComponents/Annotations/index.js +2 -0
  33. package/lib/components/CommonComponents/Annotations/index.js.map +1 -0
  34. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +173 -0
  35. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -0
  36. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +126 -0
  37. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -0
  38. package/lib/components/CommonComponents/CartesianChart.js +159 -132
  39. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  40. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  41. package/lib/components/CommonComponents/ChartPopover.js +1 -2
  42. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  43. package/lib/components/CommonComponents/index.js +2 -0
  44. package/lib/components/CommonComponents/index.js.map +1 -1
  45. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +32 -14
  46. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
  47. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +17 -2
  48. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  49. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +2 -6
  50. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
  51. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +1 -2
  52. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  53. package/lib/components/DeclarativeChart/DeclarativeChart.js +83 -40
  54. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  55. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +4 -8
  56. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  57. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +692 -94
  58. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  59. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +23 -8
  60. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -1
  61. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +2 -2
  62. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  63. package/lib/components/DonutChart/DonutChart.js +3 -12
  64. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  65. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  66. package/lib/components/DonutChart/Pie/Pie.js +4 -2
  67. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  68. package/lib/components/DonutChart/useDonutChartStyles.styles.js +2 -2
  69. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  70. package/lib/components/FunnelChart/FunnelChart.js +2 -10
  71. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  72. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  73. package/lib/components/GanttChart/GanttChart.js +6 -19
  74. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  75. package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
  76. package/lib/components/GanttChart/useGanttChartStyles.styles.js +3 -1
  77. package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +1 -1
  78. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +3 -1
  79. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  80. package/lib/components/GaugeChart/GaugeChart.js +2 -10
  81. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  82. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  83. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -20
  84. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  85. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +11 -6
  86. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
  87. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +3 -1
  88. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  89. package/lib/components/HeatMapChart/HeatMapChart.js +4 -17
  90. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  91. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  92. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +3 -1
  93. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
  94. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +3 -1
  95. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
  96. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +25 -12
  97. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  98. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +4 -4
  99. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  100. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +5 -23
  101. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  102. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  103. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +3 -1
  104. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
  105. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +3 -1
  106. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  107. package/lib/components/Legends/Legends.types.js.map +1 -1
  108. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  109. package/lib/components/Legends/useLegendsStyles.styles.js +97 -37
  110. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
  111. package/lib/components/Legends/useLegendsStyles.styles.raw.js +10 -11
  112. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  113. package/lib/components/LineChart/LineChart.js +11 -20
  114. package/lib/components/LineChart/LineChart.js.map +1 -1
  115. package/lib/components/LineChart/LineChart.types.js +1 -1
  116. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  117. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +3 -4
  118. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  119. package/lib/components/LineChart/useLineChartStyles.styles.js +15 -10
  120. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  121. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +3 -1
  122. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  123. package/lib/components/SankeyChart/SankeyChart.js +3 -9
  124. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  125. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  126. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +13 -10
  127. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  128. package/lib/components/ScatterChart/ScatterChart.js +24 -24
  129. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  130. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  131. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +13 -8
  132. package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  133. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +3 -1
  134. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  135. package/lib/components/Sparkline/Sparkline.js +11 -7
  136. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  137. package/lib/components/VerticalBarChart/VerticalBarChart.js +3 -15
  138. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  139. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +13 -8
  140. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  141. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +3 -1
  142. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  143. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -18
  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/useVerticalStackedBarChartStyles.styles.js +11 -6
  147. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  148. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +3 -1
  149. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  150. package/lib/index.js +1 -0
  151. package/lib/index.js.map +1 -1
  152. package/lib/types/ChartAnnotation.js +1 -0
  153. package/lib/types/ChartAnnotation.js.map +1 -0
  154. package/lib/types/DataPoint.js.map +1 -1
  155. package/lib/types/index.js +1 -0
  156. package/lib/types/index.js.map +1 -1
  157. package/lib/utilities/Common.styles.js +1 -2
  158. package/lib/utilities/Common.styles.js.map +1 -1
  159. package/lib/utilities/Common.styles.raw.js +1 -2
  160. package/lib/utilities/Common.styles.raw.js.map +1 -1
  161. package/lib/utilities/FocusableTooltipText.js +1 -1
  162. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  163. package/lib/utilities/getWindow.js +0 -1
  164. package/lib/utilities/getWindow.js.map +1 -1
  165. package/lib/utilities/hooks.js +34 -0
  166. package/lib/utilities/hooks.js.map +1 -0
  167. package/lib/utilities/image-export-utils.js +221 -73
  168. package/lib/utilities/image-export-utils.js.map +1 -1
  169. package/lib/utilities/utilities.js +39 -37
  170. package/lib/utilities/utilities.js.map +1 -1
  171. package/lib-commonjs/AnnotationOnlyChart.js +6 -0
  172. package/lib-commonjs/AnnotationOnlyChart.js.map +1 -0
  173. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +205 -0
  174. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -0
  175. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +6 -0
  176. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -0
  177. package/lib-commonjs/components/AnnotationOnlyChart/index.js +7 -0
  178. package/lib-commonjs/components/AnnotationOnlyChart/index.js.map +1 -0
  179. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +56 -0
  180. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +1 -0
  181. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +33 -0
  182. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -0
  183. package/lib-commonjs/components/AreaChart/AreaChart.js +2 -15
  184. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  185. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +14 -15
  186. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
  187. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +3 -1
  188. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  189. package/lib-commonjs/components/ChartTable/ChartTable.js +3 -10
  190. package/lib-commonjs/components/ChartTable/ChartTable.js.map +1 -1
  191. package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -1
  192. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +74 -102
  193. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
  194. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +4 -4
  195. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  196. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +628 -0
  197. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -0
  198. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +4 -0
  199. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -0
  200. package/lib-commonjs/components/CommonComponents/Annotations/index.js +7 -0
  201. package/lib-commonjs/components/CommonComponents/Annotations/index.js.map +1 -0
  202. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +265 -0
  203. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -0
  204. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +161 -0
  205. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -0
  206. package/lib-commonjs/components/CommonComponents/CartesianChart.js +159 -131
  207. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  208. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  209. package/lib-commonjs/components/CommonComponents/ChartPopover.js +1 -2
  210. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
  211. package/lib-commonjs/components/CommonComponents/index.js +2 -0
  212. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  213. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +35 -22
  214. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
  215. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +17 -2
  216. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  217. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +0 -14
  218. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
  219. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +0 -1
  220. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  221. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +82 -39
  222. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  223. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  224. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +678 -60
  225. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  226. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +25 -16
  227. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -1
  228. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js +1 -1
  229. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  230. package/lib-commonjs/components/DonutChart/DonutChart.js +2 -11
  231. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  232. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  233. package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -2
  234. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  235. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +2 -2
  236. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  237. package/lib-commonjs/components/FunnelChart/FunnelChart.js +2 -10
  238. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
  239. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  240. package/lib-commonjs/components/GanttChart/GanttChart.js +5 -18
  241. package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -1
  242. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -1
  243. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +3 -1
  244. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +1 -1
  245. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +3 -1
  246. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  247. package/lib-commonjs/components/GaugeChart/GaugeChart.js +2 -10
  248. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  249. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  250. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -20
  251. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  252. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +14 -15
  253. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
  254. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +3 -1
  255. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  256. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +3 -16
  257. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  258. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  259. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +3 -1
  260. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
  261. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +3 -1
  262. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
  263. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +47 -34
  264. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  265. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +3 -3
  266. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  267. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +4 -21
  268. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  269. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  270. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +3 -1
  271. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
  272. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +3 -1
  273. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  274. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  275. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -1
  276. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +144 -86
  277. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -1
  278. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js +9 -10
  279. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  280. package/lib-commonjs/components/LineChart/LineChart.js +11 -20
  281. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  282. package/lib-commonjs/components/LineChart/LineChart.types.js +1 -1
  283. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  284. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +2 -2
  285. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  286. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +18 -19
  287. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  288. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +3 -1
  289. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  290. package/lib-commonjs/components/SankeyChart/SankeyChart.js +3 -9
  291. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  292. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  293. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +16 -19
  294. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  295. package/lib-commonjs/components/ScatterChart/ScatterChart.js +22 -22
  296. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
  297. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  298. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +16 -17
  299. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  300. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +3 -1
  301. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  302. package/lib-commonjs/components/Sparkline/Sparkline.js +11 -7
  303. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  304. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +3 -15
  305. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  306. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +16 -17
  307. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  308. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +3 -1
  309. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  310. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +7 -17
  311. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  312. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  313. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +14 -15
  314. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  315. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +3 -1
  316. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  317. package/lib-commonjs/index.js +1 -0
  318. package/lib-commonjs/index.js.map +1 -1
  319. package/lib-commonjs/types/ChartAnnotation.js +6 -0
  320. package/lib-commonjs/types/ChartAnnotation.js.map +1 -0
  321. package/lib-commonjs/types/DataPoint.js.map +1 -1
  322. package/lib-commonjs/types/index.js +1 -0
  323. package/lib-commonjs/types/index.js.map +1 -1
  324. package/lib-commonjs/utilities/Common.styles.js +1 -2
  325. package/lib-commonjs/utilities/Common.styles.js.map +1 -1
  326. package/lib-commonjs/utilities/Common.styles.raw.js +1 -2
  327. package/lib-commonjs/utilities/Common.styles.raw.js.map +1 -1
  328. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  329. package/lib-commonjs/utilities/getWindow.js +0 -1
  330. package/lib-commonjs/utilities/getWindow.js.map +1 -1
  331. package/lib-commonjs/utilities/hooks.js +45 -0
  332. package/lib-commonjs/utilities/hooks.js.map +1 -0
  333. package/lib-commonjs/utilities/image-export-utils.js +222 -74
  334. package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
  335. package/lib-commonjs/utilities/utilities.js +37 -33
  336. package/lib-commonjs/utilities/utilities.js.map +1 -1
  337. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,12 +1,52 @@
1
1
  # Change Log - @fluentui/react-charts
2
2
 
3
- This log was last generated on Thu, 06 Nov 2025 14:56:54 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 05 Dec 2025 22:36:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.3.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.7)
8
+
9
+ Fri, 05 Dec 2025 22:36:24 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.6..@fluentui/react-charts_v9.3.7)
11
+
12
+ ### Patches
13
+
14
+ - fix: handle frequent uncaught exceptions ([PR #35495](https://github.com/microsoft/fluentui/pull/35495) by kumarkshitij@microsoft.com)
15
+ - remove redundant styles ([PR #35476](https://github.com/microsoft/fluentui/pull/35476) by anushgupta@microsoft.com)
16
+ - fix incomplete donut and VSBC bug ([PR #35484](https://github.com/microsoft/fluentui/pull/35484) by anushgupta@microsoft.com)
17
+ - fix width and height props not being applied to SVG path dimensions ([PR #35479](https://github.com/microsoft/fluentui/pull/35479) by 120502241+jepagan_microsoft@users.noreply.github.com)
18
+ - add support for x rounded tick values ([PR #35490](https://github.com/microsoft/fluentui/pull/35490) by anushgupta@microsoft.com)
19
+ - fix popover issue ([PR #35501](https://github.com/microsoft/fluentui/pull/35501) by anushgupta@microsoft.com)
20
+ - set reference line legends after the main chart legends ([PR #35481](https://github.com/microsoft/fluentui/pull/35481) by anushgupta@microsoft.com)
21
+ - fix duplicate points issue in scatter polar chart ([PR #35516](https://github.com/microsoft/fluentui/pull/35516) by anushgupta@microsoft.com)
22
+ - feat: enable multiplot image export ([PR #35483](https://github.com/microsoft/fluentui/pull/35483) by kumarkshitij@microsoft.com)
23
+ - fix(react-charts): Ensuring annotation keeps tied with chart always ([PR #35486](https://github.com/microsoft/fluentui/pull/35486) by 120183316+srmukher@users.noreply.github.com)
24
+ - Bump @fluentui/react-button to v9.7.0 ([PR #35537](https://github.com/microsoft/fluentui/pull/35537) by beachball)
25
+
26
+ ## [9.3.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.6)
27
+
28
+ Tue, 11 Nov 2025 19:18:18 GMT
29
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.5..@fluentui/react-charts_v9.3.6)
30
+
31
+ ### Patches
32
+
33
+ - add reference lines logic in line and scatter chart ([PR #35474](https://github.com/microsoft/fluentui/pull/35474) by anushgupta@microsoft.com)
34
+ - add chart annotations ([PR #35457](https://github.com/microsoft/fluentui/pull/35457) by anushgupta@microsoft.com)
35
+ - add support for chart only annotation ([PR #35461](https://github.com/microsoft/fluentui/pull/35461) by anushgupta@microsoft.com)
36
+ - fix: adjust chart margin for continuous y-axis tick labels ([PR #35376](https://github.com/microsoft/fluentui/pull/35376) by kumarkshitij@microsoft.com)
37
+ - chore: Bump @griffel/react package. ([PR #35469](https://github.com/microsoft/fluentui/pull/35469) by estebanmu@microsoft.com)
38
+ - Bump @fluentui/react-button to v9.6.12 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
39
+ - Bump @fluentui/react-jsx-runtime to v9.3.3 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
40
+ - Bump @fluentui/react-overflow to v9.6.5 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
41
+ - Bump @fluentui/react-popover to v9.12.12 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
42
+ - Bump @fluentui/react-shared-contexts to v9.26.0 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
43
+ - Bump @fluentui/react-tabster to v9.26.10 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
44
+ - Bump @fluentui/react-tooltip to v9.8.11 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
45
+ - Bump @fluentui/react-utilities to v9.25.4 ([PR #35462](https://github.com/microsoft/fluentui/pull/35462) by beachball)
46
+
7
47
  ## [9.3.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.5)
8
48
 
9
- Thu, 06 Nov 2025 14:56:54 GMT
49
+ Thu, 06 Nov 2025 15:01:18 GMT
10
50
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.4..@fluentui/react-charts_v9.3.5)
11
51
 
12
52
  ### Patches
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { CurveFactory } from 'd3-shape';
2
2
  import type { JSXElement } from '@fluentui/react-utilities';
3
+ import type { Margin } from '@fluentui/chart-utilities';
3
4
  import { PositioningShorthand } from '@fluentui/react-positioning';
4
5
  import * as React_2 from 'react';
5
- import { RefObject } from 'react';
6
+ import { Ref } from 'react';
6
7
  import { SankeyGraph } from 'd3-sankey';
7
8
  import { SankeyLayout } from 'd3-sankey';
8
9
  import { SankeyLink } from 'd3-sankey';
@@ -37,6 +38,50 @@ export declare interface AccessibilityProps {
37
38
  */
38
39
  export declare function adjustPadding(sankey: SankeyLayoutGenerator, height: number, nodesInColumn: NodesInColumns): void;
39
40
 
41
+ export declare const AnnotationOnlyChart: React_2.FC<AnnotationOnlyChartProps>;
42
+
43
+ /**
44
+ * Props for the annotation-only chart renderer.
45
+ */
46
+ export declare interface AnnotationOnlyChartProps {
47
+ /**
48
+ * Collection of annotations to render.
49
+ */
50
+ annotations: ChartAnnotation[];
51
+ /** Optional layout title extracted from the Plotly schema. */
52
+ chartTitle?: string;
53
+ /** Optional descriptive text for accessibility. */
54
+ description?: string;
55
+ /** Desired width in pixels (if absent the chart will grow to fit the container). */
56
+ width?: number;
57
+ /** Desired height in pixels. */
58
+ height?: number;
59
+ /** Paper/background colour specified in the Plotly layout. */
60
+ paperBackgroundColor?: string;
61
+ /** Plot area background colour specified in the Plotly layout. */
62
+ plotBackgroundColor?: string;
63
+ /** Global layout font colour. */
64
+ fontColor?: string;
65
+ /** Global layout font family. */
66
+ fontFamily?: string;
67
+ /** Layout margin converted to padding for the outer wrapper. */
68
+ margin?: Partial<Margin>;
69
+ /** Component ref propagated by the DeclarativeChart surface. */
70
+ componentRef?: React_2.Ref<Chart>;
71
+ }
72
+
73
+ export declare interface AnnotationPlotRect {
74
+ x: number;
75
+ y: number;
76
+ width: number;
77
+ height: number;
78
+ }
79
+
80
+ export declare interface AnnotationPoint {
81
+ x: number;
82
+ y: number;
83
+ }
84
+
40
85
  export declare const ARC_PADDING = 2;
41
86
 
42
87
  export declare const AreaChart: React_2.FunctionComponent<AreaChartProps>;
@@ -358,7 +403,11 @@ export declare interface CartesianChartProps {
358
403
  */
359
404
  yMaxValue?: number;
360
405
  /**
361
- * maximum data value point in x-axis
406
+ * minimum data value point in x-axis (for numeric x-axis)
407
+ */
408
+ xMinValue?: number;
409
+ /**
410
+ * maximum data value point in x-axis (for numeric x-axis)
362
411
  */
363
412
  xMaxValue?: number;
364
413
  /**
@@ -378,6 +427,10 @@ export declare interface CartesianChartProps {
378
427
  * @default 10
379
428
  */
380
429
  xAxistickSize?: number;
430
+ /**
431
+ * Text annotations rendered on top of the chart area
432
+ */
433
+ annotations?: ChartAnnotation[];
381
434
  /**
382
435
  * defines the space between the tick line and the data label
383
436
  * @default 10
@@ -497,7 +550,7 @@ export declare interface CartesianChartProps {
497
550
  * Optional callback to access the Chart interface. Use this instead of ref for accessing
498
551
  * the public methods and properties of the component.
499
552
  */
500
- componentRef?: React_2.RefObject<Chart | null>;
553
+ componentRef?: React_2.Ref<Chart>;
501
554
  /**
502
555
  * Prop to set the x axis annotation. Used to display additional information on the x-axis.
503
556
  * This is shown on the top of the chart.
@@ -550,6 +603,15 @@ export declare interface CartesianChartProps {
550
603
  * Use this to control `tickStep`, `tick0`, etc.
551
604
  */
552
605
  yAxis?: AxisProps;
606
+ /**
607
+ *@default false
608
+ *Used for showing complete y axis lables */
609
+ showYAxisLables?: boolean;
610
+ /**
611
+ *@default false
612
+ *Used for to elipse y axis labes and show tooltip on x axis labels
613
+ */
614
+ showYAxisLablesTooltip?: boolean;
553
615
  }
554
616
 
555
617
  /**
@@ -657,10 +719,18 @@ export declare interface CartesianChartStyles {
657
719
  * Styles for the chart wrapper div
658
720
  */
659
721
  chartWrapper?: string;
722
+ /**
723
+ * Styles for the element wrapping the svg and overlays for annotation
724
+ */
725
+ plotContainer?: string;
660
726
  /**
661
727
  * Styles for the svg tooltip
662
728
  */
663
729
  svgTooltip?: string;
730
+ /**
731
+ * Styles applied to the annotation layer root element
732
+ */
733
+ annotationLayer?: string;
664
734
  /**
665
735
  * Styles for the chart svg element
666
736
  */
@@ -675,6 +745,141 @@ export declare interface Chart {
675
745
  toImage?: (opts?: ImageExportOptions) => Promise<string>;
676
746
  }
677
747
 
748
+ export declare interface ChartAnnotation {
749
+ /** Optional id for React reconciliation */
750
+ id?: string;
751
+ /** Primary textual content */
752
+ text: string;
753
+ /** Coordinates describing where the annotation should be anchored */
754
+ coordinates: ChartAnnotationCoordinate;
755
+ /** Layout customisation */
756
+ layout?: ChartAnnotationLayoutProps;
757
+ /** Visual styling */
758
+ style?: ChartAnnotationStyleProps;
759
+ /** Optional connector line that links the annotation to its anchor. */
760
+ connector?: ChartAnnotationConnectorProps;
761
+ /** Accessibility metadata */
762
+ accessibility?: ChartAnnotationAccessibilityProps;
763
+ /** Optional application specific metadata */
764
+ data?: Record<string, unknown>;
765
+ }
766
+
767
+ export declare interface ChartAnnotationAccessibilityProps {
768
+ /** Accessible label announced by assistive technologies */
769
+ ariaLabel?: string;
770
+ /** Accessible description id */
771
+ ariaDescribedBy?: string;
772
+ /** Custom role */
773
+ role?: string;
774
+ }
775
+
776
+ export declare type ChartAnnotationArrowHead = 'none' | 'start' | 'end' | 'both';
777
+
778
+ export declare interface ChartAnnotationConnectorProps {
779
+ /** Distance in pixels between the annotation element and the start of the connector. */
780
+ startPadding?: number;
781
+ /** Distance in pixels between the anchor point and the end of the connector. */
782
+ endPadding?: number;
783
+ /** Stroke colour for the connector. */
784
+ strokeColor?: string;
785
+ /** Stroke width in pixels. */
786
+ strokeWidth?: number;
787
+ /** SVG stroke dash array for dashed connectors. */
788
+ dashArray?: string;
789
+ /** Arrow head placement. Defaults to `'end'`. */
790
+ arrow?: ChartAnnotationArrowHead;
791
+ }
792
+
793
+ export declare interface ChartAnnotationContext {
794
+ /** Rectangle describing the drawable area of the chart (without margins) */
795
+ plotRect: AnnotationPlotRect;
796
+ /** Size of the owning SVG element */
797
+ svgRect: {
798
+ width: number;
799
+ height: number;
800
+ };
801
+ /** Indicates if layout should be mirrored */
802
+ isRtl?: boolean;
803
+ /** Primary x scale mapping data domain to pixels */
804
+ xScale?: (value: any) => number;
805
+ /** Primary y scale mapping data domain to pixels */
806
+ yScalePrimary?: (value: any) => number;
807
+ /** Secondary y scale when present */
808
+ yScaleSecondary?: (value: any) => number;
809
+ }
810
+
811
+ export declare type ChartAnnotationCoordinate = {
812
+ /** Cartesian data coordinates mapped through the chart scales or
813
+ * Normalised coordinates within the plot area (0-1) or
814
+ * Absolute pixel position relative to the chart's SVG origin
815
+ */
816
+ type: 'data' | 'relative' | 'pixel';
817
+ /** x-axis value in the data domain */
818
+ x: number | string | Date;
819
+ /** y-axis value in the data domain */
820
+ y: number | string | Date;
821
+ /** Use the secondary y scale when available */
822
+ yAxis?: 'primary' | 'secondary';
823
+ };
824
+
825
+ export declare type ChartAnnotationHorizontalAlign = 'start' | 'center' | 'end';
826
+
827
+ export declare const ChartAnnotationLayer: React_2.FC<ChartAnnotationLayerProps>;
828
+
829
+ export declare interface ChartAnnotationLayerProps {
830
+ annotations?: ChartAnnotation[];
831
+ context: ChartAnnotationContext;
832
+ className?: string;
833
+ }
834
+
835
+ export declare interface ChartAnnotationLayoutProps {
836
+ /** Horizontal alignment of the annotation relative to the anchor point */
837
+ align?: ChartAnnotationHorizontalAlign;
838
+ /** Vertical alignment of the annotation relative to the anchor point */
839
+ verticalAlign?: ChartAnnotationVerticalAlign;
840
+ /** Horizontal offset in pixels applied after alignment */
841
+ offsetX?: number;
842
+ /** Vertical offset in pixels applied after alignment */
843
+ offsetY?: number;
844
+ /** Optional maximum width for wrapped text */
845
+ maxWidth?: number;
846
+ /** Whether the annotation should remain inside the plot area */
847
+ clipToBounds?: boolean;
848
+ /** Additional CSS classes applied to the annotation wrapper */
849
+ className?: string;
850
+ }
851
+
852
+ export declare interface ChartAnnotationStyleProps {
853
+ /** Text colour */
854
+ textColor?: string;
855
+ /** Background colour for the annotation container */
856
+ backgroundColor?: string;
857
+ /** Border colour */
858
+ borderColor?: string;
859
+ /** Border width */
860
+ borderWidth?: number;
861
+ /** Border style (solid, dashed, etc.) */
862
+ borderStyle?: React_2.CSSProperties['borderStyle'];
863
+ /** Border radius */
864
+ borderRadius?: number;
865
+ /** Box shadow applied to annotation */
866
+ boxShadow?: string;
867
+ /** Font size override */
868
+ fontSize?: string;
869
+ /** Font weight override */
870
+ fontWeight?: React_2.CSSProperties['fontWeight'];
871
+ /** Padding around the text. Accepts CSS shorthand notation */
872
+ padding?: string;
873
+ /** Opacity for the annotation container */
874
+ opacity?: number;
875
+ /** Optional class name applied to the annotation element */
876
+ className?: string;
877
+ /** Rotation, in degrees, applied to the annotation container */
878
+ rotation?: number;
879
+ }
880
+
881
+ export declare type ChartAnnotationVerticalAlign = 'top' | 'middle' | 'bottom';
882
+
678
883
  /**
679
884
  * Chart data mode for chart data text
680
885
  * default: show the datapoint.x value
@@ -847,7 +1052,7 @@ export declare interface ChartTableProps {
847
1052
  * Optional callback to access the Chart interface. Use this instead of ref for accessing
848
1053
  * the public methods and properties of the component.
849
1054
  */
850
- componentRef?: React_2.RefObject<Chart>;
1055
+ componentRef?: React_2.Ref<Chart>;
851
1056
  }
852
1057
 
853
1058
  /**
@@ -904,6 +1109,18 @@ export declare interface ColorFillBarsProps {
904
1109
 
905
1110
  declare type ColorwayType = 'default' | 'builtin' | 'others' | undefined;
906
1111
 
1112
+ export declare type ConnectorRenderData = {
1113
+ key: string;
1114
+ start: AnnotationPoint;
1115
+ end: AnnotationPoint;
1116
+ strokeColor: string;
1117
+ strokeWidth: number;
1118
+ dashArray?: string;
1119
+ arrow: ChartAnnotationArrowHead;
1120
+ markerSize: number;
1121
+ markerStrokeWidth: number;
1122
+ };
1123
+
907
1124
  /**
908
1125
  * Used for custom callout data interface. As Area chart callout data will be prepared from given props.data,
909
1126
  * Those required data passing to onRenderCalloutPerDataPoint and onRenderCalloutPerStack.
@@ -1100,7 +1317,7 @@ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTM
1100
1317
  * Optional callback to access the IDeclarativeChart interface. Use this instead of ref for accessing
1101
1318
  * the public methods and properties of the component.
1102
1319
  */
1103
- componentRef?: React_2.RefObject<IDeclarativeChart | null>;
1320
+ componentRef?: React_2.Ref<IDeclarativeChart>;
1104
1321
  /**
1105
1322
  * Optional prop to specify the colorway type of the chart.
1106
1323
  * - 'default': Use Fluent UI color palette aligning with plotly colorway.
@@ -1203,7 +1420,7 @@ export declare interface DonutChartProps extends CartesianChartProps {
1203
1420
  * Optional callback to access the Chart interface. Use this instead of ref for accessing
1204
1421
  * the public methods and properties of the component.
1205
1422
  */
1206
- componentRef?: React_2.RefObject<Chart>;
1423
+ componentRef?: React_2.Ref<Chart>;
1207
1424
  /**
1208
1425
  * Prop to enable the round corners in the chart
1209
1426
  * @default false
@@ -1359,7 +1576,7 @@ export declare interface FunnelChartProps {
1359
1576
  /**
1360
1577
  * Reference to the chart component
1361
1578
  */
1362
- componentRef?: React_2.RefObject<any>;
1579
+ componentRef?: React_2.Ref<Chart>;
1363
1580
  /**
1364
1581
  * Additional CSS class(es) to apply to the chart
1365
1582
  */
@@ -1497,17 +1714,6 @@ export declare interface GanttChartProps extends CartesianChartProps {
1497
1714
  * @default 1/2
1498
1715
  */
1499
1716
  yAxisPadding?: number;
1500
- /**
1501
- * If true, truncates y-axis tick labels longer than `noOfCharsToTruncate` with ellipses
1502
- * and displays them in a tooltip on hover.
1503
- * @default false
1504
- */
1505
- showYAxisLablesTooltip?: boolean;
1506
- /**
1507
- * If true, renders full y-axis tick labels without truncation.
1508
- * @default false
1509
- */
1510
- showYAxisLables?: boolean;
1511
1717
  /**
1512
1718
  * If true, enables gradient fills for the bars.
1513
1719
  * @default false
@@ -1631,7 +1837,7 @@ export declare interface GaugeChartProps {
1631
1837
  * Optional callback to access the Chart interface. Use this instead of ref for accessing
1632
1838
  * the public methods and properties of the component.
1633
1839
  */
1634
- componentRef?: React.RefObject<Chart>;
1840
+ componentRef?: React.Ref<Chart>;
1635
1841
  }
1636
1842
 
1637
1843
  /**
@@ -2102,19 +2308,10 @@ export declare interface HeatMapChartProps extends CartesianChartProps {
2102
2308
  * The prop used to define the culture to localized the numbers
2103
2309
  */
2104
2310
  culture?: string;
2105
- /**
2106
- *@default false
2107
- *Used for showing complete y axis lables */
2108
- showYAxisLables?: boolean;
2109
2311
  /**
2110
2312
  * @default alphabetical
2111
2313
  * The prop used to decide order of string axis labels */
2112
2314
  sortOrder?: 'none' | 'alphabetical';
2113
- /**
2114
- *@default false
2115
- *Used for to elipse y axis labes and show tooltip on x axis labels
2116
- */
2117
- showYAxisLablesTooltip?: boolean;
2118
2315
  }
2119
2316
 
2120
2317
  /**
@@ -2384,15 +2581,6 @@ export declare interface HorizontalBarChartWithAxisProps extends CartesianChartP
2384
2581
  * it's padding between bar's or lines in the graph
2385
2582
  */
2386
2583
  yAxisPadding?: number;
2387
- /**
2388
- *@default false
2389
- *Used for to elipse y axis labes and show tooltip on x axis labels
2390
- */
2391
- showYAxisLablesTooltip?: boolean;
2392
- /**
2393
- *@default false
2394
- *Used for showing complete y axis lables */
2395
- showYAxisLables?: boolean;
2396
2584
  /**
2397
2585
  * @default false
2398
2586
  * The prop used to enable gradient fill color for the chart.
@@ -2480,6 +2668,7 @@ export declare interface HorizontalDataPoint {
2480
2668
 
2481
2669
  declare interface IAxisData {
2482
2670
  yAxisDomainValues: number[];
2671
+ yAxisTickText: string[];
2483
2672
  }
2484
2673
 
2485
2674
  /**
@@ -2604,7 +2793,7 @@ export declare interface Legend {
2604
2793
  */
2605
2794
  export declare interface LegendContainer {
2606
2795
  toSVG: (svgWidth: number, isRTL?: boolean) => {
2607
- node: SVGGElement | null;
2796
+ node: SVGSVGElement | null;
2608
2797
  width: number;
2609
2798
  height: number;
2610
2799
  };
@@ -2737,7 +2926,7 @@ export declare interface LegendsProps {
2737
2926
  /**
2738
2927
  * Callback to access the public methods and properties of the component.
2739
2928
  */
2740
- legendRef?: React_2.RefObject<LegendContainer | null>;
2929
+ legendRef?: React_2.Ref<LegendContainer>;
2741
2930
  }
2742
2931
 
2743
2932
  /**
@@ -3257,11 +3446,11 @@ export declare interface ModifiedCartesianChartProps extends CartesianChartProps
3257
3446
  /**
3258
3447
  * Get the domain and range values
3259
3448
  */
3260
- 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;
3449
+ 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) => IDomainNRange;
3261
3450
  /**
3262
3451
  * Create the string y-axis
3263
3452
  */
3264
- createStringYAxis: (yAxisParams: IYAxisParams, dataPoints: string[], isRtl: boolean, barWidth: number | undefined, chartType?: ChartTypes) => ScaleBand<string>;
3453
+ createStringYAxis: (yAxisParams: IYAxisParams, dataPoints: string[], isRtl: boolean, axisData: IAxisData, barWidth: number | undefined, chartType?: ChartTypes) => ScaleBand<string>;
3265
3454
  /**
3266
3455
  * Controls whether the numeric x-axis domain should be extended to start and end at nice rounded values.
3267
3456
  * @default true
@@ -3326,6 +3515,13 @@ declare interface RenderFunction<P> {
3326
3515
  (props?: P, defaultRender?: (props?: P) => JSXElement | null): JSXElement | null;
3327
3516
  }
3328
3517
 
3518
+ export declare interface ResolvedAnnotationPosition {
3519
+ /** Final absolute position after applying layout and offsets */
3520
+ point: AnnotationPoint;
3521
+ /** Raw anchor position before offsets (used for connectors) */
3522
+ anchor: AnnotationPoint;
3523
+ }
3524
+
3329
3525
  /**
3330
3526
  * Responsive Child props
3331
3527
  * {@docCategory ResponsiveContainer}
@@ -3489,7 +3685,7 @@ export declare interface SankeyChartProps {
3489
3685
  * Optional callback to access the Chart interface. Use this instead of ref for accessing
3490
3686
  * the public methods and properties of the component.
3491
3687
  */
3492
- componentRef?: RefObject<Chart>;
3688
+ componentRef?: Ref<Chart>;
3493
3689
  /**
3494
3690
  * props for the callout in the chart
3495
3691
  */
@@ -3657,10 +3853,6 @@ export declare interface ScatterChartProps extends CartesianChartProps {
3657
3853
  * The prop used to define the culture to localized the numbers
3658
3854
  */
3659
3855
  culture?: string;
3660
- /**
3661
- * The prop used to define the y axis labels tooltip visibility
3662
- */
3663
- showYAxisLablesTooltip?: boolean;
3664
3856
  }
3665
3857
 
3666
3858
  /**
@@ -3718,6 +3910,7 @@ declare interface SLinkExtra {
3718
3910
  */
3719
3911
  value: number;
3720
3912
  unnormalizedValue?: number;
3913
+ color?: string;
3721
3914
  }
3722
3915
 
3723
3916
  export declare type SNode = SankeyNode<SNodeExtra, SLinkExtra>;
@@ -4107,15 +4300,6 @@ export declare interface VerticalStackedBarChartProps extends CartesianChartProp
4107
4300
  * @default 'default'
4108
4301
  */
4109
4302
  mode?: 'default' | 'plotly';
4110
- /**
4111
- *@default false
4112
- *Used for to elipse y axis labes and show tooltip on x axis labels
4113
- */
4114
- showYAxisLablesTooltip?: boolean;
4115
- /**
4116
- *@default false
4117
- *Used for showing complete y axis lables */
4118
- showYAxisLables?: boolean;
4119
4303
  }
4120
4304
 
4121
4305
  /**
@@ -0,0 +1 @@
1
+ export * from './components/AnnotationOnlyChart/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/AnnotationOnlyChart.ts"],"sourcesContent":["export * from './components/AnnotationOnlyChart/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}