@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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
|
|
3
|
+
return _extends({
|
|
4
|
+
id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
|
|
5
|
+
color: colors[seriesIndex % colors.length]
|
|
6
|
+
}, seriesData);
|
|
7
|
+
};
|
|
8
|
+
export default getSeriesWithDefaultValues;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getBaseExtremum } from "./extremums.js";
|
|
2
|
+
import seriesProcessor from "./seriesProcessor.js";
|
|
3
|
+
import getColor from "./getColor.js";
|
|
4
|
+
import tooltipGetter from "./tooltip.js";
|
|
5
|
+
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.js";
|
|
6
|
+
export const seriesConfig = {
|
|
7
|
+
seriesProcessor,
|
|
8
|
+
colorProcessor: getColor,
|
|
9
|
+
legendGetter: () => [],
|
|
10
|
+
tooltipGetter,
|
|
11
|
+
xExtremumGetter: getBaseExtremum,
|
|
12
|
+
yExtremumGetter: getBaseExtremum,
|
|
13
|
+
getSeriesWithDefaultValues
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
const
|
|
2
|
+
const seriesProcessor = params => {
|
|
3
3
|
const {
|
|
4
4
|
series,
|
|
5
5
|
seriesOrder
|
|
@@ -18,4 +18,4 @@ const formatter = params => {
|
|
|
18
18
|
seriesOrder
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export default
|
|
21
|
+
export default seriesProcessor;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getLabel } from '@mui/x-charts/internals';
|
|
2
|
+
const tooltipGetter = params => {
|
|
3
|
+
const {
|
|
4
|
+
series,
|
|
5
|
+
getColor,
|
|
6
|
+
identifier
|
|
7
|
+
} = params;
|
|
8
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
const label = getLabel(series.label, 'tooltip');
|
|
12
|
+
const value = series.data[identifier.dataIndex];
|
|
13
|
+
const formattedValue = series.valueFormatter(value, {
|
|
14
|
+
dataIndex: identifier.dataIndex
|
|
15
|
+
});
|
|
16
|
+
return {
|
|
17
|
+
identifier,
|
|
18
|
+
color: getColor(identifier.dataIndex),
|
|
19
|
+
label,
|
|
20
|
+
value,
|
|
21
|
+
formattedValue,
|
|
22
|
+
markType: series.labelMarkType
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default tooltipGetter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
3
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
|
+
import { LineChartProPluginsSignatures } from "./LineChartPro.plugins.js";
|
|
5
|
+
export interface LineChartProProps extends Omit<LineChartProps, 'apiRef'>, Omit<ChartContainerProProps<'line', LineChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [Lines](https://mui.com/x/react-charts/lines/)
|
|
10
|
+
* - [Line demonstration](https://mui.com/x/react-charts/line-demo/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [LineChart API](https://mui.com/x/api/charts/line-chart/)
|
|
15
|
+
*/
|
|
16
|
+
declare const LineChartPro: React.ForwardRefExoticComponent<LineChartProProps & React.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
export { LineChartPro };
|
|
@@ -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 { AreaPlot, LineHighlightPlot, LinePlot, MarkPlot } from '@mui/x-charts/LineChart';
|
|
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';
|
|
@@ -17,115 +16,10 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
|
17
16
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
18
17
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
19
18
|
import { useLineChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
20
|
-
import { ChartDataProvider } from '@mui/x-charts/context';
|
|
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 { LINE_CHART_PRO_PLUGINS } from "./LineChartPro.plugins.js";
|
|
23
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
function AreaPlotZoom(props) {
|
|
25
|
-
const isInteracting = useIsZoomInteracting();
|
|
26
|
-
return /*#__PURE__*/_jsx(AreaPlot, _extends({}, props, {
|
|
27
|
-
skipAnimation: isInteracting || undefined
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
process.env.NODE_ENV !== "production" ? AreaPlotZoom.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
|
-
* Callback fired when a line area item is clicked.
|
|
37
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
38
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
39
|
-
*/
|
|
40
|
-
onItemClick: PropTypes.func,
|
|
41
|
-
/**
|
|
42
|
-
* If `true`, animations are skipped.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
skipAnimation: PropTypes.bool,
|
|
46
|
-
/**
|
|
47
|
-
* The props used for each component slot.
|
|
48
|
-
* @default {}
|
|
49
|
-
*/
|
|
50
|
-
slotProps: PropTypes.object,
|
|
51
|
-
/**
|
|
52
|
-
* Overridable component slots.
|
|
53
|
-
* @default {}
|
|
54
|
-
*/
|
|
55
|
-
slots: PropTypes.object
|
|
56
|
-
} : void 0;
|
|
57
|
-
function LinePlotZoom(props) {
|
|
58
|
-
const isInteracting = useIsZoomInteracting();
|
|
59
|
-
return /*#__PURE__*/_jsx(LinePlot, _extends({}, props, {
|
|
60
|
-
skipAnimation: isInteracting || undefined
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
process.env.NODE_ENV !== "production" ? LinePlotZoom.propTypes = {
|
|
64
|
-
// ----------------------------- Warning --------------------------------
|
|
65
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
67
|
-
// ----------------------------------------------------------------------
|
|
68
|
-
/**
|
|
69
|
-
* Callback fired when a line item is clicked.
|
|
70
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
71
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
72
|
-
*/
|
|
73
|
-
onItemClick: PropTypes.func,
|
|
74
|
-
/**
|
|
75
|
-
* If `true`, animations are skipped.
|
|
76
|
-
* @default false
|
|
77
|
-
*/
|
|
78
|
-
skipAnimation: PropTypes.bool,
|
|
79
|
-
/**
|
|
80
|
-
* The props used for each component slot.
|
|
81
|
-
* @default {}
|
|
82
|
-
*/
|
|
83
|
-
slotProps: PropTypes.object,
|
|
84
|
-
/**
|
|
85
|
-
* Overridable component slots.
|
|
86
|
-
* @default {}
|
|
87
|
-
*/
|
|
88
|
-
slots: PropTypes.object
|
|
89
|
-
} : void 0;
|
|
90
|
-
function MarkPlotZoom(props) {
|
|
91
|
-
const isInteracting = useIsZoomInteracting();
|
|
92
|
-
return /*#__PURE__*/_jsx(MarkPlot, _extends({}, props, {
|
|
93
|
-
skipAnimation: isInteracting || undefined
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
96
|
-
process.env.NODE_ENV !== "production" ? MarkPlotZoom.propTypes = {
|
|
97
|
-
// ----------------------------- Warning --------------------------------
|
|
98
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
99
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
100
|
-
// ----------------------------------------------------------------------
|
|
101
|
-
/**
|
|
102
|
-
* If `true` the mark element will only be able to render circle.
|
|
103
|
-
* Giving fewer customization options, but saving around 40ms per 1.000 marks.
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
|
-
experimentalRendering: PropTypes.bool,
|
|
107
|
-
/**
|
|
108
|
-
* Callback fired when a line mark item is clicked.
|
|
109
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
110
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line mark item identifier.
|
|
111
|
-
*/
|
|
112
|
-
onItemClick: PropTypes.func,
|
|
113
|
-
/**
|
|
114
|
-
* If `true`, animations are skipped.
|
|
115
|
-
* @default false
|
|
116
|
-
*/
|
|
117
|
-
skipAnimation: PropTypes.bool,
|
|
118
|
-
/**
|
|
119
|
-
* The props used for each component slot.
|
|
120
|
-
* @default {}
|
|
121
|
-
*/
|
|
122
|
-
slotProps: PropTypes.object,
|
|
123
|
-
/**
|
|
124
|
-
* Overridable component slots.
|
|
125
|
-
* @default {}
|
|
126
|
-
*/
|
|
127
|
-
slots: PropTypes.object
|
|
128
|
-
} : void 0;
|
|
129
23
|
/**
|
|
130
24
|
* Demos:
|
|
131
25
|
*
|
|
@@ -143,6 +37,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
143
37
|
});
|
|
144
38
|
const {
|
|
145
39
|
initialZoom,
|
|
40
|
+
zoomData,
|
|
146
41
|
onZoomChange,
|
|
147
42
|
apiRef
|
|
148
43
|
} = props,
|
|
@@ -150,7 +45,6 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
150
45
|
const {
|
|
151
46
|
chartsWrapperProps,
|
|
152
47
|
chartContainerProps,
|
|
153
|
-
axisClickHandlerProps,
|
|
154
48
|
gridProps,
|
|
155
49
|
clipPathProps,
|
|
156
50
|
clipPathGroupProps,
|
|
@@ -168,20 +62,21 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
168
62
|
chartDataProviderProProps,
|
|
169
63
|
chartsSurfaceProps
|
|
170
64
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
171
|
-
|
|
65
|
+
initialZoom,
|
|
66
|
+
zoomData,
|
|
67
|
+
onZoomChange,
|
|
68
|
+
apiRef,
|
|
69
|
+
plugins: LINE_CHART_PRO_PLUGINS
|
|
172
70
|
}), ref);
|
|
173
71
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
174
|
-
return /*#__PURE__*/_jsx(
|
|
175
|
-
apiRef: apiRef,
|
|
176
|
-
initialZoom: initialZoom,
|
|
177
|
-
onZoomChange: onZoomChange,
|
|
72
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
178
73
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
179
74
|
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
180
|
-
children: [
|
|
181
|
-
children: [/*#__PURE__*/_jsx(
|
|
75
|
+
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
76
|
+
children: [/*#__PURE__*/_jsx(AreaPlot, _extends({}, areaPlotProps)), /*#__PURE__*/_jsx(LinePlot, _extends({}, linePlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
182
77
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx("g", {
|
|
183
78
|
"data-drawing-container": true,
|
|
184
|
-
children: /*#__PURE__*/_jsx(
|
|
79
|
+
children: /*#__PURE__*/_jsx(MarkPlot, _extends({}, markPlotProps))
|
|
185
80
|
}), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
186
81
|
}))]
|
|
187
82
|
}))
|
|
@@ -206,17 +101,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
206
101
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
207
102
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
208
103
|
}),
|
|
209
|
-
/**
|
|
210
|
-
* Indicate which axis to display the bottom of the charts.
|
|
211
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
212
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
213
|
-
*/
|
|
214
|
-
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
215
104
|
children: PropTypes.node,
|
|
216
105
|
className: PropTypes.string,
|
|
217
106
|
/**
|
|
218
107
|
* Color palette used to colorize multiple series.
|
|
219
|
-
* @default
|
|
108
|
+
* @default rainbowSurgePalette
|
|
220
109
|
*/
|
|
221
110
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
222
111
|
/**
|
|
@@ -234,10 +123,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
234
123
|
* If `true`, render the line highlight item.
|
|
235
124
|
*/
|
|
236
125
|
disableLineItemHighlight: PropTypes.bool,
|
|
237
|
-
/**
|
|
238
|
-
* If `true` marks will render `<circle />` instead of `<path />` and drop theme override for faster rendering.
|
|
239
|
-
*/
|
|
240
|
-
experimentalMarkRendering: PropTypes.bool,
|
|
241
126
|
/**
|
|
242
127
|
* Option to display a cartesian grid in the background.
|
|
243
128
|
*/
|
|
@@ -254,11 +139,12 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
254
139
|
*/
|
|
255
140
|
hideLegend: PropTypes.bool,
|
|
256
141
|
/**
|
|
257
|
-
* The
|
|
142
|
+
* The highlighted item.
|
|
143
|
+
* Used when the highlight is controlled.
|
|
258
144
|
*/
|
|
259
145
|
highlightedItem: PropTypes.shape({
|
|
260
146
|
dataIndex: PropTypes.number,
|
|
261
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
147
|
+
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
262
148
|
}),
|
|
263
149
|
/**
|
|
264
150
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -267,18 +153,13 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
267
153
|
id: PropTypes.string,
|
|
268
154
|
/**
|
|
269
155
|
* The list of zoom data related to each axis.
|
|
156
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
270
157
|
*/
|
|
271
158
|
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
272
159
|
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
273
160
|
end: PropTypes.number.isRequired,
|
|
274
161
|
start: PropTypes.number.isRequired
|
|
275
162
|
})),
|
|
276
|
-
/**
|
|
277
|
-
* Indicate which axis to display the left of the charts.
|
|
278
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
279
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
280
|
-
*/
|
|
281
|
-
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
282
163
|
/**
|
|
283
164
|
* If `true`, a loading overlay is displayed.
|
|
284
165
|
* @default false
|
|
@@ -287,14 +168,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
287
168
|
/**
|
|
288
169
|
* The margin between the SVG and the drawing area.
|
|
289
170
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
290
|
-
*
|
|
171
|
+
*
|
|
172
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
291
173
|
*/
|
|
292
|
-
margin: PropTypes.shape({
|
|
174
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
293
175
|
bottom: PropTypes.number,
|
|
294
176
|
left: PropTypes.number,
|
|
295
177
|
right: PropTypes.number,
|
|
296
178
|
top: PropTypes.number
|
|
297
|
-
}),
|
|
179
|
+
})]),
|
|
298
180
|
/**
|
|
299
181
|
* Callback fired when an area element is clicked.
|
|
300
182
|
*/
|
|
@@ -326,12 +208,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
326
208
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
327
209
|
*/
|
|
328
210
|
onZoomChange: PropTypes.func,
|
|
329
|
-
/**
|
|
330
|
-
* Indicate which axis to display the right of the charts.
|
|
331
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
332
|
-
* @default null
|
|
333
|
-
*/
|
|
334
|
-
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
335
211
|
/**
|
|
336
212
|
* The series to display in the line chart.
|
|
337
213
|
* An array of [[LineSeriesType]] objects.
|
|
@@ -355,12 +231,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
355
231
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
356
232
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
357
233
|
title: PropTypes.string,
|
|
358
|
-
/**
|
|
359
|
-
* Indicate which axis to display the top of the charts.
|
|
360
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
361
|
-
* @default null
|
|
362
|
-
*/
|
|
363
|
-
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
364
234
|
/**
|
|
365
235
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
366
236
|
*/
|
|
@@ -371,6 +241,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
371
241
|
* An array of [[AxisConfig]] objects.
|
|
372
242
|
*/
|
|
373
243
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
244
|
+
axis: PropTypes.oneOf(['x']),
|
|
374
245
|
classes: PropTypes.object,
|
|
375
246
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
376
247
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -393,13 +264,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
393
264
|
disableTicks: PropTypes.bool,
|
|
394
265
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
395
266
|
fill: PropTypes.string,
|
|
267
|
+
height: PropTypes.number,
|
|
396
268
|
hideTooltip: PropTypes.bool,
|
|
397
269
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
398
270
|
label: PropTypes.string,
|
|
399
271
|
labelStyle: PropTypes.object,
|
|
400
272
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
401
273
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
402
|
-
|
|
274
|
+
offset: PropTypes.number,
|
|
275
|
+
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
403
276
|
reverse: PropTypes.bool,
|
|
404
277
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
405
278
|
slotProps: PropTypes.object,
|
|
@@ -408,6 +281,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
408
281
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
409
282
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
410
283
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
284
|
+
tickLabelMinGap: PropTypes.number,
|
|
411
285
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
412
286
|
tickLabelStyle: PropTypes.object,
|
|
413
287
|
tickMaxStep: PropTypes.number,
|
|
@@ -432,6 +306,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
432
306
|
* An array of [[AxisConfig]] objects.
|
|
433
307
|
*/
|
|
434
308
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
309
|
+
axis: PropTypes.oneOf(['y']),
|
|
435
310
|
classes: PropTypes.object,
|
|
436
311
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
437
312
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -460,7 +335,8 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
460
335
|
labelStyle: PropTypes.object,
|
|
461
336
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
462
337
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
463
|
-
|
|
338
|
+
offset: PropTypes.number,
|
|
339
|
+
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
464
340
|
reverse: PropTypes.bool,
|
|
465
341
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
466
342
|
slotProps: PropTypes.object,
|
|
@@ -477,6 +353,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
477
353
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
478
354
|
tickSize: PropTypes.number,
|
|
479
355
|
valueFormatter: PropTypes.func,
|
|
356
|
+
width: PropTypes.number,
|
|
480
357
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
481
358
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
482
359
|
maxEnd: PropTypes.number,
|
|
@@ -511,6 +388,14 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
511
388
|
id: PropTypes.string,
|
|
512
389
|
max: PropTypes.number,
|
|
513
390
|
min: PropTypes.number
|
|
391
|
+
})),
|
|
392
|
+
/**
|
|
393
|
+
* The list of zoom data related to each axis.
|
|
394
|
+
*/
|
|
395
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
396
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
397
|
+
end: PropTypes.number.isRequired,
|
|
398
|
+
start: PropTypes.number.isRequired
|
|
514
399
|
}))
|
|
515
400
|
} : void 0;
|
|
516
401
|
export { LineChartPro };
|
|
@@ -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 LineChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'line'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
|
|
4
|
+
export declare const LINE_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<LineChartProPluginsSignatures>;
|
|
@@ -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 LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LineChartPro.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScatterChartProps } from '@mui/x-charts/ScatterChart';
|
|
3
|
+
import { ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.js";
|
|
4
|
+
import { ScatterChartProPluginsSignatures } from "./ScatterChartPro.plugins.js";
|
|
5
|
+
export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'onItemClick'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [Scatter](https://mui.com/x/react-charts/scatter/)
|
|
10
|
+
* - [Scatter demonstration](https://mui.com/x/react-charts/scatter-demo/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [ScatterChart API](https://mui.com/x/api/charts/scatter-chart/)
|
|
15
|
+
*/
|
|
16
|
+
declare const ScatterChartPro: React.ForwardRefExoticComponent<ScatterChartProProps & React.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
export { ScatterChartPro };
|