@fluentui/react-charting 5.24.2 → 5.24.3
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 +34 -1
- package/CHANGELOG.md +14 -2
- package/dist/react-charting.d.ts +170 -37
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +58 -11
- package/lib/ScatterChart.d.ts +1 -0
- package/lib/ScatterChart.js +2 -0
- package/lib/ScatterChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +45 -9
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +48 -26
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +21 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +157 -78
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +28 -13
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +252 -62
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.d.ts +7 -0
- package/lib/components/ScatterChart/ScatterChart.base.js +453 -0
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -0
- package/lib/components/ScatterChart/ScatterChart.d.ts +7 -0
- package/lib/components/ScatterChart/ScatterChart.js +10 -0
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -0
- package/lib/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
- package/lib/components/ScatterChart/ScatterChart.styles.js +7 -0
- package/lib/components/ScatterChart/ScatterChart.styles.js.map +1 -0
- package/lib/components/ScatterChart/ScatterChart.types.d.ts +42 -0
- package/lib/components/ScatterChart/ScatterChart.types.js +2 -0
- package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -0
- package/lib/components/ScatterChart/index.d.ts +2 -0
- package/lib/components/ScatterChart/index.js +3 -0
- package/lib/components/ScatterChart/index.js.map +1 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +73 -11
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/SVGTooltipText.d.ts +4 -0
- package/lib/utilities/SVGTooltipText.js +1 -2
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib/utilities/utilities.d.ts +27 -3
- package/lib/utilities/utilities.js +102 -1
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/ScatterChart.d.ts +1 -0
- package/lib-amd/ScatterChart.js +6 -0
- package/lib-amd/ScatterChart.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +45 -9
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +48 -26
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +21 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +155 -78
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +28 -13
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +264 -71
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.d.ts +7 -0
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +447 -0
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -0
- package/lib-amd/components/ScatterChart/ScatterChart.d.ts +7 -0
- package/lib-amd/components/ScatterChart/ScatterChart.js +12 -0
- package/lib-amd/components/ScatterChart/ScatterChart.js.map +1 -0
- package/lib-amd/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
- package/lib-amd/components/ScatterChart/ScatterChart.styles.js +12 -0
- package/lib-amd/components/ScatterChart/ScatterChart.styles.js.map +1 -0
- package/lib-amd/components/ScatterChart/ScatterChart.types.d.ts +42 -0
- package/lib-amd/components/ScatterChart/ScatterChart.types.js +5 -0
- package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -0
- package/lib-amd/components/ScatterChart/index.d.ts +2 -0
- package/lib-amd/components/ScatterChart/index.js +7 -0
- package/lib-amd/components/ScatterChart/index.js.map +1 -0
- package/lib-amd/index.d.ts +3 -1
- package/lib-amd/index.js +3 -2
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +73 -11
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/SVGTooltipText.d.ts +4 -0
- package/lib-amd/utilities/SVGTooltipText.js +1 -2
- package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +27 -3
- package/lib-amd/utilities/utilities.js +106 -2
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/ScatterChart.d.ts +1 -0
- package/lib-commonjs/ScatterChart.js +5 -0
- package/lib-commonjs/ScatterChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +45 -9
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +48 -26
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +21 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +157 -78
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +28 -13
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +263 -71
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.d.ts +7 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +456 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.d.ts +7 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +13 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js +11 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.d.ts +42 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +3 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/index.d.ts +2 -0
- package/lib-commonjs/components/ScatterChart/index.js +6 -0
- package/lib-commonjs/components/ScatterChart/index.js.map +1 -0
- package/lib-commonjs/index.d.ts +3 -1
- package/lib-commonjs/index.js +3 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +73 -11
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.d.ts +4 -0
- package/lib-commonjs/utilities/SVGTooltipText.js +1 -2
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +27 -3
- package/lib-commonjs/utilities/utilities.js +106 -2
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CommonComponents/CartesianChart.types.ts +25 -1
- package/src/components/ScatterChart/ScatterChart.types.ts +61 -0
|
@@ -159,10 +159,15 @@ export interface ICartesianChartStyles {
|
|
|
159
159
|
tooltip?: IStyle;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
|
-
* styles for
|
|
162
|
+
* styles for axis title
|
|
163
163
|
*/
|
|
164
164
|
axisTitle?: IStyle;
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* styles for axis annotation
|
|
168
|
+
*/
|
|
169
|
+
axisAnnotation?: IStyle;
|
|
170
|
+
|
|
166
171
|
/**
|
|
167
172
|
* Style for the chart Title.
|
|
168
173
|
*/
|
|
@@ -182,6 +187,11 @@ export interface ICartesianChartStyles {
|
|
|
182
187
|
* Styles for the chart wrapper div
|
|
183
188
|
*/
|
|
184
189
|
chartWrapper?: IStyle;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Styles for the svg tooltip
|
|
193
|
+
*/
|
|
194
|
+
svgTooltip?: IStyle;
|
|
185
195
|
}
|
|
186
196
|
|
|
187
197
|
/**
|
|
@@ -469,6 +479,20 @@ export interface ICartesianChartProps {
|
|
|
469
479
|
* @default false
|
|
470
480
|
*/
|
|
471
481
|
hideTickOverlap?: boolean;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Prop to set the x axis annotation. Used to display additional information on the x-axis.
|
|
485
|
+
* This is shown on the top of the chart.
|
|
486
|
+
* @default undefined
|
|
487
|
+
*/
|
|
488
|
+
xAxisAnnotation?: string;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Prop to set the y axis annotation. Used to display additional information on the y-axis.
|
|
492
|
+
* This is shown on the right side of the chart. Not shown if secondary y-axis is enabled.
|
|
493
|
+
* @default undefined
|
|
494
|
+
*/
|
|
495
|
+
yAxisAnnotation?: string;
|
|
472
496
|
}
|
|
473
497
|
|
|
474
498
|
export interface IYValueHover {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
import { IRenderFunction } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
import {
|
|
4
|
+
IChartProps,
|
|
5
|
+
ILineChartPoints,
|
|
6
|
+
IMargins,
|
|
7
|
+
IBasestate,
|
|
8
|
+
IRefArrayData,
|
|
9
|
+
ICustomizedCalloutData,
|
|
10
|
+
} from '../../types/index';
|
|
11
|
+
import {
|
|
12
|
+
ICartesianChartProps,
|
|
13
|
+
ICartesianChartStyleProps,
|
|
14
|
+
ICartesianChartStyles,
|
|
15
|
+
IChildProps,
|
|
16
|
+
} from '../CommonComponents/index';
|
|
17
|
+
|
|
18
|
+
export type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Line Chart properties
|
|
22
|
+
* {@docCategory LineChart}
|
|
23
|
+
*/
|
|
24
|
+
export interface IScatterChartProps extends ICartesianChartProps {
|
|
25
|
+
/**
|
|
26
|
+
* Data to render in the chart.
|
|
27
|
+
*/
|
|
28
|
+
data: IChartProps;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
32
|
+
*/
|
|
33
|
+
styles?: IScatterChartStyles;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Define a custom callout renderer for a data point
|
|
37
|
+
*/
|
|
38
|
+
onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Callback for getting callout description message
|
|
42
|
+
*/
|
|
43
|
+
getCalloutDescriptionMessage?: (calloutDataProps: ICustomizedCalloutData) => string | undefined;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The prop used to define the culture to localized the numbers
|
|
47
|
+
*/
|
|
48
|
+
culture?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Scatter Chart styles
|
|
53
|
+
* {@docCategory ScatterChart}
|
|
54
|
+
*/
|
|
55
|
+
export interface IScatterChartStyles extends ICartesianChartStyles {}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Scatter Chart style properties
|
|
59
|
+
* {@docCategory ScatterChart}
|
|
60
|
+
*/
|
|
61
|
+
export interface IScatterChartStyleProps extends ICartesianChartStyleProps {}
|