@fluentui/react-charting 5.23.58 → 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 (186) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/dist/react-charting.d.ts +26 -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 +6 -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 +35 -12
  12. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  13. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +8 -4
  14. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.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 +11 -1
  41. package/lib/components/LineChart/LineChart.base.js +101 -23
  42. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  43. package/lib/components/LineChart/LineChart.types.d.ts +5 -0
  44. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  45. package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  46. package/lib/components/SankeyChart/SankeyChart.base.js +4 -0
  47. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  48. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  49. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  50. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  51. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  52. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  53. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  54. package/lib/index.d.ts +2 -2
  55. package/lib/index.js.map +1 -1
  56. package/lib/types/IDataPoint.d.ts +14 -0
  57. package/lib/types/IDataPoint.js.map +1 -1
  58. package/lib/utilities/image-export-utils.d.ts +13 -0
  59. package/lib/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +65 -63
  60. package/lib/utilities/image-export-utils.js.map +1 -0
  61. package/lib/utilities/utilities.d.ts +2 -0
  62. package/lib/utilities/utilities.js +44 -0
  63. package/lib/utilities/utilities.js.map +1 -1
  64. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -1
  65. package/lib-amd/components/AreaChart/AreaChart.base.js +7 -2
  66. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  67. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  68. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +36 -12
  69. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  70. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +8 -4
  71. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  72. package/lib-amd/components/DeclarativeChart/index.d.ts +0 -1
  73. package/lib-amd/components/DeclarativeChart/index.js.map +1 -1
  74. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +3 -1
  75. package/lib-amd/components/DonutChart/DonutChart.base.js +7 -2
  76. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  77. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  78. package/lib-amd/components/GaugeChart/GaugeChart.base.js +7 -2
  79. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  80. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  81. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -2
  82. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  83. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  84. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +7 -2
  85. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  86. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  87. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -2
  88. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  89. package/lib-amd/components/Legends/Legends.base.d.ts +8 -2
  90. package/lib-amd/components/Legends/Legends.base.js +12 -2
  91. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  92. package/lib-amd/components/Legends/Legends.styles.d.ts +8 -0
  93. package/lib-amd/components/Legends/Legends.styles.js +22 -9
  94. package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
  95. package/lib-amd/components/Legends/Legends.types.d.ts +15 -1
  96. package/lib-amd/components/Legends/Legends.types.js.map +1 -1
  97. package/lib-amd/components/LineChart/LineChart.base.d.ts +11 -1
  98. package/lib-amd/components/LineChart/LineChart.base.js +100 -24
  99. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  100. package/lib-amd/components/LineChart/LineChart.types.d.ts +5 -0
  101. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -1
  102. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  103. package/lib-amd/components/SankeyChart/SankeyChart.base.js +4 -1
  104. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  105. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  106. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +7 -2
  107. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  108. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  109. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -2
  110. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  111. package/lib-amd/index.d.ts +2 -2
  112. package/lib-amd/index.js.map +1 -1
  113. package/lib-amd/types/IDataPoint.d.ts +14 -0
  114. package/lib-amd/types/IDataPoint.js.map +1 -1
  115. package/lib-amd/utilities/image-export-utils.d.ts +13 -0
  116. package/lib-amd/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +69 -67
  117. package/lib-amd/utilities/image-export-utils.js.map +1 -0
  118. package/lib-amd/utilities/utilities.d.ts +2 -0
  119. package/lib-amd/utilities/utilities.js +47 -2
  120. package/lib-amd/utilities/utilities.js.map +1 -1
  121. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -1
  122. package/lib-commonjs/components/AreaChart/AreaChart.base.js +7 -1
  123. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  124. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
  125. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +35 -12
  126. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  127. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +8 -4
  128. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  129. package/lib-commonjs/components/DeclarativeChart/index.d.ts +0 -1
  130. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
  131. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +3 -1
  132. package/lib-commonjs/components/DonutChart/DonutChart.base.js +7 -1
  133. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  134. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
  135. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +7 -1
  136. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  137. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
  138. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
  139. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  140. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
  141. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +7 -1
  142. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  143. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
  144. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
  145. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  146. package/lib-commonjs/components/Legends/Legends.base.d.ts +8 -2
  147. package/lib-commonjs/components/Legends/Legends.base.js +12 -1
  148. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  149. package/lib-commonjs/components/Legends/Legends.styles.d.ts +8 -0
  150. package/lib-commonjs/components/Legends/Legends.styles.js +22 -9
  151. package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
  152. package/lib-commonjs/components/Legends/Legends.types.d.ts +15 -1
  153. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  154. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +11 -1
  155. package/lib-commonjs/components/LineChart/LineChart.base.js +101 -23
  156. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  157. package/lib-commonjs/components/LineChart/LineChart.types.d.ts +5 -0
  158. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  159. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -1
  160. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +4 -0
  161. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  162. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
  163. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
  164. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  165. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
  166. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
  167. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  168. package/lib-commonjs/index.d.ts +2 -2
  169. package/lib-commonjs/index.js.map +1 -1
  170. package/lib-commonjs/types/IDataPoint.d.ts +14 -0
  171. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  172. package/lib-commonjs/utilities/image-export-utils.d.ts +13 -0
  173. package/lib-commonjs/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +70 -67
  174. package/lib-commonjs/utilities/image-export-utils.js.map +1 -0
  175. package/lib-commonjs/utilities/utilities.d.ts +2 -0
  176. package/lib-commonjs/utilities/utilities.js +47 -1
  177. package/lib-commonjs/utilities/utilities.js.map +1 -1
  178. package/package.json +4 -4
  179. package/src/components/Legends/Legends.types.ts +20 -1
  180. package/src/components/LineChart/LineChart.types.ts +6 -0
  181. package/lib/components/DeclarativeChart/imageExporter.d.ts +0 -10
  182. package/lib/components/DeclarativeChart/imageExporter.js.map +0 -1
  183. package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +0 -10
  184. package/lib-amd/components/DeclarativeChart/imageExporter.js.map +0 -1
  185. package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +0 -10
  186. 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, 27 Feb 2025 07:15: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",
