@fluentui/react-charting 5.23.59 → 5.23.60

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 (173) hide show
  1. package/CHANGELOG.json +40 -1
  2. package/CHANGELOG.md +15 -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 +26 -4
  12. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  13. package/lib/components/DeclarativeChart/index.d.ts +0 -1
  14. package/lib/components/DeclarativeChart/index.js.map +1 -1
  15. package/lib/components/DonutChart/DonutChart.base.d.ts +3 -1
  16. package/lib/components/DonutChart/DonutChart.base.js +8 -2
  17. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  18. package/lib/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  19. package/lib/components/GaugeChart/GaugeChart.base.js +7 -1
  20. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  21. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  22. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
  23. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  24. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  25. package/lib/components/HeatMapChart/HeatMapChart.base.js +8 -2
  26. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  27. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  28. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  30. package/lib/components/Legends/Legends.base.d.ts +8 -2
  31. package/lib/components/Legends/Legends.base.js +12 -1
  32. package/lib/components/Legends/Legends.base.js.map +1 -1
  33. package/lib/components/Legends/Legends.styles.d.ts +8 -0
  34. package/lib/components/Legends/Legends.styles.js +21 -8
  35. package/lib/components/Legends/Legends.styles.js.map +1 -1
  36. package/lib/components/Legends/Legends.types.d.ts +15 -1
  37. package/lib/components/Legends/Legends.types.js.map +1 -1
  38. package/lib/components/LineChart/LineChart.base.d.ts +3 -1
  39. package/lib/components/LineChart/LineChart.base.js +7 -1
  40. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  41. package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  42. package/lib/components/SankeyChart/SankeyChart.base.js +4 -0
  43. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  44. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  45. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  46. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  47. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  48. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  49. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  50. package/lib/index.d.ts +2 -2
  51. package/lib/index.js.map +1 -1
  52. package/lib/types/IDataPoint.d.ts +10 -0
  53. package/lib/types/IDataPoint.js.map +1 -1
  54. package/lib/utilities/image-export-utils.d.ts +13 -0
  55. package/lib/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +65 -63
  56. package/lib/utilities/image-export-utils.js.map +1 -0
  57. package/lib/utilities/utilities.d.ts +2 -0
  58. package/lib/utilities/utilities.js +44 -0
  59. package/lib/utilities/utilities.js.map +1 -1
  60. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -1
  61. package/lib-amd/components/AreaChart/AreaChart.base.js +7 -2
  62. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  63. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  64. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +27 -4
  65. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  66. package/lib-amd/components/DeclarativeChart/index.d.ts +0 -1
  67. package/lib-amd/components/DeclarativeChart/index.js.map +1 -1
  68. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +3 -1
  69. package/lib-amd/components/DonutChart/DonutChart.base.js +7 -2
  70. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  71. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  72. package/lib-amd/components/GaugeChart/GaugeChart.base.js +7 -2
  73. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  74. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  75. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -2
  76. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  77. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  78. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +7 -2
  79. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  80. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  81. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -2
  82. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  83. package/lib-amd/components/Legends/Legends.base.d.ts +8 -2
  84. package/lib-amd/components/Legends/Legends.base.js +12 -2
  85. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  86. package/lib-amd/components/Legends/Legends.styles.d.ts +8 -0
  87. package/lib-amd/components/Legends/Legends.styles.js +22 -9
  88. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  89. package/lib-amd/components/Legends/Legends.types.d.ts +15 -1
  90. package/lib-amd/components/Legends/Legends.types.js.map +1 -1
  91. package/lib-amd/components/LineChart/LineChart.base.d.ts +3 -1
  92. package/lib-amd/components/LineChart/LineChart.base.js +7 -2
  93. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  94. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  95. package/lib-amd/components/SankeyChart/SankeyChart.base.js +4 -1
  96. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  97. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  98. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +7 -2
  99. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  100. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  101. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -2
  102. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  103. package/lib-amd/index.d.ts +2 -2
  104. package/lib-amd/index.js.map +1 -1
  105. package/lib-amd/types/IDataPoint.d.ts +10 -0
  106. package/lib-amd/types/IDataPoint.js.map +1 -1
  107. package/lib-amd/utilities/image-export-utils.d.ts +13 -0
  108. package/lib-amd/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +69 -67
  109. package/lib-amd/utilities/image-export-utils.js.map +1 -0
  110. package/lib-amd/utilities/utilities.d.ts +2 -0
  111. package/lib-amd/utilities/utilities.js +47 -2
  112. package/lib-amd/utilities/utilities.js.map +1 -1
  113. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -1
  114. package/lib-commonjs/components/AreaChart/AreaChart.base.js +7 -1
  115. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  116. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  117. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +26 -4
  118. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  119. package/lib-commonjs/components/DeclarativeChart/index.d.ts +0 -1
  120. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
  121. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +3 -1
  122. package/lib-commonjs/components/DonutChart/DonutChart.base.js +7 -1
  123. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  124. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  125. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +7 -1
  126. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  127. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  128. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
  129. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  130. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  131. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +7 -1
  132. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  133. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  134. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
  135. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  136. package/lib-commonjs/components/Legends/Legends.base.d.ts +8 -2
  137. package/lib-commonjs/components/Legends/Legends.base.js +12 -1
  138. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  139. package/lib-commonjs/components/Legends/Legends.styles.d.ts +8 -0
  140. package/lib-commonjs/components/Legends/Legends.styles.js +22 -9
  141. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  142. package/lib-commonjs/components/Legends/Legends.types.d.ts +15 -1
  143. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  144. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +3 -1
  145. package/lib-commonjs/components/LineChart/LineChart.base.js +7 -1
  146. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  147. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  148. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +4 -0
  149. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  150. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  151. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  152. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  153. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  154. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  155. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  156. package/lib-commonjs/index.d.ts +2 -2
  157. package/lib-commonjs/index.js.map +1 -1
  158. package/lib-commonjs/types/IDataPoint.d.ts +10 -0
  159. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  160. package/lib-commonjs/utilities/image-export-utils.d.ts +13 -0
  161. package/lib-commonjs/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +70 -67
  162. package/lib-commonjs/utilities/image-export-utils.js.map +1 -0
  163. package/lib-commonjs/utilities/utilities.d.ts +2 -0
  164. package/lib-commonjs/utilities/utilities.js +47 -1
  165. package/lib-commonjs/utilities/utilities.js.map +1 -1
  166. package/package.json +4 -4
  167. package/src/components/Legends/Legends.types.ts +20 -1
  168. package/lib/components/DeclarativeChart/imageExporter.d.ts +0 -10
  169. package/lib/components/DeclarativeChart/imageExporter.js.map +0 -1
  170. package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +0 -10
  171. package/lib-amd/components/DeclarativeChart/imageExporter.js.map +0 -1
  172. package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +0 -10
  173. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,46 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 13 Mar 2025 07:20:30 GMT",
