@fluentui/react-charting 5.24.31 → 5.24.32
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 +28 -1
- package/CHANGELOG.md +13 -2
- package/dist/react-charting.d.ts +131 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +44 -2
- package/lib/components/AreaChart/AreaChart.base.js +18 -22
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +1 -4
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +81 -43
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +13 -2
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +260 -100
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +7 -2
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +9 -16
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.js +5 -11
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +121 -1
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/utilities.d.ts +18 -4
- package/lib/utilities/utilities.js +14 -5
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +16 -20
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +1 -4
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +80 -42
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +13 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +257 -97
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +7 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +8 -15
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +3 -9
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-amd/index.d.ts +1 -1
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +121 -1
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +18 -4
- package/lib-amd/utilities/utilities.js +16 -6
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +16 -20
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +1 -4
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +80 -42
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +13 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +257 -97
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +7 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +8 -15
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +3 -9
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +121 -1
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +18 -4
- package/lib-commonjs/utilities/utilities.js +16 -6
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,34 @@
|
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 15 Sep 2025 07:20:28 GMT",
|
|
6
|
+
"tag": "@fluentui/react-charting_v5.24.32",
|
|
7
|
+
"version": "5.24.32",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kumarkshitij@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-charting",
|
|
13
|
+
"commit": "0ce8d43a27222f99d83053f6df8c0619590892b7",
|
|
14
|
+
"comment": "feat: add support for lines in GVBC"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "kumarkshitij@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-charting",
|
|
19
|
+
"commit": "79b08d95a8b7c2058ab6809fc36d301489bd01e3",
|
|
20
|
+
"comment": "fix: callout not appearing on scatter chart"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-charting",
|
|
25
|
+
"comment": "Bump @fluentui/chart-utilities to v1.1.31",
|
|
26
|
+
"commit": "0ce8d43a27222f99d83053f6df8c0619590892b7"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Fri, 12 Sep 2025 07:20:43 GMT",
|
|
6
33
|
"tag": "@fluentui/react-charting_v5.24.31",
|
|
7
34
|
"version": "5.24.31",
|
|
8
35
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charting
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 15 Sep 2025 07:20:28 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [5.24.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.32)
|
|
8
|
+
|
|
9
|
+
Mon, 15 Sep 2025 07:20:28 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.31..@fluentui/react-charting_v5.24.32)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- feat: add support for lines in GVBC ([PR #35135](https://github.com/microsoft/fluentui/pull/35135) by kumarkshitij@microsoft.com)
|
|
15
|
+
- fix: callout not appearing on scatter chart ([PR #35185](https://github.com/microsoft/fluentui/pull/35185) by kumarkshitij@microsoft.com)
|
|
16
|
+
- Bump @fluentui/chart-utilities to v1.1.31 ([PR #35135](https://github.com/microsoft/fluentui/pull/35135) by beachball)
|
|
17
|
+
|
|
7
18
|
## [5.24.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.31)
|
|
8
19
|
|
|
9
|
-
Fri, 12 Sep 2025 07:20:
|
|
20
|
+
Fri, 12 Sep 2025 07:20:43 GMT
|
|
10
21
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.30..@fluentui/react-charting_v5.24.31)
|
|
11
22
|
|
|
12
23
|
### Patches
|
package/dist/react-charting.d.ts
CHANGED
|
@@ -416,6 +416,24 @@ declare interface IAxisData {
|
|
|
416
416
|
yAxisDomainValues: number[];
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Represents a bar series.
|
|
421
|
+
*/
|
|
422
|
+
export declare interface IBarSeries<X extends string | number | Date, Y extends string | number | Date> extends IDataSeries {
|
|
423
|
+
/**
|
|
424
|
+
* Type discriminator: always 'bar' for this series.
|
|
425
|
+
*/
|
|
426
|
+
type: 'bar';
|
|
427
|
+
/**
|
|
428
|
+
* Array of data points for the series.
|
|
429
|
+
*/
|
|
430
|
+
data: IDataPointV2<X, Y>[];
|
|
431
|
+
/**
|
|
432
|
+
* Optional group identifier for the series.
|
|
433
|
+
*/
|
|
434
|
+
key?: string;
|
|
435
|
+
}
|
|
436
|
+
|
|
419
437
|
/**
|
|
420
438
|
* {@docCategory IChartData}
|
|
421
439
|
*/
|
|
@@ -1260,6 +1278,82 @@ export declare interface IDataPoint {
|
|
|
1260
1278
|
onClick?: VoidFunction;
|
|
1261
1279
|
}
|
|
1262
1280
|
|
|
1281
|
+
/**
|
|
1282
|
+
* Represents a single data point in a series.
|
|
1283
|
+
*/
|
|
1284
|
+
export declare interface IDataPointV2<X extends string | number | Date, Y extends string | number | Date> {
|
|
1285
|
+
/**
|
|
1286
|
+
* X-axis value of the data point.
|
|
1287
|
+
*/
|
|
1288
|
+
x: X;
|
|
1289
|
+
/**
|
|
1290
|
+
* Y-axis value of the data point.
|
|
1291
|
+
*/
|
|
1292
|
+
y: Y;
|
|
1293
|
+
/**
|
|
1294
|
+
* Optional click handler for the data point.
|
|
1295
|
+
*/
|
|
1296
|
+
onClick?: () => void;
|
|
1297
|
+
/**
|
|
1298
|
+
* Custom text to show in the callout in place of the x-axis value.
|
|
1299
|
+
*/
|
|
1300
|
+
xAxisCalloutData?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Custom text to show in the callout in place of the y-axis value.
|
|
1303
|
+
*/
|
|
1304
|
+
yAxisCalloutData?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* Accessibility properties for the data point.
|
|
1307
|
+
*/
|
|
1308
|
+
callOutAccessibilityData?: IAccessibilityProps;
|
|
1309
|
+
/**
|
|
1310
|
+
* Custom marker size for the data point.
|
|
1311
|
+
*/
|
|
1312
|
+
markerSize?: number;
|
|
1313
|
+
/**
|
|
1314
|
+
* Optional text to annotate or label the data point.
|
|
1315
|
+
*/
|
|
1316
|
+
text?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* Color of the data point. If not provided, it will inherit the series color.
|
|
1319
|
+
*/
|
|
1320
|
+
color?: string;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Base interface for a series.
|
|
1325
|
+
*/
|
|
1326
|
+
export declare interface IDataSeries {
|
|
1327
|
+
/**
|
|
1328
|
+
* Name of the series to be displayed in the legend.
|
|
1329
|
+
*/
|
|
1330
|
+
legend: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Shape used in the legend (e.g., circle, square).
|
|
1333
|
+
*/
|
|
1334
|
+
legendShape?: LegendShape;
|
|
1335
|
+
/**
|
|
1336
|
+
* Color of the series.
|
|
1337
|
+
*/
|
|
1338
|
+
color?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Opacity of the series.
|
|
1341
|
+
*/
|
|
1342
|
+
opacity?: number;
|
|
1343
|
+
/**
|
|
1344
|
+
* Gradient fill for the series (start and end colors).
|
|
1345
|
+
*/
|
|
1346
|
+
gradient?: [string, string];
|
|
1347
|
+
/**
|
|
1348
|
+
* Whether this series should be plotted against a secondary Y-axis.
|
|
1349
|
+
*/
|
|
1350
|
+
useSecondaryYScale?: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* Callback invoked when the legend item is clicked.
|
|
1353
|
+
*/
|
|
1354
|
+
onLegendClick?: (selectedLegend: string | null | string[]) => void;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1263
1357
|
/**
|
|
1264
1358
|
* {@docCategory DeclarativeChart}
|
|
1265
1359
|
*/
|
|
@@ -1952,7 +2046,7 @@ export declare interface IGroupedVerticalBarChartProps extends ICartesianChartPr
|
|
|
1952
2046
|
/**
|
|
1953
2047
|
* Data to render in the chart.
|
|
1954
2048
|
*/
|
|
1955
|
-
data
|
|
2049
|
+
data?: IGroupedVerticalBarChartData[];
|
|
1956
2050
|
/**
|
|
1957
2051
|
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
|
|
1958
2052
|
* which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
|
|
@@ -2042,6 +2136,11 @@ export declare interface IGroupedVerticalBarChartProps extends ICartesianChartPr
|
|
|
2042
2136
|
* @default 'default'
|
|
2043
2137
|
*/
|
|
2044
2138
|
mode?: 'default' | 'plotly';
|
|
2139
|
+
/**
|
|
2140
|
+
* New flexible data prop - supports both bar and line series.
|
|
2141
|
+
* Use `dataV2` instead of `data` when line series are included.
|
|
2142
|
+
*/
|
|
2143
|
+
dataV2?: (IBarSeries<string, number> | ILineSeries<string, number>)[];
|
|
2045
2144
|
}
|
|
2046
2145
|
|
|
2047
2146
|
/**
|
|
@@ -2081,7 +2180,7 @@ export declare interface IGVBarChartSeriesPoint {
|
|
|
2081
2180
|
/**
|
|
2082
2181
|
* Color for the legend in the chart
|
|
2083
2182
|
*/
|
|
2084
|
-
color
|
|
2183
|
+
color?: string;
|
|
2085
2184
|
/**
|
|
2086
2185
|
* Gradient for the legend in the chart. If not provided, it will fallback on the default color palette.
|
|
2087
2186
|
* If provided, it will override the color prop. granted `enableGradient` is set to true for the chart.
|
|
@@ -3207,6 +3306,36 @@ export declare interface ILineDataInVerticalStackedBarChart {
|
|
|
3207
3306
|
lineOptions?: ILineChartLineOptions;
|
|
3208
3307
|
}
|
|
3209
3308
|
|
|
3309
|
+
/**
|
|
3310
|
+
* Represents a line series.
|
|
3311
|
+
*/
|
|
3312
|
+
export declare interface ILineSeries<X extends string | number | Date, Y extends string | number | Date> extends IDataSeries {
|
|
3313
|
+
/**
|
|
3314
|
+
* Type discriminator: always 'line' for this series.
|
|
3315
|
+
*/
|
|
3316
|
+
type: 'line';
|
|
3317
|
+
/**
|
|
3318
|
+
* Array of data points for the series.
|
|
3319
|
+
*/
|
|
3320
|
+
data: IDataPointV2<X, Y>[];
|
|
3321
|
+
/**
|
|
3322
|
+
* Optional gaps to render in the line.
|
|
3323
|
+
*/
|
|
3324
|
+
gaps?: ILineChartGap[];
|
|
3325
|
+
/**
|
|
3326
|
+
* Additional line rendering options (e.g., stroke width, curve type).
|
|
3327
|
+
*/
|
|
3328
|
+
lineOptions?: ILineChartLineOptions;
|
|
3329
|
+
/**
|
|
3330
|
+
* If true, hides dots for inactive (unfocused/unhovered) data points.
|
|
3331
|
+
*/
|
|
3332
|
+
hideInactiveDots?: boolean;
|
|
3333
|
+
/**
|
|
3334
|
+
* Callback invoked when the line itself is clicked.
|
|
3335
|
+
*/
|
|
3336
|
+
onLineClick?: () => void;
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3210
3339
|
/**
|
|
3211
3340
|
* {@docCategory IChartProps}
|
|
3212
3341
|
*/
|