@fluentui/react-charting 5.23.28 → 5.23.30
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 +49 -1
- package/CHANGELOG.md +23 -2
- package/dist/react-charting.d.ts +54 -0
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +31 -0
- package/lib/DeclarativeChart.d.ts +1 -1
- package/lib/DeclarativeChart.js +1 -1
- package/lib/DeclarativeChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.base.d.ts +4 -1
- package/lib/components/AreaChart/AreaChart.base.js +12 -2
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +3 -2
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +11 -2
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +27 -22
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/imageExporter.d.ts +10 -0
- package/lib/components/DeclarativeChart/imageExporter.js +222 -0
- package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib/components/DeclarativeChart/index.d.ts +2 -0
- package/lib/components/DeclarativeChart/index.js +2 -0
- package/lib/components/DeclarativeChart/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.d.ts +1 -0
- package/lib/components/DonutChart/Arc/Arc.js +13 -8
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.d.ts +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.d.ts +7 -3
- package/lib/components/DonutChart/DonutChart.base.js +55 -26
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.d.ts +7 -2
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.types.d.ts +1 -1
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib/components/GaugeChart/GaugeChart.base.js +9 -1
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.d.ts +7 -2
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +12 -2
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
- package/lib/components/HeatMapChart/HeatMapChart.base.js +12 -2
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +12 -2
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +4 -1
- package/lib/components/LineChart/LineChart.base.js +12 -2
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.d.ts +3 -3
- package/lib/components/SankeyChart/SankeyChart.base.js +2 -1
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +7 -2
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +12 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +12 -2
- 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 +6 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib-amd/DeclarativeChart.d.ts +1 -1
- package/lib-amd/DeclarativeChart.js +2 -2
- package/lib-amd/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +4 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +11 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +3 -2
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +11 -2
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +27 -24
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/imageExporter.d.ts +10 -0
- package/lib-amd/components/DeclarativeChart/imageExporter.js +227 -0
- package/lib-amd/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib-amd/components/DeclarativeChart/index.d.ts +2 -0
- package/lib-amd/components/DeclarativeChart/index.js +6 -0
- package/lib-amd/components/DeclarativeChart/index.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.d.ts +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.js +13 -8
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +7 -3
- package/lib-amd/components/DonutChart/DonutChart.base.js +54 -25
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +7 -2
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +8 -0
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +7 -2
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +11 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +11 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +11 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +4 -1
- package/lib-amd/components/LineChart/LineChart.base.js +11 -1
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +3 -3
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +7 -2
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +11 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +11 -1
- 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 +6 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/DeclarativeChart.d.ts +1 -1
- package/lib-commonjs/DeclarativeChart.js +1 -1
- package/lib-commonjs/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +4 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +11 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +3 -2
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +11 -2
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +13 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +28 -24
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/imageExporter.d.ts +10 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js +226 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/index.d.ts +2 -0
- package/lib-commonjs/components/DeclarativeChart/index.js +5 -0
- package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.d.ts +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +13 -8
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +7 -3
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +54 -25
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +7 -2
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.d.ts +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +3 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +8 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +7 -2
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +4 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +11 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +4 -2
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +11 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +4 -2
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +11 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +4 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +11 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +3 -3
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +7 -2
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +4 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +11 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +4 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +11 -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 +6 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CommonComponents/CartesianChart.types.ts +13 -1
- package/src/components/DonutChart/Arc/Arc.types.ts +1 -1
- package/src/components/DonutChart/DonutChart.types.ts +8 -2
- package/src/components/DonutChart/Pie/Pie.types.ts +1 -1
- package/src/components/GaugeChart/GaugeChart.types.ts +8 -2
- package/src/components/SankeyChart/SankeyChart.types.ts +8 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
2
|
+
import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
3
|
import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
|
|
4
4
|
import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
|
|
5
5
|
import { IFocusZoneProps, FocusZoneDirection } from '@fluentui/react-focus';
|
|
@@ -7,6 +7,7 @@ import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
|
7
7
|
import { ILegendsProps } from '../Legends/index';
|
|
8
8
|
import {
|
|
9
9
|
IAccessibilityProps,
|
|
10
|
+
IChart,
|
|
10
11
|
IDataPoint,
|
|
11
12
|
IGroupedVerticalBarChartData,
|
|
12
13
|
IHeatMapChartDataPoint,
|
|
@@ -445,6 +446,12 @@ export interface ICartesianChartProps {
|
|
|
445
446
|
* Used for enabling negative values in Y axis.
|
|
446
447
|
*/
|
|
447
448
|
supportNegativeData?: boolean;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Optional callback to access the IChart interface. Use this instead of ref for accessing
|
|
452
|
+
* the public methods and properties of the component.
|
|
453
|
+
*/
|
|
454
|
+
componentRef?: IRefObject<IChart>;
|
|
448
455
|
}
|
|
449
456
|
|
|
450
457
|
export interface IYValueHover {
|
|
@@ -690,4 +697,9 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
|
|
|
690
697
|
isRtl: boolean,
|
|
691
698
|
barWidth: number | undefined,
|
|
692
699
|
) => ScaleBand<string>;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Callback to access the public methods and properties of the component.
|
|
703
|
+
*/
|
|
704
|
+
ref?: IRefObject<IChart>;
|
|
693
705
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
-
import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
2
|
+
import { IRefObject, IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
3
|
import { ICartesianChartProps, ICartesianChartStyleProps } from '../CommonComponents/index';
|
|
4
4
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
5
|
-
import { IChartProps, IChartDataPoint } from './index';
|
|
5
|
+
import { IChartProps, IChartDataPoint, IChart } from './index';
|
|
6
6
|
|
|
7
7
|
export interface IDonutChart {}
|
|
8
8
|
|
|
@@ -69,6 +69,12 @@ export interface IDonutChartProps extends ICartesianChartProps {
|
|
|
69
69
|
* @default false
|
|
70
70
|
*/
|
|
71
71
|
roundCorners?: boolean;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Optional callback to access the IChart interface. Use this instead of ref for accessing
|
|
75
|
+
* the public methods and properties of the component.
|
|
76
|
+
*/
|
|
77
|
+
componentRef?: IRefObject<IChart>;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
2
|
-
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
2
|
+
import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
3
|
import { ILegendsProps } from '../Legends/index';
|
|
4
|
-
import { IAccessibilityProps } from '../../types/index';
|
|
4
|
+
import { IAccessibilityProps, IChart } from '../../types/index';
|
|
5
5
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -168,6 +168,12 @@ export interface IGaugeChartProps {
|
|
|
168
168
|
* @default false
|
|
169
169
|
*/
|
|
170
170
|
roundCorners?: boolean;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Optional callback to access the IChart interface. Use this instead of ref for accessing
|
|
174
|
+
* the public methods and properties of the component.
|
|
175
|
+
*/
|
|
176
|
+
componentRef?: IRefObject<IChart>;
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
2
|
-
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
-
import { IChartProps } from '../../types/IDataPoint';
|
|
2
|
+
import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
import { IChart, IChartProps } from '../../types/IDataPoint';
|
|
4
4
|
|
|
5
5
|
export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
|
|
6
6
|
|
|
@@ -84,6 +84,12 @@ export interface ISankeyChartProps {
|
|
|
84
84
|
* @default true
|
|
85
85
|
*/
|
|
86
86
|
enableReflow?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Optional callback to access the IChart interface. Use this instead of ref for accessing
|
|
90
|
+
* the public methods and properties of the component.
|
|
91
|
+
*/
|
|
92
|
+
componentRef?: IRefObject<IChart>;
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
/**
|