@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/dist/react-charting.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CurveFactory } from 'd3-shape';
|
|
2
2
|
import { FocusZoneDirection } from '@fluentui/react-focus';
|
|
3
|
+
import type { Font } from '@fluentui/chart-utilities';
|
|
3
4
|
import { ICalloutContentStyleProps } from '@fluentui/react/lib/Callout';
|
|
4
5
|
import { ICalloutContentStyles } from '@fluentui/react/lib/Callout';
|
|
5
6
|
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
7
|
+
import { ICalloutProps as ICalloutProps_2 } from '@fluentui/react';
|
|
6
8
|
import { IFocusZoneProps } from '@fluentui/react-focus';
|
|
7
9
|
import { IHoverCardStyleProps } from '@fluentui/react/lib/HoverCard';
|
|
8
10
|
import { IHoverCardStyles } from '@fluentui/react/lib/HoverCard';
|
|
@@ -559,6 +561,24 @@ export declare interface IAreaChartStyleProps extends ICartesianChartStyleProps
|
|
|
559
561
|
export declare interface IAreaChartStyles extends ICartesianChartStyles {
|
|
560
562
|
}
|
|
561
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Represents a areapolar series.
|
|
566
|
+
*/
|
|
567
|
+
declare interface IAreaPolarSeries extends IDataSeries {
|
|
568
|
+
/**
|
|
569
|
+
* Type discriminator: always 'areapolar' for this series.
|
|
570
|
+
*/
|
|
571
|
+
type: 'areapolar';
|
|
572
|
+
/**
|
|
573
|
+
* Array of data points for the series.
|
|
574
|
+
*/
|
|
575
|
+
data: IPolarDataPoint[];
|
|
576
|
+
/**
|
|
577
|
+
* Additional line rendering options (e.g., stroke width, curve type).
|
|
578
|
+
*/
|
|
579
|
+
lineOptions?: ILineChartLineOptions;
|
|
580
|
+
}
|
|
581
|
+
|
|
562
582
|
declare interface IAxisData {
|
|
563
583
|
yAxisDomainValues: number[];
|
|
564
584
|
yAxisTickText: string[];
|
|
@@ -657,6 +677,10 @@ export declare interface IBasestate {
|
|
|
657
677
|
* {@docCategory CartesianChart}
|
|
658
678
|
*/
|
|
659
679
|
export declare interface ICartesianChartProps {
|
|
680
|
+
/**
|
|
681
|
+
* Title styles configuration for the chart title
|
|
682
|
+
*/
|
|
683
|
+
titleStyles?: ITitleStyles;
|
|
660
684
|
/**
|
|
661
685
|
* Below height used for resizing of the chart
|
|
662
686
|
* Wrap chart in your container and send the updated height and width to these props.
|
|
@@ -741,6 +765,10 @@ export declare interface ICartesianChartProps {
|
|
|
741
765
|
* maximum data value point in y-axis
|
|
742
766
|
*/
|
|
743
767
|
yMaxValue?: number;
|
|
768
|
+
/**
|
|
769
|
+
* minimum data value point in x-axis (for numeric x-axis)
|
|
770
|
+
*/
|
|
771
|
+
xMinValue?: number;
|
|
744
772
|
/**
|
|
745
773
|
* maximum data value point in x-axis
|
|
746
774
|
*/
|
|
@@ -935,7 +963,17 @@ export declare interface ICartesianChartProps {
|
|
|
935
963
|
* Configuration for the x-axis.
|
|
936
964
|
* Use this to control `tickStep`, `tick0`, etc.
|
|
937
965
|
*/
|
|
938
|
-
xAxis?: AxisProps
|
|
966
|
+
xAxis?: AxisProps & {
|
|
967
|
+
/**
|
|
968
|
+
* Controls how x-axis tick labels are laid out.
|
|
969
|
+
*
|
|
970
|
+
* - `'auto'`: Tick labels are automatically wrapped, truncated, and staggered
|
|
971
|
+
* across alternating levels based on the available space to prevent overlap.
|
|
972
|
+
*
|
|
973
|
+
* @default 'default'
|
|
974
|
+
*/
|
|
975
|
+
tickLayout?: 'default' | 'auto';
|
|
976
|
+
};
|
|
939
977
|
/**
|
|
940
978
|
* Configuration for the y-axis.
|
|
941
979
|
* Use this to control `tickStep`, `tick0`, etc.
|
|
@@ -1317,6 +1355,10 @@ export declare interface IChartProps {
|
|
|
1317
1355
|
* {@docCategory ChartTable}
|
|
1318
1356
|
*/
|
|
1319
1357
|
export declare interface IChartTableProps {
|
|
1358
|
+
/**
|
|
1359
|
+
* Title styles configuration for the chart title
|
|
1360
|
+
*/
|
|
1361
|
+
titleStyles?: ITitleStyles;
|
|
1320
1362
|
/**
|
|
1321
1363
|
* 1d or 2d Array of header values.
|
|
1322
1364
|
*/
|
|
@@ -1341,6 +1383,10 @@ export declare interface IChartTableProps {
|
|
|
1341
1383
|
* @default '650px'
|
|
1342
1384
|
*/
|
|
1343
1385
|
height?: string | number;
|
|
1386
|
+
/**
|
|
1387
|
+
* Chart title to display above the table
|
|
1388
|
+
*/
|
|
1389
|
+
chartTitle?: string;
|
|
1344
1390
|
/**
|
|
1345
1391
|
* Theme (provided through customization)
|
|
1346
1392
|
*/
|
|
@@ -1375,6 +1421,8 @@ export declare interface IChartTableStyles {
|
|
|
1375
1421
|
headerCell?: IStyle;
|
|
1376
1422
|
bodyCell?: IStyle;
|
|
1377
1423
|
chart?: IStyle;
|
|
1424
|
+
chartTitle?: IStyle;
|
|
1425
|
+
svgTooltip?: IStyle;
|
|
1378
1426
|
}
|
|
1379
1427
|
|
|
1380
1428
|
export declare interface IChildProps {
|
|
@@ -1545,6 +1593,10 @@ export declare interface IDonutChart {
|
|
|
1545
1593
|
* {@docCategory DonutChart}
|
|
1546
1594
|
*/
|
|
1547
1595
|
export declare interface IDonutChartProps extends ICartesianChartProps {
|
|
1596
|
+
/**
|
|
1597
|
+
* Title styles configuration for the chart title
|
|
1598
|
+
*/
|
|
1599
|
+
titleStyles?: ITitleStyles;
|
|
1548
1600
|
/**
|
|
1549
1601
|
* Data to render in the chart.
|
|
1550
1602
|
*/
|
|
@@ -1631,6 +1683,10 @@ export declare interface IDonutChartStyles {
|
|
|
1631
1683
|
* Style for the legend container.
|
|
1632
1684
|
*/
|
|
1633
1685
|
legendContainer: IStyle;
|
|
1686
|
+
/**
|
|
1687
|
+
* Style for the chart title.
|
|
1688
|
+
*/
|
|
1689
|
+
chartTitle?: IStyle;
|
|
1634
1690
|
/**
|
|
1635
1691
|
* styles for axis annotation
|
|
1636
1692
|
*/
|
|
@@ -1639,6 +1695,10 @@ export declare interface IDonutChartStyles {
|
|
|
1639
1695
|
* Styles for the chart wrapper div
|
|
1640
1696
|
*/
|
|
1641
1697
|
chartWrapper?: IStyle;
|
|
1698
|
+
/**
|
|
1699
|
+
* Style for SVG tooltip text
|
|
1700
|
+
*/
|
|
1701
|
+
svgTooltip?: IStyle;
|
|
1642
1702
|
}
|
|
1643
1703
|
|
|
1644
1704
|
declare interface IEventAnnotation {
|
|
@@ -1692,6 +1752,10 @@ declare interface IFunnelChartDataPoint {
|
|
|
1692
1752
|
* {@docCategory FunnelChart}
|
|
1693
1753
|
*/
|
|
1694
1754
|
export declare interface IFunnelChartProps {
|
|
1755
|
+
/**
|
|
1756
|
+
* Title styles configuration for the chart title
|
|
1757
|
+
*/
|
|
1758
|
+
titleStyles?: ITitleStyles;
|
|
1695
1759
|
/**
|
|
1696
1760
|
* Data points for the funnel chart
|
|
1697
1761
|
*/
|
|
@@ -1784,10 +1848,18 @@ export declare interface IFunnelChartStyles {
|
|
|
1784
1848
|
* Styles for the chart
|
|
1785
1849
|
*/
|
|
1786
1850
|
chart?: IStyle;
|
|
1851
|
+
/**
|
|
1852
|
+
* Style for the chart title.
|
|
1853
|
+
*/
|
|
1854
|
+
chartTitle?: IStyle;
|
|
1787
1855
|
/**
|
|
1788
1856
|
* Styles for text elements
|
|
1789
1857
|
*/
|
|
1790
1858
|
text?: IStyle;
|
|
1859
|
+
/**
|
|
1860
|
+
* Style for SVG tooltip text
|
|
1861
|
+
*/
|
|
1862
|
+
svgTooltip?: IStyle;
|
|
1791
1863
|
/**
|
|
1792
1864
|
* Styles for sub-components
|
|
1793
1865
|
*/
|
|
@@ -1917,6 +1989,10 @@ export declare interface IGanttChartStyles extends ICartesianChartStyles {
|
|
|
1917
1989
|
* {@docCategory GaugeChart}
|
|
1918
1990
|
*/
|
|
1919
1991
|
export declare interface IGaugeChartProps {
|
|
1992
|
+
/**
|
|
1993
|
+
* Title styles configuration for the chart title
|
|
1994
|
+
*/
|
|
1995
|
+
titleStyles?: ITitleStyles;
|
|
1920
1996
|
/**
|
|
1921
1997
|
* Width of the chart
|
|
1922
1998
|
*/
|
|
@@ -2116,6 +2192,10 @@ export declare interface IGaugeChartStyles {
|
|
|
2116
2192
|
* Styles for the needle
|
|
2117
2193
|
*/
|
|
2118
2194
|
needle?: IStyle;
|
|
2195
|
+
/**
|
|
2196
|
+
* Styles for SVG tooltip background
|
|
2197
|
+
*/
|
|
2198
|
+
svgTooltip?: IStyle;
|
|
2119
2199
|
/**
|
|
2120
2200
|
* Styles for the chart title
|
|
2121
2201
|
*/
|
|
@@ -2366,6 +2446,10 @@ export declare interface IGVBarChartSeriesPoint {
|
|
|
2366
2446
|
* Accessibility data for callout
|
|
2367
2447
|
*/
|
|
2368
2448
|
callOutAccessibilityData?: IAccessibilityProps;
|
|
2449
|
+
/**
|
|
2450
|
+
* Label to display on the bar
|
|
2451
|
+
*/
|
|
2452
|
+
barLabel?: string;
|
|
2369
2453
|
/**
|
|
2370
2454
|
* Whether to use the secondary y scale or not
|
|
2371
2455
|
* False by default.
|
|
@@ -2783,6 +2867,10 @@ export declare interface IHorizontalBarChartWithAxisDataPoint {
|
|
|
2783
2867
|
* This is an optional prop, If haven't given data will take
|
|
2784
2868
|
*/
|
|
2785
2869
|
yAxisCalloutData?: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Label to display on the bar
|
|
2872
|
+
*/
|
|
2873
|
+
barLabel?: string;
|
|
2786
2874
|
/**
|
|
2787
2875
|
* onClick action for each datapoint in the chart
|
|
2788
2876
|
*/
|
|
@@ -2847,6 +2935,11 @@ export declare interface IHorizontalBarChartWithAxisProps extends ICartesianChar
|
|
|
2847
2935
|
* The prop used to enable rounded corners for the bars.
|
|
2848
2936
|
*/
|
|
2849
2937
|
roundCorners?: boolean;
|
|
2938
|
+
/**
|
|
2939
|
+
* Prop to hide the bar labels
|
|
2940
|
+
* @default false
|
|
2941
|
+
*/
|
|
2942
|
+
hideLabels?: boolean;
|
|
2850
2943
|
}
|
|
2851
2944
|
|
|
2852
2945
|
/**
|
|
@@ -2904,6 +2997,10 @@ export declare interface IHorizontalBarChartWithAxisStyles extends ICartesianCha
|
|
|
2904
2997
|
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
2905
2998
|
*/
|
|
2906
2999
|
opacityChangeOnHover: IStyle;
|
|
3000
|
+
/**
|
|
3001
|
+
* Style for the labels displayed on the bars.
|
|
3002
|
+
*/
|
|
3003
|
+
barLabel?: IStyle;
|
|
2907
3004
|
}
|
|
2908
3005
|
|
|
2909
3006
|
/**
|
|
@@ -3446,6 +3543,24 @@ export declare interface ILineDataInVerticalStackedBarChart {
|
|
|
3446
3543
|
lineOptions?: ILineChartLineOptions;
|
|
3447
3544
|
}
|
|
3448
3545
|
|
|
3546
|
+
/**
|
|
3547
|
+
* Represents a linepolar series.
|
|
3548
|
+
*/
|
|
3549
|
+
declare interface ILinePolarSeries extends IDataSeries {
|
|
3550
|
+
/**
|
|
3551
|
+
* Type discriminator: always 'linepolar' for this series.
|
|
3552
|
+
*/
|
|
3553
|
+
type: 'linepolar';
|
|
3554
|
+
/**
|
|
3555
|
+
* Array of data points for the series.
|
|
3556
|
+
*/
|
|
3557
|
+
data: IPolarDataPoint[];
|
|
3558
|
+
/**
|
|
3559
|
+
* Additional line rendering options (e.g., stroke width, curve type).
|
|
3560
|
+
*/
|
|
3561
|
+
lineOptions?: ILineChartLineOptions;
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3449
3564
|
/**
|
|
3450
3565
|
* Represents a line series.
|
|
3451
3566
|
*/
|
|
@@ -3979,6 +4094,194 @@ export declare interface IPieChartStyles {
|
|
|
3979
4094
|
chartTitle?: IStyle;
|
|
3980
4095
|
}
|
|
3981
4096
|
|
|
4097
|
+
/**
|
|
4098
|
+
* Polar Chart properties
|
|
4099
|
+
* {@docCategory PolarChart}
|
|
4100
|
+
*/
|
|
4101
|
+
export declare interface IPolarChartProps {
|
|
4102
|
+
/**
|
|
4103
|
+
* Data series to be rendered in the polar chart.
|
|
4104
|
+
*/
|
|
4105
|
+
data: (IAreaPolarSeries | ILinePolarSeries | IScatterPolarSeries)[];
|
|
4106
|
+
/**
|
|
4107
|
+
* Width of the polar chart.
|
|
4108
|
+
* @default 200
|
|
4109
|
+
*/
|
|
4110
|
+
width?: number;
|
|
4111
|
+
/**
|
|
4112
|
+
* Height of the polar chart.
|
|
4113
|
+
* @default 200
|
|
4114
|
+
*/
|
|
4115
|
+
height?: number;
|
|
4116
|
+
/**
|
|
4117
|
+
* Margins around the chart area.
|
|
4118
|
+
*/
|
|
4119
|
+
margins?: IMargins;
|
|
4120
|
+
/**
|
|
4121
|
+
* If true, hides the legend.
|
|
4122
|
+
* @default false
|
|
4123
|
+
*/
|
|
4124
|
+
hideLegend?: boolean;
|
|
4125
|
+
/**
|
|
4126
|
+
* If true, hides the tooltip.
|
|
4127
|
+
* @default false
|
|
4128
|
+
*/
|
|
4129
|
+
hideTooltip?: boolean;
|
|
4130
|
+
legendProps?: Partial<ILegendsProps>;
|
|
4131
|
+
/**
|
|
4132
|
+
* Title of the chart.
|
|
4133
|
+
*/
|
|
4134
|
+
chartTitle?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* Fraction of the radius to cut out from the center of the chart.
|
|
4137
|
+
* Accepts values in the range [0, 1].
|
|
4138
|
+
*/
|
|
4139
|
+
hole?: number;
|
|
4140
|
+
/**
|
|
4141
|
+
* Shape of the polar chart.
|
|
4142
|
+
* @default 'circle'
|
|
4143
|
+
*/
|
|
4144
|
+
shape?: 'circle' | 'polygon';
|
|
4145
|
+
/**
|
|
4146
|
+
* Direction in which the chart is drawn.
|
|
4147
|
+
* @default 'counterclockwise'
|
|
4148
|
+
*/
|
|
4149
|
+
direction?: 'clockwise' | 'counterclockwise';
|
|
4150
|
+
/**
|
|
4151
|
+
* Configuration options for the radial axis.
|
|
4152
|
+
*/
|
|
4153
|
+
radialAxis?: PolarAxisProps;
|
|
4154
|
+
/**
|
|
4155
|
+
* Configuration options for the angular axis.
|
|
4156
|
+
*/
|
|
4157
|
+
angularAxis?: PolarAxisProps & {
|
|
4158
|
+
/**
|
|
4159
|
+
* Format unit for angular values.
|
|
4160
|
+
* @default 'degrees'
|
|
4161
|
+
*/
|
|
4162
|
+
unit?: 'radians' | 'degrees';
|
|
4163
|
+
};
|
|
4164
|
+
/**
|
|
4165
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
4166
|
+
* the public methods and properties of the component.
|
|
4167
|
+
*/
|
|
4168
|
+
componentRef?: React_2.Ref<IChart>;
|
|
4169
|
+
/**
|
|
4170
|
+
* Locale identifier string used to format numbers and dates according to the specified culture.
|
|
4171
|
+
* Example: 'en-US', 'fr-FR'.
|
|
4172
|
+
*/
|
|
4173
|
+
culture?: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* Options for localizing date values.
|
|
4176
|
+
*/
|
|
4177
|
+
dateLocalizeOptions?: Intl.DateTimeFormatOptions;
|
|
4178
|
+
/**
|
|
4179
|
+
* If true, date values are treated as UTC dates.
|
|
4180
|
+
* @default false
|
|
4181
|
+
*/
|
|
4182
|
+
useUTC?: boolean;
|
|
4183
|
+
/**
|
|
4184
|
+
* Theme (provided through customization)
|
|
4185
|
+
*/
|
|
4186
|
+
theme?: ITheme_2;
|
|
4187
|
+
/**
|
|
4188
|
+
* Call to provide customized styling that will layer on top of the variant rules
|
|
4189
|
+
*/
|
|
4190
|
+
styles?: IStyleFunctionOrObject_2<IPolarChartStyleProps, IPolarChartStyles>;
|
|
4191
|
+
/**
|
|
4192
|
+
* Props for the callout in the chart
|
|
4193
|
+
*/
|
|
4194
|
+
calloutProps?: Partial<ICalloutProps_2>;
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* Polar Chart style properties
|
|
4199
|
+
* {@docCategory PolarChart}
|
|
4200
|
+
*/
|
|
4201
|
+
export declare interface IPolarChartStyleProps {
|
|
4202
|
+
/**
|
|
4203
|
+
* Theme (provided through customization)
|
|
4204
|
+
*/
|
|
4205
|
+
theme: ITheme_2;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* Polar Chart styles
|
|
4210
|
+
* {@docCategory PolarChart}
|
|
4211
|
+
*/
|
|
4212
|
+
export declare interface IPolarChartStyles {
|
|
4213
|
+
/**
|
|
4214
|
+
* Style for the root element.
|
|
4215
|
+
*/
|
|
4216
|
+
root?: IStyle_2;
|
|
4217
|
+
/**
|
|
4218
|
+
* Style for the chart wrapper element.
|
|
4219
|
+
*/
|
|
4220
|
+
chartWrapper?: IStyle_2;
|
|
4221
|
+
/**
|
|
4222
|
+
* Style for the chart element.
|
|
4223
|
+
*/
|
|
4224
|
+
chart?: IStyle_2;
|
|
4225
|
+
/**
|
|
4226
|
+
* Style for the inner grid lines.
|
|
4227
|
+
*/
|
|
4228
|
+
gridLineInner?: IStyle_2;
|
|
4229
|
+
/**
|
|
4230
|
+
* Style for the outer grid lines.
|
|
4231
|
+
*/
|
|
4232
|
+
gridLineOuter?: IStyle_2;
|
|
4233
|
+
/**
|
|
4234
|
+
* Style for the tick labels.
|
|
4235
|
+
*/
|
|
4236
|
+
tickLabel?: IStyle_2;
|
|
4237
|
+
/**
|
|
4238
|
+
* Style for the legend container.
|
|
4239
|
+
*/
|
|
4240
|
+
legendContainer?: IStyle_2;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* Represents a single data point in a polar series.
|
|
4245
|
+
*/
|
|
4246
|
+
declare interface IPolarDataPoint {
|
|
4247
|
+
/**
|
|
4248
|
+
* Radial value of the data point.
|
|
4249
|
+
*/
|
|
4250
|
+
r: string | number | Date;
|
|
4251
|
+
/**
|
|
4252
|
+
* Angular value of the data point, specified as a category or in degrees.
|
|
4253
|
+
*/
|
|
4254
|
+
theta: string | number;
|
|
4255
|
+
/**
|
|
4256
|
+
* Optional click handler for the data point.
|
|
4257
|
+
*/
|
|
4258
|
+
onClick?: () => void;
|
|
4259
|
+
/**
|
|
4260
|
+
* Custom text to show in the callout in place of the radial axis value.
|
|
4261
|
+
*/
|
|
4262
|
+
radialAxisCalloutData?: string;
|
|
4263
|
+
/**
|
|
4264
|
+
* Custom text to show in the callout in place of the angular axis value.
|
|
4265
|
+
*/
|
|
4266
|
+
angularAxisCalloutData?: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* Accessibility properties for the data point.
|
|
4269
|
+
*/
|
|
4270
|
+
callOutAccessibilityData?: IAccessibilityProps;
|
|
4271
|
+
/**
|
|
4272
|
+
* Custom marker size for the data point.
|
|
4273
|
+
*/
|
|
4274
|
+
markerSize?: number;
|
|
4275
|
+
/**
|
|
4276
|
+
* Optional text to annotate or label the data point.
|
|
4277
|
+
*/
|
|
4278
|
+
text?: string;
|
|
4279
|
+
/**
|
|
4280
|
+
* Color of the data point. If not provided, it will inherit the series color.
|
|
4281
|
+
*/
|
|
4282
|
+
color?: string;
|
|
4283
|
+
}
|
|
4284
|
+
|
|
3982
4285
|
export declare interface IRefArrayData {
|
|
3983
4286
|
index?: string;
|
|
3984
4287
|
refElement?: SVGGElement;
|
|
@@ -4068,6 +4371,10 @@ export declare interface ISankeyChartData {
|
|
|
4068
4371
|
* {@docCategory SankeyChart}
|
|
4069
4372
|
*/
|
|
4070
4373
|
export declare interface ISankeyChartProps {
|
|
4374
|
+
/**
|
|
4375
|
+
* Title styles configuration for the chart title
|
|
4376
|
+
*/
|
|
4377
|
+
titleStyles?: ITitleStyles;
|
|
4071
4378
|
/**
|
|
4072
4379
|
* Data to render in the chart.
|
|
4073
4380
|
*/
|
|
@@ -4138,6 +4445,11 @@ export declare interface ISankeyChartProps {
|
|
|
4138
4445
|
* props for the callout in the chart
|
|
4139
4446
|
*/
|
|
4140
4447
|
calloutProps?: Partial<ICalloutProps>;
|
|
4448
|
+
/**
|
|
4449
|
+
* Whether to hide the legend
|
|
4450
|
+
* @default false
|
|
4451
|
+
*/
|
|
4452
|
+
hideLegend?: boolean;
|
|
4141
4453
|
}
|
|
4142
4454
|
|
|
4143
4455
|
/**
|
|
@@ -4201,6 +4513,14 @@ export declare interface ISankeyChartStyles {
|
|
|
4201
4513
|
* Styles for the chart svg element
|
|
4202
4514
|
*/
|
|
4203
4515
|
chart?: IStyle;
|
|
4516
|
+
/**
|
|
4517
|
+
* Style for SVG tooltip text
|
|
4518
|
+
*/
|
|
4519
|
+
svgTooltip?: IStyle;
|
|
4520
|
+
/**
|
|
4521
|
+
* Style for the chart title.
|
|
4522
|
+
*/
|
|
4523
|
+
chartTitle?: IStyle;
|
|
4204
4524
|
}
|
|
4205
4525
|
|
|
4206
4526
|
/**
|
|
@@ -4275,6 +4595,10 @@ export declare interface IScatterChartProps extends ICartesianChartProps {
|
|
|
4275
4595
|
* Define a custom callout renderer for a data point
|
|
4276
4596
|
*/
|
|
4277
4597
|
onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
|
|
4598
|
+
/**
|
|
4599
|
+
* Define a custom callout renderer for a stack; default is to render per data point
|
|
4600
|
+
*/
|
|
4601
|
+
onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;
|
|
4278
4602
|
/**
|
|
4279
4603
|
* Callback for getting callout description message
|
|
4280
4604
|
*/
|
|
@@ -4303,6 +4627,20 @@ export declare interface IScatterChartStyles extends ICartesianChartStyles {
|
|
|
4303
4627
|
markerLabel?: IStyle_2;
|
|
4304
4628
|
}
|
|
4305
4629
|
|
|
4630
|
+
/**
|
|
4631
|
+
* Represents a scatterpolar series.
|
|
4632
|
+
*/
|
|
4633
|
+
declare interface IScatterPolarSeries extends IDataSeries {
|
|
4634
|
+
/**
|
|
4635
|
+
* Type discriminator: always 'scatterpolar' for this series.
|
|
4636
|
+
*/
|
|
4637
|
+
type: 'scatterpolar';
|
|
4638
|
+
/**
|
|
4639
|
+
* Array of data points for the series.
|
|
4640
|
+
*/
|
|
4641
|
+
data: IPolarDataPoint[];
|
|
4642
|
+
}
|
|
4643
|
+
|
|
4306
4644
|
export declare interface IShapeProps {
|
|
4307
4645
|
svgProps: React_2.SVGAttributes<SVGElement>;
|
|
4308
4646
|
pathProps: React_2.SVGAttributes<SVGPathElement>;
|
|
@@ -4324,6 +4662,7 @@ declare interface ISLinkExtra {
|
|
|
4324
4662
|
*/
|
|
4325
4663
|
value: number;
|
|
4326
4664
|
unnormalizedValue?: number;
|
|
4665
|
+
color?: string;
|
|
4327
4666
|
}
|
|
4328
4667
|
|
|
4329
4668
|
declare interface ISNodeExtra {
|
|
@@ -4639,6 +4978,35 @@ declare interface ITextboxProps {
|
|
|
4639
4978
|
fill?: string;
|
|
4640
4979
|
}
|
|
4641
4980
|
|
|
4981
|
+
/**
|
|
4982
|
+
* Shared interface for chart title styling properties.
|
|
4983
|
+
* Used by components that display a chart title with customizable font, alignment, and padding.
|
|
4984
|
+
* {@docCategory TitleStyles}
|
|
4985
|
+
*/
|
|
4986
|
+
declare interface ITitleStyles {
|
|
4987
|
+
/**
|
|
4988
|
+
* Font configuration for the title
|
|
4989
|
+
*/
|
|
4990
|
+
titleFont?: Partial<Font>;
|
|
4991
|
+
/**
|
|
4992
|
+
* Horizontal anchor/alignment for the chart title
|
|
4993
|
+
*/
|
|
4994
|
+
titleXAnchor?: 'auto' | 'left' | 'center' | 'right';
|
|
4995
|
+
/**
|
|
4996
|
+
* Vertical anchor/alignment for the chart title
|
|
4997
|
+
*/
|
|
4998
|
+
titleYAnchor?: 'auto' | 'top' | 'middle' | 'bottom';
|
|
4999
|
+
/**
|
|
5000
|
+
* Padding for the chart title
|
|
5001
|
+
*/
|
|
5002
|
+
titlePad?: {
|
|
5003
|
+
t?: number;
|
|
5004
|
+
r?: number;
|
|
5005
|
+
b?: number;
|
|
5006
|
+
l?: number;
|
|
5007
|
+
};
|
|
5008
|
+
}
|
|
5009
|
+
|
|
4642
5010
|
/**
|
|
4643
5011
|
* {@docCategory TreeChart}
|
|
4644
5012
|
*/
|
|
@@ -4881,6 +5249,11 @@ export declare interface IVerticalBarChartDataPoint {
|
|
|
4881
5249
|
* Accessibility data for callout
|
|
4882
5250
|
*/
|
|
4883
5251
|
callOutAccessibilityData?: IAccessibilityProps;
|
|
5252
|
+
/**
|
|
5253
|
+
* Label to display on the bar
|
|
5254
|
+
* This is an optional prop that can be used to show custom text on bars
|
|
5255
|
+
*/
|
|
5256
|
+
barLabel?: string;
|
|
4884
5257
|
}
|
|
4885
5258
|
|
|
4886
5259
|
/**
|
|
@@ -5302,6 +5675,11 @@ export declare interface IVSChartDataPoint {
|
|
|
5302
5675
|
* Accessibility data for callout
|
|
5303
5676
|
*/
|
|
5304
5677
|
callOutAccessibilityData?: IAccessibilityProps;
|
|
5678
|
+
/**
|
|
5679
|
+
* Label to display on the bar
|
|
5680
|
+
* This is an optional prop that can be used to show custom text on bars
|
|
5681
|
+
*/
|
|
5682
|
+
barLabel?: string;
|
|
5305
5683
|
}
|
|
5306
5684
|
|
|
5307
5685
|
declare interface IYAxisParams extends AxisProps {
|
|
@@ -5408,6 +5786,51 @@ declare enum Points {
|
|
|
5408
5786
|
octagon = 7
|
|
5409
5787
|
}
|
|
5410
5788
|
|
|
5789
|
+
/**
|
|
5790
|
+
* Configuration options for a polar axis.
|
|
5791
|
+
* {@docCategory PolarChart}
|
|
5792
|
+
*/
|
|
5793
|
+
export declare type PolarAxisProps = AxisProps & {
|
|
5794
|
+
/**
|
|
5795
|
+
* Values at which ticks should be placed on the axis.
|
|
5796
|
+
*/
|
|
5797
|
+
tickValues?: number[] | Date[] | string[];
|
|
5798
|
+
/**
|
|
5799
|
+
* Format string for the axis ticks.
|
|
5800
|
+
* For numbers, see: https://d3js.org/d3-format.
|
|
5801
|
+
* And for dates see: https://d3js.org/d3-time-format.
|
|
5802
|
+
*/
|
|
5803
|
+
tickFormat?: string;
|
|
5804
|
+
/**
|
|
5805
|
+
* Number of ticks to display on the axis.
|
|
5806
|
+
*/
|
|
5807
|
+
tickCount?: number;
|
|
5808
|
+
/**
|
|
5809
|
+
* Defines the order of categories on the axis.
|
|
5810
|
+
* @default 'default'
|
|
5811
|
+
*/
|
|
5812
|
+
categoryOrder?: AxisCategoryOrder;
|
|
5813
|
+
/**
|
|
5814
|
+
* Scale type for the axis.
|
|
5815
|
+
* @default 'default'
|
|
5816
|
+
*/
|
|
5817
|
+
scaleType?: AxisScaleType;
|
|
5818
|
+
/**
|
|
5819
|
+
* Start value of the axis range.
|
|
5820
|
+
*/
|
|
5821
|
+
rangeStart?: number | Date;
|
|
5822
|
+
/**
|
|
5823
|
+
* End value of the axis range.
|
|
5824
|
+
*/
|
|
5825
|
+
rangeEnd?: number | Date;
|
|
5826
|
+
};
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* PolarChart component.
|
|
5830
|
+
* {@docCategory PolarChart}
|
|
5831
|
+
*/
|
|
5832
|
+
export declare const PolarChart: React_2.FunctionComponent<IPolarChartProps>;
|
|
5833
|
+
|
|
5411
5834
|
/**
|
|
5412
5835
|
* Responsive Container component
|
|
5413
5836
|
* {@docCategory ResponsiveContainer}
|