@fluentui/react-charting 5.23.28 → 5.23.30

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 (202) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +54 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +31 -0
  7. package/lib/DeclarativeChart.d.ts +1 -1
  8. package/lib/DeclarativeChart.js +1 -1
  9. package/lib/DeclarativeChart.js.map +1 -1
  10. package/lib/components/AreaChart/AreaChart.base.d.ts +4 -1
  11. package/lib/components/AreaChart/AreaChart.base.js +12 -2
  12. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  13. package/lib/components/CommonComponents/CartesianChart.base.d.ts +3 -2
  14. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  15. package/lib/components/CommonComponents/CartesianChart.types.d.ts +11 -2
  16. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  17. package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
  18. package/lib/components/DeclarativeChart/DeclarativeChart.js +27 -22
  19. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  20. package/lib/components/DeclarativeChart/imageExporter.d.ts +10 -0
  21. package/lib/components/DeclarativeChart/imageExporter.js +222 -0
  22. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
  23. package/lib/components/DeclarativeChart/index.d.ts +2 -0
  24. package/lib/components/DeclarativeChart/index.js +2 -0
  25. package/lib/components/DeclarativeChart/index.js.map +1 -0
  26. package/lib/components/DonutChart/Arc/Arc.d.ts +1 -0
  27. package/lib/components/DonutChart/Arc/Arc.js +13 -8
  28. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  29. package/lib/components/DonutChart/Arc/Arc.types.d.ts +1 -1
  30. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  31. package/lib/components/DonutChart/DonutChart.base.d.ts +7 -3
  32. package/lib/components/DonutChart/DonutChart.base.js +55 -26
  33. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  34. package/lib/components/DonutChart/DonutChart.types.d.ts +7 -2
  35. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  36. package/lib/components/DonutChart/Pie/Pie.types.d.ts +1 -1
  37. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  38. package/lib/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  39. package/lib/components/GaugeChart/GaugeChart.base.js +9 -1
  40. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  41. package/lib/components/GaugeChart/GaugeChart.types.d.ts +7 -2
  42. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  43. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
  44. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +12 -2
  45. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  46. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
  47. package/lib/components/HeatMapChart/HeatMapChart.base.js +12 -2
  48. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  49. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
  50. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +12 -2
  51. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  52. package/lib/components/LineChart/LineChart.base.d.ts +4 -1
  53. package/lib/components/LineChart/LineChart.base.js +12 -2
  54. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  55. package/lib/components/SankeyChart/SankeyChart.base.d.ts +3 -3
  56. package/lib/components/SankeyChart/SankeyChart.base.js +2 -1
  57. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  58. package/lib/components/SankeyChart/SankeyChart.types.d.ts +7 -2
  59. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  60. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
  61. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +12 -2
  62. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  63. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
  64. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +12 -2
  65. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  66. package/lib/index.d.ts +2 -2
  67. package/lib/index.js.map +1 -1
  68. package/lib/types/IDataPoint.d.ts +6 -0
  69. package/lib/types/IDataPoint.js.map +1 -1
  70. package/lib-amd/DeclarativeChart.d.ts +1 -1
  71. package/lib-amd/DeclarativeChart.js +2 -2
  72. package/lib-amd/DeclarativeChart.js.map +1 -1
  73. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +4 -1
  74. package/lib-amd/components/AreaChart/AreaChart.base.js +11 -1
  75. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  76. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +3 -2
  77. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  78. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +11 -2
  79. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  80. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
  81. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +27 -24
  82. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  83. package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +10 -0
  84. package/lib-amd/components/DeclarativeChart/imageExporter.js +227 -0
  85. package/lib-amd/components/DeclarativeChart/imageExporter.js.map +1 -0
  86. package/lib-amd/components/DeclarativeChart/index.d.ts +2 -0
  87. package/lib-amd/components/DeclarativeChart/index.js +6 -0
  88. package/lib-amd/components/DeclarativeChart/index.js.map +1 -0
  89. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +1 -0
  90. package/lib-amd/components/DonutChart/Arc/Arc.js +13 -8
  91. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  92. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +1 -1
  93. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -1
  94. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +7 -3
  95. package/lib-amd/components/DonutChart/DonutChart.base.js +54 -25
  96. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  97. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +7 -2
  98. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
  99. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +1 -1
  100. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -1
  101. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  102. package/lib-amd/components/GaugeChart/GaugeChart.base.js +8 -0
  103. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  104. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +7 -2
  105. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  106. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
  107. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +11 -1
  108. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  109. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
  110. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +11 -1
  111. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  112. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
  113. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +11 -1
  114. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  115. package/lib-amd/components/LineChart/LineChart.base.d.ts +4 -1
  116. package/lib-amd/components/LineChart/LineChart.base.js +11 -1
  117. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  118. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +3 -3
  119. package/lib-amd/components/SankeyChart/SankeyChart.base.js +1 -0
  120. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  121. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +7 -2
  122. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  123. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
  124. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +11 -1
  125. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  126. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
  127. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +11 -1
  128. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  129. package/lib-amd/index.d.ts +2 -2
  130. package/lib-amd/index.js.map +1 -1
  131. package/lib-amd/types/IDataPoint.d.ts +6 -0
  132. package/lib-amd/types/IDataPoint.js.map +1 -1
  133. package/lib-commonjs/DeclarativeChart.d.ts +1 -1
  134. package/lib-commonjs/DeclarativeChart.js +1 -1
  135. package/lib-commonjs/DeclarativeChart.js.map +1 -1
  136. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +4 -1
  137. package/lib-commonjs/components/AreaChart/AreaChart.base.js +11 -1
  138. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  139. package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +3 -2
  140. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  141. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +11 -2
  142. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  143. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
  144. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +28 -24
  145. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  146. package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +10 -0
  147. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +226 -0
  148. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
  149. package/lib-commonjs/components/DeclarativeChart/index.d.ts +2 -0
  150. package/lib-commonjs/components/DeclarativeChart/index.js +5 -0
  151. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
  152. package/lib-commonjs/components/DonutChart/Arc/Arc.d.ts +1 -0
  153. package/lib-commonjs/components/DonutChart/Arc/Arc.js +13 -8
  154. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  155. package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +1 -1
  156. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  157. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +7 -3
  158. package/lib-commonjs/components/DonutChart/DonutChart.base.js +54 -25
  159. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  160. package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +7 -2
  161. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  162. package/lib-commonjs/components/DonutChart/Pie/Pie.types.d.ts +1 -1
  163. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  164. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  165. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +8 -0
  166. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  167. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +7 -2
  168. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  169. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
  170. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +11 -1
  171. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  172. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
  173. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +11 -1
  174. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  175. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
  176. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +11 -1
  177. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  178. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +4 -1
  179. package/lib-commonjs/components/LineChart/LineChart.base.js +11 -1
  180. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  181. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +3 -3
  182. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -0
  183. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  184. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +7 -2
  185. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  186. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
  187. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +11 -1
  188. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  189. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
  190. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +11 -1
  191. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  192. package/lib-commonjs/index.d.ts +2 -2
  193. package/lib-commonjs/index.js.map +1 -1
  194. package/lib-commonjs/types/IDataPoint.d.ts +6 -0
  195. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  196. package/package.json +4 -4
  197. package/src/components/CommonComponents/CartesianChart.types.ts +13 -1
  198. package/src/components/DonutChart/Arc/Arc.types.ts +1 -1
  199. package/src/components/DonutChart/DonutChart.types.ts +8 -2
  200. package/src/components/DonutChart/Pie/Pie.types.ts +1 -1
  201. package/src/components/GaugeChart/GaugeChart.types.ts +8 -2
  202. package/src/components/SankeyChart/SankeyChart.types.ts +8 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,55 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 20 Dec 2024 07:19:41 GMT",
