@fluentui/react-charting 5.18.8 → 5.18.10
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 +55 -1
- package/CHANGELOG.md +24 -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.base.js +2 -1
- package/lib/components/CommonComponents/CartesianChart.base.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/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.base.js +2 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.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/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.base.js +2 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.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/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +5 -5
- 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
|
@@ -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>;
|
|
@@ -4,7 +4,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./MultiStackedBa
|
|
|
4
4
|
exports.MultiStackedBarChart = void 0;
|
|
5
5
|
// Create a MultiStackedBarChart variant which uses these default styles and this styled subcomponent.
|
|
6
6
|
/**
|
|
7
|
-
* MultiStackedBarchart component
|
|
7
|
+
* MultiStackedBarchart component
|
|
8
8
|
* {@docCategory MultiStackedBarChart}
|
|
9
9
|
*/
|
|
10
10
|
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":";;;;IAUA,sGAAsG;IACtG;;;OAGG;IACU,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":";;;;IAUA,sGAAsG;IACtG;;;OAGG;IACU,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"
|
|
@@ -2,6 +2,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.MultiStackedBarChartVariant = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* {@docCategory MultiStackedBarChart}
|
|
7
|
+
*/
|
|
5
8
|
var MultiStackedBarChartVariant;
|
|
6
9
|
(function (MultiStackedBarChartVariant) {
|
|
7
10
|
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":";;;;IA0PA;;OAEG;IACH,IAAY,2BAGX;IAHD,WAAY,2BAA2B;QACrC,4DAA6B,CAAA;QAC7B,+DAAgC,CAAA;IAClC,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>;
|
|
@@ -4,7 +4,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./StackedBarChar
|
|
|
4
4
|
exports.StackedBarChart = void 0;
|
|
5
5
|
// Create a StackedBarChart variant which uses these default styles and this styled subcomponent.
|
|
6
6
|
/**
|
|
7
|
-
* StackedBarchart component
|
|
7
|
+
* StackedBarchart component
|
|
8
8
|
* {@docCategory StackedBarChart}
|
|
9
9
|
*/
|
|
10
10
|
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":";;;;IAMA,iGAAiG;IACjG;;;OAGG;IACU,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":";;;;IAMA,iGAAiG;IACjG;;;OAGG;IACU,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"]}
|
|
@@ -3,7 +3,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./TreeChart.base
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.TreeChart = void 0;
|
|
5
5
|
/**
|
|
6
|
-
* Treechart component
|
|
6
|
+
* Treechart component
|
|
7
7
|
* {@docCategory TreeChart}
|
|
8
8
|
*/
|
|
9
9
|
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":";;;;IAMA;;;OAGG;IACU,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":";;;;IAMA;;;OAGG;IACU,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.
|
|
@@ -2,6 +2,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.TreeTraverse = exports.NodesComposition = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* {@docCategory TreeChart}
|
|
7
|
+
*/
|
|
5
8
|
var NodesComposition;
|
|
6
9
|
(function (NodesComposition) {
|
|
7
10
|
/**
|
|
@@ -13,6 +16,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
13
16
|
*/
|
|
14
17
|
NodesComposition[NodesComposition["compact"] = 0] = "compact";
|
|
15
18
|
})(NodesComposition = exports.NodesComposition || (exports.NodesComposition = {}));
|
|
19
|
+
/**
|
|
20
|
+
* {@docCategory TreeChart}
|
|
21
|
+
*/
|
|
16
22
|
var TreeTraverse;
|
|
17
23
|
(function (TreeTraverse) {
|
|
18
24
|
/**
|
|
@@ -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":";;;;IAkCA;;OAEG;IACH,IAAY,gBASX;IATD,WAAY,gBAAgB;QAC1B;;WAEG;QACH,uDAAQ,CAAA;QACR;;WAEG;QACH,6DAAW,CAAA;IACb,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B;IAED;;OAEG;IACH,IAAY,YASX;IATD,WAAY,YAAY;QACtB;;WAEG;QACH,uDAAY,CAAA;QACZ;;WAEG;QACH,2DAAc,CAAA;IAChB,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"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IVerticalBarChartProps } from '../../index';
|
|
3
3
|
/**
|
|
4
|
-
* VerticalBarchart component
|
|
4
|
+
* VerticalBarchart component
|
|
5
5
|
* {@docCategory VerticalBarChart}
|
|
6
6
|
*/
|
|
7
7
|
export declare const VerticalBarChart: React.FunctionComponent<IVerticalBarChartProps>;
|
|
@@ -4,7 +4,7 @@ define(["require", "exports", "../../Utilities", "./VerticalBarChart.base", "./V
|
|
|
4
4
|
exports.VerticalBarChart = void 0;
|
|
5
5
|
// Create a VerticalBarChart variant which uses these default styles and this styled subcomponent.
|
|
6
6
|
/**
|
|
7
|
-
* VerticalBarchart component
|
|
7
|
+
* VerticalBarchart component
|
|
8
8
|
* {@docCategory VerticalBarChart}
|
|
9
9
|
*/
|
|
10
10
|
exports.VerticalBarChart = (0, Utilities_1.styled)(VerticalBarChart_base_1.VerticalBarChartBase, VerticalBarChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalBarChart.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.tsx"],"names":[],"mappings":";;;;IAMA,kGAAkG;IAClG;;;OAGG;IACU,QAAA,gBAAgB,GAAoD,IAAA,kBAAM,EAIrF,4CAAoB,EAAE,mCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { IVerticalBarChartProps, IVerticalBarChartStyleProps, IVerticalBarChartStyles } from '../../index';\nimport { VerticalBarChartBase } from './VerticalBarChart.base';\nimport { getStyles } from './VerticalBarChart.styles';\n\n// Create a VerticalBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalBarchart component
|
|
1
|
+
{"version":3,"file":"VerticalBarChart.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.tsx"],"names":[],"mappings":";;;;IAMA,kGAAkG;IAClG;;;OAGG;IACU,QAAA,gBAAgB,GAAoD,IAAA,kBAAM,EAIrF,4CAAoB,EAAE,mCAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { IVerticalBarChartProps, IVerticalBarChartStyleProps, IVerticalBarChartStyles } from '../../index';\nimport { VerticalBarChartBase } from './VerticalBarChart.base';\nimport { getStyles } from './VerticalBarChart.styles';\n\n// Create a VerticalBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalBarchart component\n * {@docCategory VerticalBarChart}\n */\nexport const VerticalBarChart: React.FunctionComponent<IVerticalBarChartProps> = styled<\n IVerticalBarChartProps,\n IVerticalBarChartStyleProps,\n IVerticalBarChartStyles\n>(VerticalBarChartBase, getStyles);\n"]}
|
|
@@ -3,7 +3,7 @@ import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Uti
|
|
|
3
3
|
import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, IVerticalBarChartDataPoint } from '../../index';
|
|
4
4
|
import { ILineChartLineOptions } from '../../types/index';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Vertical Bar Chart properties
|
|
7
7
|
* {@docCategory VerticalBarChart}
|
|
8
8
|
*/
|
|
9
9
|
export interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
@@ -65,12 +65,20 @@ export interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
|
65
65
|
*/
|
|
66
66
|
hideLabels?: boolean;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Vertical Bar Chart style properties
|
|
70
|
+
* {@docCategory VerticalBarChart}
|
|
71
|
+
*/
|
|
68
72
|
export interface IVerticalBarChartStyleProps extends ICartesianChartStyleProps {
|
|
69
73
|
/**
|
|
70
74
|
* color of the datapoint legend
|
|
71
75
|
*/
|
|
72
76
|
legendColor?: string;
|
|
73
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Vertical Bar Chart styles
|
|
80
|
+
* {@docCategory VerticalBarChart}
|
|
81
|
+
*/
|
|
74
82
|
export interface IVerticalBarChartStyles extends ICartesianChartStyles {
|
|
75
83
|
/**
|
|
76
84
|
* Style for the chart label.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalBarChart.types.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IVerticalBarChartDataPoint,\n} from '../../index';\nimport { ILineChartLineOptions } from '../../types/index';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"VerticalBarChart.types.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IVerticalBarChartDataPoint,\n} from '../../index';\nimport { ILineChartLineOptions } from '../../types/index';\n\n/**\n * Vertical Bar Chart properties\n * {@docCategory VerticalBarChart}\n */\nexport interface IVerticalBarChartProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IVerticalBarChartDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IVerticalBarChartDataPoint>;\n\n /**\n * Width of each bar in the chart.\n */\n barWidth?: number;\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * Legend text for the line datapoint in the chart\n */\n lineLegendText?: string;\n\n /**\n * color for the legend of the line in the chart\n * @default theme.yellow\n */\n\n lineLegendColor?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IVerticalBarChartStyleProps, IVerticalBarChartStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n xAxisPadding?: number;\n\n /**\n * options for the line drawn\n */\n lineOptions?: ILineChartLineOptions;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\n/**\n * Vertical Bar Chart style properties\n * {@docCategory VerticalBarChart}\n */\nexport interface IVerticalBarChartStyleProps extends ICartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\n/**\n * Vertical Bar Chart styles\n * {@docCategory VerticalBarChart}\n */\nexport interface IVerticalBarChartStyles extends ICartesianChartStyles {\n /**\n * Style for the chart label.\n * @deprecated This style cannot be customized anymore\n */\n chartLabel?: IStyle;\n\n /**\n * Style for the line representing the domain of the x-axis.\n * @deprecated This style cannot be customized anymore\n */\n xAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the x-axis.\n * @deprecated This style cannot be customized anymore\n */\n xAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the x-axis.\n * @deprecated This style cannot be customized anymore\n */\n xAxisText?: IStyle;\n\n /**\n * Style for the line representing the domain of the y-axis.\n * @deprecated This style cannot be customized anymore\n */\n yAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the y-axis.\n * @deprecated This style cannot be customized anymore\n */\n yAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the y-axis.\n * @deprecated This style cannot be customized anymore\n */\n yAxisText?: 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 bar labels\n */\n barLabel: IStyle;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IVerticalStackedBarChartProps } from './VerticalStackedBarChart.types';
|
|
3
3
|
/**
|
|
4
|
-
* VerticalStackedBarchart component
|
|
4
|
+
* VerticalStackedBarchart component
|
|
5
5
|
* {@docCategory VerticalStackedBarChart}
|
|
6
6
|
*/
|
|
7
7
|
export declare const VerticalStackedBarChart: React.FunctionComponent<IVerticalStackedBarChartProps>;
|
|
@@ -4,7 +4,7 @@ define(["require", "exports", "../../Utilities", "./VerticalStackedBarChart.base
|
|
|
4
4
|
exports.VerticalStackedBarChart = void 0;
|
|
5
5
|
// Create a VerticalStackedBarChart variant which uses these default styles and this styled subcomponent.
|
|
6
6
|
/**
|
|
7
|
-
* VerticalStackedBarchart component
|
|
7
|
+
* VerticalStackedBarchart component
|
|
8
8
|
* {@docCategory VerticalStackedBarChart}
|
|
9
9
|
*/
|
|
10
10
|
exports.VerticalStackedBarChart = (0, Utilities_1.styled)(VerticalStackedBarChart_base_1.VerticalStackedBarChartBase, VerticalStackedBarChart_styles_1.getStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalStackedBarChart.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.tsx"],"names":[],"mappings":";;;;IAUA,yGAAyG;IACzG;;;OAGG;IACU,QAAA,uBAAuB,GAA2D,IAAA,kBAAM,EAInG,0DAA2B,EAAE,0CAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport {\n IVerticalStackedBarChartProps,\n IVerticalStackedBarChartStyleProps,\n IVerticalStackedBarChartStyles,\n} from './VerticalStackedBarChart.types';\nimport { VerticalStackedBarChartBase } from './VerticalStackedBarChart.base';\nimport { getStyles } from './VerticalStackedBarChart.styles';\n\n// Create a VerticalStackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalStackedBarchart component
|
|
1
|
+
{"version":3,"file":"VerticalStackedBarChart.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.tsx"],"names":[],"mappings":";;;;IAUA,yGAAyG;IACzG;;;OAGG;IACU,QAAA,uBAAuB,GAA2D,IAAA,kBAAM,EAInG,0DAA2B,EAAE,0CAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport {\n IVerticalStackedBarChartProps,\n IVerticalStackedBarChartStyleProps,\n IVerticalStackedBarChartStyles,\n} from './VerticalStackedBarChart.types';\nimport { VerticalStackedBarChartBase } from './VerticalStackedBarChart.base';\nimport { getStyles } from './VerticalStackedBarChart.styles';\n\n// Create a VerticalStackedBarChart variant which uses these default styles and this styled subcomponent.\n/**\n * VerticalStackedBarchart component\n * {@docCategory VerticalStackedBarChart}\n */\nexport const VerticalStackedBarChart: React.FunctionComponent<IVerticalStackedBarChartProps> = styled<\n IVerticalStackedBarChartProps,\n IVerticalStackedBarChartStyleProps,\n IVerticalStackedBarChartStyles\n>(VerticalStackedBarChartBase, getStyles);\n"]}
|
|
@@ -4,7 +4,7 @@ import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
|
4
4
|
import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
5
5
|
import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, ILineChartLineOptions, IVerticalStackedChartProps, IVSChartDataPoint } from '../../index';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Vertical Stacked Bar Chart properties
|
|
8
8
|
* {@docCategory VerticalStackedBarChart}
|
|
9
9
|
*/
|
|
10
10
|
export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
|
|
@@ -97,8 +97,16 @@ export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
|
|
|
97
97
|
*/
|
|
98
98
|
hideLabels?: boolean;
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Vertical Stacked Bar Chart style properties
|
|
102
|
+
* {@docCategory VerticalStackedBarChart}
|
|
103
|
+
*/
|
|
100
104
|
export interface IVerticalStackedBarChartStyleProps extends ICartesianChartStyleProps {
|
|
101
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Vertical Stacked Bar Chart styles
|
|
108
|
+
* {@docCategory VerticalStackedBarChart}
|
|
109
|
+
*/
|
|
102
110
|
export interface IVerticalStackedBarChartStyles extends ICartesianChartStyles {
|
|
103
111
|
/**
|
|
104
112
|
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalStackedBarChart.types.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { IStyle } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n ILineChartLineOptions,\n IVerticalStackedChartProps,\n IVSChartDataPoint,\n} from '../../index';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"VerticalStackedBarChart.types.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { IStyle } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n ILineChartLineOptions,\n IVerticalStackedChartProps,\n IVSChartDataPoint,\n} from '../../index';\n\n/**\n * Vertical Stacked Bar Chart properties\n * {@docCategory VerticalStackedBarChart}\n */\nexport interface IVerticalStackedBarChartProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data: IVerticalStackedChartProps[];\n\n /**\n * Width of each bar in the chart.\n */\n barWidth?: number;\n\n /**\n * Gap (max) between bars in a stack. When non-zero, the bars in a stack will\n * be separated by gaps. The actual size of each gap is calculated as 20% of\n * the height of that stack, with a minimum size of 1px and a maximum given by\n * this prop.\n * @default 0\n */\n barGapMax?: number;\n\n /**\n * Corner radius of the bars\n * @default 0\n */\n barCornerRadius?: number;\n\n /**\n * The minimum height of a bar; bars below this height will be displayed at\n * this height. Note that this setting will result in the height of these data\n * points not being to scale.\n * @default 0\n */\n barMinimumHeight?: number;\n\n /**\n * Colors from which to select the color of each bar.\n * @deprecated Not using this prop. DIrectly taking color from given data.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * To display multi stack callout or single callout\n * @default flase\n */\n isCalloutForStack?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IVerticalStackedBarChartStyleProps, IVerticalStackedBarChartStyles>;\n\n /**\n * Define a custom callout renderer for a stack; default is to render per data point\n */\n onRenderCalloutPerStack?: IRenderFunction<IVerticalStackedChartProps>;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IVSChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * yMinValue is not supported for bar charts, so only allow \"undefined\"\n */\n yMinValue?: undefined;\n\n /**\n * Allow hover actions on the legend\n * @default true\n */\n allowHoverOnLegend?: boolean;\n\n /**\n * Click handler for bars; type of data is dependant on isCalloutForStack\n */\n onBarClick?: (event: React.MouseEvent<SVGElement>, data: IVerticalStackedChartProps | IVSChartDataPoint) => void;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n xAxisPadding?: number;\n\n /**\n * options for the line drawn\n */\n lineOptions?: ILineChartLineOptions;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\n/**\n * Vertical Stacked Bar Chart style properties\n * {@docCategory VerticalStackedBarChart}\n */\nexport interface IVerticalStackedBarChartStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * Vertical Stacked Bar Chart styles\n * {@docCategory VerticalStackedBarChart}\n */\nexport interface IVerticalStackedBarChartStyles extends ICartesianChartStyles {\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 bar labels\n */\n barLabel: IStyle;\n\n /**\n * Style for the chart.\n * @deprecated use root instead.\n */\n chart?: IStyle;\n\n /**\n * Style for the line representing the domain of the x-axis.\n * @deprecated - use xAxis instead.\n */\n xAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the x-axis.\n * @deprecated - use xAxis instead.\n */\n xAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the x-axis.\n * @deprecated - use xAxis instead.\n */\n xAxisText?: IStyle;\n\n /**\n * Style for the line representing the domain of the y-axis.\n * @deprecated - use xAxis instead.\n */\n yAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the y-axis.\n * @deprecated - use xAxis instead.\n */\n yAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the y-axis.\n * @deprecated - use xAxis instead.\n */\n yAxisText?: IStyle;\n}\n"]}
|