@mui/x-charts-pro 8.0.0-alpha.11 → 8.0.0-alpha.12
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 +3 -4
- package/BarChartPro/BarChartPro.js +227 -221
- package/BarChartPro/BarChartPro.plugins.d.ts +3 -9
- package/BarChartPro/BarChartPro.plugins.js +9 -3
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +161 -1
- package/ChartContainerPro/ChartContainerPro.d.ts +4 -4
- package/ChartContainerPro/ChartContainerPro.js +178 -172
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +3 -3
- package/ChartContainerPro/useChartContainerProProps.js +17 -10
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +3 -3
- package/ChartDataProviderPro/ChartDataProviderPro.js +34 -28
- package/ChartDataProviderPro/index.d.ts +2 -1
- package/ChartDataProviderPro/index.js +17 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
- package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
- package/Heatmap/Heatmap.d.ts +43 -43
- package/Heatmap/Heatmap.js +210 -204
- package/Heatmap/Heatmap.plugins.d.ts +2 -7
- package/Heatmap/Heatmap.plugins.js +8 -2
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +39 -32
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +97 -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/index.d.ts +2 -0
- package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
- package/LineChartPro/LineChartPro.d.ts +3 -4
- package/LineChartPro/LineChartPro.js +239 -233
- package/LineChartPro/LineChartPro.plugins.d.ts +3 -9
- package/LineChartPro/LineChartPro.plugins.js +9 -3
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +216 -212
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -10
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -3
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +17 -0
- package/esm/BarChartPro/BarChartPro.js +455 -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 +33 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +28 -34
- 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/Heatmap/Heatmap.d.ts +56 -0
- package/esm/Heatmap/Heatmap.js +402 -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 +276 -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/index.d.ts +2 -0
- package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
- 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/LineChartPro/LineChartPro.d.ts +16 -0
- package/esm/LineChartPro/LineChartPro.js +506 -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 +400 -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/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 +32 -0
- package/esm/index.js +43 -0
- package/esm/internals/plugins/allPlugins.d.ts +5 -0
- package/esm/internals/plugins/allPlugins.js +5 -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 +33 -44
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -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/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 +22 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- 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 +8 -7
- package/index.js +347 -36
- package/internals/plugins/allPlugins.d.ts +3 -9
- package/internals/plugins/allPlugins.js +9 -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 +40 -37
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +149 -325
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +35 -41
- 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 +17 -18
- 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 +17 -0
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- 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/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- 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/Heatmap/Heatmap.d.ts +56 -0
- package/modern/Heatmap/Heatmap.js +2 -2
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- 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 +6 -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/index.d.ts +2 -0
- package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
- 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/LineChartPro/LineChartPro.d.ts +16 -0
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +1 -3
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
- 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/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 +32 -0
- package/modern/index.js +2 -2
- package/modern/internals/plugins/allPlugins.d.ts +5 -0
- 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 +4 -8
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -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 +22 -0
- package/package.json +41 -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 +20 -23
- 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/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -9
- 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/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 -461
- package/node/BarChartPro/BarChartPro.plugins.js +0 -9
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -296
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/ChartDataProviderPro/index.js +0 -16
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
- package/node/Heatmap/Heatmap.js +0 -408
- package/node/Heatmap/Heatmap.plugins.js +0 -8
- 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/LineChartPro/LineChartPro.js +0 -512
- package/node/LineChartPro/LineChartPro.plugins.js +0 -9
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -408
- package/node/ScatterChartPro/ScatterChartPro.plugins.js +0 -9
- 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 -354
- 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/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
- package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/heatmap.js +0 -5
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/node/typeOverloads/modules.js +0 -5
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
- /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
-
import { UseChartProZoomSignature } from
|
|
3
|
-
export type ScatterChartProPluginsSignatures = [
|
|
4
|
-
|
|
5
|
-
UseChartCartesianAxisSignature<'scatter'>,
|
|
6
|
-
UseChartInteractionSignature,
|
|
7
|
-
UseChartHighlightSignature,
|
|
8
|
-
UseChartProZoomSignature
|
|
9
|
-
];
|
|
10
|
-
export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginsSignatures>;
|
|
1
|
+
import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
+
export type ScatterChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, UseChartProZoomSignature];
|
|
4
|
+
export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginsSignatures>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SCATTER_CHART_PRO_PLUGINS = void 0;
|
|
7
|
+
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
var _useChartProZoom = require("../internals/plugins/useChartProZoom");
|
|
9
|
+
const SCATTER_CHART_PRO_PLUGINS = exports.SCATTER_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartCartesianAxis, _internals.useChartInteraction, _internals.useChartHighlight, _internals.useChartVoronoi, _useChartProZoom.useChartProZoom];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ScatterChartPro.js";
|
package/ScatterChartPro/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ScatterChartPro = require("./ScatterChartPro");
|
|
7
|
+
Object.keys(_ScatterChartPro).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ScatterChartPro[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ScatterChartPro[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
3
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
|
+
export interface BarChartProProps extends Omit<BarChartProps, 'apiRef'>, Omit<ChartContainerProProps<'bar'>, 'series' | 'plugins' | 'seriesConfig'> {}
|
|
5
|
+
/**
|
|
6
|
+
* Demos:
|
|
7
|
+
*
|
|
8
|
+
* - [Bars](https://mui.com/x/react-charts/bars/)
|
|
9
|
+
* - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
|
|
10
|
+
* - [Stacking](https://mui.com/x/react-charts/stacking/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
|
|
15
|
+
*/
|
|
16
|
+
declare const BarChartPro: React.ForwardRefExoticComponent<BarChartProProps & React.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
export { BarChartPro };
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { useThemeProps } from '@mui/material/styles';
|
|
9
|
+
import { BarPlot } from '@mui/x-charts/BarChart';
|
|
10
|
+
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
11
|
+
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
12
|
+
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
13
|
+
import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
14
|
+
import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
15
|
+
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
16
|
+
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
17
|
+
import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
18
|
+
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
19
|
+
import { useIsZoomInteracting } from "../hooks/zoom/index.js";
|
|
20
|
+
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
21
|
+
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
22
|
+
import { BAR_CHART_PRO_PLUGINS } from "./BarChartPro.plugins.js";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
function BarChartPlotZoom(props) {
|
|
25
|
+
const isInteracting = useIsZoomInteracting();
|
|
26
|
+
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
27
|
+
skipAnimation: isInteracting || props.skipAnimation
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
31
|
+
// ----------------------------- Warning --------------------------------
|
|
32
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
33
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
34
|
+
// ----------------------------------------------------------------------
|
|
35
|
+
/**
|
|
36
|
+
* If provided, the function will be used to format the label of the bar.
|
|
37
|
+
* It can be set to 'value' to display the current value.
|
|
38
|
+
* @param {BarItem} item The item to format.
|
|
39
|
+
* @param {BarLabelContext} context data about the bar.
|
|
40
|
+
* @returns {string} The formatted label.
|
|
41
|
+
*/
|
|
42
|
+
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
43
|
+
/**
|
|
44
|
+
* Defines the border radius of the bar element.
|
|
45
|
+
*/
|
|
46
|
+
borderRadius: PropTypes.number,
|
|
47
|
+
/**
|
|
48
|
+
* Callback fired when a bar item is clicked.
|
|
49
|
+
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
50
|
+
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
51
|
+
*/
|
|
52
|
+
onItemClick: PropTypes.func,
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, animations are skipped.
|
|
55
|
+
* @default undefined
|
|
56
|
+
*/
|
|
57
|
+
skipAnimation: PropTypes.bool,
|
|
58
|
+
/**
|
|
59
|
+
* The props used for each component slot.
|
|
60
|
+
* @default {}
|
|
61
|
+
*/
|
|
62
|
+
slotProps: PropTypes.object,
|
|
63
|
+
/**
|
|
64
|
+
* Overridable component slots.
|
|
65
|
+
* @default {}
|
|
66
|
+
*/
|
|
67
|
+
slots: PropTypes.object
|
|
68
|
+
} : void 0;
|
|
69
|
+
/**
|
|
70
|
+
* Demos:
|
|
71
|
+
*
|
|
72
|
+
* - [Bars](https://mui.com/x/react-charts/bars/)
|
|
73
|
+
* - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
|
|
74
|
+
* - [Stacking](https://mui.com/x/react-charts/stacking/)
|
|
75
|
+
*
|
|
76
|
+
* API:
|
|
77
|
+
*
|
|
78
|
+
* - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
|
|
79
|
+
*/
|
|
80
|
+
const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps, ref) {
|
|
81
|
+
const props = useThemeProps({
|
|
82
|
+
props: inProps,
|
|
83
|
+
name: 'MuiBarChartPro'
|
|
84
|
+
});
|
|
85
|
+
const {
|
|
86
|
+
initialZoom,
|
|
87
|
+
onZoomChange,
|
|
88
|
+
apiRef
|
|
89
|
+
} = props,
|
|
90
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
91
|
+
const {
|
|
92
|
+
chartsWrapperProps,
|
|
93
|
+
chartContainerProps,
|
|
94
|
+
barPlotProps,
|
|
95
|
+
gridProps,
|
|
96
|
+
clipPathProps,
|
|
97
|
+
clipPathGroupProps,
|
|
98
|
+
overlayProps,
|
|
99
|
+
chartsAxisProps,
|
|
100
|
+
axisHighlightProps,
|
|
101
|
+
legendProps,
|
|
102
|
+
children
|
|
103
|
+
} = useBarChartProps(other);
|
|
104
|
+
const {
|
|
105
|
+
chartDataProviderProProps,
|
|
106
|
+
chartsSurfaceProps
|
|
107
|
+
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
108
|
+
initialZoom,
|
|
109
|
+
onZoomChange,
|
|
110
|
+
apiRef,
|
|
111
|
+
plugins: BAR_CHART_PRO_PLUGINS
|
|
112
|
+
}), ref);
|
|
113
|
+
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
114
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
115
|
+
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
116
|
+
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
117
|
+
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
118
|
+
children: [/*#__PURE__*/_jsx(BarChartPlotZoom, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
119
|
+
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
120
|
+
}))]
|
|
121
|
+
}))
|
|
122
|
+
}));
|
|
123
|
+
});
|
|
124
|
+
process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
125
|
+
// ----------------------------- Warning --------------------------------
|
|
126
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
127
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
128
|
+
// ----------------------------------------------------------------------
|
|
129
|
+
apiRef: PropTypes.shape({
|
|
130
|
+
current: PropTypes.shape({
|
|
131
|
+
setZoomData: PropTypes.func.isRequired
|
|
132
|
+
})
|
|
133
|
+
}),
|
|
134
|
+
/**
|
|
135
|
+
* The configuration of axes highlight.
|
|
136
|
+
* Default is set to 'band' in the bar direction.
|
|
137
|
+
* Depends on `layout` prop.
|
|
138
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
139
|
+
*/
|
|
140
|
+
axisHighlight: PropTypes.shape({
|
|
141
|
+
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
142
|
+
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
143
|
+
}),
|
|
144
|
+
/**
|
|
145
|
+
* If provided, the function will be used to format the label of the bar.
|
|
146
|
+
* It can be set to 'value' to display the current value.
|
|
147
|
+
* @param {BarItem} item The item to format.
|
|
148
|
+
* @param {BarLabelContext} context data about the bar.
|
|
149
|
+
* @returns {string} The formatted label.
|
|
150
|
+
*/
|
|
151
|
+
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
152
|
+
/**
|
|
153
|
+
* Defines the border radius of the bar element.
|
|
154
|
+
*/
|
|
155
|
+
borderRadius: PropTypes.number,
|
|
156
|
+
/**
|
|
157
|
+
* Indicate which axis to display the bottom of the charts.
|
|
158
|
+
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
159
|
+
* @default xAxisIds[0] The id of the first provided axis
|
|
160
|
+
*/
|
|
161
|
+
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
162
|
+
children: PropTypes.node,
|
|
163
|
+
className: PropTypes.string,
|
|
164
|
+
/**
|
|
165
|
+
* Color palette used to colorize multiple series.
|
|
166
|
+
* @default rainbowSurgePalette
|
|
167
|
+
*/
|
|
168
|
+
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
169
|
+
/**
|
|
170
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
171
|
+
*/
|
|
172
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
173
|
+
desc: PropTypes.string,
|
|
174
|
+
/**
|
|
175
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
176
|
+
* It might break interactive features, but will improve performance.
|
|
177
|
+
* @default false
|
|
178
|
+
*/
|
|
179
|
+
disableAxisListener: PropTypes.bool,
|
|
180
|
+
/**
|
|
181
|
+
* Option to display a cartesian grid in the background.
|
|
182
|
+
*/
|
|
183
|
+
grid: PropTypes.shape({
|
|
184
|
+
horizontal: PropTypes.bool,
|
|
185
|
+
vertical: PropTypes.bool
|
|
186
|
+
}),
|
|
187
|
+
/**
|
|
188
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
189
|
+
*/
|
|
190
|
+
height: PropTypes.number,
|
|
191
|
+
/**
|
|
192
|
+
* If `true`, the legend is not rendered.
|
|
193
|
+
*/
|
|
194
|
+
hideLegend: PropTypes.bool,
|
|
195
|
+
/**
|
|
196
|
+
* The highlighted item.
|
|
197
|
+
* Used when the highlight is controlled.
|
|
198
|
+
*/
|
|
199
|
+
highlightedItem: PropTypes.shape({
|
|
200
|
+
dataIndex: PropTypes.number,
|
|
201
|
+
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
202
|
+
}),
|
|
203
|
+
/**
|
|
204
|
+
* This prop is used to help implement the accessibility logic.
|
|
205
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
206
|
+
*/
|
|
207
|
+
id: PropTypes.string,
|
|
208
|
+
/**
|
|
209
|
+
* The list of zoom data related to each axis.
|
|
210
|
+
*/
|
|
211
|
+
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
212
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
213
|
+
end: PropTypes.number.isRequired,
|
|
214
|
+
start: PropTypes.number.isRequired
|
|
215
|
+
})),
|
|
216
|
+
/**
|
|
217
|
+
* The direction of the bar elements.
|
|
218
|
+
* @default 'vertical'
|
|
219
|
+
*/
|
|
220
|
+
layout: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
221
|
+
/**
|
|
222
|
+
* Indicate which axis to display the left of the charts.
|
|
223
|
+
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
224
|
+
* @default yAxisIds[0] The id of the first provided axis
|
|
225
|
+
*/
|
|
226
|
+
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
227
|
+
/**
|
|
228
|
+
* If `true`, a loading overlay is displayed.
|
|
229
|
+
* @default false
|
|
230
|
+
*/
|
|
231
|
+
loading: PropTypes.bool,
|
|
232
|
+
/**
|
|
233
|
+
* The margin between the SVG and the drawing area.
|
|
234
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
235
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
236
|
+
*/
|
|
237
|
+
margin: PropTypes.shape({
|
|
238
|
+
bottom: PropTypes.number,
|
|
239
|
+
left: PropTypes.number,
|
|
240
|
+
right: PropTypes.number,
|
|
241
|
+
top: PropTypes.number
|
|
242
|
+
}),
|
|
243
|
+
/**
|
|
244
|
+
* The function called for onClick events.
|
|
245
|
+
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
246
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
247
|
+
* @param {null | AxisData} data The data about the clicked axis and items associated with it.
|
|
248
|
+
*/
|
|
249
|
+
onAxisClick: PropTypes.func,
|
|
250
|
+
/**
|
|
251
|
+
* The callback fired when the highlighted item changes.
|
|
252
|
+
*
|
|
253
|
+
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
254
|
+
*/
|
|
255
|
+
onHighlightChange: PropTypes.func,
|
|
256
|
+
/**
|
|
257
|
+
* Callback fired when a bar item is clicked.
|
|
258
|
+
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
259
|
+
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
260
|
+
*/
|
|
261
|
+
onItemClick: PropTypes.func,
|
|
262
|
+
/**
|
|
263
|
+
* Callback fired when the zoom has changed.
|
|
264
|
+
*
|
|
265
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
266
|
+
*/
|
|
267
|
+
onZoomChange: PropTypes.func,
|
|
268
|
+
/**
|
|
269
|
+
* Indicate which axis to display the right of the charts.
|
|
270
|
+
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
271
|
+
* @default null
|
|
272
|
+
*/
|
|
273
|
+
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
274
|
+
/**
|
|
275
|
+
* The series to display in the bar chart.
|
|
276
|
+
* An array of [[BarSeriesType]] objects.
|
|
277
|
+
*/
|
|
278
|
+
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
279
|
+
/**
|
|
280
|
+
* If `true`, animations are skipped.
|
|
281
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
282
|
+
*/
|
|
283
|
+
skipAnimation: PropTypes.bool,
|
|
284
|
+
/**
|
|
285
|
+
* The props used for each component slot.
|
|
286
|
+
* @default {}
|
|
287
|
+
*/
|
|
288
|
+
slotProps: PropTypes.object,
|
|
289
|
+
/**
|
|
290
|
+
* Overridable component slots.
|
|
291
|
+
* @default {}
|
|
292
|
+
*/
|
|
293
|
+
slots: PropTypes.object,
|
|
294
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
295
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
296
|
+
title: PropTypes.string,
|
|
297
|
+
/**
|
|
298
|
+
* Indicate which axis to display the top of the charts.
|
|
299
|
+
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
300
|
+
* @default null
|
|
301
|
+
*/
|
|
302
|
+
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
303
|
+
/**
|
|
304
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
305
|
+
*/
|
|
306
|
+
width: PropTypes.number,
|
|
307
|
+
/**
|
|
308
|
+
* The configuration of the x-axes.
|
|
309
|
+
* If not provided, a default axis config is used.
|
|
310
|
+
* An array of [[AxisConfig]] objects.
|
|
311
|
+
*/
|
|
312
|
+
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
313
|
+
classes: PropTypes.object,
|
|
314
|
+
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
315
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
316
|
+
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
317
|
+
unknownColor: PropTypes.string,
|
|
318
|
+
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
319
|
+
}), PropTypes.shape({
|
|
320
|
+
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
321
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
322
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
323
|
+
type: PropTypes.oneOf(['continuous']).isRequired
|
|
324
|
+
}), PropTypes.shape({
|
|
325
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
326
|
+
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
327
|
+
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
328
|
+
})]),
|
|
329
|
+
data: PropTypes.array,
|
|
330
|
+
dataKey: PropTypes.string,
|
|
331
|
+
disableLine: PropTypes.bool,
|
|
332
|
+
disableTicks: PropTypes.bool,
|
|
333
|
+
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
334
|
+
fill: PropTypes.string,
|
|
335
|
+
hideTooltip: PropTypes.bool,
|
|
336
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
337
|
+
label: PropTypes.string,
|
|
338
|
+
labelStyle: PropTypes.object,
|
|
339
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
340
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
341
|
+
position: PropTypes.oneOf(['bottom', 'top']),
|
|
342
|
+
reverse: PropTypes.bool,
|
|
343
|
+
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
344
|
+
slotProps: PropTypes.object,
|
|
345
|
+
slots: PropTypes.object,
|
|
346
|
+
stroke: PropTypes.string,
|
|
347
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
348
|
+
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
349
|
+
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
350
|
+
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
351
|
+
tickLabelStyle: PropTypes.object,
|
|
352
|
+
tickMaxStep: PropTypes.number,
|
|
353
|
+
tickMinStep: PropTypes.number,
|
|
354
|
+
tickNumber: PropTypes.number,
|
|
355
|
+
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
356
|
+
tickSize: PropTypes.number,
|
|
357
|
+
valueFormatter: PropTypes.func,
|
|
358
|
+
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
359
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
360
|
+
maxEnd: PropTypes.number,
|
|
361
|
+
maxSpan: PropTypes.number,
|
|
362
|
+
minSpan: PropTypes.number,
|
|
363
|
+
minStart: PropTypes.number,
|
|
364
|
+
panning: PropTypes.bool,
|
|
365
|
+
step: PropTypes.number
|
|
366
|
+
}), PropTypes.bool])
|
|
367
|
+
})),
|
|
368
|
+
/**
|
|
369
|
+
* The configuration of the y-axes.
|
|
370
|
+
* If not provided, a default axis config is used.
|
|
371
|
+
* An array of [[AxisConfig]] objects.
|
|
372
|
+
*/
|
|
373
|
+
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
374
|
+
classes: PropTypes.object,
|
|
375
|
+
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
376
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
377
|
+
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
378
|
+
unknownColor: PropTypes.string,
|
|
379
|
+
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
380
|
+
}), PropTypes.shape({
|
|
381
|
+
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
382
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
383
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
384
|
+
type: PropTypes.oneOf(['continuous']).isRequired
|
|
385
|
+
}), PropTypes.shape({
|
|
386
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
387
|
+
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
388
|
+
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
389
|
+
})]),
|
|
390
|
+
data: PropTypes.array,
|
|
391
|
+
dataKey: PropTypes.string,
|
|
392
|
+
disableLine: PropTypes.bool,
|
|
393
|
+
disableTicks: PropTypes.bool,
|
|
394
|
+
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
395
|
+
fill: PropTypes.string,
|
|
396
|
+
hideTooltip: PropTypes.bool,
|
|
397
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
398
|
+
label: PropTypes.string,
|
|
399
|
+
labelStyle: PropTypes.object,
|
|
400
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
401
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
402
|
+
position: PropTypes.oneOf(['left', 'right']),
|
|
403
|
+
reverse: PropTypes.bool,
|
|
404
|
+
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
405
|
+
slotProps: PropTypes.object,
|
|
406
|
+
slots: PropTypes.object,
|
|
407
|
+
stroke: PropTypes.string,
|
|
408
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
409
|
+
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
410
|
+
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
411
|
+
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
412
|
+
tickLabelStyle: PropTypes.object,
|
|
413
|
+
tickMaxStep: PropTypes.number,
|
|
414
|
+
tickMinStep: PropTypes.number,
|
|
415
|
+
tickNumber: PropTypes.number,
|
|
416
|
+
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
417
|
+
tickSize: PropTypes.number,
|
|
418
|
+
valueFormatter: PropTypes.func,
|
|
419
|
+
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
420
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
421
|
+
maxEnd: PropTypes.number,
|
|
422
|
+
maxSpan: PropTypes.number,
|
|
423
|
+
minSpan: PropTypes.number,
|
|
424
|
+
minStart: PropTypes.number,
|
|
425
|
+
panning: PropTypes.bool,
|
|
426
|
+
step: PropTypes.number
|
|
427
|
+
}), PropTypes.bool])
|
|
428
|
+
})),
|
|
429
|
+
/**
|
|
430
|
+
* The configuration of the z-axes.
|
|
431
|
+
*/
|
|
432
|
+
zAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
433
|
+
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
434
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
435
|
+
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
436
|
+
unknownColor: PropTypes.string,
|
|
437
|
+
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
438
|
+
}), PropTypes.shape({
|
|
439
|
+
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
440
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
441
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
442
|
+
type: PropTypes.oneOf(['continuous']).isRequired
|
|
443
|
+
}), PropTypes.shape({
|
|
444
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
445
|
+
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
446
|
+
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
447
|
+
})]),
|
|
448
|
+
data: PropTypes.array,
|
|
449
|
+
dataKey: PropTypes.string,
|
|
450
|
+
id: PropTypes.string,
|
|
451
|
+
max: PropTypes.number,
|
|
452
|
+
min: PropTypes.number
|
|
453
|
+
}))
|
|
454
|
+
} : void 0;
|
|
455
|
+
export { BarChartPro };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
+
export type BarChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'bar'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
|
|
4
|
+
export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginsSignatures>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
|
|
2
|
+
import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
+
export const BAR_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BarChartPro.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BarChartPro.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ChartsSurfaceProps } from '@mui/x-charts/ChartsSurface';
|
|
3
|
+
import { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
|
|
4
|
+
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
import { ChartDataProviderProProps } from "../ChartDataProviderPro/index.js";
|
|
6
|
+
export type ChartContainerProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartsSurfaceProps;
|
|
7
|
+
type ChartContainerProComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures> & {
|
|
8
|
+
ref?: React.ForwardedRef<SVGSVGElement>;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* It sets up the data providers as well as the `<svg>` for the chart.
|
|
12
|
+
*
|
|
13
|
+
* This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
|
|
14
|
+
*
|
|
15
|
+
* Demos:
|
|
16
|
+
*
|
|
17
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
* <ChartContainerPro
|
|
26
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
27
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
28
|
+
* >
|
|
29
|
+
* <BarPlot />
|
|
30
|
+
* <ChartsXAxis position="bottom" axisId="x-axis" />
|
|
31
|
+
* </ChartContainerPro>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare const ChartContainerPro: ChartContainerProComponent;
|
|
35
|
+
export { ChartContainerPro };
|