5
+ "date": "Fri, 14 Mar 2025 07:21:20 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.60",
7
+ "version": "5.23.60",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "110246001+krkshitij@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "55c5d6937fe6db5f45680ad278810c6597dc41e6",
14
+ "comment": "feat: export legend data and config from Legends component"
15
+ },
16
+ {
17
+ "author": "120183316+srmukher@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "d6fc1d794406f4565dc7fa1f6d7f712f1d54045d",
20
+ "comment": "fix(react-charting): Handle invalid plotly data"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-charting",
25
+ "comment": "Bump @fluentui/react-focus to v8.9.22",
26
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-charting",
31
+ "comment": "Bump @fluentui/theme-samples to v8.7.201",
32
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-charting",
37
+ "comment": "Bump @fluentui/react to v8.122.12",
38
+ "commit": "a0f797cff8980ed3b05cbf73c3e602d97663e4ff"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Thu, 13 Mar 2025 07:20:52 GMT",
6
45
  "tag": "@fluentui/react-charting_v5.23.59",
7
46
  "version": "5.23.59",
8
47
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,25 @@
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 Fri, 14 Mar 2025 07:21:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.60](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.60)
8
+
9
+ Fri, 14 Mar 2025 07:21:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.59..@fluentui/react-charting_v5.23.60)
11
+
12
+ ### Patches
13
+
14
+ - 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)
15
+ - fix(react-charting): Handle invalid plotly data ([PR #33982](https://github.com/microsoft/fluentui/pull/33982) by 120183316+srmukher@users.noreply.github.com)
16
+ - Bump @fluentui/react-focus to v8.9.22 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
17
+ - Bump @fluentui/theme-samples to v8.7.201 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
18
+ - Bump @fluentui/react to v8.122.12 ([PR #33981](https://github.com/microsoft/fluentui/pull/33981) by beachball)
19
+
7
20
  ## [5.23.59](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.59)
8
21
 
9
- Thu, 13 Mar 2025 07:20:30 GMT
22
+ Thu, 13 Mar 2025 07:20:52 GMT
10
23
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.58..@fluentui/react-charting_v5.23.59)
11
24
 
12
25
  ### 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
  /**