@mui/x-charts-pro 8.0.0-alpha.9 → 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 +240 -284
- 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 +1446 -0
- package/ChartContainerPro/ChartContainerPro.d.ts +8 -9
- package/ChartContainerPro/ChartContainerPro.js +181 -174
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +5 -5
- package/ChartContainerPro/useChartContainerProProps.js +28 -19
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +7 -7
- package/ChartDataProviderPro/ChartDataProviderPro.js +40 -220
- package/ChartDataProviderPro/index.d.ts +2 -1
- package/ChartDataProviderPro/index.js +17 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +7 -7
- package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -6
- 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 +242 -340
- 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 +244 -235
- 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 -54
- 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 +10 -8
- package/index.js +369 -37
- 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 -47
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +154 -328
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -39
- 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 +35 -85
- 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 +4 -3
- 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 +18 -204
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +1 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- 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 +36 -140
- 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 +40 -37
- 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 +5 -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 -18
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
- 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/ChartDataProviderPro/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 -10
- 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/creatZoomLookup.d.ts +0 -3
- package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- 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 -10
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -460
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -295
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/ChartDataProviderPro/ChartDataProviderPro.js +0 -298
- package/node/ChartDataProviderPro/index.js +0 -16
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -23
- 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 -17
- package/node/LineChartPro/LineChartPro.js +0 -511
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -398
- 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 -365
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
- 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 -18
- 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,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
const createPoint = ({
|
|
10
|
+
main,
|
|
11
|
+
other,
|
|
12
|
+
inverse,
|
|
13
|
+
useBandWidth,
|
|
14
|
+
stackOffset
|
|
15
|
+
}) => inverse ? {
|
|
16
|
+
x: other,
|
|
17
|
+
y: main,
|
|
18
|
+
useBandWidth,
|
|
19
|
+
stackOffset
|
|
20
|
+
} : {
|
|
21
|
+
x: main,
|
|
22
|
+
y: other,
|
|
23
|
+
useBandWidth,
|
|
24
|
+
stackOffset
|
|
25
|
+
};
|
|
26
|
+
const seriesProcessor = params => {
|
|
27
|
+
const {
|
|
28
|
+
seriesOrder,
|
|
29
|
+
series
|
|
30
|
+
} = params;
|
|
31
|
+
const completedSeries = {};
|
|
32
|
+
const isHorizontal = seriesOrder.some(seriesId => series[seriesId].layout === 'horizontal');
|
|
33
|
+
seriesOrder.forEach(seriesId => {
|
|
34
|
+
const currentSeries = series[seriesId];
|
|
35
|
+
completedSeries[seriesId] = (0, _extends2.default)({
|
|
36
|
+
labelMarkType: 'square',
|
|
37
|
+
layout: isHorizontal ? 'horizontal' : 'vertical',
|
|
38
|
+
valueFormatter: item => item == null ? '' : item.value.toLocaleString()
|
|
39
|
+
}, currentSeries, {
|
|
40
|
+
data: currentSeries.data.map((v, i) => (0, _extends2.default)({
|
|
41
|
+
id: `${seriesId}-funnel-item-${v.id ?? i}`
|
|
42
|
+
}, v)),
|
|
43
|
+
dataPoints: []
|
|
44
|
+
});
|
|
45
|
+
const stackOffsets = completedSeries[seriesId].data.toReversed().map((_, i, array) => array.slice(0, i).reduce((acc, item) => acc + item.value, 0)).toReversed();
|
|
46
|
+
completedSeries[seriesId].dataPoints = completedSeries[seriesId].data.map((item, dataIndex, array) => {
|
|
47
|
+
// Main = main axis, Other = other axis
|
|
48
|
+
// For horizontal layout, main is y, other is x
|
|
49
|
+
// For vertical layout, main is x, other is y
|
|
50
|
+
const currentMaxMain = item.value;
|
|
51
|
+
const nextDataIndex = dataIndex === array.length - 1 ? dataIndex : dataIndex + 1;
|
|
52
|
+
const nextMaxMain = array[nextDataIndex].value ?? 0;
|
|
53
|
+
const nextMaxOther = 0;
|
|
54
|
+
const currentMaxOther = completedSeries[seriesId].data[dataIndex].value;
|
|
55
|
+
const stackOffset = stackOffsets[dataIndex];
|
|
56
|
+
return [
|
|
57
|
+
// Top right (vertical) or Top left (horizontal)
|
|
58
|
+
createPoint({
|
|
59
|
+
main: currentMaxMain,
|
|
60
|
+
other: currentMaxOther,
|
|
61
|
+
inverse: isHorizontal,
|
|
62
|
+
useBandWidth: false,
|
|
63
|
+
stackOffset
|
|
64
|
+
}),
|
|
65
|
+
// Bottom right (vertical) or Top right (horizontal)
|
|
66
|
+
createPoint({
|
|
67
|
+
main: nextMaxMain,
|
|
68
|
+
other: nextMaxOther,
|
|
69
|
+
inverse: isHorizontal,
|
|
70
|
+
useBandWidth: true,
|
|
71
|
+
stackOffset
|
|
72
|
+
}),
|
|
73
|
+
// Bottom left (vertical) or Bottom right (horizontal)
|
|
74
|
+
createPoint({
|
|
75
|
+
main: -nextMaxMain,
|
|
76
|
+
other: nextMaxOther,
|
|
77
|
+
inverse: isHorizontal,
|
|
78
|
+
useBandWidth: true,
|
|
79
|
+
stackOffset
|
|
80
|
+
}),
|
|
81
|
+
// Top left (vertical) or Bottom left (horizontal)
|
|
82
|
+
createPoint({
|
|
83
|
+
main: -currentMaxMain,
|
|
84
|
+
other: currentMaxOther,
|
|
85
|
+
inverse: isHorizontal,
|
|
86
|
+
useBandWidth: false,
|
|
87
|
+
stackOffset
|
|
88
|
+
})];
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
seriesOrder,
|
|
93
|
+
series: completedSeries
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
var _default = exports.default = seriesProcessor;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _internals = require("@mui/x-charts/internals");
|
|
10
|
+
const tooltipGetter = params => {
|
|
11
|
+
const {
|
|
12
|
+
series,
|
|
13
|
+
getColor,
|
|
14
|
+
identifier
|
|
15
|
+
} = params;
|
|
16
|
+
if (!identifier || identifier.dataIndex === undefined) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const point = series.data[identifier.dataIndex];
|
|
20
|
+
const label = (0, _internals.getLabel)(point.label, 'tooltip');
|
|
21
|
+
const value = (0, _extends2.default)({}, point, {
|
|
22
|
+
label
|
|
23
|
+
});
|
|
24
|
+
const formattedValue = series.valueFormatter(value, {
|
|
25
|
+
dataIndex: identifier.dataIndex
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
identifier,
|
|
29
|
+
color: getColor(identifier.dataIndex),
|
|
30
|
+
label,
|
|
31
|
+
value,
|
|
32
|
+
formattedValue,
|
|
33
|
+
markType: point.labelMarkType ?? series.labelMarkType
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
var _default = exports.default = tooltipGetter;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
|
|
2
|
+
import { ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
|
|
3
|
+
import { ChartsLegendSlotExtension } from '@mui/x-charts/ChartsLegend';
|
|
4
|
+
import { ChartsClipPathProps } from '@mui/x-charts/ChartsClipPath';
|
|
5
|
+
import { ChartsWrapperProps } from '@mui/x-charts/internals';
|
|
6
|
+
import { ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
|
|
7
|
+
import { FunnelPlotProps } from "./FunnelPlot.js";
|
|
8
|
+
import type { FunnelChartProps } from './FunnelChart';
|
|
9
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
10
|
+
/**
|
|
11
|
+
* A helper function that extracts FunnelChartProps from the input props
|
|
12
|
+
* and returns an object with props for the children components of FunnelChart.
|
|
13
|
+
*
|
|
14
|
+
* @param props The input props for FunnelChart
|
|
15
|
+
* @returns An object with props for the children components of FunnelChart
|
|
16
|
+
*/
|
|
17
|
+
export declare const useFunnelChartProps: (props: FunnelChartProps) => {
|
|
18
|
+
chartContainerProps: ChartContainerProProps<"funnel">;
|
|
19
|
+
funnelPlotProps: FunnelPlotProps;
|
|
20
|
+
overlayProps: ChartsOverlayProps;
|
|
21
|
+
chartsAxisProps: ChartsAxisProps;
|
|
22
|
+
legendProps: ChartsLegendSlotExtension;
|
|
23
|
+
clipPathGroupProps: {
|
|
24
|
+
clipPath: string;
|
|
25
|
+
};
|
|
26
|
+
clipPathProps: ChartsClipPathProps;
|
|
27
|
+
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
28
|
+
axisHighlightProps: ChartsAxisHighlightProps;
|
|
29
|
+
children: import("react").ReactNode;
|
|
30
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useFunnelChartProps = void 0;
|
|
9
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _constants = require("@mui/x-charts/constants");
|
|
12
|
+
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
13
|
+
var _internals = require("@mui/x-charts/internals");
|
|
14
|
+
var _warning = require("@mui/x-internals/warning");
|
|
15
|
+
const _excluded = ["categoryAxis", "series", "width", "height", "margin", "colors", "sx", "children", "slots", "slotProps", "skipAnimation", "loading", "onItemClick", "highlightedItem", "onHighlightChange", "className", "hideLegend", "axisHighlight", "apiRef"];
|
|
16
|
+
function getCategoryAxisConfig(categoryAxis, series, isHorizontal, direction) {
|
|
17
|
+
const maxSeriesLength = Math.max(...series.map(s => (s.data ?? []).length), 0);
|
|
18
|
+
const maxSeriesValue = Array.from({
|
|
19
|
+
length: maxSeriesLength
|
|
20
|
+
}, (_, index) => series.reduce((a, s) => a + (s.data?.[index]?.value ?? 0), 0));
|
|
21
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
22
|
+
if ((categoryAxis?.position === 'left' || categoryAxis?.position === 'right') && isHorizontal || (categoryAxis?.position === 'top' || categoryAxis?.position === 'bottom') && !isHorizontal) {
|
|
23
|
+
(0, _warning.warnOnce)([`MUI X: the categoryAxis position is set to '${categoryAxis.position}' but the series layout is ${isHorizontal ? 'horizontal' : 'vertical'}.`, `Ensure that the categoryAxis position is set to '${isHorizontal ? 'top' : 'left'}' or '${isHorizontal ? 'bottom' : 'right'}' for ${isHorizontal ? 'horizontal' : 'vertical'} layout.\n`], 'warning');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const side = isHorizontal ? 'bottom' : 'left';
|
|
27
|
+
const categoryValues = (0, _extends2.default)({
|
|
28
|
+
id: direction === 'x' ? _constants.DEFAULT_X_AXIS_KEY : _constants.DEFAULT_Y_AXIS_KEY
|
|
29
|
+
}, categoryAxis, categoryAxis?.size ? {
|
|
30
|
+
[isHorizontal ? 'height' : 'width']: categoryAxis.size
|
|
31
|
+
} : {}, {
|
|
32
|
+
position: categoryAxis?.position ?? (categoryAxis?.categories ? side : 'none')
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// If the scaleType is not defined or is 'band', our job is simple.
|
|
36
|
+
if (!categoryAxis?.scaleType || categoryAxis.scaleType === 'band') {
|
|
37
|
+
return (0, _extends2.default)({
|
|
38
|
+
scaleType: 'band',
|
|
39
|
+
categoryGapRatio: 0,
|
|
40
|
+
// Use the categories as the domain if they are defined.
|
|
41
|
+
data: categoryAxis?.categories ? categoryAxis.categories :
|
|
42
|
+
// Otherwise we just need random data to create the band scale.
|
|
43
|
+
Array.from({
|
|
44
|
+
length: maxSeriesLength
|
|
45
|
+
}, (_, index) => index),
|
|
46
|
+
tickLabelPlacement: 'middle'
|
|
47
|
+
}, categoryValues);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// If the scaleType is other than 'band', we have to do some magic.
|
|
51
|
+
// First we need to calculate the tick values additively and in reverse order.
|
|
52
|
+
const tickValues = [...maxSeriesValue.toReversed().map((_, i, arr) => arr.slice(0, i).reduce((a, value) => a + value, 0)),
|
|
53
|
+
// We add the total value of the series as the last tick value
|
|
54
|
+
maxSeriesValue.reduce((a, value) => a + value, 0)];
|
|
55
|
+
return (0, _extends2.default)({
|
|
56
|
+
scaleType: categoryAxis.scaleType,
|
|
57
|
+
domainLimit: 'strict',
|
|
58
|
+
tickLabelPlacement: 'middle',
|
|
59
|
+
tickInterval: tickValues,
|
|
60
|
+
// No need to show the first tick label
|
|
61
|
+
tickLabelInterval: (_, i) => i !== 0,
|
|
62
|
+
// We trick the valueFormatter to show the category values.
|
|
63
|
+
// By using the index of the tickValues array we can get the category value.
|
|
64
|
+
valueFormatter: value => `${categoryAxis.categories?.toReversed()[tickValues.findIndex(v => v === value) - 1]}`
|
|
65
|
+
}, categoryValues);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* A helper function that extracts FunnelChartProps from the input props
|
|
70
|
+
* and returns an object with props for the children components of FunnelChart.
|
|
71
|
+
*
|
|
72
|
+
* @param props The input props for FunnelChart
|
|
73
|
+
* @returns An object with props for the children components of FunnelChart
|
|
74
|
+
*/
|
|
75
|
+
const useFunnelChartProps = props => {
|
|
76
|
+
const {
|
|
77
|
+
categoryAxis,
|
|
78
|
+
series,
|
|
79
|
+
width,
|
|
80
|
+
height,
|
|
81
|
+
margin: marginProps,
|
|
82
|
+
colors,
|
|
83
|
+
sx,
|
|
84
|
+
children,
|
|
85
|
+
slots,
|
|
86
|
+
slotProps,
|
|
87
|
+
loading,
|
|
88
|
+
onItemClick,
|
|
89
|
+
highlightedItem,
|
|
90
|
+
onHighlightChange,
|
|
91
|
+
className,
|
|
92
|
+
axisHighlight,
|
|
93
|
+
apiRef
|
|
94
|
+
} = props,
|
|
95
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
96
|
+
const margin = (0, _internals.defaultizeMargin)(marginProps, _constants.DEFAULT_MARGINS);
|
|
97
|
+
const id = (0, _useId.default)();
|
|
98
|
+
const clipPathId = `${id}-clip-path`;
|
|
99
|
+
const isHorizontal = series.some(s => s.layout === 'horizontal');
|
|
100
|
+
const valueAxisConfig = {
|
|
101
|
+
id: isHorizontal ? _constants.DEFAULT_Y_AXIS_KEY : _constants.DEFAULT_X_AXIS_KEY,
|
|
102
|
+
scaleType: 'linear',
|
|
103
|
+
domainLimit: 'strict',
|
|
104
|
+
position: 'none'
|
|
105
|
+
};
|
|
106
|
+
const xAxis = isHorizontal ? getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'x') : valueAxisConfig;
|
|
107
|
+
const yAxis = isHorizontal ? valueAxisConfig : getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'y');
|
|
108
|
+
const chartContainerProps = (0, _extends2.default)({}, rest, {
|
|
109
|
+
series: series.map(s => (0, _extends2.default)({
|
|
110
|
+
type: 'funnel',
|
|
111
|
+
layout: isHorizontal ? 'horizontal' : 'vertical'
|
|
112
|
+
}, s)),
|
|
113
|
+
width,
|
|
114
|
+
height,
|
|
115
|
+
margin,
|
|
116
|
+
colors,
|
|
117
|
+
xAxis: [xAxis],
|
|
118
|
+
yAxis: [yAxis],
|
|
119
|
+
sx,
|
|
120
|
+
highlightedItem,
|
|
121
|
+
onHighlightChange,
|
|
122
|
+
className,
|
|
123
|
+
apiRef
|
|
124
|
+
});
|
|
125
|
+
const funnelPlotProps = {
|
|
126
|
+
onItemClick,
|
|
127
|
+
slots,
|
|
128
|
+
slotProps
|
|
129
|
+
};
|
|
130
|
+
const overlayProps = {
|
|
131
|
+
slots,
|
|
132
|
+
slotProps,
|
|
133
|
+
loading
|
|
134
|
+
};
|
|
135
|
+
const chartsAxisProps = {
|
|
136
|
+
slots,
|
|
137
|
+
slotProps
|
|
138
|
+
};
|
|
139
|
+
const legendProps = {
|
|
140
|
+
slots,
|
|
141
|
+
slotProps
|
|
142
|
+
};
|
|
143
|
+
const clipPathGroupProps = {
|
|
144
|
+
clipPath: `url(#${clipPathId})`
|
|
145
|
+
};
|
|
146
|
+
const clipPathProps = {
|
|
147
|
+
id: clipPathId
|
|
148
|
+
};
|
|
149
|
+
const chartsWrapperProps = {
|
|
150
|
+
sx,
|
|
151
|
+
legendPosition: props.slotProps?.legend?.position,
|
|
152
|
+
legendDirection: props.slotProps?.legend?.direction
|
|
153
|
+
};
|
|
154
|
+
const axisHighlightProps = (0, _extends2.default)({}, axisHighlight);
|
|
155
|
+
return {
|
|
156
|
+
chartContainerProps,
|
|
157
|
+
funnelPlotProps,
|
|
158
|
+
overlayProps,
|
|
159
|
+
chartsAxisProps,
|
|
160
|
+
legendProps,
|
|
161
|
+
clipPathGroupProps,
|
|
162
|
+
clipPathProps,
|
|
163
|
+
chartsWrapperProps,
|
|
164
|
+
axisHighlightProps,
|
|
165
|
+
children
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
exports.useFunnelChartProps = useFunnelChartProps;
|
package/Heatmap/Heatmap.d.ts
CHANGED
|
@@ -3,55 +3,55 @@ import { MakeOptional } from '@mui/x-internals/types';
|
|
|
3
3
|
import { ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
|
|
4
4
|
import { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
|
|
5
5
|
import { ChartsAxisSlots, ChartsAxisSlotProps, ChartsXAxisProps, ChartsYAxisProps, AxisConfig } from '@mui/x-charts/internals';
|
|
6
|
-
import { ChartsOnAxisClickHandlerProps } from '@mui/x-charts/ChartsOnAxisClickHandler';
|
|
7
6
|
import { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
|
|
8
|
-
import { ChartContainerProProps } from
|
|
9
|
-
import { HeatmapSeriesType } from
|
|
10
|
-
import { HeatmapTooltipProps } from
|
|
11
|
-
import { HeatmapItemSlotProps, HeatmapItemSlots } from
|
|
7
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
8
|
+
import { HeatmapSeriesType } from "../models/seriesType/heatmap.js";
|
|
9
|
+
import { HeatmapTooltipProps } from "./HeatmapTooltip.js";
|
|
10
|
+
import { HeatmapItemSlotProps, HeatmapItemSlots } from "./HeatmapItem.js";
|
|
11
|
+
import { HeatmapPluginsSignatures } from "./Heatmap.plugins.js";
|
|
12
12
|
export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, HeatmapItemSlots {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom component for the tooltip popper.
|
|
15
|
+
* @default ChartsTooltipRoot
|
|
16
|
+
*/
|
|
17
|
+
tooltip?: React.ElementType<HeatmapTooltipProps>;
|
|
18
18
|
}
|
|
19
19
|
export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps {
|
|
20
|
-
|
|
20
|
+
tooltip?: Partial<HeatmapTooltipProps>;
|
|
21
21
|
}
|
|
22
|
-
export interface HeatmapProps extends Omit<ChartContainerProProps, 'series' | 'plugins' | 'xAxis' | 'yAxis' | '
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
22
|
+
export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', HeatmapPluginsSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'skipAnimation'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
|
|
23
|
+
/**
|
|
24
|
+
* The configuration of the x-axes.
|
|
25
|
+
* If not provided, a default axis config is used.
|
|
26
|
+
* An array of [[AxisConfig]] objects.
|
|
27
|
+
*/
|
|
28
|
+
xAxis: Readonly<MakeOptional<AxisConfig<'band', any, ChartsXAxisProps>, 'id' | 'scaleType'>[]>;
|
|
29
|
+
/**
|
|
30
|
+
* The configuration of the y-axes.
|
|
31
|
+
* If not provided, a default axis config is used.
|
|
32
|
+
* An array of [[AxisConfig]] objects.
|
|
33
|
+
*/
|
|
34
|
+
yAxis: Readonly<MakeOptional<AxisConfig<'band', any, ChartsYAxisProps>, 'id' | 'scaleType'>[]>;
|
|
35
|
+
/**
|
|
36
|
+
* The series to display in the bar chart.
|
|
37
|
+
* An array of [[HeatmapSeriesType]] objects.
|
|
38
|
+
*/
|
|
39
|
+
series: Readonly<MakeOptional<HeatmapSeriesType, 'type'>[]>;
|
|
40
|
+
/**
|
|
41
|
+
* The configuration of the tooltip.
|
|
42
|
+
* @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
|
|
43
|
+
*/
|
|
44
|
+
tooltip?: ChartsTooltipProps;
|
|
45
|
+
/**
|
|
46
|
+
* Overridable component slots.
|
|
47
|
+
* @default {}
|
|
48
|
+
*/
|
|
49
|
+
slots?: HeatmapSlots;
|
|
50
|
+
/**
|
|
51
|
+
* The props used for each component slot.
|
|
52
|
+
* @default {}
|
|
53
|
+
*/
|
|
54
|
+
slotProps?: HeatmapSlotProps;
|
|
55
55
|
}
|
|
56
56
|
declare const Heatmap: React.ForwardRefExoticComponent<HeatmapProps & React.RefAttributes<SVGSVGElement>>;
|
|
57
|
-
export { Heatmap };
|
|
57
|
+
export { Heatmap };
|