45
+ "tag": "@fluentui/react-charting_v5.23.59",
46
+ "version": "5.23.59",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "74965306+Anush2303@users.noreply.github.com",
51
+ "package": "@fluentui/react-charting",
52
+ "commit": "58315456a6b4b0130aa1dd946e6b6c98d25ca2d1",
53
+ "comment": "Create Scatter plot"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Thu, 27 Feb 2025 07:15:49 GMT",
6
60
  "tag": "@fluentui/react-charting_v5.23.58",
7
61
  "version": "5.23.58",
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, 27 Feb 2025 07:15: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
+
20
+ ## [5.23.59](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.59)
21
+
22
+ Thu, 13 Mar 2025 07:20:52 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.58..@fluentui/react-charting_v5.23.59)
24
+
25
+ ### Patches
26
+
27
+ - Create Scatter plot ([PR #33843](https://github.com/microsoft/fluentui/pull/33843) by 74965306+Anush2303@users.noreply.github.com)
28
+
7
29
  ## [5.23.58](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.58)
8
30
 
9
- Thu, 27 Feb 2025 07:15:30 GMT
31
+ Thu, 27 Feb 2025 07:15:49 GMT
10
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.57..@fluentui/react-charting_v5.23.58)
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
  /**
@@ -2411,6 +2427,10 @@ export declare interface ILineChartDataPoint {
2411
2427
  * X axis Accessibility data for callout
2412
2428
  */
2413
2429
  xAxisCalloutAccessibilityData?: IAccessibilityProps;
2430
+ /**
2431
+ * Marker size of the points
2432
+ */
2433
+ markerSize?: number;
2414
2434
  }
2415
2435
 
2416
2436
  /**
@@ -2562,6 +2582,11 @@ export declare interface ILineChartProps extends ICartesianChartProps {
2562
2582
  * The prop used to enable the perf optimization
2563
2583
  */
2564
2584
  enablePerfOptimization?: boolean;
2585
+ /**
2586
+ * @default default
2587
+ * The prop used to define line chart mode(default or scatter)
2588
+ */
2589
+ lineMode?: 'default' | 'scatter';
2565
2590
  }
2566
2591
 
2567
2592
  /**