@fluentui/react-charting 5.23.59 → 5.23.61

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 (179) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/dist/react-charting.d.ts +17 -1
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +4 -0
  7. package/lib/components/AreaChart/AreaChart.base.d.ts +3 -1
  8. package/lib/components/AreaChart/AreaChart.base.js +8 -2
  9. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  10. package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  11. package/lib/components/DeclarativeChart/DeclarativeChart.js +36 -8
  12. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  13. package/lib/components/DeclarativeChart/PlotlySchema.d.ts +1 -0
  14. package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -1
  15. package/lib/components/DeclarativeChart/index.d.ts +0 -1
  16. package/lib/components/DeclarativeChart/index.js.map +1 -1
  17. package/lib/components/DonutChart/DonutChart.base.d.ts +3 -1
  18. package/lib/components/DonutChart/DonutChart.base.js +8 -2
  19. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  20. package/lib/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  21. package/lib/components/GaugeChart/GaugeChart.base.js +7 -1
  22. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  23. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  24. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
  25. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  26. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  27. package/lib/components/HeatMapChart/HeatMapChart.base.js +8 -2
  28. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  30. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
  31. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  32. package/lib/components/Legends/Legends.base.d.ts +8 -2
  33. package/lib/components/Legends/Legends.base.js +12 -1
  34. package/lib/components/Legends/Legends.base.js.map +1 -1
  35. package/lib/components/Legends/Legends.styles.d.ts +8 -0
  36. package/lib/components/Legends/Legends.styles.js +21 -8
  37. package/lib/components/Legends/Legends.styles.js.map +1 -1
  38. package/lib/components/Legends/Legends.types.d.ts +15 -1
  39. package/lib/components/Legends/Legends.types.js.map +1 -1
  40. package/lib/components/LineChart/LineChart.base.d.ts +3 -1
  41. package/lib/components/LineChart/LineChart.base.js +7 -1
  42. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  43. package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  44. package/lib/components/SankeyChart/SankeyChart.base.js +4 -0
  45. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  46. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  47. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  48. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  49. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  50. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  51. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  52. package/lib/index.d.ts +2 -2
  53. package/lib/index.js.map +1 -1
  54. package/lib/types/IDataPoint.d.ts +10 -0
  55. package/lib/types/IDataPoint.js.map +1 -1
  56. package/lib/utilities/image-export-utils.d.ts +13 -0
  57. package/lib/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +65 -63
  58. package/lib/utilities/image-export-utils.js.map +1 -0
  59. package/lib/utilities/utilities.d.ts +2 -0
  60. package/lib/utilities/utilities.js +44 -0
  61. package/lib/utilities/utilities.js.map +1 -1
  62. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -1
  63. package/lib-amd/components/AreaChart/AreaChart.base.js +7 -2
  64. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  65. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  66. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +37 -8
  67. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  68. package/lib-amd/components/DeclarativeChart/PlotlySchema.d.ts +1 -0
  69. package/lib-amd/components/DeclarativeChart/PlotlySchema.js.map +1 -1
  70. package/lib-amd/components/DeclarativeChart/index.d.ts +0 -1
  71. package/lib-amd/components/DeclarativeChart/index.js.map +1 -1
  72. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +3 -1
  73. package/lib-amd/components/DonutChart/DonutChart.base.js +7 -2
  74. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  75. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  76. package/lib-amd/components/GaugeChart/GaugeChart.base.js +7 -2
  77. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  78. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  79. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -2
  80. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  81. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  82. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +7 -2
  83. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  84. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  85. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -2
  86. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  87. package/lib-amd/components/Legends/Legends.base.d.ts +8 -2
  88. package/lib-amd/components/Legends/Legends.base.js +12 -2
  89. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  90. package/lib-amd/components/Legends/Legends.styles.d.ts +8 -0
  91. package/lib-amd/components/Legends/Legends.styles.js +22 -9
  92. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  93. package/lib-amd/components/Legends/Legends.types.d.ts +15 -1
  94. package/lib-amd/components/Legends/Legends.types.js.map +1 -1
  95. package/lib-amd/components/LineChart/LineChart.base.d.ts +3 -1
  96. package/lib-amd/components/LineChart/LineChart.base.js +7 -2
  97. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  98. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  99. package/lib-amd/components/SankeyChart/SankeyChart.base.js +4 -1
  100. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  101. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  102. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +7 -2
  103. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  104. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  105. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -2
  106. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  107. package/lib-amd/index.d.ts +2 -2
  108. package/lib-amd/index.js.map +1 -1
  109. package/lib-amd/types/IDataPoint.d.ts +10 -0
  110. package/lib-amd/types/IDataPoint.js.map +1 -1
  111. package/lib-amd/utilities/image-export-utils.d.ts +13 -0
  112. package/lib-amd/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +69 -67
  113. package/lib-amd/utilities/image-export-utils.js.map +1 -0
  114. package/lib-amd/utilities/utilities.d.ts +2 -0
  115. package/lib-amd/utilities/utilities.js +47 -2
  116. package/lib-amd/utilities/utilities.js.map +1 -1
  117. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -1
  118. package/lib-commonjs/components/AreaChart/AreaChart.base.js +7 -1
  119. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  120. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  121. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +36 -8
  122. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  123. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.d.ts +1 -0
  124. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -1
  125. package/lib-commonjs/components/DeclarativeChart/index.d.ts +0 -1
  126. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
  127. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +3 -1
  128. package/lib-commonjs/components/DonutChart/DonutChart.base.js +7 -1
  129. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  130. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  131. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +7 -1
  132. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  133. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  134. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
  135. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  136. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  137. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +7 -1
  138. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  139. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  140. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
  141. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  142. package/lib-commonjs/components/Legends/Legends.base.d.ts +8 -2
  143. package/lib-commonjs/components/Legends/Legends.base.js +12 -1
  144. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  145. package/lib-commonjs/components/Legends/Legends.styles.d.ts +8 -0
  146. package/lib-commonjs/components/Legends/Legends.styles.js +22 -9
  147. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  148. package/lib-commonjs/components/Legends/Legends.types.d.ts +15 -1
  149. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  150. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +3 -1
  151. package/lib-commonjs/components/LineChart/LineChart.base.js +7 -1
  152. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  153. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  154. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +4 -0
  155. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  156. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  157. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  158. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  159. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  160. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  161. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  162. package/lib-commonjs/index.d.ts +2 -2
  163. package/lib-commonjs/index.js.map +1 -1
  164. package/lib-commonjs/types/IDataPoint.d.ts +10 -0
  165. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  166. package/lib-commonjs/utilities/image-export-utils.d.ts +13 -0
  167. package/lib-commonjs/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +70 -67
  168. package/lib-commonjs/utilities/image-export-utils.js.map +1 -0
  169. package/lib-commonjs/utilities/utilities.d.ts +2 -0
  170. package/lib-commonjs/utilities/utilities.js +47 -1
  171. package/lib-commonjs/utilities/utilities.js.map +1 -1
  172. package/package.json +4 -4
  173. package/src/components/Legends/Legends.types.ts +20 -1
  174. package/lib/components/DeclarativeChart/imageExporter.d.ts +0 -10
  175. package/lib/components/DeclarativeChart/imageExporter.js.map +0 -1
  176. package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +0 -10
  177. package/lib-amd/components/DeclarativeChart/imageExporter.js.map +0 -1
  178. package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +0 -10
  179. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,61 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 13 Mar 2025 07:20:30 GMT",
