@mui/x-charts-pro 8.0.0-alpha.8 → 8.0.0-beta.0
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/BarChartPro/BarChartPro.d.ts +4 -4
- package/BarChartPro/BarChartPro.js +242 -287
- package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/BarChartPro/BarChartPro.plugins.js +9 -0
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +2566 -687
- package/ChartContainerPro/ChartContainerPro.d.ts +12 -12
- package/ChartContainerPro/ChartContainerPro.js +185 -188
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +6 -5
- package/ChartContainerPro/useChartContainerProProps.js +28 -19
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/ChartDataProviderPro/ChartDataProviderPro.js +112 -0
- package/ChartDataProviderPro/index.d.ts +2 -0
- package/ChartDataProviderPro/index.js +17 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.js +21 -0
- package/FunnelChart/FunnelChart.d.ts +37 -0
- package/FunnelChart/FunnelChart.js +218 -0
- package/FunnelChart/FunnelPlot.d.ts +16 -0
- package/FunnelChart/FunnelPlot.js +191 -0
- package/FunnelChart/FunnelSection.d.ts +15 -0
- package/FunnelChart/FunnelSection.js +62 -0
- package/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/FunnelChart/funnel.types.d.ts +124 -0
- package/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/FunnelChart/funnelSectionClasses.js +28 -0
- package/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/FunnelChart/funnelStepCurve.js +74 -0
- package/FunnelChart/index.d.ts +7 -0
- package/FunnelChart/index.js +59 -0
- package/FunnelChart/labelUtils.d.ts +42 -0
- package/FunnelChart/labelUtils.js +174 -0
- package/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/FunnelChart/seriesConfig/extremums.js +50 -0
- package/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/FunnelChart/seriesConfig/getColor.js +10 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
- package/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/FunnelChart/seriesConfig/index.js +22 -0
- package/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/FunnelChart/seriesConfig/legend.js +31 -0
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/FunnelChart/seriesConfig/seriesProcessor.js +96 -0
- package/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/FunnelChart/seriesConfig/tooltip.js +36 -0
- package/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/FunnelChart/useFunnelChartProps.js +168 -0
- package/Heatmap/Heatmap.d.ts +45 -45
- package/Heatmap/Heatmap.js +236 -244
- package/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/Heatmap/Heatmap.plugins.js +8 -0
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +43 -36
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +101 -89
- package/Heatmap/heatmapClasses.d.ts +7 -7
- package/Heatmap/heatmapClasses.js +15 -7
- package/Heatmap/index.d.ts +4 -4
- package/Heatmap/index.js +47 -4
- package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
- package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/Heatmap/seriesConfig/index.d.ts +2 -0
- package/Heatmap/seriesConfig/index.js +21 -0
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/Heatmap/seriesConfig/tooltip.js +31 -0
- package/LineChartPro/LineChartPro.d.ts +4 -4
- package/LineChartPro/LineChartPro.js +244 -353
- package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/LineChartPro/LineChartPro.plugins.js +9 -0
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/README.md +1 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +246 -238
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +18 -0
- package/esm/BarChartPro/BarChartPro.js +404 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
- package/esm/BarChartPro/index.d.ts +1 -0
- package/esm/BarChartPro/index.js +1 -0
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
- package/esm/ChartContainerPro/index.d.ts +2 -0
- package/esm/ChartContainerPro/index.js +2 -0
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
- package/esm/ChartDataProviderPro/index.d.ts +2 -0
- package/esm/ChartDataProviderPro/index.js +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/esm/FunnelChart/FunnelChart.d.ts +37 -0
- package/esm/FunnelChart/FunnelChart.js +212 -0
- package/esm/FunnelChart/FunnelPlot.d.ts +16 -0
- package/esm/FunnelChart/FunnelPlot.js +184 -0
- package/esm/FunnelChart/FunnelSection.d.ts +15 -0
- package/esm/FunnelChart/FunnelSection.js +56 -0
- package/esm/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/esm/FunnelChart/funnel.types.d.ts +124 -0
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/esm/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/esm/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/esm/FunnelChart/funnelSectionClasses.js +20 -0
- package/esm/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/esm/FunnelChart/funnelSlots.types.js +1 -0
- package/esm/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/esm/FunnelChart/funnelStepCurve.js +67 -0
- package/esm/FunnelChart/index.d.ts +7 -0
- package/esm/FunnelChart/index.js +5 -0
- package/esm/FunnelChart/labelUtils.d.ts +42 -0
- package/esm/FunnelChart/labelUtils.js +166 -0
- package/esm/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/extremums.js +42 -0
- package/esm/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getColor.js +4 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/esm/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/esm/FunnelChart/seriesConfig/index.js +15 -0
- package/esm/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/legend.js +25 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/esm/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/esm/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/esm/FunnelChart/useFunnelChartProps.js +161 -0
- package/esm/Heatmap/Heatmap.d.ts +57 -0
- package/esm/Heatmap/Heatmap.js +387 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/esm/Heatmap/Heatmap.plugins.js +2 -0
- package/esm/Heatmap/HeatmapItem.d.ts +49 -0
- package/esm/Heatmap/HeatmapItem.js +106 -0
- package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
- package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
- package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/esm/Heatmap/HeatmapTooltip.js +280 -0
- package/esm/Heatmap/heatmapClasses.d.ts +11 -0
- package/esm/Heatmap/heatmapClasses.js +14 -0
- package/esm/Heatmap/index.d.ts +4 -0
- package/esm/Heatmap/index.js +4 -0
- package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/index.js +14 -0
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/tooltip.js +25 -0
- package/esm/LineChartPro/LineChartPro.d.ts +17 -0
- package/esm/LineChartPro/LineChartPro.js +401 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
- package/esm/LineChartPro/index.d.ts +1 -0
- package/esm/LineChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/esm/ScatterChartPro/index.d.ts +1 -0
- package/esm/ScatterChartPro/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useFunnelSeries.d.ts +33 -0
- package/esm/hooks/useFunnelSeries.js +42 -0
- package/esm/hooks/useHeatmapSeries.d.ts +33 -0
- package/esm/hooks/useHeatmapSeries.js +42 -0
- package/esm/hooks/zoom/index.d.ts +1 -0
- package/esm/hooks/zoom/index.js +1 -0
- package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.js +45 -0
- package/esm/internals/plugins/allPlugins.d.ts +8 -0
- package/esm/internals/plugins/allPlugins.js +6 -0
- package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/esm/internals/plugins/useChartProZoom/index.js +3 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -75
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.js +1 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/seriesType/heatmap.d.ts +28 -0
- package/esm/models/seriesType/heatmap.js +1 -0
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +23 -0
- package/esm/themeAugmentation/index.d.ts +4 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +11 -0
- package/esm/themeAugmentation/props.d.ts +20 -0
- package/esm/typeOverloads/index.d.ts +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +33 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- package/hooks/useFunnelSeries.d.ts +33 -0
- package/hooks/useFunnelSeries.js +48 -0
- package/hooks/useHeatmapSeries.d.ts +33 -0
- package/hooks/useHeatmapSeries.js +48 -0
- package/hooks/zoom/index.d.ts +1 -1
- package/hooks/zoom/index.js +16 -1
- package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
- package/hooks/zoom/useIsZoomInteracting.js +10 -5
- package/index.d.ts +12 -7
- package/index.js +369 -34
- package/internals/plugins/allPlugins.d.ts +7 -9
- package/internals/plugins/allPlugins.js +10 -3
- package/internals/plugins/useChartProZoom/index.d.ts +3 -3
- package/internals/plugins/useChartProZoom/index.js +38 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -68
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +165 -111
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -6
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -43
- package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/models/index.d.ts +1 -1
- package/models/index.js +16 -2
- package/models/seriesType/heatmap.d.ts +18 -19
- package/models/seriesType/heatmap.js +5 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/index.js +16 -1
- package/modern/BarChartPro/BarChartPro.d.ts +18 -0
- package/modern/BarChartPro/BarChartPro.js +39 -90
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/modern/ChartContainerPro/ChartContainerPro.js +12 -21
- package/modern/ChartContainerPro/index.d.ts +2 -0
- package/modern/ChartContainerPro/index.js +1 -0
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/modern/ChartContainerPro/useChartContainerProProps.js +15 -13
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +2 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/modern/FunnelChart/FunnelChart.d.ts +37 -0
- package/modern/FunnelChart/FunnelChart.js +212 -0
- package/modern/FunnelChart/FunnelPlot.d.ts +16 -0
- package/modern/FunnelChart/FunnelPlot.js +184 -0
- package/modern/FunnelChart/FunnelSection.d.ts +15 -0
- package/modern/FunnelChart/FunnelSection.js +56 -0
- package/modern/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/modern/FunnelChart/categoryAxis.types.js +1 -0
- package/modern/FunnelChart/funnel.types.d.ts +124 -0
- package/modern/FunnelChart/funnel.types.js +1 -0
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/modern/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/modern/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/modern/FunnelChart/funnelSectionClasses.js +20 -0
- package/modern/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/modern/FunnelChart/funnelSlots.types.js +1 -0
- package/modern/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/modern/FunnelChart/funnelStepCurve.js +67 -0
- package/modern/FunnelChart/index.d.ts +7 -0
- package/modern/FunnelChart/index.js +5 -0
- package/modern/FunnelChart/labelUtils.d.ts +42 -0
- package/modern/FunnelChart/labelUtils.js +166 -0
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/extremums.js +42 -0
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getColor.js +4 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/modern/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/modern/FunnelChart/seriesConfig/index.js +15 -0
- package/modern/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/legend.js +25 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/modern/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/modern/FunnelChart/useFunnelChartProps.js +161 -0
- package/modern/Heatmap/Heatmap.d.ts +57 -0
- package/modern/Heatmap/Heatmap.js +47 -61
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/Heatmap.plugins.js +2 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- package/modern/Heatmap/HeatmapItem.js +7 -7
- package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/modern/Heatmap/HeatmapTooltip.js +10 -4
- package/modern/Heatmap/heatmapClasses.d.ts +11 -0
- package/modern/Heatmap/index.d.ts +4 -0
- package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/index.js +14 -0
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/tooltip.js +25 -0
- package/modern/LineChartPro/LineChartPro.d.ts +17 -0
- package/modern/LineChartPro/LineChartPro.js +40 -155
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +44 -42
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/modern/ScatterChartPro/index.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useFunnelSeries.d.ts +33 -0
- package/modern/hooks/useFunnelSeries.js +42 -0
- package/modern/hooks/useHeatmapSeries.d.ts +33 -0
- package/modern/hooks/useHeatmapSeries.js +42 -0
- package/modern/hooks/zoom/index.d.ts +1 -0
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/modern/index.d.ts +34 -0
- package/modern/index.js +8 -4
- package/modern/internals/plugins/allPlugins.d.ts +8 -0
- package/modern/internals/plugins/allPlugins.js +3 -2
- package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -39
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.d.ts +2 -0
- package/modern/models/seriesType/heatmap.d.ts +28 -0
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +23 -0
- package/modern/themeAugmentation/index.d.ts +4 -0
- package/modern/themeAugmentation/overrides.d.ts +11 -0
- package/modern/themeAugmentation/props.d.ts +20 -0
- package/modern/typeOverloads/index.d.ts +1 -0
- package/modern/typeOverloads/modules.d.ts +33 -0
- package/package.json +44 -11
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +5 -7
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/index.js +6 -1
- package/typeOverloads/modules.d.ts +32 -24
- package/typeOverloads/modules.js +5 -1
- package/BarChartPro/package.json +0 -6
- package/ChartContainerPro/package.json +0 -6
- package/Heatmap/formatter.d.ts +0 -3
- package/Heatmap/package.json +0 -6
- package/Heatmap/plugin.d.ts +0 -2
- package/Heatmap/plugin.js +0 -9
- package/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -11
- package/hooks/useSeries.js +0 -16
- package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
- package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
- package/models/package.json +0 -6
- package/modern/Heatmap/plugin.js +0 -9
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -461
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -305
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/Heatmap/Heatmap.js +0 -407
- package/node/Heatmap/HeatmapItem.js +0 -113
- package/node/Heatmap/HeatmapTooltip.js +0 -280
- package/node/Heatmap/heatmapClasses.js +0 -22
- package/node/Heatmap/index.js +0 -47
- package/node/Heatmap/plugin.js +0 -16
- package/node/LineChartPro/LineChartPro.js +0 -522
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -399
- package/node/ScatterChartPro/index.js +0 -16
- package/node/hooks/index.js +0 -27
- package/node/hooks/useSeries.js +0 -21
- package/node/hooks/zoom/index.js +0 -16
- package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
- package/node/index.js +0 -332
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
- package/node/internals/plugins/useChartProZoom/index.js +0 -38
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -13
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/internals/plugins/useChartProZoom/useChartProZoom.types.js → FunnelChart/categoryAxis.types.js} +0 -0
- /package/{node/internals/plugins/useChartProZoom/zoom.types.js → FunnelChart/funnel.types.js} +0 -0
- /package/{node/models/seriesType/heatmap.js → FunnelChart/funnelPlotSlots.types.js} +0 -0
- /package/{node/typeOverloads/modules.js → FunnelChart/funnelSlots.types.js} +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/categoryAxis.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/funnel.types.js} +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { BarPlot } from '@mui/x-charts/BarChart';
|
|
10
|
-
import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
|
|
11
10
|
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
12
11
|
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
13
12
|
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
@@ -16,56 +15,11 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
|
16
15
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
17
16
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
18
17
|
import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
19
|
-
import { ChartDataProvider } from '@mui/x-charts/context';
|
|
20
18
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
21
|
-
import { useIsZoomInteracting } from "../hooks/zoom/index.js";
|
|
22
19
|
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
20
|
+
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
21
|
+
import { BAR_CHART_PRO_PLUGINS } from "./BarChartPro.plugins.js";
|
|
23
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
function BarChartPlotZoom(props) {
|
|
25
|
-
const isInteracting = useIsZoomInteracting();
|
|
26
|
-
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
27
|
-
skipAnimation: isInteracting || undefined
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
31
|
-
// ----------------------------- Warning --------------------------------
|
|
32
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
33
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
34
|
-
// ----------------------------------------------------------------------
|
|
35
|
-
/**
|
|
36
|
-
* If provided, the function will be used to format the label of the bar.
|
|
37
|
-
* It can be set to 'value' to display the current value.
|
|
38
|
-
* @param {BarItem} item The item to format.
|
|
39
|
-
* @param {BarLabelContext} context data about the bar.
|
|
40
|
-
* @returns {string} The formatted label.
|
|
41
|
-
*/
|
|
42
|
-
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
43
|
-
/**
|
|
44
|
-
* Defines the border radius of the bar element.
|
|
45
|
-
*/
|
|
46
|
-
borderRadius: PropTypes.number,
|
|
47
|
-
/**
|
|
48
|
-
* Callback fired when a bar item is clicked.
|
|
49
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
50
|
-
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
51
|
-
*/
|
|
52
|
-
onItemClick: PropTypes.func,
|
|
53
|
-
/**
|
|
54
|
-
* If `true`, animations are skipped.
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
skipAnimation: PropTypes.bool,
|
|
58
|
-
/**
|
|
59
|
-
* The props used for each component slot.
|
|
60
|
-
* @default {}
|
|
61
|
-
*/
|
|
62
|
-
slotProps: PropTypes.object,
|
|
63
|
-
/**
|
|
64
|
-
* Overridable component slots.
|
|
65
|
-
* @default {}
|
|
66
|
-
*/
|
|
67
|
-
slots: PropTypes.object
|
|
68
|
-
} : void 0;
|
|
69
23
|
/**
|
|
70
24
|
* Demos:
|
|
71
25
|
*
|
|
@@ -84,6 +38,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
84
38
|
});
|
|
85
39
|
const {
|
|
86
40
|
initialZoom,
|
|
41
|
+
zoomData,
|
|
87
42
|
onZoomChange,
|
|
88
43
|
apiRef
|
|
89
44
|
} = props,
|
|
@@ -92,7 +47,6 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
92
47
|
chartsWrapperProps,
|
|
93
48
|
chartContainerProps,
|
|
94
49
|
barPlotProps,
|
|
95
|
-
axisClickHandlerProps,
|
|
96
50
|
gridProps,
|
|
97
51
|
clipPathProps,
|
|
98
52
|
clipPathGroupProps,
|
|
@@ -106,17 +60,18 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
106
60
|
chartDataProviderProProps,
|
|
107
61
|
chartsSurfaceProps
|
|
108
62
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
109
|
-
|
|
63
|
+
initialZoom,
|
|
64
|
+
zoomData,
|
|
65
|
+
onZoomChange,
|
|
66
|
+
apiRef,
|
|
67
|
+
plugins: BAR_CHART_PRO_PLUGINS
|
|
110
68
|
}), ref);
|
|
111
69
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
112
|
-
return /*#__PURE__*/_jsx(
|
|
113
|
-
apiRef: apiRef,
|
|
114
|
-
initialZoom: initialZoom,
|
|
115
|
-
onZoomChange: onZoomChange,
|
|
70
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
116
71
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
117
72
|
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
118
|
-
children: [
|
|
119
|
-
children: [/*#__PURE__*/_jsx(
|
|
73
|
+
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
74
|
+
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
120
75
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
121
76
|
}))]
|
|
122
77
|
}))
|
|
@@ -154,17 +109,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
154
109
|
* Defines the border radius of the bar element.
|
|
155
110
|
*/
|
|
156
111
|
borderRadius: PropTypes.number,
|
|
157
|
-
/**
|
|
158
|
-
* Indicate which axis to display the bottom of the charts.
|
|
159
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
160
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
161
|
-
*/
|
|
162
|
-
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
163
112
|
children: PropTypes.node,
|
|
164
113
|
className: PropTypes.string,
|
|
165
114
|
/**
|
|
166
115
|
* Color palette used to colorize multiple series.
|
|
167
|
-
* @default
|
|
116
|
+
* @default rainbowSurgePalette
|
|
168
117
|
*/
|
|
169
118
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
170
119
|
/**
|
|
@@ -194,11 +143,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
194
143
|
*/
|
|
195
144
|
hideLegend: PropTypes.bool,
|
|
196
145
|
/**
|
|
197
|
-
* The
|
|
146
|
+
* The highlighted item.
|
|
147
|
+
* Used when the highlight is controlled.
|
|
198
148
|
*/
|
|
199
149
|
highlightedItem: PropTypes.shape({
|
|
200
150
|
dataIndex: PropTypes.number,
|
|
201
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
151
|
+
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
202
152
|
}),
|
|
203
153
|
/**
|
|
204
154
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -207,6 +157,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
207
157
|
id: PropTypes.string,
|
|
208
158
|
/**
|
|
209
159
|
* The list of zoom data related to each axis.
|
|
160
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
210
161
|
*/
|
|
211
162
|
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
212
163
|
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
@@ -218,12 +169,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
218
169
|
* @default 'vertical'
|
|
219
170
|
*/
|
|
220
171
|
layout: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
221
|
-
/**
|
|
222
|
-
* Indicate which axis to display the left of the charts.
|
|
223
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
224
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
225
|
-
*/
|
|
226
|
-
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
227
172
|
/**
|
|
228
173
|
* If `true`, a loading overlay is displayed.
|
|
229
174
|
* @default false
|
|
@@ -232,14 +177,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
232
177
|
/**
|
|
233
178
|
* The margin between the SVG and the drawing area.
|
|
234
179
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
235
|
-
*
|
|
180
|
+
*
|
|
181
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
236
182
|
*/
|
|
237
|
-
margin: PropTypes.shape({
|
|
183
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
238
184
|
bottom: PropTypes.number,
|
|
239
185
|
left: PropTypes.number,
|
|
240
186
|
right: PropTypes.number,
|
|
241
187
|
top: PropTypes.number
|
|
242
|
-
}),
|
|
188
|
+
})]),
|
|
243
189
|
/**
|
|
244
190
|
* The function called for onClick events.
|
|
245
191
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
@@ -265,12 +211,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
265
211
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
266
212
|
*/
|
|
267
213
|
onZoomChange: PropTypes.func,
|
|
268
|
-
/**
|
|
269
|
-
* Indicate which axis to display the right of the charts.
|
|
270
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
271
|
-
* @default null
|
|
272
|
-
*/
|
|
273
|
-
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
274
214
|
/**
|
|
275
215
|
* The series to display in the bar chart.
|
|
276
216
|
* An array of [[BarSeriesType]] objects.
|
|
@@ -294,12 +234,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
294
234
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
295
235
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
296
236
|
title: PropTypes.string,
|
|
297
|
-
/**
|
|
298
|
-
* Indicate which axis to display the top of the charts.
|
|
299
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
300
|
-
* @default null
|
|
301
|
-
*/
|
|
302
|
-
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
303
237
|
/**
|
|
304
238
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
305
239
|
*/
|
|
@@ -310,6 +244,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
310
244
|
* An array of [[AxisConfig]] objects.
|
|
311
245
|
*/
|
|
312
246
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
247
|
+
axis: PropTypes.oneOf(['x']),
|
|
313
248
|
classes: PropTypes.object,
|
|
314
249
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
315
250
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -332,13 +267,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
332
267
|
disableTicks: PropTypes.bool,
|
|
333
268
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
334
269
|
fill: PropTypes.string,
|
|
270
|
+
height: PropTypes.number,
|
|
335
271
|
hideTooltip: PropTypes.bool,
|
|
336
272
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
337
273
|
label: PropTypes.string,
|
|
338
274
|
labelStyle: PropTypes.object,
|
|
339
275
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
340
276
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
341
|
-
|
|
277
|
+
offset: PropTypes.number,
|
|
278
|
+
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
342
279
|
reverse: PropTypes.bool,
|
|
343
280
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
344
281
|
slotProps: PropTypes.object,
|
|
@@ -347,6 +284,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
347
284
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
348
285
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
349
286
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
287
|
+
tickLabelMinGap: PropTypes.number,
|
|
350
288
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
351
289
|
tickLabelStyle: PropTypes.object,
|
|
352
290
|
tickMaxStep: PropTypes.number,
|
|
@@ -371,6 +309,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
371
309
|
* An array of [[AxisConfig]] objects.
|
|
372
310
|
*/
|
|
373
311
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
312
|
+
axis: PropTypes.oneOf(['y']),
|
|
374
313
|
classes: PropTypes.object,
|
|
375
314
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
376
315
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -399,7 +338,8 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
399
338
|
labelStyle: PropTypes.object,
|
|
400
339
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
401
340
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
402
|
-
|
|
341
|
+
offset: PropTypes.number,
|
|
342
|
+
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
403
343
|
reverse: PropTypes.bool,
|
|
404
344
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
405
345
|
slotProps: PropTypes.object,
|
|
@@ -416,6 +356,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
416
356
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
417
357
|
tickSize: PropTypes.number,
|
|
418
358
|
valueFormatter: PropTypes.func,
|
|
359
|
+
width: PropTypes.number,
|
|
419
360
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
420
361
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
421
362
|
maxEnd: PropTypes.number,
|
|
@@ -450,6 +391,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
450
391
|
id: PropTypes.string,
|
|
451
392
|
max: PropTypes.number,
|
|
452
393
|
min: PropTypes.number
|
|
394
|
+
})),
|
|
395
|
+
/**
|
|
396
|
+
* The list of zoom data related to each axis.
|
|
397
|
+
*/
|
|
398
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
399
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
400
|
+
end: PropTypes.number.isRequired,
|
|
401
|
+
start: PropTypes.number.isRequired
|
|
453
402
|
}))
|
|
454
403
|
} : void 0;
|
|
455
404
|
export { BarChartPro };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
+
export type BarChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'bar'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
|
|
4
|
+
export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginsSignatures>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
|
|
2
|
+
import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
+
export const BAR_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BarChartPro.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ChartsSurfaceProps } from '@mui/x-charts/ChartsSurface';
|
|
3
|
+
import { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
|
|
4
|
+
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
import { ChartDataProviderProProps } from "../ChartDataProviderPro/index.js";
|
|
6
|
+
export type ChartContainerProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartsSurfaceProps;
|
|
7
|
+
type ChartContainerProComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures> & {
|
|
8
|
+
ref?: React.ForwardedRef<SVGSVGElement>;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* It sets up the data providers as well as the `<svg>` for the chart.
|
|
12
|
+
*
|
|
13
|
+
* This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
|
|
14
|
+
*
|
|
15
|
+
* Demos:
|
|
16
|
+
*
|
|
17
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
* <ChartContainerPro
|
|
26
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
27
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
28
|
+
* >
|
|
29
|
+
* <BarPlot />
|
|
30
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
31
|
+
* </ChartContainerPro>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare const ChartContainerPro: ChartContainerProComponent;
|
|
35
|
+
export { ChartContainerPro };
|
|
@@ -3,23 +3,18 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { Watermark } from '@mui/x-license/Watermark';
|
|
7
|
-
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
8
6
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
9
|
-
import { ChartDataProvider } from '@mui/x-charts/context';
|
|
10
|
-
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
11
7
|
import { useChartContainerProProps } from "./useChartContainerProProps.js";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
10
|
/**
|
|
16
11
|
* It sets up the data providers as well as the `<svg>` for the chart.
|
|
17
12
|
*
|
|
18
|
-
* This is a combination of both the `
|
|
13
|
+
* This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
|
|
19
14
|
*
|
|
20
15
|
* Demos:
|
|
21
16
|
*
|
|
22
|
-
* - [Composition](
|
|
17
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
23
18
|
*
|
|
24
19
|
* API:
|
|
25
20
|
*
|
|
@@ -32,7 +27,7 @@ const releaseInfo = getReleaseInfo();
|
|
|
32
27
|
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
33
28
|
* >
|
|
34
29
|
* <BarPlot />
|
|
35
|
-
* <ChartsXAxis
|
|
30
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
36
31
|
* </ChartContainerPro>
|
|
37
32
|
* ```
|
|
38
33
|
*/
|
|
@@ -42,19 +37,14 @@ const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainerP
|
|
|
42
37
|
children,
|
|
43
38
|
chartsSurfaceProps
|
|
44
39
|
} = useChartContainerProProps(props, ref);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: [/*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
40
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
41
|
+
children: /*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
48
42
|
children: children
|
|
49
|
-
}))
|
|
50
|
-
packageName: "x-charts-pro",
|
|
51
|
-
releaseInfo: releaseInfo
|
|
52
|
-
})]
|
|
43
|
+
}))
|
|
53
44
|
}));
|
|
54
45
|
});
|
|
55
46
|
|
|
56
|
-
// @ts-
|
|
57
|
-
|
|
47
|
+
// @ts-expect-error the type coercion breaks the prop types
|
|
58
48
|
process.env.NODE_ENV !== "production" ? ChartContainerPro.propTypes = {
|
|
59
49
|
// ----------------------------- Warning --------------------------------
|
|
60
50
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -88,11 +78,12 @@ process.env.NODE_ENV !== "production" ? ChartContainerPro.propTypes = {
|
|
|
88
78
|
*/
|
|
89
79
|
height: PropTypes.number,
|
|
90
80
|
/**
|
|
91
|
-
* The
|
|
81
|
+
* The highlighted item.
|
|
82
|
+
* Used when the highlight is controlled.
|
|
92
83
|
*/
|
|
93
84
|
highlightedItem: PropTypes.shape({
|
|
94
85
|
dataIndex: PropTypes.number,
|
|
95
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
86
|
+
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
96
87
|
}),
|
|
97
88
|
/**
|
|
98
89
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartAnyPluginSignature, ChartSeriesType, UseChartContainerPropsReturnValue } from '@mui/x-charts/internals';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
|
+
import type { ChartContainerProProps } from './ChartContainerPro';
|
|
5
|
+
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
6
|
+
export type UseChartContainerProPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
|
|
7
|
+
chartDataProviderProProps: ChartDataProviderProps<TSeries, TSignatures>;
|
|
8
|
+
};
|
|
9
|
+
export declare const useChartContainerProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>) => UseChartContainerProPropsReturnValue<TSeries, TSignatures>;
|
|
@@ -2,31 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["initialZoom", "onZoomChange", "plugins", "apiRef"];
|
|
5
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "plugins", "apiRef"];
|
|
6
6
|
import { useChartContainerProps } from '@mui/x-charts/internals';
|
|
7
|
-
import {
|
|
7
|
+
import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
|
|
8
8
|
export const useChartContainerProProps = (props, ref) => {
|
|
9
|
-
const
|
|
9
|
+
const _ref = props,
|
|
10
|
+
{
|
|
10
11
|
initialZoom,
|
|
12
|
+
zoomData,
|
|
11
13
|
onZoomChange,
|
|
12
14
|
plugins,
|
|
13
15
|
apiRef
|
|
14
|
-
} =
|
|
15
|
-
baseProps = _objectWithoutPropertiesLoose(
|
|
16
|
-
const chartDataProviderProProps = {
|
|
17
|
-
initialZoom,
|
|
18
|
-
onZoomChange
|
|
19
|
-
};
|
|
16
|
+
} = _ref,
|
|
17
|
+
baseProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
20
18
|
const {
|
|
21
19
|
chartDataProviderProps,
|
|
22
20
|
chartsSurfaceProps,
|
|
23
21
|
children
|
|
24
22
|
} = useChartContainerProps(baseProps, ref);
|
|
23
|
+
const chartDataProviderProProps = _extends({}, chartDataProviderProps, {
|
|
24
|
+
initialZoom,
|
|
25
|
+
zoomData,
|
|
26
|
+
onZoomChange,
|
|
27
|
+
apiRef,
|
|
28
|
+
plugins: plugins ?? DEFAULT_PLUGINS
|
|
29
|
+
});
|
|
25
30
|
return {
|
|
26
|
-
chartDataProviderProProps
|
|
27
|
-
apiRef,
|
|
28
|
-
plugins: plugins ?? ALL_PLUGINS
|
|
29
|
-
}),
|
|
31
|
+
chartDataProviderProProps,
|
|
30
32
|
chartsSurfaceProps,
|
|
31
33
|
children
|
|
32
34
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
|
|
3
|
+
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
|
+
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProps<TSeries, TSignatures> & Omit<ChartProviderProps<TSeries, TSignatures>['pluginParams'], 'children'>;
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
8
|
+
*
|
|
9
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
10
|
+
*
|
|
11
|
+
* Demos:
|
|
12
|
+
*
|
|
13
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```jsx
|
|
21
|
+
* <ChartDataProviderPro
|
|
22
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
23
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
24
|
+
* >
|
|
25
|
+
* <ChartsSurface>
|
|
26
|
+
* <BarPlot />
|
|
27
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
28
|
+
* </ChartsSurface>
|
|
29
|
+
* {'Custom Legend Component'}
|
|
30
|
+
* </ChartDataProviderPro>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): React.JSX.Element;
|
|
34
|
+
declare namespace ChartDataProviderPro {
|
|
35
|
+
var propTypes: any;
|
|
36
|
+
}
|
|
37
|
+
export { ChartDataProviderPro };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { Watermark } from '@mui/x-license/Watermark';
|
|
7
|
+
import { ChartProvider, AnimationProvider } from '@mui/x-charts/internals';
|
|
8
|
+
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
9
|
+
import { useChartDataProviderProProps } from "./useChartDataProviderProProps.js";
|
|
10
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const releaseInfo = getReleaseInfo();
|
|
13
|
+
const packageIdentifier = 'x-charts-pro';
|
|
14
|
+
/**
|
|
15
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
16
|
+
*
|
|
17
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
18
|
+
*
|
|
19
|
+
* Demos:
|
|
20
|
+
*
|
|
21
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
22
|
+
*
|
|
23
|
+
* API:
|
|
24
|
+
*
|
|
25
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```jsx
|
|
29
|
+
* <ChartDataProviderPro
|
|
30
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
31
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
32
|
+
* >
|
|
33
|
+
* <ChartsSurface>
|
|
34
|
+
* <BarPlot />
|
|
35
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
36
|
+
* </ChartsSurface>
|
|
37
|
+
* {'Custom Legend Component'}
|
|
38
|
+
* </ChartDataProviderPro>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
function ChartDataProviderPro(props) {
|
|
42
|
+
const {
|
|
43
|
+
children,
|
|
44
|
+
animationProviderProps,
|
|
45
|
+
chartProviderProps
|
|
46
|
+
} = useChartDataProviderProProps(props);
|
|
47
|
+
useLicenseVerifier(packageIdentifier, releaseInfo);
|
|
48
|
+
return /*#__PURE__*/_jsx(ChartProvider, _extends({}, chartProviderProps, {
|
|
49
|
+
children: /*#__PURE__*/_jsxs(AnimationProvider, _extends({}, animationProviderProps, {
|
|
50
|
+
children: [children, /*#__PURE__*/_jsx(Watermark, {
|
|
51
|
+
packageName: packageIdentifier,
|
|
52
|
+
releaseInfo: releaseInfo
|
|
53
|
+
})]
|
|
54
|
+
}))
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
process.env.NODE_ENV !== "production" ? ChartDataProviderPro.propTypes = {
|
|
58
|
+
// ----------------------------- Warning --------------------------------
|
|
59
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
60
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
61
|
+
// ----------------------------------------------------------------------
|
|
62
|
+
apiRef: PropTypes.any,
|
|
63
|
+
children: PropTypes.node,
|
|
64
|
+
/**
|
|
65
|
+
* Color palette used to colorize multiple series.
|
|
66
|
+
* @default rainbowSurgePalette
|
|
67
|
+
*/
|
|
68
|
+
colors: PropTypes.any,
|
|
69
|
+
/**
|
|
70
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
71
|
+
*/
|
|
72
|
+
dataset: PropTypes.any,
|
|
73
|
+
/**
|
|
74
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
75
|
+
*/
|
|
76
|
+
height: PropTypes.any,
|
|
77
|
+
/**
|
|
78
|
+
* This prop is used to help implement the accessibility logic.
|
|
79
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
80
|
+
*/
|
|
81
|
+
id: PropTypes.any,
|
|
82
|
+
/**
|
|
83
|
+
* The margin between the SVG and the drawing area.
|
|
84
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
85
|
+
*
|
|
86
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
87
|
+
*/
|
|
88
|
+
margin: PropTypes.any,
|
|
89
|
+
/**
|
|
90
|
+
* The array of series to display.
|
|
91
|
+
* Each type of series has its own specificity.
|
|
92
|
+
* Please refer to the appropriate docs page to learn more about it.
|
|
93
|
+
*/
|
|
94
|
+
series: PropTypes.any,
|
|
95
|
+
/**
|
|
96
|
+
* If `true`, animations are skipped.
|
|
97
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
98
|
+
*/
|
|
99
|
+
skipAnimation: PropTypes.any,
|
|
100
|
+
theme: PropTypes.any,
|
|
101
|
+
/**
|
|
102
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
103
|
+
*/
|
|
104
|
+
width: PropTypes.any
|
|
105
|
+
} : void 0;
|
|
106
|
+
export { ChartDataProviderPro };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
|
|
2
|
+
import type { ChartDataProviderProProps } from './ChartDataProviderPro';
|
|
3
|
+
import type { AllPluginSignatures } from '../internals/plugins/allPlugins';
|
|
4
|
+
export declare const useChartDataProviderProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>) => {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
animationProviderProps: Omit<import("@mui/x-charts/internals").AnimationProviderProps, "children">;
|
|
7
|
+
chartProviderProps: Omit<import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>, "children">;
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useChartDataProviderProps } from '@mui/x-charts/internals';
|
|
4
|
+
export const useChartDataProviderProProps = props => {
|
|
5
|
+
const {
|
|
6
|
+
animationProviderProps,
|
|
7
|
+
chartProviderProps,
|
|
8
|
+
children
|
|
9
|
+
} = useChartDataProviderProps(props);
|
|
10
|
+
return {
|
|
11
|
+
children,
|
|
12
|
+
animationProviderProps,
|
|
13
|
+
chartProviderProps
|
|
14
|
+
};
|
|
15
|
+
};
|