5
+ "date": "Wed, 25 Dec 2024 07:21:37 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.30",
7
+ "version": "5.23.30",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "120183316+srmukher@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "fa08fec97a5bc070e2866633c792f7066f0c86e8",
14
+ "comment": "Legends multi selection for Donut Charts"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 23 Dec 2024 07:22:57 GMT",
21
+ "tag": "@fluentui/react-charting_v5.23.29",
22
+ "version": "5.23.29",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "110246001+krkshitij@users.noreply.github.com",
27
+ "package": "@fluentui/react-charting",
28
+ "commit": "7b4a3785c6c1d7c207602cad0a1795e3df9122ee",
29
+ "comment": "feat: add functionality to export chart as image"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui/react-charting",
34
+ "comment": "Bump @fluentui/react-focus to v8.9.20",
35
+ "commit": "7b4a3785c6c1d7c207602cad0a1795e3df9122ee"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-charting",
40
+ "comment": "Bump @fluentui/theme-samples to v8.7.191",
41
+ "commit": "7b4a3785c6c1d7c207602cad0a1795e3df9122ee"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-charting",
46
+ "comment": "Bump @fluentui/react to v8.122.2",
47
+ "commit": "7b4a3785c6c1d7c207602cad0a1795e3df9122ee"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Fri, 20 Dec 2024 07:20:00 GMT",
6
54
  "tag": "@fluentui/react-charting_v5.23.28",
