@fluentui/react-charting 5.18.7 → 5.18.9
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 +31 -1
- package/CHANGELOG.md +20 -2
- package/README.md +48 -80
- package/dist/react-charting.d.ts +277 -36
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/docs/TechnicalDetails.md +88 -0
- package/etc/react-charting.api.md +41 -41
- package/lib/components/AreaChart/AreaChart.types.d.ts +9 -1
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.d.ts +4 -0
- package/lib/components/CommonComponents/CartesianChart.js +4 -0
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +12 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.d.ts +9 -1
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.d.ts +13 -2
- package/lib/components/GaugeChart/GaugeChart.types.js +3 -0
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib/components/Legends/Legends.d.ts +1 -1
- package/lib/components/Legends/Legends.js +1 -1
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/Legends/Legends.types.d.ts +14 -8
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.d.ts +1 -1
- package/lib/components/LineChart/LineChart.js +1 -1
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/LineChart/LineChart.types.d.ts +18 -1
- package/lib/components/LineChart/LineChart.types.js.map +1 -1
- package/lib/components/PieChart/PieChart.d.ts +1 -1
- package/lib/components/PieChart/PieChart.js +1 -1
- package/lib/components/PieChart/PieChart.js.map +1 -1
- package/lib/components/PieChart/PieChart.types.d.ts +9 -1
- package/lib/components/PieChart/PieChart.types.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.d.ts +1 -1
- package/lib/components/SankeyChart/SankeyChart.js +1 -1
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +9 -1
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib/components/Sparkline/Sparkline.js +1 -1
- package/lib/components/Sparkline/Sparkline.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.types.d.ts +6 -2
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.d.ts +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
- package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.d.ts +1 -1
- package/lib/components/TreeChart/TreeChart.js +1 -1
- package/lib/components/TreeChart/TreeChart.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.types.d.ts +18 -1
- package/lib/components/TreeChart/TreeChart.types.js +6 -0
- package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +67 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/utilities.d.ts +1 -0
- package/lib/utilities/utilities.js +2 -0
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +9 -1
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.d.ts +4 -0
- package/lib-amd/components/CommonComponents/CartesianChart.js +4 -0
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +12 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +9 -1
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +13 -2
- package/lib-amd/components/GaugeChart/GaugeChart.types.js +3 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-amd/components/Legends/Legends.d.ts +1 -1
- package/lib-amd/components/Legends/Legends.js +1 -1
- package/lib-amd/components/Legends/Legends.js.map +1 -1
- package/lib-amd/components/Legends/Legends.types.d.ts +14 -8
- package/lib-amd/components/Legends/Legends.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.d.ts +1 -1
- package/lib-amd/components/LineChart/LineChart.js +1 -1
- package/lib-amd/components/LineChart/LineChart.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.types.d.ts +18 -1
- package/lib-amd/components/LineChart/LineChart.types.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.d.ts +1 -1
- package/lib-amd/components/PieChart/PieChart.js +1 -1
- package/lib-amd/components/PieChart/PieChart.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.types.d.ts +9 -1
- package/lib-amd/components/PieChart/PieChart.types.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.d.ts +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +9 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.types.d.ts +6 -2
- package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.d.ts +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +18 -1
- package/lib-amd/components/TreeChart/TreeChart.types.js +6 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +67 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +1 -0
- package/lib-amd/utilities/utilities.js +2 -0
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +9 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.d.ts +4 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +4 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +12 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +9 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +13 -2
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +3 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.d.ts +1 -1
- package/lib-commonjs/components/Legends/Legends.js +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.d.ts +14 -8
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.d.ts +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.types.d.ts +18 -1
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.d.ts +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.types.d.ts +9 -1
- package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.d.ts +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +9 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.types.d.ts +6 -2
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.d.ts +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.d.ts +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.types.d.ts +18 -1
- package/lib-commonjs/components/TreeChart/TreeChart.types.js +6 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +67 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +1 -0
- package/lib-commonjs/utilities/utilities.js +2 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AreaChart/AreaChart.types.ts +9 -1
- package/src/components/CommonComponents/CartesianChart.types.ts +12 -0
- package/src/components/DonutChart/DonutChart.types.ts +9 -1
- package/src/components/GaugeChart/GaugeChart.types.ts +13 -2
- package/src/components/HeatMapChart/HeatMapChart.types.ts +11 -1
- package/src/components/HorizontalBarChart/HorizontalBarChart.types.ts +13 -1
- package/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts +9 -1
- package/src/components/Legends/Legends.types.ts +14 -8
- package/src/components/LineChart/LineChart.types.ts +19 -1
- package/src/components/PieChart/PieChart.types.ts +10 -1
- package/src/components/SankeyChart/SankeyChart.types.ts +9 -1
- package/src/components/Sparkline/Sparkline.types.ts +6 -2
- package/src/components/StackedBarChart/MultiStackedBarChart.types.ts +12 -1
- package/src/components/StackedBarChart/StackedBarChart.types.ts +9 -1
- package/src/components/TreeChart/TreeChart.types.ts +20 -1
- package/src/components/VerticalBarChart/VerticalBarChart.types.ts +9 -1
- package/src/components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts +9 -1
|
@@ -4,7 +4,7 @@ import { IEventAnnotation } from '../../types/IEventAnnotation';
|
|
|
4
4
|
import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, IChildProps } from '../CommonComponents/index';
|
|
5
5
|
export type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Line Chart properties
|
|
8
8
|
* {@docCategory LineChart}
|
|
9
9
|
*/
|
|
10
10
|
export interface ILineChartProps extends ICartesianChartProps {
|
|
@@ -56,6 +56,9 @@ export interface ILineChartProps extends ICartesianChartProps {
|
|
|
56
56
|
*/
|
|
57
57
|
enablePerfOptimization?: boolean;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* {@docCategory LineChart}
|
|
61
|
+
*/
|
|
59
62
|
export interface IEventsAnnotationProps {
|
|
60
63
|
events: IEventAnnotation[];
|
|
61
64
|
strokeColor?: string;
|
|
@@ -64,10 +67,21 @@ export interface IEventsAnnotationProps {
|
|
|
64
67
|
labelWidth?: number;
|
|
65
68
|
mergedLabel: (count: number) => string;
|
|
66
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Line Chart styles
|
|
72
|
+
* {@docCategory LineChart}
|
|
73
|
+
*/
|
|
67
74
|
export interface ILineChartStyles extends ICartesianChartStyles {
|
|
68
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Line Chart style properties
|
|
78
|
+
* {@docCategory LineChart}
|
|
79
|
+
*/
|
|
69
80
|
export interface ILineChartStyleProps extends ICartesianChartStyleProps {
|
|
70
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* {@docCategory LineChart}
|
|
84
|
+
*/
|
|
71
85
|
export interface IColorFillBarsProps {
|
|
72
86
|
legend: string;
|
|
73
87
|
color: string;
|
|
@@ -75,6 +89,9 @@ export interface IColorFillBarsProps {
|
|
|
75
89
|
applyPattern?: boolean;
|
|
76
90
|
onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
|
|
77
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* {@docCategory LineChart}
|
|
94
|
+
*/
|
|
78
95
|
export interface IColorFillBarData {
|
|
79
96
|
startX: number | Date;
|
|
80
97
|
endX: number | Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.types.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n IChartProps,\n ILineChartPoints,\n IMargins,\n IBasestate,\n IRefArrayData,\n ICustomizedCalloutData,\n} from '../../types/index';\nimport { IEventAnnotation } from '../../types/IEventAnnotation';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IChildProps,\n} from '../CommonComponents/index';\n\nexport type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"LineChart.types.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n IChartProps,\n ILineChartPoints,\n IMargins,\n IBasestate,\n IRefArrayData,\n ICustomizedCalloutData,\n} from '../../types/index';\nimport { IEventAnnotation } from '../../types/IEventAnnotation';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IChildProps,\n} from '../CommonComponents/index';\n\nexport type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };\n\n/**\n * Line Chart properties\n * {@docCategory LineChart}\n */\nexport interface ILineChartProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data: IChartProps;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ILineChartStyleProps, ILineChartStyles>;\n\n /**\n * Show event annotation\n */\n eventAnnotationProps?: IEventsAnnotationProps;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Define a custom callout renderer for a stack; default is to render per data point\n */\n onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Callback for getting callout description message\n */\n getCalloutDescriptionMessage?: (calloutDataProps: ICustomizedCalloutData) => string | undefined;\n\n /*\n * Color fill bars for the chart,\n */\n colorFillBars?: IColorFillBarsProps[];\n\n /**\n * if this is set to true, then for each line there will be a unique shape assigned to the point,\n * there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,\n * hexagon, pentagon and octagon, which will get assigned as respectively, if there are more\n * than 8 lines in the line chart then it will again start from cicle to octagon.\n * setting this flag to true will also change the behavior of the points, like for a\n * line, last point shape and first point shape will be visible all the times, and all\n * other points will get enlarge only when hovered over them\n * if set to false default shape will be circle, with the existing behavior\n * @default false\n */\n allowMultipleShapesForPoints?: boolean;\n\n /*\n * Optimize line chart rendering for large data set. If this prop is enabled, line chart\n * can easily render over 10K datapoints with multiple lines smoothly.\n * This rendering mechanism does not support gaps in lines.\n */\n optimizeLargeData?: boolean;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * @default false\n * The prop used to enable the perf optimization\n */\n enablePerfOptimization?: boolean;\n}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IEventsAnnotationProps {\n events: IEventAnnotation[];\n strokeColor?: string;\n labelColor?: string;\n labelHeight?: number;\n labelWidth?: number;\n mergedLabel: (count: number) => string;\n}\n\n/**\n * Line Chart styles\n * {@docCategory LineChart}\n */\nexport interface ILineChartStyles extends ICartesianChartStyles {}\n\n/**\n * Line Chart style properties\n * {@docCategory LineChart}\n */\nexport interface ILineChartStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IColorFillBarsProps {\n legend: string;\n color: string;\n data: IColorFillBarData[];\n applyPattern?: boolean;\n onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;\n}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IColorFillBarData {\n startX: number | Date;\n endX: number | Date;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ var PieChart_base_1 = require("./PieChart.base");
|
|
|
6
6
|
var PieChart_styles_1 = require("./PieChart.styles");
|
|
7
7
|
// Create a PieChart variant which uses these default styles and this styled subcomponent.
|
|
8
8
|
/**
|
|
9
|
-
* Piechart component
|
|
9
|
+
* Piechart component
|
|
10
10
|
* {@docCategory PieChart}
|
|
11
11
|
*/
|
|
12
12
|
exports.PieChart = (0, Utilities_1.styled)(PieChart_base_1.PieChartBase, PieChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PieChart.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,iDAA+C;AAC/C,qDAA8C;AAE9C,0FAA0F;AAC1F;;;GAGG;AACU,QAAA,QAAQ,GAA4C,IAAA,kBAAM,EAIrE,4BAAY,EAAE,2BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { PieChartBase } from './PieChart.base';\nimport { getStyles } from './PieChart.styles';\n\n// Create a PieChart variant which uses these default styles and this styled subcomponent.\n/**\n * Piechart component
|
|
1
|
+
{"version":3,"file":"PieChart.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,iDAA+C;AAC/C,qDAA8C;AAE9C,0FAA0F;AAC1F;;;GAGG;AACU,QAAA,QAAQ,GAA4C,IAAA,kBAAM,EAIrE,4BAAY,EAAE,2BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { PieChartBase } from './PieChart.base';\nimport { getStyles } from './PieChart.styles';\n\n// Create a PieChart variant which uses these default styles and this styled subcomponent.\n/**\n * Piechart component\n * {@docCategory PieChart}\n */\nexport const PieChart: React.FunctionComponent<IPieChartProps> = styled<\n IPieChartProps,\n IPieChartStyleProps,\n IPieChartStyles\n>(PieChartBase, getStyles);\n"]}
|
|
@@ -5,7 +5,7 @@ export type { IDataPoint } from '../../types/IDataPoint';
|
|
|
5
5
|
export interface IPieChart {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Pie Chart properties
|
|
9
9
|
* {@docCategory PieChart}
|
|
10
10
|
*/
|
|
11
11
|
export interface IPieChartProps {
|
|
@@ -50,7 +50,15 @@ export interface IPieChartProps {
|
|
|
50
50
|
*/
|
|
51
51
|
culture?: string;
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Pie Chart style properties
|
|
55
|
+
* {@docCategory PieChart}
|
|
56
|
+
*/
|
|
53
57
|
export declare type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> & Pick<IPieChartProps, 'className'>;
|
|
58
|
+
/**
|
|
59
|
+
* Pie Chart styles
|
|
60
|
+
* {@docCategory PieChart}
|
|
61
|
+
*/
|
|
54
62
|
export interface IPieChartStyles {
|
|
55
63
|
/**
|
|
56
64
|
* Style for the root element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PieChart.types.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IDataPoint } from '../../types/IDataPoint';\nexport type { IDataPoint } from '../../types/IDataPoint';\nexport interface IPieChart {}\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"PieChart.types.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IDataPoint } from '../../types/IDataPoint';\nexport type { IDataPoint } from '../../types/IDataPoint';\nexport interface IPieChart {}\n\n/**\n * Pie Chart properties\n * {@docCategory PieChart}\n */\nexport interface IPieChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IDataPoint[];\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of the chart.\n */\n height?: number;\n\n /**\n * colors to render in the chart.\n */\n colors?: string[];\n\n /**\n * Title to apply to the whole chart.\n */\n chartTitle?: string;\n\n /**\n * Additional CSS class(es) to apply to the PieChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IPieChartStyleProps, IPieChartStyles>;\n\n /**\n * Width of line stroke\n */\n strokeWidth?: number;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\n/**\n * Pie Chart style properties\n * {@docCategory PieChart}\n */\nexport type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> &\n Pick<IPieChartProps, 'className'>;\n\n/**\n * Pie Chart styles\n * {@docCategory PieChart}\n */\nexport interface IPieChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the chart.\n */\n chart?: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle?: IStyle;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ var SankeyChart_base_1 = require("./SankeyChart.base");
|
|
|
6
6
|
var SankeyChart_styles_1 = require("./SankeyChart.styles");
|
|
7
7
|
// Create a SankeyChart variant which uses these default styles and this styled subcomponent.
|
|
8
8
|
/**
|
|
9
|
-
* Sankeychart component
|
|
9
|
+
* Sankeychart component
|
|
10
10
|
* {@docCategory SankeyChart}
|
|
11
11
|
*/
|
|
12
12
|
exports.SankeyChart = (0, Utilities_1.styled)(SankeyChart_base_1.SankeyChartBase, SankeyChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SankeyChart.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,uDAAqD;AACrD,2DAAiD;AAEjD,6FAA6F;AAC7F;;;GAGG;AACU,QAAA,WAAW,GAA+C,IAAA,kBAAM,EAI3E,kCAAe,EAAE,8BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { SankeyChartBase } from './SankeyChart.base';\nimport { getStyles } from './SankeyChart.styles';\n\n// Create a SankeyChart variant which uses these default styles and this styled subcomponent.\n/**\n * Sankeychart component
|
|
1
|
+
{"version":3,"file":"SankeyChart.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,uDAAqD;AACrD,2DAAiD;AAEjD,6FAA6F;AAC7F;;;GAGG;AACU,QAAA,WAAW,GAA+C,IAAA,kBAAM,EAI3E,kCAAe,EAAE,8BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { SankeyChartBase } from './SankeyChart.base';\nimport { getStyles } from './SankeyChart.styles';\n\n// Create a SankeyChart variant which uses these default styles and this styled subcomponent.\n/**\n * Sankeychart component\n * {@docCategory SankeyChart}\n */\nexport const SankeyChart: React.FunctionComponent<ISankeyChartProps> = styled<\n ISankeyChartProps,\n ISankeyChartStyleProps,\n ISankeyChartStyles\n>(SankeyChartBase, getStyles);\n"]}
|
|
@@ -3,7 +3,7 @@ import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
|
3
3
|
import { IChartProps } from '../../types/IDataPoint';
|
|
4
4
|
export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Sankey Chart properties
|
|
7
7
|
* {@docCategory SankeyChart}
|
|
8
8
|
*/
|
|
9
9
|
export interface ISankeyChartProps {
|
|
@@ -52,6 +52,10 @@ export interface ISankeyChartProps {
|
|
|
52
52
|
*/
|
|
53
53
|
borderColorsForNodes?: string[];
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Sankey Chart style properties
|
|
57
|
+
* {@docCategory SankeyChart}
|
|
58
|
+
*/
|
|
55
59
|
export interface ISankeyChartStyleProps {
|
|
56
60
|
theme: ITheme;
|
|
57
61
|
className?: string;
|
|
@@ -59,6 +63,10 @@ export interface ISankeyChartStyleProps {
|
|
|
59
63
|
height: number;
|
|
60
64
|
pathColor?: string;
|
|
61
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Sankey Chart styles
|
|
68
|
+
* {@docCategory SankeyChart}
|
|
69
|
+
*/
|
|
62
70
|
export interface ISankeyChartStyles {
|
|
63
71
|
/**
|
|
64
72
|
* Style for the root element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SankeyChart.types.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\n\nexport type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"SankeyChart.types.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\n\nexport type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';\n\n/**\n * Sankey Chart properties\n * {@docCategory SankeyChart}\n */\nexport interface ISankeyChartProps {\n /**\n * Data to render in the chart.\n */\n data: IChartProps;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of the chart.\n */\n height?: number;\n\n /**\n * Additional CSS class(es) to apply to the SankeyChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ISankeyChartStyleProps, ISankeyChartStyles>;\n\n /**\n * this prop takes its parent as a HTML element to define the width and height of the Sankey chart\n */\n parentRef?: HTMLElement | null;\n\n /**\n * should chart resize when parent resize.\n */\n shouldResize?: number;\n\n /**\n * Color for path\n */\n pathColor?: string;\n\n /**\n * Colors for nodes\n */\n colorsForNodes?: string[];\n\n /**\n * Colors for nodes border\n */\n borderColorsForNodes?: string[];\n}\n\n/**\n * Sankey Chart style properties\n * {@docCategory SankeyChart}\n */\nexport interface ISankeyChartStyleProps {\n theme: ITheme;\n className?: string;\n width: number;\n height: number;\n pathColor?: string;\n}\n\n/**\n * Sankey Chart styles\n * {@docCategory SankeyChart}\n */\nexport interface ISankeyChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the nodes.\n */\n nodes?: IStyle;\n\n /**\n * Style for the links.\n */\n links?: IStyle;\n\n /**\n * Style for the text inside node.\n */\n nodeTextContainer?: IStyle;\n\n /**\n * Style for the tooltip ,when user hover over the truncated node detail.\n */\n toolTip?: IStyle;\n\n /**\n * Style for the tooltip ,when user hover over the truncated node detail.\n */\n\n calloutContentRoot?: IStyle;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ var Sparkline_base_1 = require("./Sparkline.base");
|
|
|
6
6
|
var Sparkline_styles_1 = require("./Sparkline.styles");
|
|
7
7
|
// Create a Sparkline variant which uses these default styles and this styled subcomponent.
|
|
8
8
|
/**
|
|
9
|
-
* Sparkline component
|
|
9
|
+
* Sparkline component
|
|
10
10
|
* {@docCategory Sparkline}
|
|
11
11
|
*/
|
|
12
12
|
exports.Sparkline = (0, Utilities_1.styled)(Sparkline_base_1.SparklineBase, Sparkline_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sparkline.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,mDAAiD;AACjD,uDAA+C;AAE/C,2FAA2F;AAC3F;;;GAGG;AACU,QAAA,SAAS,GAA6C,IAAA,kBAAM,EAIvE,8BAAa,EAAE,4BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISparklineStyles, ISparklineProps, ISparklineStyleProps } from '../../index';\nimport { SparklineBase } from './Sparkline.base';\nimport { getStyles } from './Sparkline.styles';\n\n// Create a Sparkline variant which uses these default styles and this styled subcomponent.\n/**\n * Sparkline component
|
|
1
|
+
{"version":3,"file":"Sparkline.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,mDAAiD;AACjD,uDAA+C;AAE/C,2FAA2F;AAC3F;;;GAGG;AACU,QAAA,SAAS,GAA6C,IAAA,kBAAM,EAIvE,8BAAa,EAAE,4BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISparklineStyles, ISparklineProps, ISparklineStyleProps } from '../../index';\nimport { SparklineBase } from './Sparkline.base';\nimport { getStyles } from './Sparkline.styles';\n\n// Create a Sparkline variant which uses these default styles and this styled subcomponent.\n/**\n * Sparkline component\n * {@docCategory Sparkline}\n */\nexport const Sparkline: React.FunctionComponent<ISparklineProps> = styled<\n ISparklineProps,\n ISparklineStyleProps,\n ISparklineStyles\n>(SparklineBase, getStyles);\n"]}
|
|
@@ -5,8 +5,8 @@ import { ICartesianChartStyleProps } from '../CommonComponents/index';
|
|
|
5
5
|
export interface ISparklineStyleProps extends ICartesianChartStyleProps {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* {@docCategory
|
|
8
|
+
* Sparkline properties
|
|
9
|
+
* {@docCategory SparklineChart}
|
|
10
10
|
*/
|
|
11
11
|
export interface ISparklineProps {
|
|
12
12
|
/**
|
|
@@ -49,6 +49,10 @@ export interface ISparklineProps {
|
|
|
49
49
|
*/
|
|
50
50
|
styles?: IStyleFunctionOrObject<ISparklineStyleProps, ISparklineStyles>;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Sparkline styles
|
|
54
|
+
* {@docCategory SparklineChart}
|
|
55
|
+
*/
|
|
52
56
|
export interface ISparklineStyles {
|
|
53
57
|
inlineBlock?: IStyle;
|
|
54
58
|
valueText?: IStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sparkline.types.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\nimport { ICartesianChartStyleProps } from '../CommonComponents/index';\n\nexport interface ISparklineStyleProps extends ICartesianChartStyleProps {}\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"Sparkline.types.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\nimport { ICartesianChartStyleProps } from '../CommonComponents/index';\n\nexport interface ISparklineStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * Sparkline properties\n * {@docCategory SparklineChart}\n */\nexport interface ISparklineProps {\n /**\n * An array of chart data points for the Sparkline chart\n */\n data?: IChartProps;\n\n /**\n * Width of chart\n * * @default 80\n */\n width?: number;\n\n /**\n * Height of chart\n * @default 20\n */\n height?: number;\n\n /**\n * Width of value text\n * * @default 80\n */\n valueTextWidth?: number;\n\n /**\n * Additional CSS class(es) to apply to the SparklineChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * Prop used to determine whether to show the legend or not\n */\n showLegend?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ISparklineStyleProps, ISparklineStyles>;\n}\n\n/**\n * Sparkline styles\n * {@docCategory SparklineChart}\n */\nexport interface ISparklineStyles {\n inlineBlock?: IStyle;\n valueText?: IStyle;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IMultiStackedBarChartProps } from './MultiStackedBarChart.types';
|
|
3
3
|
/**
|
|
4
|
-
* MultiStackedBarchart component
|
|
4
|
+
* MultiStackedBarchart component
|
|
5
5
|
* {@docCategory MultiStackedBarChart}
|
|
6
6
|
*/
|
|
7
7
|
export declare const MultiStackedBarChart: React.FunctionComponent<IMultiStackedBarChartProps>;
|
|
@@ -6,7 +6,7 @@ var MultiStackedBarChart_base_1 = require("./MultiStackedBarChart.base");
|
|
|
6
6
|
var MultiStackedBarChart_styles_1 = require("./MultiStackedBarChart.styles");
|
|
7
7
|
// Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.
|
|
8
8
|
/**
|
|
9
|
-
* MultiStackedBarchart component
|
|
9
|
+
* MultiStackedBarchart component
|
|
10
10
|
* {@docCategory MultiStackedBarChart}
|
|
11
11
|
*/
|
|
12
12
|
exports.MultiStackedBarChart = (0, Utilities_1.styled)(MultiStackedBarChart_base_1.MultiStackedBarChartBase, MultiStackedBarChart_styles_1.getMultiStackedBarChartStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStackedBarChart.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAMvD,yEAAuE;AACvE,6EAA8E;AAE9E,sGAAsG;AACtG;;;GAGG;AACU,QAAA,oBAAoB,GAAwD,IAAA,kBAAM,EAI7F,oDAAwB,EAAE,2DAA6B,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport {\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles,\n} from './MultiStackedBarChart.types';\nimport { MultiStackedBarChartBase } from './MultiStackedBarChart.base';\nimport { getMultiStackedBarChartStyles } from './MultiStackedBarChart.styles';\n\n// Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * MultiStackedBarchart component
|
|
1
|
+
{"version":3,"file":"MultiStackedBarChart.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAMvD,yEAAuE;AACvE,6EAA8E;AAE9E,sGAAsG;AACtG;;;GAGG;AACU,QAAA,oBAAoB,GAAwD,IAAA,kBAAM,EAI7F,oDAAwB,EAAE,2DAA6B,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport {\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles,\n} from './MultiStackedBarChart.types';\nimport { MultiStackedBarChartBase } from './MultiStackedBarChart.base';\nimport { getMultiStackedBarChartStyles } from './MultiStackedBarChart.styles';\n\n// Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * MultiStackedBarchart component\n * {@docCategory MultiStackedBarChart}\n */\nexport const MultiStackedBarChart: React.FunctionComponent<IMultiStackedBarChartProps> = styled<\n IMultiStackedBarChartProps,\n IMultiStackedBarChartStyleProps,\n IMultiStackedBarChartStyles\n>(MultiStackedBarChartBase, getMultiStackedBarChartStyles);\n"]}
|
|
@@ -6,7 +6,7 @@ import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
|
|
|
6
6
|
import { IFocusZoneProps } from '@fluentui/react-focus';
|
|
7
7
|
import { ILegendsProps } from '../Legends/index';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Multi Stacked Bar Chart properties
|
|
10
10
|
* {@docCategory MultiStackedBarChart}
|
|
11
11
|
*/
|
|
12
12
|
export interface IMultiStackedBarChartProps {
|
|
@@ -100,6 +100,10 @@ export interface IMultiStackedBarChartProps {
|
|
|
100
100
|
*/
|
|
101
101
|
hideLabels?: boolean;
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Multi Stacked Bar Chart style properties
|
|
105
|
+
* {@docCategory MultiStackedBarChart}
|
|
106
|
+
*/
|
|
103
107
|
export interface IMultiStackedBarChartStyleProps {
|
|
104
108
|
/**
|
|
105
109
|
* Theme (provided through customization.)
|
|
@@ -138,6 +142,10 @@ export interface IMultiStackedBarChartStyleProps {
|
|
|
138
142
|
*/
|
|
139
143
|
hideLabels?: boolean;
|
|
140
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Multi Stacked Bar Chart styles
|
|
147
|
+
* {@docCategory MultiStackedBarChart}
|
|
148
|
+
*/
|
|
141
149
|
export interface IMultiStackedBarChartStyles {
|
|
142
150
|
/**
|
|
143
151
|
* Styling for the root container
|
|
@@ -196,6 +204,9 @@ export interface IMultiStackedBarChartStyles {
|
|
|
196
204
|
*/
|
|
197
205
|
chartWrapper: IStyle;
|
|
198
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* {@docCategory MultiStackedBarChart}
|
|
209
|
+
*/
|
|
199
210
|
export declare enum MultiStackedBarChartVariant {
|
|
200
211
|
PartToWhole = "part-to-whole",
|
|
201
212
|
AbsoluteScale = "absolute-scale"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MultiStackedBarChartVariant = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* {@docCategory MultiStackedBarChart}
|
|
6
|
+
*/
|
|
4
7
|
var MultiStackedBarChartVariant;
|
|
5
8
|
(function (MultiStackedBarChartVariant) {
|
|
6
9
|
MultiStackedBarChartVariant["PartToWhole"] = "part-to-whole";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStackedBarChart.types.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MultiStackedBarChart.types.js","sourceRoot":"../src/","sources":["components/StackedBarChart/MultiStackedBarChart.types.ts"],"names":[],"mappings":";;;AA0PA;;GAEG;AACH,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,4DAA6B,CAAA;IAC7B,+DAAgC,CAAA;AAClC,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC","sourcesContent":["import { IChartProps, IChartDataPoint } from './index';\nimport { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { ILegendsProps } from '../Legends/index';\n\n/**\n * Multi Stacked Bar Chart properties\n * {@docCategory MultiStackedBarChart}\n */\nexport interface IMultiStackedBarChartProps {\n /**\n * An array of chart data points for the multistacked bar chart\n */\n data?: IChartProps[];\n\n /**\n * Width of bar chart\n */\n width?: number;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * This property tells whether to show ratio on top of stacked bar chart or not.\n * This property is applicable only if there are 1 or 2 datapoints.\n */\n hideRatio?: boolean[];\n\n /**\n * Do not show the legend at the bottom of chart\n *\n * @default false\n */\n hideLegend?: boolean;\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IMultiStackedBarChartStyleProps, IMultiStackedBarChartStyles>;\n\n /**\n * Url that the data-viz needs to redirect to upon clicking on it\n */\n href?: string;\n\n /**\n * If this value is set to true the denominator will not be shown for the ratio above the chart\n * This prop is applicable only if hide ratio is false and there are exactly 2 datapoints.\n */\n hideDenominator?: boolean[];\n\n /**\n * overflow props for legend\n */\n legendsOverflowProps?: Partial<IOverflowSetProps>;\n\n /**\n * text for overflow legends string\n */\n legendsOverflowText?: string;\n\n /**\n * focus zone props in hover card for legends\n */\n focusZonePropsForLegendsInHoverCard?: IFocusZoneProps;\n\n /**\n * props for the legends in the chart\n */\n legendProps?: Partial<ILegendsProps>;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * Prop to define the variant of MultiStackedBarChart to render\n * @default MultiStackedBarChartVariant.PartToWhole\n */\n variant?: MultiStackedBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\n/**\n * Multi Stacked Bar Chart style properties\n * {@docCategory MultiStackedBarChart}\n */\nexport interface IMultiStackedBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * barHeight for each chart\n */\n barHeight?: number;\n\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n\n /**\n * prop to check if the chart is selcted or hovered upon to determine opacity\n */\n shouldHighlight?: boolean;\n\n /**\n * prop to check to decide cursor type\n */\n href?: string;\n\n /**\n * Prop to define the variant of MultiStackedBarChart to render\n */\n variant?: MultiStackedBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n */\n hideLabels?: boolean;\n}\n\n/**\n * Multi Stacked Bar Chart styles\n * {@docCategory MultiStackedBarChart}\n */\nexport interface IMultiStackedBarChartStyles {\n /**\n * Styling for the root container\n */\n root: IStyle;\n\n /**\n * Styling for the root container of each chart in the multistacked bar chart\n */\n singleChartRoot: IStyle;\n\n /**\n * Styling for each item in the container\n */\n items: IStyle;\n\n /**\n * Styling for each svg in the multistacked bar chart\n */\n chart: IStyle;\n\n /**\n * Styling for chart title of the stacked bar chart\n */\n chartTitle: IStyle;\n\n /**\n * Style for left side text of the chart title\n */\n chartTitleLeft: IStyle;\n\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the chart ratio numerator\n */\n ratioNumerator: IStyle;\n\n /**\n * Style for the chart ratio denominator\n */\n ratioDenominator: IStyle;\n\n /**\n * Style to change the opacity of placeholder data point when we hover a single bar or legend\n */\n placeHolderOnHover: IStyle;\n\n /**\n * Style for the legends container\n */\n legendContainer: IStyle;\n\n /**\n * Style for stacked bar chart with no data\n */\n noData: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n\n /**\n * Style for the div containing the chart\n */\n chartWrapper: IStyle;\n}\n\n/**\n * {@docCategory MultiStackedBarChart}\n */\nexport enum MultiStackedBarChartVariant {\n PartToWhole = 'part-to-whole',\n AbsoluteScale = 'absolute-scale',\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IStackedBarChartProps } from './StackedBarChart.types';
|
|
3
3
|
/**
|
|
4
|
-
* StackedBarchart component
|
|
4
|
+
* StackedBarchart component
|
|
5
5
|
* {@docCategory StackedBarChart}
|
|
6
6
|
*/
|
|
7
7
|
export declare const StackedBarChart: React.FunctionComponent<IStackedBarChartProps>;
|
|
@@ -6,7 +6,7 @@ var StackedBarChart_base_1 = require("./StackedBarChart.base");
|
|
|
6
6
|
var StackedBarChart_styles_1 = require("./StackedBarChart.styles");
|
|
7
7
|
// Create a StackedBarChart variant which uses these default styles and this styled subcomponent.
|
|
8
8
|
/**
|
|
9
|
-
* StackedBarchart component
|
|
9
|
+
* StackedBarchart component
|
|
10
10
|
* {@docCategory StackedBarChart}
|
|
11
11
|
*/
|
|
12
12
|
exports.StackedBarChart = (0, Utilities_1.styled)(StackedBarChart_base_1.StackedBarChartBase, StackedBarChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackedBarChart.js","sourceRoot":"../src/","sources":["components/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,+DAA6D;AAC7D,mEAAqD;AAErD,iGAAiG;AACjG;;;GAGG;AACU,QAAA,eAAe,GAAmD,IAAA,kBAAM,EAInF,0CAAmB,EAAE,kCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IStackedBarChartProps, IStackedBarChartStyleProps, IStackedBarChartStyles } from './StackedBarChart.types';\nimport { StackedBarChartBase } from './StackedBarChart.base';\nimport { getStyles } from './StackedBarChart.styles';\n\n// Create a StackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * StackedBarchart component
|
|
1
|
+
{"version":3,"file":"StackedBarChart.js","sourceRoot":"../src/","sources":["components/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,+DAA6D;AAC7D,mEAAqD;AAErD,iGAAiG;AACjG;;;GAGG;AACU,QAAA,eAAe,GAAmD,IAAA,kBAAM,EAInF,0CAAmB,EAAE,kCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IStackedBarChartProps, IStackedBarChartStyleProps, IStackedBarChartStyles } from './StackedBarChart.types';\nimport { StackedBarChartBase } from './StackedBarChart.base';\nimport { getStyles } from './StackedBarChart.styles';\n\n// Create a StackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * StackedBarchart component\n * {@docCategory StackedBarChart}\n */\nexport const StackedBarChart: React.FunctionComponent<IStackedBarChartProps> = styled<\n IStackedBarChartProps,\n IStackedBarChartStyleProps,\n IStackedBarChartStyles\n>(StackedBarChartBase, getStyles);\n"]}
|
|
@@ -8,7 +8,7 @@ export interface IStackedBarChart {
|
|
|
8
8
|
}
|
|
9
9
|
import { IChartProps, IChartDataPoint } from './index';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Stacked Bar Chart properties
|
|
12
12
|
* {@docCategory StackedBarChart}
|
|
13
13
|
*/
|
|
14
14
|
export interface IStackedBarChartProps {
|
|
@@ -112,6 +112,10 @@ export interface IStackedBarChartProps {
|
|
|
112
112
|
*/
|
|
113
113
|
culture?: string;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Stacked Bar Chart style properties
|
|
117
|
+
* {@docCategory StackedBarChart}
|
|
118
|
+
*/
|
|
115
119
|
export interface IStackedBarChartStyleProps {
|
|
116
120
|
/**
|
|
117
121
|
* Theme (provided through customization.)
|
|
@@ -166,6 +170,10 @@ export interface IStackedBarChartStyleProps {
|
|
|
166
170
|
*/
|
|
167
171
|
showTriangle?: boolean;
|
|
168
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Stacked Bar Chart styles
|
|
175
|
+
* {@docCategory StackedBarChart}
|
|
176
|
+
*/
|
|
169
177
|
export interface IStackedBarChartStyles {
|
|
170
178
|
/**
|
|
171
179
|
* Style for the root element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackedBarChart.types.js","sourceRoot":"../src/","sources":["components/StackedBarChart/StackedBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { ILegendsProps } from '../Legends/index';\n\nexport interface IStackedBarChart {}\nimport { IChartProps, IChartDataPoint } from './index';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"StackedBarChart.types.js","sourceRoot":"../src/","sources":["components/StackedBarChart/StackedBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { ILegendsProps } from '../Legends/index';\n\nexport interface IStackedBarChart {}\nimport { IChartProps, IChartDataPoint } from './index';\n\n/**\n * Stacked Bar Chart properties\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IChartProps;\n\n /**\n * Benchmark Data to render in the chart.\n */\n benchmarkData?: IChartDataPoint;\n\n /**\n * Target Data to render in the chart.\n */\n targetData?: IChartDataPoint;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of each bar in the chart.\n */\n barHeight?: number;\n\n /**\n * Do not show the legend at the bottom of chart\n * when there are more than two datapoints\n *\n * @default false\n */\n hideLegend?: boolean;\n\n /**\n * Do not show number/ratio on top of bar\n *\n * @default false\n */\n hideNumberDisplay?: boolean;\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IStackedBarChartStyleProps, IStackedBarChartStyles>;\n\n /**\n * Color setting of bar background color, this will show while all data points value is 0\n */\n barBackgroundColor?: string;\n\n /**\n * Url that the data-viz needs to redirect to upon clicking on it\n */\n href?: string;\n\n /**\n * If this value is set, the fixed display pattern for less than 2 data points chart will be ignore\n */\n ignoreFixStyle?: boolean;\n\n /**\n * If this value is set to true the denominator will not be shown for the ratio above the chart\n */\n hideDenominator?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledLegendsWrapLines?: boolean;\n\n /**\n * overflow props for the legend\n */\n legendsOverflowProps?: Partial<IOverflowSetProps>;\n\n /**\n * text for overflow legends string\n */\n legendsOverflowText?: string;\n\n /**\n * focus zone props in hover card for legends\n */\n focusZonePropsForLegendsInHoverCard?: IFocusZoneProps;\n\n /**\n * props for the legends in the chart\n */\n legendProps?: Partial<ILegendsProps>;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\n/**\n * Stacked Bar Chart style properties\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of bar in the chart.\n */\n barHeight?: number;\n\n /**\n * prop to show data of the chart with appropriate legend color\n */\n legendColor?: string;\n\n /**\n * prop to check if the chart is selcted or hovered upon to determine opacity\n */\n shouldHighlight?: boolean;\n\n /**\n * prop to check which specific section of the stacked bar chart is selected or hovered upon\n */\n isChartSelected?: boolean;\n\n /**\n * prop to check to decide cursor type\n */\n href?: string;\n\n /**\n * the color for the benchmark triangle\n */\n benchmarkColor?: string;\n\n /**\n * the ratio position for the benchmark triangle\n */\n benchmarkRatio?: number;\n\n /**\n * the color for the target triangle\n */\n targetColor?: string;\n\n /**\n * the ratio position for the target triangle\n */\n targetRatio?: number;\n\n /**\n * prop to check if benchmark data or target data is provided\n */\n showTriangle?: boolean;\n}\n\n/**\n * Stacked Bar Chart styles\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n\n /**\n * Style for the chart.\n */\n chart: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle: IStyle;\n\n /**\n * Style for left side text of the chart title\n */\n chartTitleLeft: IStyle;\n\n /**\n * Style for the legend container div\n */\n legendContainer: IStyle;\n\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the chart ratio numerator\n */\n ratioNumerator: IStyle;\n\n /**\n * Style for the chart ratio denominator\n */\n ratioDenominator: IStyle;\n\n /**\n * Style for the benchmark container\n */\n benchmarkContainer: IStyle;\n\n /**\n * Style for the benchmark triangle\n */\n benchmark: IStyle;\n\n /**\n * Style for the target triangle\n */\n target: IStyle;\n}\n"]}
|
|
@@ -5,7 +5,7 @@ var Utilities_1 = require("@fluentui/react/lib/Utilities");
|
|
|
5
5
|
var TreeChart_base_1 = require("./TreeChart.base");
|
|
6
6
|
var TreeChart_styles_1 = require("./TreeChart.styles");
|
|
7
7
|
/**
|
|
8
|
-
* Treechart component
|
|
8
|
+
* Treechart component
|
|
9
9
|
* {@docCategory TreeChart}
|
|
10
10
|
*/
|
|
11
11
|
exports.TreeChart = (0, Utilities_1.styled)(TreeChart_base_1.TreeChartBase, TreeChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeChart.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,mDAAiD;AACjD,uDAA+C;AAE/C;;;GAGG;AACU,QAAA,SAAS,GAAwC,IAAA,kBAAM,EAClE,8BAAa,EACb,4BAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ITreeStyles, ITreeProps, ITreeStyleProps } from './TreeChart.types';\nimport { TreeChartBase } from './TreeChart.base';\nimport { getStyles } from './TreeChart.styles';\n\n/**\n * Treechart component
|
|
1
|
+
{"version":3,"file":"TreeChart.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,mDAAiD;AACjD,uDAA+C;AAE/C;;;GAGG;AACU,QAAA,SAAS,GAAwC,IAAA,kBAAM,EAClE,8BAAa,EACb,4BAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ITreeStyles, ITreeProps, ITreeStyleProps } from './TreeChart.types';\nimport { TreeChartBase } from './TreeChart.base';\nimport { getStyles } from './TreeChart.styles';\n\n/**\n * Treechart component\n * {@docCategory TreeChart}\n */\nexport const TreeChart: React.FunctionComponent<ITreeProps> = styled<ITreeProps, ITreeStyleProps, ITreeStyles>(\n TreeChartBase,\n getStyles,\n);\n"]}
|
|
@@ -2,7 +2,6 @@ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
|
2
2
|
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
3
|
import { IMargins } from '../../types/index';
|
|
4
4
|
/**
|
|
5
|
-
* ITreeChartDataPoint interface for Treechart component.
|
|
6
5
|
* {@docCategory TreeChart}
|
|
7
6
|
*/
|
|
8
7
|
export interface ITreeChartDataPoint {
|
|
@@ -31,6 +30,9 @@ export interface ITreeChartDataPoint {
|
|
|
31
30
|
*/
|
|
32
31
|
children?: Array<ITreeChartDataPoint>;
|
|
33
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* {@docCategory TreeChart}
|
|
35
|
+
*/
|
|
34
36
|
export declare enum NodesComposition {
|
|
35
37
|
/**
|
|
36
38
|
* NodeComposition enum val for long: number = 1
|
|
@@ -41,6 +43,9 @@ export declare enum NodesComposition {
|
|
|
41
43
|
*/
|
|
42
44
|
compact = 0
|
|
43
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* {@docCategory TreeChart}
|
|
48
|
+
*/
|
|
44
49
|
export declare enum TreeTraverse {
|
|
45
50
|
/**
|
|
46
51
|
* TreeTraverse enum val for preOrder: number = 1
|
|
@@ -51,6 +56,10 @@ export declare enum TreeTraverse {
|
|
|
51
56
|
*/
|
|
52
57
|
levelOrder = 0
|
|
53
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Tree Chart properties
|
|
61
|
+
* {@docCategory TreeChart}
|
|
62
|
+
*/
|
|
54
63
|
export interface ITreeProps {
|
|
55
64
|
/**
|
|
56
65
|
* An object of chart data points for the Tree chart
|
|
@@ -157,6 +166,10 @@ export interface ITreeDataStructure {
|
|
|
157
166
|
*/
|
|
158
167
|
parentID: number;
|
|
159
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Tree Chart style properties
|
|
171
|
+
* {@docCategory TreeChart}
|
|
172
|
+
*/
|
|
160
173
|
export interface ITreeStyleProps {
|
|
161
174
|
/**
|
|
162
175
|
* Theme (provided through customization.)
|
|
@@ -167,6 +180,10 @@ export interface ITreeStyleProps {
|
|
|
167
180
|
*/
|
|
168
181
|
className?: string;
|
|
169
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Tree Chart styles
|
|
185
|
+
* {@docCategory TreeChart}
|
|
186
|
+
*/
|
|
170
187
|
export interface ITreeStyles {
|
|
171
188
|
/**
|
|
172
189
|
* Style for the root element.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TreeTraverse = exports.NodesComposition = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* {@docCategory TreeChart}
|
|
6
|
+
*/
|
|
4
7
|
var NodesComposition;
|
|
5
8
|
(function (NodesComposition) {
|
|
6
9
|
/**
|
|
@@ -12,6 +15,9 @@ var NodesComposition;
|
|
|
12
15
|
*/
|
|
13
16
|
NodesComposition[NodesComposition["compact"] = 0] = "compact";
|
|
14
17
|
})(NodesComposition = exports.NodesComposition || (exports.NodesComposition = {}));
|
|
18
|
+
/**
|
|
19
|
+
* {@docCategory TreeChart}
|
|
20
|
+
*/
|
|
15
21
|
var TreeTraverse;
|
|
16
22
|
(function (TreeTraverse) {
|
|
17
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeChart.types.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TreeChart.types.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.types.ts"],"names":[],"mappings":";;;AAkCA;;GAEG;AACH,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,uDAAQ,CAAA;IACR;;OAEG;IACH,6DAAW,CAAA;AACb,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B;AAED;;GAEG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACtB;;OAEG;IACH,uDAAY,CAAA;IACZ;;OAEG;IACH,2DAAc,CAAA;AAChB,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IMargins } from '../../types/index';\n\n/**\n * {@docCategory TreeChart}\n */\nexport interface ITreeChartDataPoint {\n /**\n * Node main text\n */\n name: string;\n /**\n * Subtext value (optional)\n */\n subname?: string;\n /**\n * Bodytext value (optional)\n */\n bodytext?: string;\n /**\n * Metric text value (optional)\n */\n metric?: string;\n /**\n * Color of the rectangular box\n */\n fill: string;\n /**\n * Recursive datastructure for child node object\n */\n children?: Array<ITreeChartDataPoint>;\n}\n\n/**\n * {@docCategory TreeChart}\n */\nexport enum NodesComposition {\n /**\n * NodeComposition enum val for long: number = 1\n */\n long = 1,\n /**\n * NodeComposition enum val for compact: number = 0\n */\n compact = 0,\n}\n\n/**\n * {@docCategory TreeChart}\n */\nexport enum TreeTraverse {\n /**\n * TreeTraverse enum val for preOrder: number = 1\n */\n preOrder = 1,\n /**\n * TreeTraverse enum val for levelOrder: number = 0\n */\n levelOrder = 0,\n}\n\n/**\n * Tree Chart properties\n * {@docCategory TreeChart}\n */\nexport interface ITreeProps {\n /**\n * An object of chart data points for the Tree chart\n */\n treeData: ITreeChartDataPoint;\n /**\n * compostion for three layer chart, long: composition = 1; compact: composition = 0\n */\n composition?: NodesComposition.long | NodesComposition.compact;\n /**\n * Node Width Size for the Tree Layout\n * * @default 75\n */\n layoutWidth?: number;\n /**\n * traversal order for tree chart, preOrder = 1, levelOrder = 0\n */\n treeTraversal?: TreeTraverse.preOrder | TreeTraverse.levelOrder;\n /**\n * Width of SVG tree chart\n * * @default 1500\n */\n width?: number;\n /**\n * Height of SVG tree chart\n * * @default 700\n */\n height?: number;\n\n /**\n * Margins for the chart\n * @default `{ top: 30, bottom: 30, left: 50, right: 20 }`\n * To avoid edge cuttings to the chart, we recommend you use default values or greater then default values\n */\n margins?: IMargins;\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ITreeStyleProps, ITreeStyles>;\n /**\n * Additional CSS class(es) to apply to the TreeChart.\n */\n className?: string;\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n}\n\nexport interface ITreeState {\n /**\n * Width of SVG tree chart\n * * @default 1500\n */\n _width: number;\n /**\n * Height of SVG tree chart\n * * @default 700\n */\n _height: number;\n /**\n * Layout Width of SVG tree chart\n * * @default 75\n */\n _layoutWidth?: number;\n}\n\nexport interface ITreeDataStructure {\n /**\n * Node id of each node\n */\n id: number;\n /**\n * Children node object\n */\n children: Array<ITreeDataStructure>;\n /**\n * Node main text\n */\n dataName: string;\n /**\n * Subtext value (optional)\n */\n subName?: string;\n /**\n * Bodytext value (optional)\n */\n bodyText?: string;\n /**\n * Metric text value (optional)\n */\n metricName?: string;\n /**\n * Color of the rectangular box\n */\n fill: string;\n /**\n * X-coordindate of node\n */\n x: number;\n /**\n * Y-coordindate of node\n */\n y: number;\n /**\n * Node id of each node's parent\n */\n parentID: number;\n}\n\n/**\n * Tree Chart style properties\n * {@docCategory TreeChart}\n */\nexport interface ITreeStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n /**\n * Additional CSS class(es) to apply to the TreeChart.\n */\n className?: string;\n}\n\n/**\n * Tree Chart styles\n * {@docCategory TreeChart}\n */\nexport interface ITreeStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n /**\n * Style for the Link/Path element.\n */\n link: IStyle;\n /**\n * Style for rectangular Node\n */\n rectNode: IStyle;\n /**\n * Style for the node main Text\n */\n rectText: IStyle;\n /**\n * Style for the node sub Text\n */\n rectSubText: IStyle;\n /**\n * Style for the node body Text\n */\n rectBodyText: IStyle;\n /**\n * Style for the node metric value Text\n */\n rectMetricText: IStyle;\n}\n"]}
|