@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.
- package/CHANGELOG.json +40 -1
- package/CHANGELOG.md +15 -2
- package/dist/react-charting.d.ts +17 -1
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +4 -0
- package/lib/components/AreaChart/AreaChart.base.d.ts +3 -1
- package/lib/components/AreaChart/AreaChart.base.js +8 -2
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +26 -4
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/index.d.ts +0 -1
- package/lib/components/DeclarativeChart/index.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.d.ts +3 -1
- package/lib/components/DonutChart/DonutChart.base.js +8 -2
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib/components/GaugeChart/GaugeChart.base.js +7 -1
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js +8 -2
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/Legends/Legends.base.d.ts +8 -2
- package/lib/components/Legends/Legends.base.js +12 -1
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.styles.d.ts +8 -0
- package/lib/components/Legends/Legends.styles.js +21 -8
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/Legends/Legends.types.d.ts +15 -1
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +3 -1
- package/lib/components/LineChart/LineChart.base.js +7 -1
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +4 -0
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +10 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/image-export-utils.d.ts +13 -0
- package/lib/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +65 -63
- package/lib/utilities/image-export-utils.js.map +1 -0
- package/lib/utilities/utilities.d.ts +2 -0
- package/lib/utilities/utilities.js +44 -0
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +7 -2
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +27 -4
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/index.d.ts +0 -1
- package/lib-amd/components/DeclarativeChart/index.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +3 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +7 -2
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +7 -2
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +7 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.d.ts +8 -2
- package/lib-amd/components/Legends/Legends.base.js +12 -2
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/components/Legends/Legends.styles.d.ts +8 -0
- package/lib-amd/components/Legends/Legends.styles.js +22 -9
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
- package/lib-amd/components/Legends/Legends.types.d.ts +15 -1
- package/lib-amd/components/Legends/Legends.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +3 -1
- package/lib-amd/components/LineChart/LineChart.base.js +7 -2
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +4 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +7 -2
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/index.d.ts +2 -2
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +10 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/image-export-utils.d.ts +13 -0
- package/lib-amd/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +69 -67
- package/lib-amd/utilities/image-export-utils.js.map +1 -0
- package/lib-amd/utilities/utilities.d.ts +2 -0
- package/lib-amd/utilities/utilities.js +47 -2
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +7 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +26 -4
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/index.d.ts +0 -1
- package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +3 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +7 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +7 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +3 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +7 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.d.ts +8 -2
- package/lib-commonjs/components/Legends/Legends.base.js +12 -1
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.d.ts +8 -0
- package/lib-commonjs/components/Legends/Legends.styles.js +22 -9
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.d.ts +15 -1
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +3 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +7 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +4 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +3 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +7 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +3 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/index.d.ts +2 -2
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +10 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/image-export-utils.d.ts +13 -0
- package/lib-commonjs/{components/DeclarativeChart/imageExporter.js → utilities/image-export-utils.js} +70 -67
- package/lib-commonjs/utilities/image-export-utils.js.map +1 -0
- package/lib-commonjs/utilities/utilities.d.ts +2 -0
- package/lib-commonjs/utilities/utilities.js +47 -1
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Legends/Legends.types.ts +20 -1
- package/lib/components/DeclarativeChart/imageExporter.d.ts +0 -10
- package/lib/components/DeclarativeChart/imageExporter.js.map +0 -1
- package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +0 -10
- package/lib-amd/components/DeclarativeChart/imageExporter.js.map +0 -1
- package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +0 -10
- 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": "
|
|
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
|
|
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:
|
|
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
|
package/dist/react-charting.d.ts
CHANGED
|
@@ -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
|
|
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
|
/**
|