@fluentui/react-charting 5.25.4 → 5.25.6
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 +107 -1
- package/CHANGELOG.md +30 -2
- package/bundle-size/PolarChart.fixture.js +7 -0
- package/dist/react-charting.d.ts +424 -1
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +93 -1
- package/lib/PolarChart.d.ts +1 -0
- package/lib/PolarChart.js +2 -0
- package/lib/PolarChart.js.map +1 -0
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.base.d.ts +0 -1
- package/lib/components/AreaChart/AreaChart.base.js +2 -31
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.base.js +12 -4
- package/lib/components/ChartTable/ChartTable.base.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.styles.js +3 -0
- package/lib/components/ChartTable/ChartTable.styles.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.types.d.ts +11 -0
- package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +82 -42
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +31 -27
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +20 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +24 -28
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +390 -267
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.d.ts +1 -0
- package/lib/components/DonutChart/DonutChart.base.js +16 -4
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js +3 -1
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.d.ts +13 -0
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js +4 -2
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.base.js +14 -8
- package/lib/components/FunnelChart/FunnelChart.base.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.styles.js +3 -0
- package/lib/components/FunnelChart/FunnelChart.styles.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.types.d.ts +13 -0
- package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.js +2 -2
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js +16 -22
- package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.d.ts +9 -0
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +6 -18
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +55 -5
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +0 -1
- package/lib/components/LineChart/LineChart.base.js +2 -26
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/PolarChart/PolarChart.base.d.ts +3 -0
- package/lib/components/PolarChart/PolarChart.base.js +426 -0
- package/lib/components/PolarChart/PolarChart.base.js.map +1 -0
- package/lib/components/PolarChart/PolarChart.d.ts +7 -0
- package/lib/components/PolarChart/PolarChart.js +9 -0
- package/lib/components/PolarChart/PolarChart.js.map +1 -0
- package/lib/components/PolarChart/PolarChart.styles.d.ts +2 -0
- package/lib/components/PolarChart/PolarChart.styles.js +39 -0
- package/lib/components/PolarChart/PolarChart.styles.js.map +1 -0
- package/lib/components/PolarChart/PolarChart.types.d.ts +185 -0
- package/lib/components/PolarChart/PolarChart.types.js +2 -0
- package/lib/components/PolarChart/PolarChart.types.js.map +1 -0
- package/lib/components/PolarChart/PolarChart.utils.d.ts +43 -0
- package/lib/components/PolarChart/PolarChart.utils.js +180 -0
- package/lib/components/PolarChart/PolarChart.utils.js.map +1 -0
- package/lib/components/PolarChart/index.d.ts +2 -0
- package/lib/components/PolarChart/index.js +3 -0
- package/lib/components/PolarChart/index.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.base.js +10 -3
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.styles.js +3 -0
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +18 -0
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.js +14 -32
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.types.d.ts +4 -0
- package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +12 -80
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +19 -31
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.d.ts +107 -0
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/utilities/ChartTitle.d.ts +55 -0
- package/lib/utilities/ChartTitle.js +45 -0
- package/lib/utilities/ChartTitle.js.map +1 -0
- package/lib/utilities/Common.styles.d.ts +51 -0
- package/lib/utilities/Common.styles.js +70 -1
- package/lib/utilities/Common.styles.js.map +1 -1
- package/lib/utilities/image-export-utils.js +4 -4
- package/lib/utilities/image-export-utils.js.map +1 -1
- package/lib/utilities/index.d.ts +1 -0
- package/lib/utilities/index.js +1 -0
- package/lib/utilities/index.js.map +1 -1
- package/lib/utilities/utilities.d.ts +32 -8
- package/lib/utilities/utilities.js +232 -111
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/PolarChart.d.ts +1 -0
- package/lib-amd/PolarChart.js +6 -0
- package/lib-amd/PolarChart.js.map +1 -0
- package/lib-amd/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
- package/lib-amd/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +1 -29
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/ChartTable/ChartTable.base.js +12 -5
- package/lib-amd/components/ChartTable/ChartTable.base.js.map +1 -1
- package/lib-amd/components/ChartTable/ChartTable.styles.js +3 -1
- package/lib-amd/components/ChartTable/ChartTable.styles.js.map +1 -1
- package/lib-amd/components/ChartTable/ChartTable.types.d.ts +11 -0
- package/lib-amd/components/ChartTable/ChartTable.types.js.map +1 -1
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
- package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +81 -41
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +30 -26
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +20 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +22 -28
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +392 -269
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +1 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js +15 -3
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js +2 -0
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +13 -0
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.js +4 -2
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/FunnelChart/FunnelChart.base.js +14 -9
- package/lib-amd/components/FunnelChart/FunnelChart.base.js.map +1 -1
- package/lib-amd/components/FunnelChart/FunnelChart.styles.js +3 -1
- package/lib-amd/components/FunnelChart/FunnelChart.styles.js.map +1 -1
- package/lib-amd/components/FunnelChart/FunnelChart.types.d.ts +13 -0
- package/lib-amd/components/FunnelChart/FunnelChart.types.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js +16 -23
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +9 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -16
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +54 -4
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -1
- package/lib-amd/components/LineChart/LineChart.base.js +1 -25
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/PolarChart/PolarChart.base.d.ts +3 -0
- package/lib-amd/components/PolarChart/PolarChart.base.js +421 -0
- package/lib-amd/components/PolarChart/PolarChart.base.js.map +1 -0
- package/lib-amd/components/PolarChart/PolarChart.d.ts +7 -0
- package/lib-amd/components/PolarChart/PolarChart.js +11 -0
- package/lib-amd/components/PolarChart/PolarChart.js.map +1 -0
- package/lib-amd/components/PolarChart/PolarChart.styles.d.ts +2 -0
- package/lib-amd/components/PolarChart/PolarChart.styles.js +43 -0
- package/lib-amd/components/PolarChart/PolarChart.styles.js.map +1 -0
- package/lib-amd/components/PolarChart/PolarChart.types.d.ts +185 -0
- package/lib-amd/components/PolarChart/PolarChart.types.js +5 -0
- package/lib-amd/components/PolarChart/PolarChart.types.js.map +1 -0
- package/lib-amd/components/PolarChart/PolarChart.utils.d.ts +43 -0
- package/lib-amd/components/PolarChart/PolarChart.utils.js +183 -0
- package/lib-amd/components/PolarChart/PolarChart.utils.js.map +1 -0
- package/lib-amd/components/PolarChart/index.d.ts +2 -0
- package/lib-amd/components/PolarChart/index.js +7 -0
- package/lib-amd/components/PolarChart/index.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +10 -4
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +3 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +18 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +13 -31
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.types.d.ts +4 -0
- package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +12 -79
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +19 -30
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/index.d.ts +2 -0
- package/lib-amd/index.js +3 -2
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/IDataPoint.d.ts +107 -0
- package/lib-amd/types/IDataPoint.js.map +1 -1
- package/lib-amd/utilities/ChartTitle.d.ts +55 -0
- package/lib-amd/utilities/ChartTitle.js +46 -0
- package/lib-amd/utilities/ChartTitle.js.map +1 -0
- package/lib-amd/utilities/Common.styles.d.ts +51 -0
- package/lib-amd/utilities/Common.styles.js +74 -2
- package/lib-amd/utilities/Common.styles.js.map +1 -1
- package/lib-amd/utilities/image-export-utils.js +3 -3
- package/lib-amd/utilities/image-export-utils.js.map +1 -1
- package/lib-amd/utilities/index.d.ts +1 -0
- package/lib-amd/utilities/index.js +2 -1
- package/lib-amd/utilities/index.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +32 -8
- package/lib-amd/utilities/utilities.js +239 -114
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/PolarChart.d.ts +1 -0
- package/lib-commonjs/PolarChart.js +5 -0
- package/lib-commonjs/PolarChart.js.map +1 -0
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +0 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +0 -29
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.base.js +12 -4
- package/lib-commonjs/components/ChartTable/ChartTable.base.js.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.styles.js +3 -0
- package/lib-commonjs/components/ChartTable/ChartTable.styles.js.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.types.d.ts +11 -0
- package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +81 -41
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +30 -26
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +20 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +23 -27
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +392 -269
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +15 -3
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js +2 -0
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +13 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -2
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.base.js +14 -8
- package/lib-commonjs/components/FunnelChart/FunnelChart.base.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js +3 -0
- package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.types.d.ts +13 -0
- package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +16 -22
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +9 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -16
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +54 -4
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +1 -25
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/PolarChart/PolarChart.base.d.ts +3 -0
- package/lib-commonjs/components/PolarChart/PolarChart.base.js +429 -0
- package/lib-commonjs/components/PolarChart/PolarChart.base.js.map +1 -0
- package/lib-commonjs/components/PolarChart/PolarChart.d.ts +7 -0
- package/lib-commonjs/components/PolarChart/PolarChart.js +12 -0
- package/lib-commonjs/components/PolarChart/PolarChart.js.map +1 -0
- package/lib-commonjs/components/PolarChart/PolarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/PolarChart/PolarChart.styles.js +43 -0
- package/lib-commonjs/components/PolarChart/PolarChart.styles.js.map +1 -0
- package/lib-commonjs/components/PolarChart/PolarChart.types.d.ts +185 -0
- package/lib-commonjs/components/PolarChart/PolarChart.types.js +3 -0
- package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +1 -0
- package/lib-commonjs/components/PolarChart/PolarChart.utils.d.ts +43 -0
- package/lib-commonjs/components/PolarChart/PolarChart.utils.js +188 -0
- package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +1 -0
- package/lib-commonjs/components/PolarChart/index.d.ts +2 -0
- package/lib-commonjs/components/PolarChart/index.js +6 -0
- package/lib-commonjs/components/PolarChart/index.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +10 -3
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +3 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +18 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +13 -31
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.d.ts +4 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +11 -79
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +18 -30
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/index.d.ts +2 -0
- package/lib-commonjs/index.js +3 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.d.ts +107 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/utilities/ChartTitle.d.ts +55 -0
- package/lib-commonjs/utilities/ChartTitle.js +49 -0
- package/lib-commonjs/utilities/ChartTitle.js.map +1 -0
- package/lib-commonjs/utilities/Common.styles.d.ts +51 -0
- package/lib-commonjs/utilities/Common.styles.js +74 -2
- package/lib-commonjs/utilities/Common.styles.js.map +1 -1
- package/lib-commonjs/utilities/image-export-utils.js +3 -3
- package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
- package/lib-commonjs/utilities/index.d.ts +1 -0
- package/lib-commonjs/utilities/index.js +1 -0
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +32 -8
- package/lib-commonjs/utilities/utilities.js +239 -114
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +4 -12
- package/project.json +0 -1
- package/src/components/ChartTable/ChartTable.types.ts +13 -0
- package/src/components/CommonComponents/Annotations/ChartAnnotationLayer.types.ts +5 -0
- package/src/components/CommonComponents/CartesianChart.types.ts +22 -1
- package/src/components/DonutChart/DonutChart.types.ts +16 -0
- package/src/components/FunnelChart/FunnelChart.types.ts +16 -0
- package/src/components/GaugeChart/GaugeChart.types.ts +11 -0
- package/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts +11 -0
- package/src/components/PolarChart/PolarChart.types.ts +232 -0
- package/src/components/SankeyChart/SankeyChart.types.ts +22 -0
- package/src/components/ScatterChart/ScatterChart.types.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
|
-
"version": "5.25.
|
|
3
|
+
"version": "5.25.6",
|
|
4
4
|
"description": "React web charting controls for Microsoft fluentui system.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -25,20 +25,12 @@
|
|
|
25
25
|
"test:tz": "node ./scripts/run-tests-in-timezone.js"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@fluentui/eslint-plugin": "*",
|
|
29
|
-
"@fluentui/react": "*",
|
|
30
|
-
"@types/react-addons-test-utils": "0.14.18",
|
|
31
|
-
"@fluentui/jest-serializer-merge-styles": "*",
|
|
32
|
-
"@fluentui/scripts-api-extractor": "*",
|
|
33
|
-
"@fluentui/scripts-jest": "*",
|
|
34
|
-
"@fluentui/scripts-tasks": "*",
|
|
35
|
-
"@fluentui/scripts-webpack": "*",
|
|
36
28
|
"jest-canvas-mock": "2.4.0"
|
|
37
29
|
},
|
|
38
30
|
"dependencies": {
|
|
39
31
|
"@fluentui/chart-utilities": "^1.1.38",
|
|
40
|
-
"@fluentui/react-focus": "^8.10.
|
|
41
|
-
"@fluentui/theme-samples": "^8.7.
|
|
32
|
+
"@fluentui/react-focus": "^8.10.4",
|
|
33
|
+
"@fluentui/theme-samples": "^8.7.223",
|
|
42
34
|
"@microsoft/load-themed-styles": "^1.10.26",
|
|
43
35
|
"@types/d3-array": "^3.0.0",
|
|
44
36
|
"@types/d3-axis": "^3.0.0",
|
|
@@ -66,7 +58,7 @@
|
|
|
66
58
|
"tslib": "^2.1.0"
|
|
67
59
|
},
|
|
68
60
|
"peerDependencies": {
|
|
69
|
-
"@fluentui/react": "^8.125.
|
|
61
|
+
"@fluentui/react": "^8.125.4",
|
|
70
62
|
"@types/react": ">=16.8.0 <20.0.0",
|
|
71
63
|
"@types/react-dom": ">=16.8.0 <20.0.0",
|
|
72
64
|
"react": ">=16.8.0 <20.0.0",
|
package/project.json
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
|
|
3
3
|
import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
4
4
|
import { IChart } from '../../types/index';
|
|
5
|
+
import { ITitleStyles } from '../../utilities/Common.styles';
|
|
5
6
|
|
|
6
7
|
export interface IChartTableStyleProps {
|
|
7
8
|
theme: ITheme;
|
|
@@ -13,6 +14,11 @@ export interface IChartTableStyleProps {
|
|
|
13
14
|
* {@docCategory ChartTable}
|
|
14
15
|
*/
|
|
15
16
|
export interface IChartTableProps {
|
|
17
|
+
/**
|
|
18
|
+
* Title styles configuration for the chart title
|
|
19
|
+
*/
|
|
20
|
+
titleStyles?: ITitleStyles;
|
|
21
|
+
|
|
16
22
|
/**
|
|
17
23
|
* 1d or 2d Array of header values.
|
|
18
24
|
*/
|
|
@@ -35,6 +41,11 @@ export interface IChartTableProps {
|
|
|
35
41
|
*/
|
|
36
42
|
height?: string | number;
|
|
37
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Chart title to display above the table
|
|
46
|
+
*/
|
|
47
|
+
chartTitle?: string;
|
|
48
|
+
|
|
38
49
|
/**
|
|
39
50
|
* Theme (provided through customization)
|
|
40
51
|
*/
|
|
@@ -67,4 +78,6 @@ export interface IChartTableStyles {
|
|
|
67
78
|
headerCell?: IStyle;
|
|
68
79
|
bodyCell?: IStyle;
|
|
69
80
|
chart?: IStyle;
|
|
81
|
+
chartTitle?: IStyle;
|
|
82
|
+
svgTooltip?: IStyle;
|
|
70
83
|
}
|
|
@@ -36,6 +36,11 @@ export interface IChartAnnotationLayerProps {
|
|
|
36
36
|
context: IChartAnnotationContext;
|
|
37
37
|
theme: ITheme;
|
|
38
38
|
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* When true, removes default border, shadow, and background styling from annotations.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
hideDefaultStyles?: boolean;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
export interface IResolvedAnnotationPosition {
|
|
@@ -5,6 +5,7 @@ import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
|
|
|
5
5
|
import { IFocusZoneProps, FocusZoneDirection } from '@fluentui/react-focus';
|
|
6
6
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
7
7
|
import { ILegendsProps } from '../Legends/index';
|
|
8
|
+
import { ITitleStyles } from '../../utilities/Common.styles';
|
|
8
9
|
import {
|
|
9
10
|
AxisCategoryOrder,
|
|
10
11
|
AxisProps,
|
|
@@ -221,6 +222,11 @@ export interface ICartesianChartStyles {
|
|
|
221
222
|
* {@docCategory CartesianChart}
|
|
222
223
|
*/
|
|
223
224
|
export interface ICartesianChartProps {
|
|
225
|
+
/**
|
|
226
|
+
* Title styles configuration for the chart title
|
|
227
|
+
*/
|
|
228
|
+
titleStyles?: ITitleStyles;
|
|
229
|
+
|
|
224
230
|
/**
|
|
225
231
|
* Below height used for resizing of the chart
|
|
226
232
|
* Wrap chart in your container and send the updated height and width to these props.
|
|
@@ -322,6 +328,11 @@ export interface ICartesianChartProps {
|
|
|
322
328
|
*/
|
|
323
329
|
yMaxValue?: number;
|
|
324
330
|
|
|
331
|
+
/**
|
|
332
|
+
* minimum data value point in x-axis (for numeric x-axis)
|
|
333
|
+
*/
|
|
334
|
+
xMinValue?: number;
|
|
335
|
+
|
|
325
336
|
/**
|
|
326
337
|
* maximum data value point in x-axis
|
|
327
338
|
*/
|
|
@@ -561,7 +572,17 @@ export interface ICartesianChartProps {
|
|
|
561
572
|
* Configuration for the x-axis.
|
|
562
573
|
* Use this to control `tickStep`, `tick0`, etc.
|
|
563
574
|
*/
|
|
564
|
-
xAxis?: AxisProps
|
|
575
|
+
xAxis?: AxisProps & {
|
|
576
|
+
/**
|
|
577
|
+
* Controls how x-axis tick labels are laid out.
|
|
578
|
+
*
|
|
579
|
+
* - `'auto'`: Tick labels are automatically wrapped, truncated, and staggered
|
|
580
|
+
* across alternating levels based on the available space to prevent overlap.
|
|
581
|
+
*
|
|
582
|
+
* @default 'default'
|
|
583
|
+
*/
|
|
584
|
+
tickLayout?: 'default' | 'auto';
|
|
585
|
+
};
|
|
565
586
|
|
|
566
587
|
/**
|
|
567
588
|
* Configuration for the y-axis.
|
|
@@ -3,6 +3,7 @@ import { IRefObject, IRenderFunction, IStyleFunctionOrObject } from '@fluentui/r
|
|
|
3
3
|
import { ICartesianChartProps, ICartesianChartStyleProps } from '../CommonComponents/index';
|
|
4
4
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
5
5
|
import { IChartProps, IChartDataPoint, IChart } from './index';
|
|
6
|
+
import type { ITitleStyles } from '../../utilities/Common.styles';
|
|
6
7
|
|
|
7
8
|
export interface IDonutChart {}
|
|
8
9
|
|
|
@@ -11,6 +12,11 @@ export interface IDonutChart {}
|
|
|
11
12
|
* {@docCategory DonutChart}
|
|
12
13
|
*/
|
|
13
14
|
export interface IDonutChartProps extends ICartesianChartProps {
|
|
15
|
+
/**
|
|
16
|
+
* Title styles configuration for the chart title
|
|
17
|
+
*/
|
|
18
|
+
titleStyles?: ITitleStyles;
|
|
19
|
+
|
|
14
20
|
/**
|
|
15
21
|
* Data to render in the chart.
|
|
16
22
|
*/
|
|
@@ -110,6 +116,11 @@ export interface IDonutChartStyles {
|
|
|
110
116
|
*/
|
|
111
117
|
legendContainer: IStyle;
|
|
112
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Style for the chart title.
|
|
121
|
+
*/
|
|
122
|
+
chartTitle?: IStyle;
|
|
123
|
+
|
|
113
124
|
/**
|
|
114
125
|
* styles for axis annotation
|
|
115
126
|
*/
|
|
@@ -119,4 +130,9 @@ export interface IDonutChartStyles {
|
|
|
119
130
|
* Styles for the chart wrapper div
|
|
120
131
|
*/
|
|
121
132
|
chartWrapper?: IStyle;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Style for SVG tooltip text
|
|
136
|
+
*/
|
|
137
|
+
svgTooltip?: IStyle;
|
|
122
138
|
}
|
|
@@ -4,6 +4,7 @@ import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
|
4
4
|
import { ICalloutContentStyleProps, ICalloutContentStyles } from '@fluentui/react/lib/Callout';
|
|
5
5
|
import { ILegendsProps } from '../Legends/index';
|
|
6
6
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
7
|
+
import { ITitleStyles } from '../../utilities/Common.styles';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Data point for funnel chart
|
|
@@ -34,6 +35,11 @@ export interface IFunnelChartDataPoint {
|
|
|
34
35
|
* {@docCategory FunnelChart}
|
|
35
36
|
*/
|
|
36
37
|
export interface IFunnelChartProps {
|
|
38
|
+
/**
|
|
39
|
+
* Title styles configuration for the chart title
|
|
40
|
+
*/
|
|
41
|
+
titleStyles?: ITitleStyles;
|
|
42
|
+
|
|
37
43
|
/**
|
|
38
44
|
* Data points for the funnel chart
|
|
39
45
|
*/
|
|
@@ -139,11 +145,21 @@ export interface IFunnelChartStyles {
|
|
|
139
145
|
*/
|
|
140
146
|
chart?: IStyle;
|
|
141
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Style for the chart title.
|
|
150
|
+
*/
|
|
151
|
+
chartTitle?: IStyle;
|
|
152
|
+
|
|
142
153
|
/**
|
|
143
154
|
* Styles for text elements
|
|
144
155
|
*/
|
|
145
156
|
text?: IStyle;
|
|
146
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Style for SVG tooltip text
|
|
160
|
+
*/
|
|
161
|
+
svgTooltip?: IStyle;
|
|
162
|
+
|
|
147
163
|
/**
|
|
148
164
|
* Styles for sub-components
|
|
149
165
|
*/
|
|
@@ -3,6 +3,7 @@ import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilitie
|
|
|
3
3
|
import { ILegendsProps } from '../Legends/index';
|
|
4
4
|
import { IAccessibilityProps, IChart } from '../../types/index';
|
|
5
5
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
6
|
+
import { ITitleStyles } from '../../utilities/Common.styles';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Gauge Chart segment interface.
|
|
@@ -56,6 +57,11 @@ export enum GaugeChartVariant {
|
|
|
56
57
|
* {@docCategory GaugeChart}
|
|
57
58
|
*/
|
|
58
59
|
export interface IGaugeChartProps {
|
|
60
|
+
/**
|
|
61
|
+
* Title styles configuration for the chart title
|
|
62
|
+
*/
|
|
63
|
+
titleStyles?: ITitleStyles;
|
|
64
|
+
|
|
59
65
|
/**
|
|
60
66
|
* Width of the chart
|
|
61
67
|
*/
|
|
@@ -267,6 +273,11 @@ export interface IGaugeChartStyles {
|
|
|
267
273
|
*/
|
|
268
274
|
needle?: IStyle;
|
|
269
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Styles for SVG tooltip background
|
|
278
|
+
*/
|
|
279
|
+
svgTooltip?: IStyle;
|
|
280
|
+
|
|
270
281
|
/**
|
|
271
282
|
* Styles for the chart title
|
|
272
283
|
*/
|
|
@@ -71,6 +71,12 @@ export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
|
|
|
71
71
|
* The prop used to enable rounded corners for the bars.
|
|
72
72
|
*/
|
|
73
73
|
roundCorners?: boolean;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Prop to hide the bar labels
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
hideLabels?: boolean;
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
/**
|
|
@@ -135,4 +141,9 @@ export interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles
|
|
|
135
141
|
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
136
142
|
*/
|
|
137
143
|
opacityChangeOnHover: IStyle;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Style for the labels displayed on the bars.
|
|
147
|
+
*/
|
|
148
|
+
barLabel?: IStyle;
|
|
138
149
|
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
IAreaPolarSeries,
|
|
4
|
+
AxisCategoryOrder,
|
|
5
|
+
AxisProps,
|
|
6
|
+
AxisScaleType,
|
|
7
|
+
IChart,
|
|
8
|
+
ILinePolarSeries,
|
|
9
|
+
IMargins,
|
|
10
|
+
IScatterPolarSeries,
|
|
11
|
+
} from '../../types/IDataPoint';
|
|
12
|
+
import { ILegendsProps } from '../Legends/Legends.types';
|
|
13
|
+
import { ICalloutProps, IStyle, IStyleFunctionOrObject, ITheme } from '@fluentui/react';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Configuration options for a polar axis.
|
|
17
|
+
* {@docCategory PolarChart}
|
|
18
|
+
*/
|
|
19
|
+
export type PolarAxisProps = AxisProps & {
|
|
20
|
+
/**
|
|
21
|
+
* Values at which ticks should be placed on the axis.
|
|
22
|
+
*/
|
|
23
|
+
tickValues?: number[] | Date[] | string[];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Format string for the axis ticks.
|
|
27
|
+
* For numbers, see: https://d3js.org/d3-format.
|
|
28
|
+
* And for dates see: https://d3js.org/d3-time-format.
|
|
29
|
+
*/
|
|
30
|
+
tickFormat?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Number of ticks to display on the axis.
|
|
34
|
+
*/
|
|
35
|
+
tickCount?: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Defines the order of categories on the axis.
|
|
39
|
+
* @default 'default'
|
|
40
|
+
*/
|
|
41
|
+
categoryOrder?: AxisCategoryOrder;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Scale type for the axis.
|
|
45
|
+
* @default 'default'
|
|
46
|
+
*/
|
|
47
|
+
scaleType?: AxisScaleType;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Start value of the axis range.
|
|
51
|
+
*/
|
|
52
|
+
rangeStart?: number | Date;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* End value of the axis range.
|
|
56
|
+
*/
|
|
57
|
+
rangeEnd?: number | Date;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Polar Chart properties
|
|
62
|
+
* {@docCategory PolarChart}
|
|
63
|
+
*/
|
|
64
|
+
export interface IPolarChartProps {
|
|
65
|
+
/**
|
|
66
|
+
* Data series to be rendered in the polar chart.
|
|
67
|
+
*/
|
|
68
|
+
data: (IAreaPolarSeries | ILinePolarSeries | IScatterPolarSeries)[];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Width of the polar chart.
|
|
72
|
+
* @default 200
|
|
73
|
+
*/
|
|
74
|
+
width?: number;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Height of the polar chart.
|
|
78
|
+
* @default 200
|
|
79
|
+
*/
|
|
80
|
+
height?: number;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Margins around the chart area.
|
|
84
|
+
*/
|
|
85
|
+
margins?: IMargins;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* If true, hides the legend.
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
hideLegend?: boolean;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* If true, hides the tooltip.
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
hideTooltip?: boolean;
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Properties for customizing the legend.
|
|
101
|
+
*/
|
|
102
|
+
legendProps?: Partial<ILegendsProps>;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Title of the chart.
|
|
106
|
+
*/
|
|
107
|
+
chartTitle?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Fraction of the radius to cut out from the center of the chart.
|
|
111
|
+
* Accepts values in the range [0, 1].
|
|
112
|
+
*/
|
|
113
|
+
hole?: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Shape of the polar chart.
|
|
117
|
+
* @default 'circle'
|
|
118
|
+
*/
|
|
119
|
+
shape?: 'circle' | 'polygon';
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Direction in which the chart is drawn.
|
|
123
|
+
* @default 'counterclockwise'
|
|
124
|
+
*/
|
|
125
|
+
direction?: 'clockwise' | 'counterclockwise';
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Configuration options for the radial axis.
|
|
129
|
+
*/
|
|
130
|
+
radialAxis?: PolarAxisProps;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Configuration options for the angular axis.
|
|
134
|
+
*/
|
|
135
|
+
angularAxis?: PolarAxisProps & {
|
|
136
|
+
/**
|
|
137
|
+
* Format unit for angular values.
|
|
138
|
+
* @default 'degrees'
|
|
139
|
+
*/
|
|
140
|
+
unit?: 'radians' | 'degrees';
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
145
|
+
* the public methods and properties of the component.
|
|
146
|
+
*/
|
|
147
|
+
componentRef?: React.Ref<IChart>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Locale identifier string used to format numbers and dates according to the specified culture.
|
|
151
|
+
* Example: 'en-US', 'fr-FR'.
|
|
152
|
+
*/
|
|
153
|
+
culture?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Options for localizing date values.
|
|
157
|
+
*/
|
|
158
|
+
dateLocalizeOptions?: Intl.DateTimeFormatOptions;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* If true, date values are treated as UTC dates.
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
useUTC?: boolean;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Theme (provided through customization)
|
|
168
|
+
*/
|
|
169
|
+
theme?: ITheme;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Call to provide customized styling that will layer on top of the variant rules
|
|
173
|
+
*/
|
|
174
|
+
styles?: IStyleFunctionOrObject<IPolarChartStyleProps, IPolarChartStyles>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Props for the callout in the chart
|
|
178
|
+
*/
|
|
179
|
+
calloutProps?: Partial<ICalloutProps>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Polar Chart style properties
|
|
184
|
+
* {@docCategory PolarChart}
|
|
185
|
+
*/
|
|
186
|
+
export interface IPolarChartStyleProps {
|
|
187
|
+
/**
|
|
188
|
+
* Theme (provided through customization)
|
|
189
|
+
*/
|
|
190
|
+
theme: ITheme;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Polar Chart styles
|
|
195
|
+
* {@docCategory PolarChart}
|
|
196
|
+
*/
|
|
197
|
+
export interface IPolarChartStyles {
|
|
198
|
+
/**
|
|
199
|
+
* Style for the root element.
|
|
200
|
+
*/
|
|
201
|
+
root?: IStyle;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Style for the chart wrapper element.
|
|
205
|
+
*/
|
|
206
|
+
chartWrapper?: IStyle;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Style for the chart element.
|
|
210
|
+
*/
|
|
211
|
+
chart?: IStyle;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Style for the inner grid lines.
|
|
215
|
+
*/
|
|
216
|
+
gridLineInner?: IStyle;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Style for the outer grid lines.
|
|
220
|
+
*/
|
|
221
|
+
gridLineOuter?: IStyle;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Style for the tick labels.
|
|
225
|
+
*/
|
|
226
|
+
tickLabel?: IStyle;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Style for the legend container.
|
|
230
|
+
*/
|
|
231
|
+
legendContainer?: IStyle;
|
|
232
|
+
}
|
|
@@ -2,6 +2,7 @@ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
|
2
2
|
import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
3
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
4
4
|
import { IChart, IChartProps } from '../../types/IDataPoint';
|
|
5
|
+
import { ITitleStyles } from '../../utilities/Common.styles';
|
|
5
6
|
|
|
6
7
|
export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
|
|
7
8
|
|
|
@@ -10,6 +11,11 @@ export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDat
|
|
|
10
11
|
* {@docCategory SankeyChart}
|
|
11
12
|
*/
|
|
12
13
|
export interface ISankeyChartProps {
|
|
14
|
+
/**
|
|
15
|
+
* Title styles configuration for the chart title
|
|
16
|
+
*/
|
|
17
|
+
titleStyles?: ITitleStyles;
|
|
18
|
+
|
|
13
19
|
/**
|
|
14
20
|
* Data to render in the chart.
|
|
15
21
|
*/
|
|
@@ -96,6 +102,12 @@ export interface ISankeyChartProps {
|
|
|
96
102
|
* props for the callout in the chart
|
|
97
103
|
*/
|
|
98
104
|
calloutProps?: Partial<ICalloutProps>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Whether to hide the legend
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
hideLegend?: boolean;
|
|
99
111
|
}
|
|
100
112
|
|
|
101
113
|
/**
|
|
@@ -156,6 +168,16 @@ export interface ISankeyChartStyles {
|
|
|
156
168
|
* Styles for the chart svg element
|
|
157
169
|
*/
|
|
158
170
|
chart?: IStyle;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Style for SVG tooltip text
|
|
174
|
+
*/
|
|
175
|
+
svgTooltip?: IStyle;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Style for the chart title.
|
|
179
|
+
*/
|
|
180
|
+
chartTitle?: IStyle;
|
|
159
181
|
}
|
|
160
182
|
|
|
161
183
|
/**
|
|
@@ -37,6 +37,11 @@ export interface IScatterChartProps extends ICartesianChartProps {
|
|
|
37
37
|
*/
|
|
38
38
|
onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Define a custom callout renderer for a stack; default is to render per data point
|
|
42
|
+
*/
|
|
43
|
+
onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* Callback for getting callout description message
|
|
42
47
|
*/
|