@mui/x-charts-pro 8.0.0-alpha.11 → 8.0.0-alpha.13
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 +245 -244
- 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 +460 -1
- package/ChartContainerPro/ChartContainerPro.d.ts +5 -5
- package/ChartContainerPro/ChartContainerPro.js +179 -173
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +3 -3
- package/ChartContainerPro/useChartContainerProProps.js +20 -11
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
- package/ChartDataProviderPro/ChartDataProviderPro.js +37 -30
- 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 +45 -44
- package/Heatmap/Heatmap.js +232 -241
- 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 +257 -256
- 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 +234 -235
- 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 +450 -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/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +31 -36
- 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 +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 +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 +501 -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/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 +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.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 +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 +17 -0
- package/modern/BarChartPro/BarChartPro.js +25 -30
- 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/ChartContainerPro.js +1 -1
- 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 +3 -1
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
- 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 +57 -0
- package/modern/Heatmap/Heatmap.js +39 -54
- 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.js +25 -30
- 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 +26 -33
- 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 +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 +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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
|
|
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';
|
|
@@ -137,6 +137,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
137
137
|
});
|
|
138
138
|
const {
|
|
139
139
|
initialZoom,
|
|
140
|
+
zoomData,
|
|
140
141
|
onZoomChange,
|
|
141
142
|
apiRef
|
|
142
143
|
} = props,
|
|
@@ -162,6 +163,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
162
163
|
chartsSurfaceProps
|
|
163
164
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
164
165
|
initialZoom,
|
|
166
|
+
zoomData,
|
|
165
167
|
onZoomChange,
|
|
166
168
|
apiRef,
|
|
167
169
|
plugins: LINE_CHART_PRO_PLUGINS
|
|
@@ -199,12 +201,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
199
201
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
200
202
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
201
203
|
}),
|
|
202
|
-
/**
|
|
203
|
-
* Indicate which axis to display the bottom of the charts.
|
|
204
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
205
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
206
|
-
*/
|
|
207
|
-
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
208
204
|
children: PropTypes.node,
|
|
209
205
|
className: PropTypes.string,
|
|
210
206
|
/**
|
|
@@ -257,18 +253,13 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
257
253
|
id: PropTypes.string,
|
|
258
254
|
/**
|
|
259
255
|
* The list of zoom data related to each axis.
|
|
256
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
260
257
|
*/
|
|
261
258
|
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
262
259
|
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
263
260
|
end: PropTypes.number.isRequired,
|
|
264
261
|
start: PropTypes.number.isRequired
|
|
265
262
|
})),
|
|
266
|
-
/**
|
|
267
|
-
* Indicate which axis to display the left of the charts.
|
|
268
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
269
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
270
|
-
*/
|
|
271
|
-
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
272
263
|
/**
|
|
273
264
|
* If `true`, a loading overlay is displayed.
|
|
274
265
|
* @default false
|
|
@@ -277,14 +268,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
277
268
|
/**
|
|
278
269
|
* The margin between the SVG and the drawing area.
|
|
279
270
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
280
|
-
*
|
|
271
|
+
*
|
|
272
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
281
273
|
*/
|
|
282
|
-
margin: PropTypes.shape({
|
|
274
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
283
275
|
bottom: PropTypes.number,
|
|
284
276
|
left: PropTypes.number,
|
|
285
277
|
right: PropTypes.number,
|
|
286
278
|
top: PropTypes.number
|
|
287
|
-
}),
|
|
279
|
+
})]),
|
|
288
280
|
/**
|
|
289
281
|
* Callback fired when an area element is clicked.
|
|
290
282
|
*/
|
|
@@ -316,12 +308,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
316
308
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
317
309
|
*/
|
|
318
310
|
onZoomChange: PropTypes.func,
|
|
319
|
-
/**
|
|
320
|
-
* Indicate which axis to display the right of the charts.
|
|
321
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
322
|
-
* @default null
|
|
323
|
-
*/
|
|
324
|
-
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
325
311
|
/**
|
|
326
312
|
* The series to display in the line chart.
|
|
327
313
|
* An array of [[LineSeriesType]] objects.
|
|
@@ -345,12 +331,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
345
331
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
346
332
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
347
333
|
title: PropTypes.string,
|
|
348
|
-
/**
|
|
349
|
-
* Indicate which axis to display the top of the charts.
|
|
350
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
351
|
-
* @default null
|
|
352
|
-
*/
|
|
353
|
-
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
354
334
|
/**
|
|
355
335
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
356
336
|
*/
|
|
@@ -361,6 +341,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
361
341
|
* An array of [[AxisConfig]] objects.
|
|
362
342
|
*/
|
|
363
343
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
344
|
+
axis: PropTypes.oneOf(['x']),
|
|
364
345
|
classes: PropTypes.object,
|
|
365
346
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
366
347
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -383,13 +364,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
383
364
|
disableTicks: PropTypes.bool,
|
|
384
365
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
385
366
|
fill: PropTypes.string,
|
|
367
|
+
height: PropTypes.number,
|
|
386
368
|
hideTooltip: PropTypes.bool,
|
|
387
369
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
388
370
|
label: PropTypes.string,
|
|
389
371
|
labelStyle: PropTypes.object,
|
|
390
372
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
391
373
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
392
|
-
|
|
374
|
+
offset: PropTypes.number,
|
|
375
|
+
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
393
376
|
reverse: PropTypes.bool,
|
|
394
377
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
395
378
|
slotProps: PropTypes.object,
|
|
@@ -398,6 +381,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
398
381
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
399
382
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
400
383
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
384
|
+
tickLabelMinGap: PropTypes.number,
|
|
401
385
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
402
386
|
tickLabelStyle: PropTypes.object,
|
|
403
387
|
tickMaxStep: PropTypes.number,
|
|
@@ -422,6 +406,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
422
406
|
* An array of [[AxisConfig]] objects.
|
|
423
407
|
*/
|
|
424
408
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
409
|
+
axis: PropTypes.oneOf(['y']),
|
|
425
410
|
classes: PropTypes.object,
|
|
426
411
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
427
412
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -450,7 +435,8 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
450
435
|
labelStyle: PropTypes.object,
|
|
451
436
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
452
437
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
453
|
-
|
|
438
|
+
offset: PropTypes.number,
|
|
439
|
+
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
454
440
|
reverse: PropTypes.bool,
|
|
455
441
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
456
442
|
slotProps: PropTypes.object,
|
|
@@ -467,6 +453,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
467
453
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
468
454
|
tickSize: PropTypes.number,
|
|
469
455
|
valueFormatter: PropTypes.func,
|
|
456
|
+
width: PropTypes.number,
|
|
470
457
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
471
458
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
472
459
|
maxEnd: PropTypes.number,
|
|
@@ -501,6 +488,14 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
501
488
|
id: PropTypes.string,
|
|
502
489
|
max: PropTypes.number,
|
|
503
490
|
min: PropTypes.number
|
|
491
|
+
})),
|
|
492
|
+
/**
|
|
493
|
+
* The list of zoom data related to each axis.
|
|
494
|
+
*/
|
|
495
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
496
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
497
|
+
end: PropTypes.number.isRequired,
|
|
498
|
+
start: PropTypes.number.isRequired
|
|
504
499
|
}))
|
|
505
500
|
} : void 0;
|
|
506
501
|
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 @@
|
|
|
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 };
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
|
|
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 { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
10
10
|
import { ScatterPlot } from '@mui/x-charts/ScatterChart';
|
|
11
|
-
import { ChartsVoronoiHandler } from '@mui/x-charts/ChartsVoronoiHandler';
|
|
12
11
|
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
13
12
|
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
14
13
|
import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
@@ -37,6 +36,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
37
36
|
});
|
|
38
37
|
const {
|
|
39
38
|
initialZoom,
|
|
39
|
+
zoomData,
|
|
40
40
|
onZoomChange,
|
|
41
41
|
apiRef
|
|
42
42
|
} = props,
|
|
@@ -44,7 +44,6 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
44
44
|
const {
|
|
45
45
|
chartsWrapperProps,
|
|
46
46
|
chartContainerProps,
|
|
47
|
-
voronoiHandlerProps,
|
|
48
47
|
chartsAxisProps,
|
|
49
48
|
gridProps,
|
|
50
49
|
scatterPlotProps,
|
|
@@ -58,6 +57,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
58
57
|
chartsSurfaceProps
|
|
59
58
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
60
59
|
initialZoom,
|
|
60
|
+
zoomData,
|
|
61
61
|
onZoomChange,
|
|
62
62
|
apiRef,
|
|
63
63
|
plugins: SCATTER_CHART_PRO_PLUGINS
|
|
@@ -66,7 +66,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
66
66
|
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
67
67
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
68
68
|
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
69
|
-
children: [
|
|
69
|
+
children: [/*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
|
|
70
70
|
"data-drawing-container": true,
|
|
71
71
|
children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
|
|
72
72
|
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props?.slotProps?.tooltip, {
|
|
@@ -95,12 +95,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
95
95
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
96
96
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
97
97
|
}),
|
|
98
|
-
/**
|
|
99
|
-
* Indicate which axis to display the bottom of the charts.
|
|
100
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
101
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
102
|
-
*/
|
|
103
|
-
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
104
98
|
children: PropTypes.node,
|
|
105
99
|
className: PropTypes.string,
|
|
106
100
|
/**
|
|
@@ -154,18 +148,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
154
148
|
id: PropTypes.string,
|
|
155
149
|
/**
|
|
156
150
|
* The list of zoom data related to each axis.
|
|
151
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
157
152
|
*/
|
|
158
153
|
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
159
154
|
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
160
155
|
end: PropTypes.number.isRequired,
|
|
161
156
|
start: PropTypes.number.isRequired
|
|
162
157
|
})),
|
|
163
|
-
/**
|
|
164
|
-
* Indicate which axis to display the left of the charts.
|
|
165
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
166
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
167
|
-
*/
|
|
168
|
-
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
169
158
|
/**
|
|
170
159
|
* If `true`, a loading overlay is displayed.
|
|
171
160
|
* @default false
|
|
@@ -174,14 +163,15 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
174
163
|
/**
|
|
175
164
|
* The margin between the SVG and the drawing area.
|
|
176
165
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
177
|
-
*
|
|
166
|
+
*
|
|
167
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
178
168
|
*/
|
|
179
|
-
margin: PropTypes.shape({
|
|
169
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
180
170
|
bottom: PropTypes.number,
|
|
181
171
|
left: PropTypes.number,
|
|
182
172
|
right: PropTypes.number,
|
|
183
173
|
top: PropTypes.number
|
|
184
|
-
}),
|
|
174
|
+
})]),
|
|
185
175
|
/**
|
|
186
176
|
* The function called for onClick events.
|
|
187
177
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
@@ -207,12 +197,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
207
197
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
208
198
|
*/
|
|
209
199
|
onZoomChange: PropTypes.func,
|
|
210
|
-
/**
|
|
211
|
-
* Indicate which axis to display the right of the charts.
|
|
212
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
213
|
-
* @default null
|
|
214
|
-
*/
|
|
215
|
-
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
216
200
|
/**
|
|
217
201
|
* The series to display in the scatter chart.
|
|
218
202
|
* An array of [[ScatterSeriesType]] objects.
|
|
@@ -236,12 +220,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
236
220
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
237
221
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
238
222
|
title: PropTypes.string,
|
|
239
|
-
/**
|
|
240
|
-
* Indicate which axis to display the top of the charts.
|
|
241
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
242
|
-
* @default null
|
|
243
|
-
*/
|
|
244
|
-
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
245
223
|
/**
|
|
246
224
|
* Defines the maximal distance between a scatter point and the pointer that triggers the interaction.
|
|
247
225
|
* If `undefined`, the radius is assumed to be infinite.
|
|
@@ -257,6 +235,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
257
235
|
* An array of [[AxisConfig]] objects.
|
|
258
236
|
*/
|
|
259
237
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
238
|
+
axis: PropTypes.oneOf(['x']),
|
|
260
239
|
classes: PropTypes.object,
|
|
261
240
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
262
241
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -279,13 +258,15 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
279
258
|
disableTicks: PropTypes.bool,
|
|
280
259
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
281
260
|
fill: PropTypes.string,
|
|
261
|
+
height: PropTypes.number,
|
|
282
262
|
hideTooltip: PropTypes.bool,
|
|
283
263
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
284
264
|
label: PropTypes.string,
|
|
285
265
|
labelStyle: PropTypes.object,
|
|
286
266
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
287
267
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
288
|
-
|
|
268
|
+
offset: PropTypes.number,
|
|
269
|
+
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
289
270
|
reverse: PropTypes.bool,
|
|
290
271
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
291
272
|
slotProps: PropTypes.object,
|
|
@@ -294,6 +275,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
294
275
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
295
276
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
296
277
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
278
|
+
tickLabelMinGap: PropTypes.number,
|
|
297
279
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
298
280
|
tickLabelStyle: PropTypes.object,
|
|
299
281
|
tickMaxStep: PropTypes.number,
|
|
@@ -318,6 +300,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
318
300
|
* An array of [[AxisConfig]] objects.
|
|
319
301
|
*/
|
|
320
302
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
303
|
+
axis: PropTypes.oneOf(['y']),
|
|
321
304
|
classes: PropTypes.object,
|
|
322
305
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
323
306
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -346,7 +329,8 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
346
329
|
labelStyle: PropTypes.object,
|
|
347
330
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
348
331
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
349
|
-
|
|
332
|
+
offset: PropTypes.number,
|
|
333
|
+
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
350
334
|
reverse: PropTypes.bool,
|
|
351
335
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
352
336
|
slotProps: PropTypes.object,
|
|
@@ -363,6 +347,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
363
347
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
364
348
|
tickSize: PropTypes.number,
|
|
365
349
|
valueFormatter: PropTypes.func,
|
|
350
|
+
width: PropTypes.number,
|
|
366
351
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
367
352
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
368
353
|
maxEnd: PropTypes.number,
|
|
@@ -397,6 +382,14 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
397
382
|
id: PropTypes.string,
|
|
398
383
|
max: PropTypes.number,
|
|
399
384
|
min: PropTypes.number
|
|
385
|
+
})),
|
|
386
|
+
/**
|
|
387
|
+
* The list of zoom data related to each axis.
|
|
388
|
+
*/
|
|
389
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
390
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
391
|
+
end: PropTypes.number.isRequired,
|
|
392
|
+
start: PropTypes.number.isRequired
|
|
400
393
|
}))
|
|
401
394
|
} : void 0;
|
|
402
395
|
export { ScatterChartPro };
|
|
@@ -0,0 +1,4 @@
|
|
|
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,3 @@
|
|
|
1
|
-
import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
|
|
1
|
+
import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartVoronoi } from '@mui/x-charts/internals';
|
|
2
2
|
import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
-
export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
|
|
3
|
+
export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartVoronoi, useChartProZoom];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ScatterChartPro.js";
|
package/modern/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useHeatmapSeries
|
|
1
|
+
export { useHeatmapSeries } from "./useHeatmapSeries.js";
|
|
2
2
|
export * from "./zoom/index.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
|
+
export type UseHeatmapSeriesReturnValue = ChartSeriesDefaultized<'heatmap'>;
|
|
3
|
+
export type UseHeatmapSeriesContextReturnValue = ProcessedSeries['heatmap'];
|
|
4
|
+
/**
|
|
5
|
+
* Get access to the internal state of heatmap series.
|
|
6
|
+
*
|
|
7
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
8
|
+
* @returns {UseHeatmapSeriesReturnValue} the heatmap series
|
|
9
|
+
*/
|
|
10
|
+
export declare function useHeatmapSeries(seriesId: SeriesId): UseHeatmapSeriesReturnValue | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Get access to the internal state of heatmap series.
|
|
13
|
+
*
|
|
14
|
+
* When called without arguments, it returns all heatmap series.
|
|
15
|
+
*
|
|
16
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
17
|
+
*/
|
|
18
|
+
export declare function useHeatmapSeries(): UseHeatmapSeriesReturnValue[];
|
|
19
|
+
/**
|
|
20
|
+
* Get access to the internal state of heatmap series.
|
|
21
|
+
*
|
|
22
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
23
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
24
|
+
*/
|
|
25
|
+
export declare function useHeatmapSeries(seriesIds: SeriesId[]): UseHeatmapSeriesReturnValue[];
|
|
26
|
+
/**
|
|
27
|
+
* Get access to the internal state of heatmap series.
|
|
28
|
+
* The returned object contains:
|
|
29
|
+
* - series: a mapping from ids to series attributes.
|
|
30
|
+
* - seriesOrder: the array of series ids.
|
|
31
|
+
* @returns the heatmap series
|
|
32
|
+
*/
|
|
33
|
+
export declare function useHeatmapSeriesContext(): UseHeatmapSeriesContextReturnValue;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { createAllSeriesSelectorOfType, createSeriesSelectorsOfType } from '@mui/x-charts/internals';
|
|
4
|
+
const useSelectorSeries = createSeriesSelectorsOfType('heatmap');
|
|
5
|
+
const useSelectorSeriesContext = createAllSeriesSelectorOfType('heatmap');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get access to the internal state of heatmap series.
|
|
9
|
+
*
|
|
10
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
11
|
+
* @returns {UseHeatmapSeriesReturnValue} the heatmap series
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get access to the internal state of heatmap series.
|
|
16
|
+
*
|
|
17
|
+
* When called without arguments, it returns all heatmap series.
|
|
18
|
+
*
|
|
19
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Get access to the internal state of heatmap series.
|
|
24
|
+
*
|
|
25
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
26
|
+
* @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
export function useHeatmapSeries(seriesIds) {
|
|
30
|
+
return useSelectorSeries(seriesIds);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get access to the internal state of heatmap series.
|
|
35
|
+
* The returned object contains:
|
|
36
|
+
* - series: a mapping from ids to series attributes.
|
|
37
|
+
* - seriesOrder: the array of series ids.
|
|
38
|
+
* @returns the heatmap series
|
|
39
|
+
*/
|
|
40
|
+
export function useHeatmapSeriesContext() {
|
|
41
|
+
return useSelectorSeriesContext();
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useIsZoomInteracting.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./typeOverloads/modules.js";
|
|
2
|
+
export * from '@mui/x-charts/constants';
|
|
3
|
+
export * from '@mui/x-charts/context';
|
|
4
|
+
export * from '@mui/x-charts/hooks';
|
|
5
|
+
export * from '@mui/x-charts/colorPalettes';
|
|
6
|
+
export * from '@mui/x-charts/models';
|
|
7
|
+
export * from '@mui/x-charts/ChartsClipPath';
|
|
8
|
+
export * from '@mui/x-charts/ChartsReferenceLine';
|
|
9
|
+
export * from '@mui/x-charts/ChartsAxis';
|
|
10
|
+
export * from '@mui/x-charts/ChartsXAxis';
|
|
11
|
+
export * from '@mui/x-charts/ChartsYAxis';
|
|
12
|
+
export * from '@mui/x-charts/ChartsGrid';
|
|
13
|
+
export * from '@mui/x-charts/ChartsText';
|
|
14
|
+
export * from '@mui/x-charts/ChartsTooltip';
|
|
15
|
+
export * from '@mui/x-charts/ChartsLegend';
|
|
16
|
+
export * from '@mui/x-charts/ChartsAxisHighlight';
|
|
17
|
+
export * from '@mui/x-charts/BarChart';
|
|
18
|
+
export * from '@mui/x-charts/LineChart';
|
|
19
|
+
export * from '@mui/x-charts/PieChart';
|
|
20
|
+
export * from '@mui/x-charts/ScatterChart';
|
|
21
|
+
export * from '@mui/x-charts/SparkLineChart';
|
|
22
|
+
export * from '@mui/x-charts/Gauge';
|
|
23
|
+
export * from '@mui/x-charts/ChartsSurface';
|
|
24
|
+
export * from '@mui/x-charts/ChartDataProvider';
|
|
25
|
+
export * from '@mui/x-charts/ChartsLabel';
|
|
26
|
+
export * from "./hooks/index.js";
|
|
27
|
+
export * from "./Heatmap/index.js";
|
|
28
|
+
export * from "./ChartContainerPro/index.js";
|
|
29
|
+
export * from "./ChartDataProviderPro/index.js";
|
|
30
|
+
export * from "./ScatterChartPro/index.js";
|
|
31
|
+
export * from "./BarChartPro/index.js";
|
|
32
|
+
export * from "./LineChartPro/index.js";
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v8.0.0-alpha.
|
|
2
|
+
* @mui/x-charts-pro v8.0.0-alpha.13
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -23,7 +23,6 @@ export * from '@mui/x-charts/ChartsText';
|
|
|
23
23
|
export * from '@mui/x-charts/ChartsTooltip';
|
|
24
24
|
export * from '@mui/x-charts/ChartsLegend';
|
|
25
25
|
export * from '@mui/x-charts/ChartsAxisHighlight';
|
|
26
|
-
export * from '@mui/x-charts/ChartsVoronoiHandler';
|
|
27
26
|
export * from '@mui/x-charts/BarChart';
|
|
28
27
|
export * from '@mui/x-charts/LineChart';
|
|
29
28
|
export * from '@mui/x-charts/PieChart';
|
|
@@ -35,6 +34,7 @@ export * from '@mui/x-charts/ChartDataProvider';
|
|
|
35
34
|
export * from '@mui/x-charts/ChartsLabel';
|
|
36
35
|
|
|
37
36
|
// Pro components
|
|
37
|
+
export * from "./hooks/index.js";
|
|
38
38
|
export * from "./Heatmap/index.js";
|
|
39
39
|
export * from "./ChartContainerPro/index.js";
|
|
40
40
|
export * from "./ChartDataProviderPro/index.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
|
|
3
|
+
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
|
|
4
|
+
export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
|
|
5
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
|