7
55
  "version": "5.23.28",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Fri, 20 Dec 2024 07:19:41 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 25 Dec 2024 07:21:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.30)
8
+
9
+ Wed, 25 Dec 2024 07:21:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.29..@fluentui/react-charting_v5.23.30)
11
+
12
+ ### Patches
13
+
14
+ - Legends multi selection for Donut Charts ([PR #33447](https://github.com/microsoft/fluentui/pull/33447) by 120183316+srmukher@users.noreply.github.com)
15
+
16
+ ## [5.23.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.29)
17
+
18
+ Mon, 23 Dec 2024 07:22:57 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.28..@fluentui/react-charting_v5.23.29)
20
+
21
+ ### Patches
22
+
23
+ - feat: add functionality to export chart as image ([PR #33445](https://github.com/microsoft/fluentui/pull/33445) by 110246001+krkshitij@users.noreply.github.com)
24
+ - Bump @fluentui/react-focus to v8.9.20 ([PR #33445](https://github.com/microsoft/fluentui/pull/33445) by beachball)
25
+ - Bump @fluentui/theme-samples to v8.7.191 ([PR #33445](https://github.com/microsoft/fluentui/pull/33445) by beachball)
26
+ - Bump @fluentui/react to v8.122.2 ([PR #33445](https://github.com/microsoft/fluentui/pull/33445) by beachball)
27
+
7
28
  ## [5.23.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.28)
8
29
 
9
- Fri, 20 Dec 2024 07:19:41 GMT
30
+ Fri, 20 Dec 2024 07:20:00 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.27..@fluentui/react-charting_v5.23.28)
11
32
 
12
33
  ### Patches
@@ -6,6 +6,7 @@ import { IFocusZoneProps } from '@fluentui/react-focus';
6
6
  import { IHoverCardStyleProps } from '@fluentui/react/lib/HoverCard';
7
7
  import { IHoverCardStyles } from '@fluentui/react/lib/HoverCard';
8
8
  import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
9
+ import { IRefObject } from '@fluentui/react/lib/Utilities';
9
10
  import { IRenderFunction } from '@fluentui/react/lib/Utilities';
10
11
  import { IStyle } from '@fluentui/react/lib/Styling';
11
12
  import { IStyle as IStyle_2 } from '@fluentui/react';
@@ -155,6 +156,11 @@ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTM
155
156
  * Callback when an event occurs
156
157
  */
157
158
  onSchemaChange?: (eventData: Schema) => void;
159
+ /**
160
+ * Optional callback to access the IDeclarativeChart interface. Use this instead of ref for accessing
161
+ * the public methods and properties of the component.
162
+ */
163
+ componentRef?: IRefObject<IDeclarativeChart>;
158
164
  }
159
165
 
160
166
  /**
@@ -551,6 +557,11 @@ export declare interface ICartesianChartProps {
551
557
  * Used for enabling negative values in Y axis.
552
558
  */
553
559
  supportNegativeData?: boolean;
560
+ /**
561
+ * Optional callback to access the IChart interface. Use this instead of ref for accessing
562
+ * the public methods and properties of the component.
563
+ */
564
+ componentRef?: IRefObject<IChart>;
554
565
  }
555
566
 
556
567
  /**
@@ -683,6 +694,13 @@ export declare interface ICartesianChartStyles {
683
694
  chartWrapper?: IStyle;
684
695
  }
685
696
 
697
+ /**
698
+ * {@docCategory Chart}
699
+ */
700
+ export declare interface IChart {
701
+ chartContainer: HTMLElement | null;
702
+ }
703
+
686
704
  /**
687
705
  * {@docCategory IChartData}
688
706
  */
@@ -947,6 +965,13 @@ export declare interface IDataPoint {
947
965
  onClick?: VoidFunction;
948
966
  }
949
967
 
968
+ /**
969
+ * {@docCategory DeclarativeChart}
970
+ */
971
+ export declare interface IDeclarativeChart {
972
+ exportAsImage: (opts?: IImageExportOptions) => Promise<string>;
973
+ }
974
+
950
975
  declare interface IDomainNRange {
951
976
  dStartValue: number | Date;
952
977
  dEndValue: number | Date;
@@ -1010,6 +1035,11 @@ export declare interface IDonutChartProps extends ICartesianChartProps {
1010
1035
  * @default false
1011
1036
  */
1012
1037
  roundCorners?: boolean;
1038
+ /**
1039
+ * Optional callback to access the IChart interface. Use this instead of ref for accessing
1040
+ * the public methods and properties of the component.
1041
+ */
1042
+ componentRef?: IRefObject<IChart>;
1013
1043
  }
1014
1044
 
1015
1045
  /**
@@ -1150,6 +1180,11 @@ export declare interface IGaugeChartProps {
1150
1180
  * @default false
1151
1181
  */
1152
1182
  roundCorners?: boolean;
1183
+ /**
1184
+ * Optional callback to access the IChart interface. Use this instead of ref for accessing
1185
+ * the public methods and properties of the component.
1186
+ */
1187
+ componentRef?: IRefObject<IChart>;
1153
1188
  }
1154
1189
 
1155
1190
  /**
@@ -2047,6 +2082,16 @@ export declare interface IHorizontalDataPoint {
2047
2082
  y: number;
2048
2083
  }
2049
2084
 
2085
+ /**
2086
+ * {@docCategory DeclarativeChart}
2087
+ */
2088
+ export declare interface IImageExportOptions {
2089
+ width?: number;
2090
+ height?: number;
2091
+ scale?: number;
2092
+ background?: string;
2093
+ }
2094
+
2050
2095
  /**
2051
2096
  * @public
2052
2097
  * ILegend interface
@@ -2736,6 +2781,10 @@ export declare interface IModifiedCartesianChartProps extends ICartesianChartPro
2736
2781
  * Create the string y-axis
2737
2782
  */
2738
2783
  createStringYAxis: (yAxisParams: IYAxisParams, dataPoints: string[], isRtl: boolean, barWidth: number | undefined) => ScaleBand<string>;
2784
+ /**
2785
+ * Callback to access the public methods and properties of the component.
2786
+ */
2787
+ ref?: IRefObject<IChart>;
2739
2788
  }
2740
2789
 
2741
2790
  /**
@@ -3125,6 +3174,11 @@ export declare interface ISankeyChartProps {
3125
3174
  * @default true
3126
3175
  */
3127
3176
  enableReflow?: boolean;
3177
+ /**
3178
+ * Optional callback to access the IChart interface. Use this instead of ref for accessing
3179
+ * the public methods and properties of the component.
3180
+ */
3181
+ componentRef?: IRefObject<IChart>;
3128
3182
  }
3129
3183
 
3130
3184
  /**