@fluentui/react-charting 5.24.12 → 5.24.14
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 +61 -1
- package/CHANGELOG.md +25 -2
- package/bundle-size/GanttChart.fixture.js +7 -0
- package/dist/react-charting.d.ts +128 -3
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +44 -2
- package/lib/GanttChart.d.ts +1 -0
- package/lib/GanttChart.js +2 -0
- package/lib/GanttChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +2 -1
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +3 -3
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +10 -3
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.d.ts +2 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +23 -0
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +78 -62
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.base.d.ts +3 -0
- package/lib/components/GanttChart/GanttChart.base.js +329 -0
- package/lib/components/GanttChart/GanttChart.base.js.map +1 -0
- package/lib/components/GanttChart/GanttChart.d.ts +7 -0
- package/lib/components/GanttChart/GanttChart.js +10 -0
- package/lib/components/GanttChart/GanttChart.js.map +1 -0
- package/lib/components/GanttChart/GanttChart.styles.d.ts +2 -0
- package/lib/components/GanttChart/GanttChart.styles.js +4 -0
- package/lib/components/GanttChart/GanttChart.styles.js.map +1 -0
- package/lib/components/GanttChart/GanttChart.types.d.ts +67 -0
- package/lib/components/GanttChart/GanttChart.types.js +2 -0
- package/lib/components/GanttChart/GanttChart.types.js.map +1 -0
- package/lib/components/GanttChart/index.d.ts +2 -0
- package/lib/components/GanttChart/index.js +3 -0
- package/lib/components/GanttChart/index.js.map +1 -0
- 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 +12 -26
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- 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 +49 -0
- 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/utilities/test-data.d.ts +4 -1
- package/lib/utilities/test-data.js +213 -0
- package/lib/utilities/test-data.js.map +1 -1
- package/lib/utilities/utilities.d.ts +8 -6
- package/lib/utilities/utilities.js +9 -5
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/GanttChart.d.ts +1 -0
- package/lib-amd/GanttChart.js +6 -0
- package/lib-amd/GanttChart.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +2 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +3 -3
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +10 -4
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlyColorAdapter.d.ts +2 -1
- package/lib-amd/components/DeclarativeChart/PlotlyColorAdapter.js +25 -2
- package/lib-amd/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +79 -62
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/GanttChart/GanttChart.base.d.ts +3 -0
- package/lib-amd/components/GanttChart/GanttChart.base.js +325 -0
- package/lib-amd/components/GanttChart/GanttChart.base.js.map +1 -0
- package/lib-amd/components/GanttChart/GanttChart.d.ts +7 -0
- package/lib-amd/components/GanttChart/GanttChart.js +12 -0
- package/lib-amd/components/GanttChart/GanttChart.js.map +1 -0
- package/lib-amd/components/GanttChart/GanttChart.styles.d.ts +2 -0
- package/lib-amd/components/GanttChart/GanttChart.styles.js +10 -0
- package/lib-amd/components/GanttChart/GanttChart.styles.js.map +1 -0
- package/lib-amd/components/GanttChart/GanttChart.types.d.ts +67 -0
- package/lib-amd/components/GanttChart/GanttChart.types.js +5 -0
- package/lib-amd/components/GanttChart/GanttChart.types.js.map +1 -0
- package/lib-amd/components/GanttChart/index.d.ts +2 -0
- package/lib-amd/components/GanttChart/index.js +7 -0
- package/lib-amd/components/GanttChart/index.js.map +1 -0
- 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 +12 -26
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- 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 +49 -0
- 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-amd/utilities/test-data.d.ts +4 -1
- package/lib-amd/utilities/test-data.js +214 -2
- package/lib-amd/utilities/test-data.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +8 -6
- package/lib-amd/utilities/utilities.js +10 -5
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/GanttChart.d.ts +1 -0
- package/lib-commonjs/GanttChart.js +5 -0
- package/lib-commonjs/GanttChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +2 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +3 -3
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +11 -4
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.d.ts +2 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +25 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +79 -62
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.base.d.ts +3 -0
- package/lib-commonjs/components/GanttChart/GanttChart.base.js +332 -0
- package/lib-commonjs/components/GanttChart/GanttChart.base.js.map +1 -0
- package/lib-commonjs/components/GanttChart/GanttChart.d.ts +7 -0
- package/lib-commonjs/components/GanttChart/GanttChart.js +13 -0
- package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -0
- package/lib-commonjs/components/GanttChart/GanttChart.styles.d.ts +2 -0
- package/lib-commonjs/components/GanttChart/GanttChart.styles.js +8 -0
- package/lib-commonjs/components/GanttChart/GanttChart.styles.js.map +1 -0
- package/lib-commonjs/components/GanttChart/GanttChart.types.d.ts +67 -0
- package/lib-commonjs/components/GanttChart/GanttChart.types.js +3 -0
- package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -0
- package/lib-commonjs/components/GanttChart/index.d.ts +2 -0
- package/lib-commonjs/components/GanttChart/index.js +6 -0
- package/lib-commonjs/components/GanttChart/index.js.map +1 -0
- 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 +12 -26
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- 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 +49 -0
- 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/lib-commonjs/utilities/test-data.d.ts +4 -1
- package/lib-commonjs/utilities/test-data.js +214 -1
- package/lib-commonjs/utilities/test-data.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +8 -6
- package/lib-commonjs/utilities/utilities.js +11 -6
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CommonComponents/CartesianChart.types.ts +5 -2
- package/src/components/GanttChart/GanttChart.types.ts +83 -0
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
IAccessibilityProps,
|
|
11
11
|
IChart,
|
|
12
12
|
IDataPoint,
|
|
13
|
+
IGanttChartDataPoint,
|
|
13
14
|
IGroupedVerticalBarChartData,
|
|
14
15
|
IHeatMapChartDataPoint,
|
|
15
16
|
IHorizontalBarChartWithAxisDataPoint,
|
|
@@ -720,7 +721,8 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
|
|
|
720
721
|
| IHorizontalBarChartWithAxisDataPoint[]
|
|
721
722
|
| IVerticalBarChartDataPoint[]
|
|
722
723
|
| IDataPoint[]
|
|
723
|
-
| IScatterChartDataPoint[]
|
|
724
|
+
| IScatterChartDataPoint[]
|
|
725
|
+
| IGanttChartDataPoint[],
|
|
724
726
|
yAxisType: YAxisType | undefined,
|
|
725
727
|
useSecondaryYScale?: boolean,
|
|
726
728
|
) => { startValue: number; endValue: number };
|
|
@@ -748,7 +750,8 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
|
|
|
748
750
|
| IVerticalStackedBarDataPoint[]
|
|
749
751
|
| IHorizontalBarChartWithAxisDataPoint[]
|
|
750
752
|
| IGroupedVerticalBarChartData[]
|
|
751
|
-
| IHeatMapChartDataPoint[]
|
|
753
|
+
| IHeatMapChartDataPoint[]
|
|
754
|
+
| IGanttChartDataPoint[],
|
|
752
755
|
margins: IMargins,
|
|
753
756
|
width: number,
|
|
754
757
|
chartType: ChartTypes,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
2
|
+
import {
|
|
3
|
+
ICartesianChartProps,
|
|
4
|
+
ICartesianChartStyleProps,
|
|
5
|
+
ICartesianChartStyles,
|
|
6
|
+
IGanttChartDataPoint,
|
|
7
|
+
} from '../../index';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Gantt Chart properties
|
|
11
|
+
* {@docCategory GanttChart}
|
|
12
|
+
*/
|
|
13
|
+
export interface IGanttChartProps extends ICartesianChartProps {
|
|
14
|
+
/**
|
|
15
|
+
* Data to render in the chart.
|
|
16
|
+
*/
|
|
17
|
+
data?: IGanttChartDataPoint[];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Define a custom callout renderer for a data point.
|
|
21
|
+
*/
|
|
22
|
+
onRenderCalloutPerDataPoint?: IRenderFunction<IGanttChartDataPoint>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Width of each bar in the chart.
|
|
26
|
+
*/
|
|
27
|
+
barHeight?: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* chart title for the chart
|
|
31
|
+
*/
|
|
32
|
+
chartTitle?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
36
|
+
*/
|
|
37
|
+
styles?: IStyleFunctionOrObject<IGanttChartStyleProps, IGanttChartStyles>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The prop used to define the culture to localized the numbers
|
|
41
|
+
*/
|
|
42
|
+
culture?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* it's padding between bar's or lines in the graph
|
|
46
|
+
*/
|
|
47
|
+
yAxisPadding?: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
*@default false
|
|
51
|
+
*Used for to elipse y axis labes and show tooltip on x axis labels
|
|
52
|
+
*/
|
|
53
|
+
showYAxisLablesTooltip?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*@default false
|
|
57
|
+
*Used for showing complete y axis lables */
|
|
58
|
+
showYAxisLables?: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @default false
|
|
62
|
+
* The prop used to enable gradient fill color for the chart.
|
|
63
|
+
*/
|
|
64
|
+
enableGradient?: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @default false
|
|
68
|
+
* The prop used to enable rounded corners for the bars.
|
|
69
|
+
*/
|
|
70
|
+
roundCorners?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Gantt Chart style properties
|
|
75
|
+
* {@docCategory GanttChart}
|
|
76
|
+
*/
|
|
77
|
+
export interface IGanttChartStyleProps extends ICartesianChartStyleProps {}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Gantt Chart styles
|
|
81
|
+
* {@docCategory GanttChart}
|
|
82
|
+
*/
|
|
83
|
+
export interface IGanttChartStyles extends ICartesianChartStyles {}
|