@fluentui/react-charting 5.24.13 → 5.24.15
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 +64 -1
- package/CHANGELOG.md +23 -2
- package/dist/react-charting.d.ts +26 -17
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +1 -0
- package/lib/Utilities.js +19 -1
- package/lib/Utilities.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +6 -6
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.base.js +210 -158
- package/lib/components/GanttChart/GanttChart.base.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.types.d.ts +23 -13
- package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +6 -11
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +3 -4
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib/utilities/scatterpolar-utils.js +19 -2
- package/lib/utilities/scatterpolar-utils.js.map +1 -1
- package/lib-amd/Utilities.js +9 -0
- package/lib-amd/Utilities.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +6 -6
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/GanttChart/GanttChart.base.js +210 -158
- package/lib-amd/components/GanttChart/GanttChart.base.js.map +1 -1
- package/lib-amd/components/GanttChart/GanttChart.types.d.ts +23 -13
- package/lib-amd/components/GanttChart/GanttChart.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +6 -11
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +3 -4
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib-amd/utilities/scatterpolar-utils.js +21 -3
- package/lib-amd/utilities/scatterpolar-utils.js.map +1 -1
- package/lib-commonjs/Utilities.js +9 -0
- package/lib-commonjs/Utilities.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +6 -6
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.base.js +210 -158
- package/lib-commonjs/components/GanttChart/GanttChart.base.js.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.types.d.ts +23 -13
- package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +6 -11
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +3 -4
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib-commonjs/utilities/scatterpolar-utils.js +21 -3
- package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
- package/package.json +2 -2
- package/src/components/GanttChart/GanttChart.types.ts +24 -13
|
@@ -12,62 +12,73 @@ import {
|
|
|
12
12
|
*/
|
|
13
13
|
export interface IGanttChartProps extends ICartesianChartProps {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* An array of data points to be rendered in the chart.
|
|
16
16
|
*/
|
|
17
17
|
data?: IGanttChartDataPoint[];
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Callback function to render a custom callout for each data point.
|
|
21
21
|
*/
|
|
22
22
|
onRenderCalloutPerDataPoint?: IRenderFunction<IGanttChartDataPoint>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Height of each bar, in pixels.
|
|
26
26
|
*/
|
|
27
27
|
barHeight?: number;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Title of the chart.
|
|
31
31
|
*/
|
|
32
32
|
chartTitle?: string;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Custom styles that are applied on top of the default chart styles.
|
|
36
36
|
*/
|
|
37
37
|
styles?: IStyleFunctionOrObject<IGanttChartStyleProps, IGanttChartStyles>;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Locale identifier string used to format numbers and dates according to the specified culture.
|
|
41
|
+
* Example: 'en-US', 'fr-FR'.
|
|
41
42
|
*/
|
|
42
43
|
culture?: string;
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
47
|
+
* Takes a number in the range [0, 1].
|
|
48
|
+
* @default 1/2
|
|
46
49
|
*/
|
|
47
50
|
yAxisPadding?: number;
|
|
48
51
|
|
|
49
52
|
/**
|
|
50
|
-
|
|
51
|
-
*
|
|
53
|
+
* If true, truncates y-axis tick labels longer than `noOfCharsToTruncate` with ellipses
|
|
54
|
+
* and displays them in a tooltip on hover.
|
|
55
|
+
* @default false
|
|
52
56
|
*/
|
|
53
57
|
showYAxisLablesTooltip?: boolean;
|
|
54
58
|
|
|
55
59
|
/**
|
|
56
|
-
|
|
57
|
-
*
|
|
60
|
+
* If true, renders full y-axis tick labels without truncation.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
58
63
|
showYAxisLables?: boolean;
|
|
59
64
|
|
|
60
65
|
/**
|
|
66
|
+
* If true, enables gradient fills for the bars.
|
|
61
67
|
* @default false
|
|
62
|
-
* The prop used to enable gradient fill color for the chart.
|
|
63
68
|
*/
|
|
64
69
|
enableGradient?: boolean;
|
|
65
70
|
|
|
66
71
|
/**
|
|
72
|
+
* If true, applies rounded corners to the bars.
|
|
67
73
|
* @default false
|
|
68
|
-
* The prop used to enable rounded corners for the bars.
|
|
69
74
|
*/
|
|
70
75
|
roundCorners?: boolean;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Maximum height of each bar, in pixels.
|
|
79
|
+
* @default 24
|
|
80
|
+
*/
|
|
81
|
+
maxBarHeight?: number;
|
|
71
82
|
}
|
|
72
83
|
|
|
73
84
|
/**
|