@fluentui/react-charting 5.24.21 → 5.24.23
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 +55 -1
- package/CHANGELOG.md +24 -2
- package/bundle-size/ScatterChart.fixture.js +7 -0
- package/dist/react-charting.d.ts +29 -4
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +10 -4
- package/lib/components/AreaChart/AreaChart.base.js +3 -3
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +4 -4
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +18 -3
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +2 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +187 -11
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.styles.js +1 -8
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +0 -9
- package/lib/components/LineChart/LineChart.base.js +82 -138
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.js +37 -62
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.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 +9 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/utilities.d.ts +29 -28
- package/lib/utilities/utilities.js +127 -110
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +2 -2
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +4 -4
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +18 -3
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +2 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +1 -8
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -9
- package/lib-amd/components/LineChart/LineChart.base.js +80 -136
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +35 -60
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.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 +9 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +29 -28
- package/lib-amd/utilities/utilities.js +133 -113
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +2 -2
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +4 -4
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +18 -3
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +2 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +1 -8
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -9
- package/lib-commonjs/components/LineChart/LineChart.base.js +80 -136
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +35 -60
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.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 +9 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +29 -28
- package/lib-commonjs/utilities/utilities.js +134 -114
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CommonComponents/CartesianChart.types.ts +22 -2
- package/src/components/HeatMapChart/HeatMapChart.types.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.23",
|
|
4
4
|
"description": "React web charting controls for Microsoft fluentui system.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"jest-canvas-mock": "2.4.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@fluentui/chart-utilities": "^1.1.
|
|
42
|
+
"@fluentui/chart-utilities": "^1.1.27",
|
|
43
43
|
"@fluentui/react-focus": "^8.9.25",
|
|
44
|
-
"@fluentui/theme-samples": "^8.7.
|
|
44
|
+
"@fluentui/theme-samples": "^8.7.213",
|
|
45
45
|
"@microsoft/load-themed-styles": "^1.10.26",
|
|
46
46
|
"@types/d3-array": "^3.0.0",
|
|
47
47
|
"@types/d3-axis": "^3.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"tslib": "^2.1.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@fluentui/react": "^8.123.
|
|
72
|
+
"@fluentui/react": "^8.123.4",
|
|
73
73
|
"@types/react": ">=16.8.0 <19.0.0",
|
|
74
74
|
"@types/react-dom": ">=16.8.0 <19.0.0",
|
|
75
75
|
"react": ">=16.8.0 <19.0.0",
|
|
@@ -7,6 +7,7 @@ import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
|
7
7
|
import { ILegendsProps } from '../Legends/index';
|
|
8
8
|
import {
|
|
9
9
|
AxisCategoryOrder,
|
|
10
|
+
AxisScaleType,
|
|
10
11
|
IAccessibilityProps,
|
|
11
12
|
IChart,
|
|
12
13
|
IDataPoint,
|
|
@@ -16,7 +17,7 @@ import {
|
|
|
16
17
|
IHorizontalBarChartWithAxisDataPoint,
|
|
17
18
|
ILineChartPoints,
|
|
18
19
|
IMargins,
|
|
19
|
-
|
|
20
|
+
IScatterChartPoints,
|
|
20
21
|
IVerticalBarChartDataPoint,
|
|
21
22
|
IVerticalStackedBarDataPoint,
|
|
22
23
|
} from '../../types/index';
|
|
@@ -513,6 +514,24 @@ export interface ICartesianChartProps {
|
|
|
513
514
|
* @default 'default'
|
|
514
515
|
*/
|
|
515
516
|
yAxisCategoryOrder?: AxisCategoryOrder;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Defines the scale type for the x-axis.
|
|
520
|
+
* @default 'default'
|
|
521
|
+
*/
|
|
522
|
+
xScaleType?: AxisScaleType;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Defines the scale type for the primary y-axis.
|
|
526
|
+
* @default 'default'
|
|
527
|
+
*/
|
|
528
|
+
yScaleType?: AxisScaleType;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Defines the scale type for the secondary y-axis.
|
|
532
|
+
* @default 'default'
|
|
533
|
+
*/
|
|
534
|
+
secondaryYScaleType?: AxisScaleType;
|
|
516
535
|
}
|
|
517
536
|
|
|
518
537
|
export interface IYValueHover {
|
|
@@ -721,7 +740,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
|
|
|
721
740
|
| IHorizontalBarChartWithAxisDataPoint[]
|
|
722
741
|
| IVerticalBarChartDataPoint[]
|
|
723
742
|
| IDataPoint[]
|
|
724
|
-
|
|
|
743
|
+
| IScatterChartPoints[]
|
|
725
744
|
| IGanttChartDataPoint[],
|
|
726
745
|
yAxisType: YAxisType | undefined,
|
|
727
746
|
useSecondaryYScale?: boolean,
|
|
@@ -738,6 +757,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
|
|
|
738
757
|
useSecondaryYScale?: boolean,
|
|
739
758
|
supportNegativeData?: boolean,
|
|
740
759
|
roundedTicks?: boolean,
|
|
760
|
+
scaleType?: AxisScaleType,
|
|
741
761
|
) => ScaleLinear<number, number, never>;
|
|
742
762
|
|
|
743
763
|
/**
|
|
@@ -140,7 +140,7 @@ export interface IHeatMapChartStyles {
|
|
|
140
140
|
root?: IStyle;
|
|
141
141
|
text?: IStyle;
|
|
142
142
|
subComponentStyles: {
|
|
143
|
-
cartesianStyles
|
|
144
|
-
calloutStyles
|
|
143
|
+
cartesianStyles?: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;
|
|
144
|
+
calloutStyles?: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
|
|
145
145
|
};
|
|
146
146
|
}
|