@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 { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
|
4
4
|
import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Horizontal Bar Chart properties
|
|
8
8
|
* {@docCategory HorizontalBarChart}
|
|
9
9
|
*/
|
|
10
10
|
export interface IHorizontalBarChartProps {
|
|
@@ -94,6 +94,10 @@ export interface IHorizontalBarChartProps {
|
|
|
94
94
|
hideLabels?: boolean;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Horizontal Bar Chart style properties
|
|
99
|
+
* {@docCategory HorizontalBarChart}
|
|
100
|
+
*/
|
|
97
101
|
export interface IHorizontalBarChartStyleProps {
|
|
98
102
|
/**
|
|
99
103
|
* Theme (provided through customization.)
|
|
@@ -137,6 +141,10 @@ export interface IHorizontalBarChartStyleProps {
|
|
|
137
141
|
hideLabels?: boolean;
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Horizontal Bar Chart styles
|
|
146
|
+
* {@docCategory HorizontalBarChart}
|
|
147
|
+
*/
|
|
140
148
|
export interface IHorizontalBarChartStyles {
|
|
141
149
|
/**
|
|
142
150
|
* Styling for the root container
|
|
@@ -204,9 +212,13 @@ export interface IHorizontalBarChartStyles {
|
|
|
204
212
|
* default: show the datapoint.x value
|
|
205
213
|
* fraction: show the fraction of datapoint.x/datapoint.y
|
|
206
214
|
* percentage: show the percentage of (datapoint.x/datapoint.y)%
|
|
215
|
+
* {@docCategory HorizontalBarChart}
|
|
207
216
|
*/
|
|
208
217
|
export type ChartDataMode = 'default' | 'fraction' | 'percentage';
|
|
209
218
|
|
|
219
|
+
/**
|
|
220
|
+
* {@docCategory HorizontalBarChart}
|
|
221
|
+
*/
|
|
210
222
|
export enum HorizontalBarChartVariant {
|
|
211
223
|
PartToWhole = 'part-to-whole',
|
|
212
224
|
AbsoluteScale = 'absolute-scale',
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../../index';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Horizontal Bar Chart with Axis properties
|
|
12
12
|
* {@docCategory HorizontalBarChartWithAxis}
|
|
13
13
|
*/
|
|
14
14
|
export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
|
|
@@ -72,6 +72,10 @@ export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
|
|
|
72
72
|
showYAxisLables?: boolean;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Horizontal Bar Chart with Axis style properties
|
|
77
|
+
* {@docCategory HorizontalBarChartWithAxis}
|
|
78
|
+
*/
|
|
75
79
|
export interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {
|
|
76
80
|
/**
|
|
77
81
|
* color of the datapoint legend
|
|
@@ -79,6 +83,10 @@ export interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartSt
|
|
|
79
83
|
legendColor?: string;
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Horizontal Bar Chart with Axis styles
|
|
88
|
+
* {@docCategory HorizontalBarChartWithAxis}
|
|
89
|
+
*/
|
|
82
90
|
export interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {
|
|
83
91
|
/**
|
|
84
92
|
* Style for the chart label.
|
|
@@ -6,11 +6,6 @@ import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
|
|
|
6
6
|
import { IFocusZoneProps } from '@fluentui/react-focus';
|
|
7
7
|
import { CustomPoints, Points } from '../../utilities/utilities';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
* ILegendOverflowData interface.
|
|
12
|
-
* {@docCategory Legends}
|
|
13
|
-
*/
|
|
14
9
|
export interface ILegendOverflowData {
|
|
15
10
|
primary: ILegend[];
|
|
16
11
|
|
|
@@ -19,7 +14,6 @@ export interface ILegendOverflowData {
|
|
|
19
14
|
|
|
20
15
|
/**
|
|
21
16
|
* @public
|
|
22
|
-
* ILegendSubComponentStyles interface.
|
|
23
17
|
* {@docCategory Legends}
|
|
24
18
|
*/
|
|
25
19
|
export interface ILegendSubComponentStyles {
|
|
@@ -28,7 +22,7 @@ export interface ILegendSubComponentStyles {
|
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
* @public
|
|
31
|
-
*
|
|
25
|
+
* Legends styles
|
|
32
26
|
* {@docCategory Legends}
|
|
33
27
|
*/
|
|
34
28
|
export interface ILegendsStyles {
|
|
@@ -85,7 +79,7 @@ export interface ILegendsStyles {
|
|
|
85
79
|
|
|
86
80
|
/**
|
|
87
81
|
* @public
|
|
88
|
-
*
|
|
82
|
+
* ILegend interface
|
|
89
83
|
* {@docCategory Legends}
|
|
90
84
|
*/
|
|
91
85
|
export interface ILegend {
|
|
@@ -140,6 +134,11 @@ export interface ILegend {
|
|
|
140
134
|
nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
141
135
|
}
|
|
142
136
|
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* Legend style properties
|
|
140
|
+
* {@docCategory Legends}
|
|
141
|
+
*/
|
|
143
142
|
export interface ILegendStyleProps {
|
|
144
143
|
theme?: ITheme;
|
|
145
144
|
className?: string;
|
|
@@ -151,6 +150,11 @@ export interface ILegendStyleProps {
|
|
|
151
150
|
isLineLegendInBarChart?: boolean;
|
|
152
151
|
}
|
|
153
152
|
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
* Legend properties
|
|
156
|
+
* {@docCategory Legends}
|
|
157
|
+
*/
|
|
154
158
|
export interface ILegendsProps {
|
|
155
159
|
/**
|
|
156
160
|
* Prop that takes list of legends
|
|
@@ -223,8 +227,10 @@ export interface ILegendsProps {
|
|
|
223
227
|
}
|
|
224
228
|
|
|
225
229
|
/**
|
|
230
|
+
* @public
|
|
226
231
|
* The shape for the legend
|
|
227
232
|
* default: show the rect legend
|
|
228
233
|
* triangle: show the triangle legend
|
|
234
|
+
* {@docCategory Legends}
|
|
229
235
|
*/
|
|
230
236
|
export type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
export type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Line Chart properties
|
|
22
22
|
* {@docCategory LineChart}
|
|
23
23
|
*/
|
|
24
24
|
export interface ILineChartProps extends ICartesianChartProps {
|
|
@@ -88,6 +88,10 @@ export interface ILineChartProps extends ICartesianChartProps {
|
|
|
88
88
|
*/
|
|
89
89
|
enablePerfOptimization?: boolean;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* {@docCategory LineChart}
|
|
94
|
+
*/
|
|
91
95
|
export interface IEventsAnnotationProps {
|
|
92
96
|
events: IEventAnnotation[];
|
|
93
97
|
strokeColor?: string;
|
|
@@ -97,10 +101,21 @@ export interface IEventsAnnotationProps {
|
|
|
97
101
|
mergedLabel: (count: number) => string;
|
|
98
102
|
}
|
|
99
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Line Chart styles
|
|
106
|
+
* {@docCategory LineChart}
|
|
107
|
+
*/
|
|
100
108
|
export interface ILineChartStyles extends ICartesianChartStyles {}
|
|
101
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Line Chart style properties
|
|
112
|
+
* {@docCategory LineChart}
|
|
113
|
+
*/
|
|
102
114
|
export interface ILineChartStyleProps extends ICartesianChartStyleProps {}
|
|
103
115
|
|
|
116
|
+
/**
|
|
117
|
+
* {@docCategory LineChart}
|
|
118
|
+
*/
|
|
104
119
|
export interface IColorFillBarsProps {
|
|
105
120
|
legend: string;
|
|
106
121
|
color: string;
|
|
@@ -109,6 +124,9 @@ export interface IColorFillBarsProps {
|
|
|
109
124
|
onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
|
|
110
125
|
}
|
|
111
126
|
|
|
127
|
+
/**
|
|
128
|
+
* {@docCategory LineChart}
|
|
129
|
+
*/
|
|
112
130
|
export interface IColorFillBarData {
|
|
113
131
|
startX: number | Date;
|
|
114
132
|
endX: number | Date;
|
|
@@ -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 {
|
|
@@ -60,8 +60,17 @@ export interface IPieChartProps {
|
|
|
60
60
|
culture?: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Pie Chart style properties
|
|
65
|
+
* {@docCategory PieChart}
|
|
66
|
+
*/
|
|
63
67
|
export type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> &
|
|
64
68
|
Pick<IPieChartProps, 'className'>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Pie Chart styles
|
|
72
|
+
* {@docCategory PieChart}
|
|
73
|
+
*/
|
|
65
74
|
export interface IPieChartStyles {
|
|
66
75
|
/**
|
|
67
76
|
* Style for the root element.
|
|
@@ -5,7 +5,7 @@ import { IChartProps } from '../../types/IDataPoint';
|
|
|
5
5
|
export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Sankey Chart properties
|
|
9
9
|
* {@docCategory SankeyChart}
|
|
10
10
|
*/
|
|
11
11
|
export interface ISankeyChartProps {
|
|
@@ -65,6 +65,10 @@ export interface ISankeyChartProps {
|
|
|
65
65
|
borderColorsForNodes?: string[];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Sankey Chart style properties
|
|
70
|
+
* {@docCategory SankeyChart}
|
|
71
|
+
*/
|
|
68
72
|
export interface ISankeyChartStyleProps {
|
|
69
73
|
theme: ITheme;
|
|
70
74
|
className?: string;
|
|
@@ -73,6 +77,10 @@ export interface ISankeyChartStyleProps {
|
|
|
73
77
|
pathColor?: string;
|
|
74
78
|
}
|
|
75
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Sankey Chart styles
|
|
82
|
+
* {@docCategory SankeyChart}
|
|
83
|
+
*/
|
|
76
84
|
export interface ISankeyChartStyles {
|
|
77
85
|
/**
|
|
78
86
|
* Style for the root element.
|
|
@@ -6,8 +6,8 @@ import { ICartesianChartStyleProps } from '../CommonComponents/index';
|
|
|
6
6
|
export interface ISparklineStyleProps extends ICartesianChartStyleProps {}
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* {@docCategory
|
|
9
|
+
* Sparkline properties
|
|
10
|
+
* {@docCategory SparklineChart}
|
|
11
11
|
*/
|
|
12
12
|
export interface ISparklineProps {
|
|
13
13
|
/**
|
|
@@ -59,6 +59,10 @@ export interface ISparklineProps {
|
|
|
59
59
|
styles?: IStyleFunctionOrObject<ISparklineStyleProps, ISparklineStyles>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Sparkline styles
|
|
64
|
+
* {@docCategory SparklineChart}
|
|
65
|
+
*/
|
|
62
66
|
export interface ISparklineStyles {
|
|
63
67
|
inlineBlock?: IStyle;
|
|
64
68
|
valueText?: IStyle;
|
|
@@ -7,7 +7,7 @@ import { IFocusZoneProps } from '@fluentui/react-focus';
|
|
|
7
7
|
import { ILegendsProps } from '../Legends/index';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Multi Stacked Bar Chart properties
|
|
11
11
|
* {@docCategory MultiStackedBarChart}
|
|
12
12
|
*/
|
|
13
13
|
export interface IMultiStackedBarChartProps {
|
|
@@ -121,6 +121,10 @@ export interface IMultiStackedBarChartProps {
|
|
|
121
121
|
hideLabels?: boolean;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Multi Stacked Bar Chart style properties
|
|
126
|
+
* {@docCategory MultiStackedBarChart}
|
|
127
|
+
*/
|
|
124
128
|
export interface IMultiStackedBarChartStyleProps {
|
|
125
129
|
/**
|
|
126
130
|
* Theme (provided through customization.)
|
|
@@ -168,6 +172,10 @@ export interface IMultiStackedBarChartStyleProps {
|
|
|
168
172
|
hideLabels?: boolean;
|
|
169
173
|
}
|
|
170
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Multi Stacked Bar Chart styles
|
|
177
|
+
* {@docCategory MultiStackedBarChart}
|
|
178
|
+
*/
|
|
171
179
|
export interface IMultiStackedBarChartStyles {
|
|
172
180
|
/**
|
|
173
181
|
* Styling for the root container
|
|
@@ -240,6 +248,9 @@ export interface IMultiStackedBarChartStyles {
|
|
|
240
248
|
chartWrapper: IStyle;
|
|
241
249
|
}
|
|
242
250
|
|
|
251
|
+
/**
|
|
252
|
+
* {@docCategory MultiStackedBarChart}
|
|
253
|
+
*/
|
|
243
254
|
export enum MultiStackedBarChartVariant {
|
|
244
255
|
PartToWhole = 'part-to-whole',
|
|
245
256
|
AbsoluteScale = 'absolute-scale',
|
|
@@ -9,7 +9,7 @@ export interface IStackedBarChart {}
|
|
|
9
9
|
import { IChartProps, IChartDataPoint } from './index';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Stacked Bar Chart properties
|
|
13
13
|
* {@docCategory StackedBarChart}
|
|
14
14
|
*/
|
|
15
15
|
export interface IStackedBarChartProps {
|
|
@@ -136,6 +136,10 @@ export interface IStackedBarChartProps {
|
|
|
136
136
|
culture?: string;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Stacked Bar Chart style properties
|
|
141
|
+
* {@docCategory StackedBarChart}
|
|
142
|
+
*/
|
|
139
143
|
export interface IStackedBarChartStyleProps {
|
|
140
144
|
/**
|
|
141
145
|
* Theme (provided through customization.)
|
|
@@ -203,6 +207,10 @@ export interface IStackedBarChartStyleProps {
|
|
|
203
207
|
showTriangle?: boolean;
|
|
204
208
|
}
|
|
205
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Stacked Bar Chart styles
|
|
212
|
+
* {@docCategory StackedBarChart}
|
|
213
|
+
*/
|
|
206
214
|
export interface IStackedBarChartStyles {
|
|
207
215
|
/**
|
|
208
216
|
* Style for the root element.
|
|
@@ -3,7 +3,6 @@ import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
|
3
3
|
import { IMargins } from '../../types/index';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* ITreeChartDataPoint interface for Treechart component.
|
|
7
6
|
* {@docCategory TreeChart}
|
|
8
7
|
*/
|
|
9
8
|
export interface ITreeChartDataPoint {
|
|
@@ -33,6 +32,9 @@ export interface ITreeChartDataPoint {
|
|
|
33
32
|
children?: Array<ITreeChartDataPoint>;
|
|
34
33
|
}
|
|
35
34
|
|
|
35
|
+
/**
|
|
36
|
+
* {@docCategory TreeChart}
|
|
37
|
+
*/
|
|
36
38
|
export enum NodesComposition {
|
|
37
39
|
/**
|
|
38
40
|
* NodeComposition enum val for long: number = 1
|
|
@@ -44,6 +46,9 @@ export enum NodesComposition {
|
|
|
44
46
|
compact = 0,
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
/**
|
|
50
|
+
* {@docCategory TreeChart}
|
|
51
|
+
*/
|
|
47
52
|
export enum TreeTraverse {
|
|
48
53
|
/**
|
|
49
54
|
* TreeTraverse enum val for preOrder: number = 1
|
|
@@ -55,6 +60,10 @@ export enum TreeTraverse {
|
|
|
55
60
|
levelOrder = 0,
|
|
56
61
|
}
|
|
57
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Tree Chart properties
|
|
65
|
+
* {@docCategory TreeChart}
|
|
66
|
+
*/
|
|
58
67
|
export interface ITreeProps {
|
|
59
68
|
/**
|
|
60
69
|
* An object of chart data points for the Tree chart
|
|
@@ -103,6 +112,7 @@ export interface ITreeProps {
|
|
|
103
112
|
*/
|
|
104
113
|
theme?: ITheme;
|
|
105
114
|
}
|
|
115
|
+
|
|
106
116
|
export interface ITreeState {
|
|
107
117
|
/**
|
|
108
118
|
* Width of SVG tree chart
|
|
@@ -164,6 +174,10 @@ export interface ITreeDataStructure {
|
|
|
164
174
|
parentID: number;
|
|
165
175
|
}
|
|
166
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Tree Chart style properties
|
|
179
|
+
* {@docCategory TreeChart}
|
|
180
|
+
*/
|
|
167
181
|
export interface ITreeStyleProps {
|
|
168
182
|
/**
|
|
169
183
|
* Theme (provided through customization.)
|
|
@@ -174,6 +188,11 @@ export interface ITreeStyleProps {
|
|
|
174
188
|
*/
|
|
175
189
|
className?: string;
|
|
176
190
|
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Tree Chart styles
|
|
194
|
+
* {@docCategory TreeChart}
|
|
195
|
+
*/
|
|
177
196
|
export interface ITreeStyles {
|
|
178
197
|
/**
|
|
179
198
|
* Style for the root element.
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { ILineChartLineOptions } from '../../types/index';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Vertical Bar Chart properties
|
|
13
13
|
* {@docCategory VerticalBarChart}
|
|
14
14
|
*/
|
|
15
15
|
export interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
@@ -85,6 +85,10 @@ export interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
|
85
85
|
hideLabels?: boolean;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Vertical Bar Chart style properties
|
|
90
|
+
* {@docCategory VerticalBarChart}
|
|
91
|
+
*/
|
|
88
92
|
export interface IVerticalBarChartStyleProps extends ICartesianChartStyleProps {
|
|
89
93
|
/**
|
|
90
94
|
* color of the datapoint legend
|
|
@@ -92,6 +96,10 @@ export interface IVerticalBarChartStyleProps extends ICartesianChartStyleProps {
|
|
|
92
96
|
legendColor?: string;
|
|
93
97
|
}
|
|
94
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Vertical Bar Chart styles
|
|
101
|
+
* {@docCategory VerticalBarChart}
|
|
102
|
+
*/
|
|
95
103
|
export interface IVerticalBarChartStyles extends ICartesianChartStyles {
|
|
96
104
|
/**
|
|
97
105
|
* Style for the chart label.
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from '../../index';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vertical Stacked Bar Chart properties
|
|
16
16
|
* {@docCategory VerticalStackedBarChart}
|
|
17
17
|
*/
|
|
18
18
|
export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
|
|
@@ -124,8 +124,16 @@ export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
|
|
|
124
124
|
hideLabels?: boolean;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Vertical Stacked Bar Chart style properties
|
|
129
|
+
* {@docCategory VerticalStackedBarChart}
|
|
130
|
+
*/
|
|
127
131
|
export interface IVerticalStackedBarChartStyleProps extends ICartesianChartStyleProps {}
|
|
128
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Vertical Stacked Bar Chart styles
|
|
135
|
+
* {@docCategory VerticalStackedBarChart}
|
|
136
|
+
*/
|
|
129
137
|
export interface IVerticalStackedBarChartStyles extends ICartesianChartStyles {
|
|
130
138
|
/**
|
|
131
139
|
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|