5
+ "date": "Tue, 18 Mar 2025 07:20:41 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.61",
7
+ "version": "5.23.61",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "120183316+srmukher@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "abfa990bec31196f69da7c17c26b4b99c3bf5a68",
14
+ "comment": "fix(react-charting): Handle unsupported chart types Gantt and Contour"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 14 Mar 2025 07:23:15 GMT",
21
+ "tag": "@fluentui/react-charting_v5.23.60",
22
+ "version": "5.23.60",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "110246001+krkshitij@users.noreply.github.com",
27
+ "package": "@fluentui/react-charting",
28
+ "commit": "55c5d6937fe6db5f45680ad278810c6597dc41e6",
29
+ "comment": "feat: export legend data and config from Legends component"
30
+ },
31
+ {
32
+ "author": "120183316+srmukher@users.noreply.github.com",
33
+ "package": "@fluentui/react-charting",
34
+ "commit": "d6fc1d794406f4565dc7fa1f6d7f712f1d54045d",
35
+ "comment": "fix(react-charting): Handle invalid plotly data"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-charting",
40
+ "comment": "Bump @fluentui/react-focus to v8.9.22",
41
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-charting",
46
+ "comment": "Bump @fluentui/theme-samples to v8.7.201",
47
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-charting",
52
+ "comment": "Bump @fluentui/react to v8.122.12",
53
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Thu, 13 Mar 2025 07:20:52 GMT",
6
60
  "tag": "@fluentui/react-charting_v5.23.59",
7
61
  "version": "5.23.59",
8
62
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,34 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Thu, 13 Mar 2025 07:20:30 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 18 Mar 2025 07:20:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.61](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.61)
8
+
9
+ Tue, 18 Mar 2025 07:20:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.60..@fluentui/react-charting_v5.23.61)
11
+
12
+ ### Patches
13
+
14
+ - fix(react-charting): Handle unsupported chart types Gantt and Contour ([PR #34005](https://github.com/microsoft/fluentui/pull/34005) by 120183316+srmukher@users.noreply.github.com)
15
+
16
+ ## [5.23.60](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.60)
17
+
18
+ Fri, 14 Mar 2025 07:23:15 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.59..@fluentui/react-charting_v5.23.60)
20
+
21
+ ### Patches
22
+
23
+ - feat: export legend data and config from Legends component ([PR #33847](https://github.com/microsoft/fluentui/pull/33847) by 110246001+krkshitij@users.noreply.github.com)
24
+ - fix(react-charting): Handle invalid plotly data ([PR #33982](https://github.com/microsoft/fluentui/pull/33982) by 120183316+srmukher@users.noreply.github.com)
25
+ - Bump @fluentui/react-focus to v8.9.22 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
26
+ - Bump @fluentui/theme-samples to v8.7.201 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
27
+ - Bump @fluentui/react to v8.122.12 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
28
+
7
29
  ## [5.23.59](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.59)
8
30
 
9
- Thu, 13 Mar 2025 07:20:30 GMT
31
+ Thu, 13 Mar 2025 07:20:52 GMT
10
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.58..@fluentui/react-charting_v5.23.59)
11
33
 
12
34
  ### Patches
@@ -718,6 +718,7 @@ export declare interface ICartesianChartStyles {
718
718
  */
719
719
  export declare interface IChart {
720
720
  chartContainer: HTMLElement | null;
721
+ toImage?: (opts?: IImageExportOptions) => Promise<string>;
721
722
  }
722
723
 
723
724
  /**
@@ -2115,7 +2116,7 @@ export declare interface IHorizontalDataPoint {
2115
2116
  }
2116
2117
 
2117
2118
  /**
2118
- * {@docCategory DeclarativeChart}
2119
+ * {@docCategory Chart}
2119
2120
  */
2120
2121
  export declare interface IImageExportOptions {
2121
2122
  width?: number;
@@ -2169,6 +2170,17 @@ export declare interface ILegend {
2169
2170
  nativeButtonProps?: React_2.ButtonHTMLAttributes<HTMLButtonElement>;
2170
2171
  }
2171
2172
 
2173
+ /**
2174
+ * {@docCategory Legends}
2175
+ */
2176
+ declare interface ILegendContainer {
2177
+ toSVG: (svgWidth: number, isRTL?: boolean) => {
2178
+ node: SVGGElement | null;
2179
+ width: number;
2180
+ height: number;
2181
+ };
2182
+ }
2183
+
2172
2184
  export declare interface ILegendDataItem {
2173
2185
  /**
2174
2186
  * Text to be displayed for legend item.
@@ -2297,6 +2309,10 @@ export declare interface ILegendsProps {
2297
2309
  * The shape for the legend.
2298
2310
  */
2299
2311
  shape?: LegendShape;
2312
+ /**
2313
+ * Callback to access the public methods and properties of the component.
2314
+ */
2315
+ ref?: IRefObject<ILegendContainer>;
2300
2316
  }
2301
2317
 
2302
2318
  /**