@fluentui/react-charting 5.24.24 → 5.24.25
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 +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-charting.d.ts +55 -1
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +9 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +10 -5
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +16 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +165 -29
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +37 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/utilities.d.ts +7 -3
- package/lib/utilities/utilities.js +131 -17
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +10 -5
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +16 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +167 -32
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.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 +37 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +7 -3
- package/lib-amd/utilities/utilities.js +132 -16
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +10 -5
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +16 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +167 -31
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.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 +37 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +7 -3
- package/lib-commonjs/utilities/utilities.js +132 -16
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CommonComponents/CartesianChart.types.ts +19 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 21 Aug 2025 12:14:43 GMT",
|
|
6
|
+
"tag": "@fluentui/react-charting_v5.24.25",
|
|
7
|
+
"version": "5.24.25",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kumarkshitij@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-charting",
|
|
13
|
+
"commit": "0983f8e39ab375d87f5124c17821a618971881c0",
|
|
14
|
+
"comment": "feat: add support for tickmode in DeclarativeChart"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 15 Aug 2025 07:21:22 GMT",
|
|
6
21
|
"tag": "@fluentui/react-charting_v5.24.24",
|
|
7
22
|
"version": "5.24.24",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charting
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 21 Aug 2025 12:14:43 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [5.24.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.25)
|
|
8
|
+
|
|
9
|
+
Thu, 21 Aug 2025 12:14:43 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.24..@fluentui/react-charting_v5.24.25)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- feat: add support for tickmode in DeclarativeChart ([PR #35039](https://github.com/microsoft/fluentui/pull/35039) by kumarkshitij@microsoft.com)
|
|
15
|
+
|
|
7
16
|
## [5.24.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.24)
|
|
8
17
|
|
|
9
|
-
Fri, 15 Aug 2025 07:
|
|
18
|
+
Fri, 15 Aug 2025 07:21:22 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.23..@fluentui/react-charting_v5.24.24)
|
|
11
20
|
|
|
12
21
|
### Patches
|
package/dist/react-charting.d.ts
CHANGED
|
@@ -47,6 +47,44 @@ export declare const AreaChart: React_2.FunctionComponent<IAreaChartProps>;
|
|
|
47
47
|
*/
|
|
48
48
|
export declare type AxisCategoryOrder = 'default' | 'data' | string[] | 'category ascending' | 'category descending' | 'total ascending' | 'total descending' | 'min ascending' | 'min descending' | 'max ascending' | 'max descending' | 'sum ascending' | 'sum descending' | 'mean ascending' | 'mean descending' | 'median ascending' | 'median descending';
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Configuration options for an axis.
|
|
52
|
+
*
|
|
53
|
+
* {@docCategory CartesianChart}
|
|
54
|
+
*/
|
|
55
|
+
export declare type AxisProps = {
|
|
56
|
+
/**
|
|
57
|
+
* Defines the step between tick marks on the axis.
|
|
58
|
+
* Works in combination with `tick0`.
|
|
59
|
+
* Must be a positive number.
|
|
60
|
+
*
|
|
61
|
+
* - **Log scale**:
|
|
62
|
+
* - Ticks are placed at `10^(n * tickStep)` where `n` is the tick index.
|
|
63
|
+
* - Example: `tickStep = 2` → ticks at 1, 100, 10,000...
|
|
64
|
+
* - Example: `tickStep = log10(5)` → ticks at 1, 5, 25, 125...
|
|
65
|
+
* - Special format `"L<f>"`: Creates ticks that are linearly spaced in value (not position).
|
|
66
|
+
* - Example: `tick0 = 0.1`, `tickStep = "L0.5"` → ticks at 0.1, 0.6, 1.1, 1.6...
|
|
67
|
+
*
|
|
68
|
+
* - **Date axis**:
|
|
69
|
+
* - Must be in milliseconds.
|
|
70
|
+
* - Example: one day = `tickStep = 86400000`.
|
|
71
|
+
* - Special format `"M<n>"`: Places ticks every `n` months.
|
|
72
|
+
* - Example: `tick0 = "2000-01-15"`, `tickStep = "M3"` → ticks on the 15th every third month.
|
|
73
|
+
* - Example: `tickStep = "M48"` → ticks every 4 years.
|
|
74
|
+
*/
|
|
75
|
+
tickStep?: number | string;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the reference value for axis ticks.
|
|
78
|
+
* Works in combination with `tickStep`.
|
|
79
|
+
*
|
|
80
|
+
* - **Log scale**:
|
|
81
|
+
* - `tick0` must be given as the logarithm of the reference tick.
|
|
82
|
+
* - Example: to align ticks with 100, use `tick0 = 2`.
|
|
83
|
+
* - Exception: when `tickStep` uses `"L<f>"`, you can specify the raw value directly.
|
|
84
|
+
*/
|
|
85
|
+
tick0?: number | Date;
|
|
86
|
+
};
|
|
87
|
+
|
|
50
88
|
/**
|
|
51
89
|
* Available scale types for axes.
|
|
52
90
|
*
|
|
@@ -714,6 +752,21 @@ export declare interface ICartesianChartProps {
|
|
|
714
752
|
* @default 'default'
|
|
715
753
|
*/
|
|
716
754
|
secondaryYScaleType?: AxisScaleType;
|
|
755
|
+
/**
|
|
756
|
+
* Explicit set of tick values for the y-axis.
|
|
757
|
+
* If provided, these values override automatic tick generation.
|
|
758
|
+
*/
|
|
759
|
+
yAxisTickValues?: number[] | Date[] | string[];
|
|
760
|
+
/**
|
|
761
|
+
* Configuration for the x-axis.
|
|
762
|
+
* Use this to control `tickStep`, `tick0`, etc.
|
|
763
|
+
*/
|
|
764
|
+
xAxis?: AxisProps;
|
|
765
|
+
/**
|
|
766
|
+
* Configuration for the y-axis.
|
|
767
|
+
* Use this to control `tickStep`, `tick0`, etc.
|
|
768
|
+
*/
|
|
769
|
+
yAxis?: AxisProps;
|
|
717
770
|
}
|
|
718
771
|
|
|
719
772
|
/**
|
|
@@ -4980,7 +5033,7 @@ export declare interface IVSChartDataPoint {
|
|
|
4980
5033
|
callOutAccessibilityData?: IAccessibilityProps;
|
|
4981
5034
|
}
|
|
4982
5035
|
|
|
4983
|
-
declare interface IYAxisParams {
|
|
5036
|
+
declare interface IYAxisParams extends AxisProps {
|
|
4984
5037
|
yMinMaxValues?: {
|
|
4985
5038
|
startValue: number;
|
|
4986
5039
|
endValue: number;
|
|
@@ -4998,6 +5051,7 @@ declare interface IYAxisParams {
|
|
|
4998
5051
|
eventAnnotationProps?: IEventsAnnotationProps;
|
|
4999
5052
|
eventLabelHeight?: number;
|
|
5000
5053
|
yAxisPadding?: number;
|
|
5054
|
+
tickValues?: Date[] | number[] | string[];
|
|
5001
5055
|
}
|
|
5002
5056
|
|
|
5003
5057
|
export declare interface IYValueHover {
|