@mui/x-charts-pro 9.0.0-alpha.3 → 9.0.0-alpha.4
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.mts +2 -2
- package/BarChartPro/BarChartPro.d.ts +2 -2
- package/BarChartPro/BarChartPro.js +38 -8
- package/BarChartPro/BarChartPro.mjs +38 -8
- package/CHANGELOG.md +123 -0
- package/ChartsContainerPro/ChartsContainerPro.js +2 -2
- package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
- package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -8
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -8
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
- package/ChartsToolbarPro/index.d.mts +2 -1
- package/ChartsToolbarPro/index.d.ts +2 -1
- package/ChartsToolbarPro/index.mjs +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
- package/FunnelChart/FunnelChart.d.mts +2 -2
- package/FunnelChart/FunnelChart.d.ts +2 -2
- package/FunnelChart/FunnelChart.js +18 -6
- package/FunnelChart/FunnelChart.mjs +18 -6
- package/FunnelChart/FunnelPlot.js +8 -3
- package/FunnelChart/FunnelPlot.mjs +8 -3
- package/FunnelChart/FunnelSection.d.mts +3 -3
- package/FunnelChart/FunnelSection.d.ts +3 -3
- package/FunnelChart/FunnelSection.js +5 -5
- package/FunnelChart/FunnelSection.mjs +4 -4
- package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
- package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
- package/FunnelChart/FunnelSectionLabel.js +15 -6
- package/FunnelChart/FunnelSectionLabel.mjs +15 -6
- package/FunnelChart/funnelClasses.d.mts +29 -0
- package/FunnelChart/funnelClasses.d.ts +29 -0
- package/FunnelChart/funnelClasses.js +29 -0
- package/FunnelChart/funnelClasses.mjs +19 -0
- package/FunnelChart/index.d.mts +2 -2
- package/FunnelChart/index.d.ts +2 -2
- package/FunnelChart/index.js +4 -4
- package/FunnelChart/index.mjs +1 -1
- package/FunnelChart/seriesConfig/legend.js +0 -2
- package/FunnelChart/seriesConfig/legend.mjs +0 -2
- package/FunnelChart/useFunnelChartProps.d.mts +2 -2
- package/FunnelChart/useFunnelChartProps.d.ts +2 -2
- package/FunnelChart/useFunnelChartProps.js +2 -2
- package/FunnelChart/useFunnelChartProps.mjs +2 -2
- package/Heatmap/Heatmap.d.mts +2 -11
- package/Heatmap/Heatmap.d.ts +2 -11
- package/Heatmap/Heatmap.js +20 -15
- package/Heatmap/Heatmap.mjs +20 -15
- package/Heatmap/HeatmapCell.d.mts +33 -0
- package/Heatmap/HeatmapCell.d.ts +33 -0
- package/Heatmap/HeatmapCell.js +62 -0
- package/Heatmap/HeatmapCell.mjs +55 -0
- package/Heatmap/HeatmapItem.d.mts +1 -9
- package/Heatmap/HeatmapItem.d.ts +1 -9
- package/Heatmap/HeatmapItem.js +5 -22
- package/Heatmap/HeatmapItem.mjs +5 -22
- package/Heatmap/HeatmapSVGPlot.js +10 -3
- package/Heatmap/HeatmapSVGPlot.mjs +10 -3
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
- package/Heatmap/heatmapClasses.d.mts +6 -1
- package/Heatmap/heatmapClasses.d.ts +6 -1
- package/Heatmap/heatmapClasses.js +18 -3
- package/Heatmap/heatmapClasses.mjs +16 -2
- package/Heatmap/index.d.mts +4 -2
- package/Heatmap/index.d.ts +4 -2
- package/Heatmap/index.js +17 -13
- package/Heatmap/index.mjs +2 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
- package/Heatmap/useHeatmapProps.d.mts +2 -2
- package/Heatmap/useHeatmapProps.d.ts +2 -2
- package/Heatmap/useHeatmapProps.js +2 -4
- package/Heatmap/useHeatmapProps.mjs +2 -4
- package/LineChartPro/LineChartPro.d.mts +2 -2
- package/LineChartPro/LineChartPro.d.ts +2 -2
- package/LineChartPro/LineChartPro.js +35 -11
- package/LineChartPro/LineChartPro.mjs +35 -11
- package/PieChartPro/PieChartPro.d.mts +2 -2
- package/PieChartPro/PieChartPro.d.ts +2 -2
- package/PieChartPro/PieChartPro.js +17 -5
- package/PieChartPro/PieChartPro.mjs +17 -5
- package/RadarChartPro/RadarChartPro.d.mts +1 -1
- package/RadarChartPro/RadarChartPro.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +15 -0
- package/RadarChartPro/RadarChartPro.mjs +15 -0
- package/SankeyChart/SankeyChart.d.mts +2 -2
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +16 -10
- package/SankeyChart/SankeyChart.mjs +16 -10
- package/SankeyChart/SankeyDataProvider.d.mts +2 -2
- package/SankeyChart/SankeyDataProvider.d.ts +2 -2
- package/SankeyChart/SankeyDataProvider.js +2 -2
- package/SankeyChart/SankeyDataProvider.mjs +2 -2
- package/SankeyChart/SankeyLinkElement.js +3 -0
- package/SankeyChart/SankeyLinkElement.mjs +3 -0
- package/SankeyChart/SankeyLinkLabel.js +3 -0
- package/SankeyChart/SankeyLinkLabel.mjs +3 -0
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkPlot.js +1 -1
- package/SankeyChart/SankeyLinkPlot.mjs +1 -1
- package/SankeyChart/SankeyNodeElement.d.mts +1 -1
- package/SankeyChart/SankeyNodeElement.d.ts +1 -1
- package/SankeyChart/SankeyNodeElement.js +16 -15
- package/SankeyChart/SankeyNodeElement.mjs +16 -15
- package/SankeyChart/SankeyNodeLabel.js +3 -0
- package/SankeyChart/SankeyNodeLabel.mjs +3 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +2 -2
- package/SankeyChart/SankeyNodePlot.d.ts +2 -2
- package/SankeyChart/SankeyNodePlot.js +1 -1
- package/SankeyChart/SankeyNodePlot.mjs +1 -1
- package/SankeyChart/SankeyPlot.d.mts +2 -2
- package/SankeyChart/SankeyPlot.d.ts +2 -2
- package/SankeyChart/SankeyPlot.js +3 -3
- package/SankeyChart/SankeyPlot.mjs +3 -3
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
- package/SankeyChart/index.d.mts +2 -1
- package/SankeyChart/index.d.ts +2 -1
- package/SankeyChart/index.js +3 -3
- package/SankeyChart/index.mjs +1 -1
- package/SankeyChart/sankeyClasses.d.mts +15 -6
- package/SankeyChart/sankeyClasses.d.ts +15 -6
- package/SankeyChart/sankeyClasses.js +12 -8
- package/SankeyChart/sankeyClasses.mjs +10 -6
- package/SankeyChart/useSankeyChartProps.d.mts +2 -2
- package/SankeyChart/useSankeyChartProps.d.ts +2 -2
- package/SankeyChart/useSankeyChartProps.js +2 -2
- package/SankeyChart/useSankeyChartProps.mjs +2 -2
- package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
- package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
- package/ScatterChartPro/ScatterChartPro.js +57 -15
- package/ScatterChartPro/ScatterChartPro.mjs +57 -15
- package/context/useChartProApiContext.d.mts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/context/useChartProApiContext.js +1 -1
- package/context/useChartProApiContext.mjs +1 -1
- package/index.d.mts +0 -4
- package/index.d.ts +0 -4
- package/index.js +2 -34
- package/index.mjs +1 -4
- package/internals/index.d.mts +0 -1
- package/internals/index.d.ts +0 -1
- package/internals/index.js +0 -8
- package/internals/index.mjs +0 -1
- package/internals/plugins/useChartProExport/common.js +4 -8
- package/internals/plugins/useChartProExport/common.mjs +4 -8
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
- package/package.json +129 -185
- package/themeAugmentation/components.d.mts +19 -1
- package/themeAugmentation/components.d.ts +19 -1
- package/themeAugmentation/overrides.d.mts +5 -2
- package/themeAugmentation/overrides.d.ts +5 -2
- package/themeAugmentation/props.d.mts +8 -0
- package/themeAugmentation/props.d.ts +8 -0
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -2
- package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
- package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
- package/ChartContainerPro/ChartContainerPro.js +0 -24
- package/ChartContainerPro/ChartContainerPro.mjs +0 -20
- package/ChartContainerPro/index.d.mts +0 -9
- package/ChartContainerPro/index.d.ts +0 -9
- package/ChartContainerPro/index.js +0 -17
- package/ChartContainerPro/index.mjs +0 -6
- package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
- package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
- package/ChartContainerPro/useChartContainerProProps.js +0 -19
- package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -2
- package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
- package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
- package/ChartDataProviderPro/index.d.mts +0 -2
- package/ChartDataProviderPro/index.d.ts +0 -2
- package/ChartDataProviderPro/index.js +0 -13
- package/ChartDataProviderPro/index.mjs +0 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
- package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
- package/FunnelChart/funnelSectionClasses.d.mts +0 -30
- package/FunnelChart/funnelSectionClasses.d.ts +0 -30
- package/FunnelChart/funnelSectionClasses.js +0 -44
- package/FunnelChart/funnelSectionClasses.mjs +0 -35
- package/Heatmap/internals/HeatmapCell.d.mts +0 -21
- package/Heatmap/internals/HeatmapCell.d.ts +0 -21
- package/Heatmap/internals/HeatmapCell.js +0 -18
- package/Heatmap/internals/HeatmapCell.mjs +0 -12
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
|
@@ -25,8 +25,8 @@ var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
|
|
|
25
25
|
var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
|
|
26
26
|
var _ChartsZoomSlider = require("../ChartsZoomSlider");
|
|
27
27
|
var _ChartsToolbarPro = require("../ChartsToolbarPro");
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
|
|
29
|
+
var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
|
|
30
30
|
var _ScatterChartPro2 = require("./ScatterChartPro.plugins");
|
|
31
31
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
32
|
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
|
|
@@ -55,7 +55,7 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
|
|
|
55
55
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
56
56
|
const {
|
|
57
57
|
chartsWrapperProps,
|
|
58
|
-
|
|
58
|
+
chartsContainerProps,
|
|
59
59
|
chartsAxisProps,
|
|
60
60
|
gridProps,
|
|
61
61
|
scatterPlotProps,
|
|
@@ -65,9 +65,9 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
|
|
|
65
65
|
children
|
|
66
66
|
} = (0, _internals.useScatterChartProps)(other);
|
|
67
67
|
const {
|
|
68
|
-
|
|
68
|
+
chartsDataProviderProProps,
|
|
69
69
|
chartsSurfaceProps
|
|
70
|
-
} = (0,
|
|
70
|
+
} = (0, _useChartsContainerProProps.useChartsContainerProProps)((0, _extends2.default)({}, chartsContainerProps, {
|
|
71
71
|
initialZoom,
|
|
72
72
|
zoomData,
|
|
73
73
|
onZoomChange,
|
|
@@ -76,7 +76,7 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
|
|
|
76
76
|
}));
|
|
77
77
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
78
78
|
const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
|
|
79
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
79
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
|
|
80
80
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
81
81
|
ref: ref,
|
|
82
82
|
children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
@@ -137,6 +137,10 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
137
137
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
138
138
|
*/
|
|
139
139
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
140
|
+
/**
|
|
141
|
+
* The description of the chart.
|
|
142
|
+
* Used to provide an accessible description for the chart.
|
|
143
|
+
*/
|
|
140
144
|
desc: _propTypes.default.string,
|
|
141
145
|
/**
|
|
142
146
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -144,6 +148,17 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
144
148
|
* @default false
|
|
145
149
|
*/
|
|
146
150
|
disableAxisListener: _propTypes.default.bool,
|
|
151
|
+
/**
|
|
152
|
+
* If true, the closest point interaction is disabled and falls back to hover events.
|
|
153
|
+
* @default false
|
|
154
|
+
* @deprecated Use `disableHitArea` instead.
|
|
155
|
+
*/
|
|
156
|
+
disableClosestPoint: _propTypes.default.bool,
|
|
157
|
+
/**
|
|
158
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
161
|
+
disableHitArea: _propTypes.default.bool,
|
|
147
162
|
/**
|
|
148
163
|
* If `true`, disables keyboard navigation for the chart.
|
|
149
164
|
*/
|
|
@@ -151,8 +166,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
151
166
|
/**
|
|
152
167
|
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
153
168
|
* @default false
|
|
169
|
+
* @deprecated Use `disableHitArea` instead.
|
|
154
170
|
*/
|
|
155
171
|
disableVoronoi: _propTypes.default.bool,
|
|
172
|
+
/**
|
|
173
|
+
* Options to enable features planned for the next major.
|
|
174
|
+
*/
|
|
175
|
+
experimentalFeatures: _propTypes.default.object,
|
|
156
176
|
/**
|
|
157
177
|
* Option to display a cartesian grid in the background.
|
|
158
178
|
*/
|
|
@@ -209,6 +229,12 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
209
229
|
dataIndex: _propTypes.default.number,
|
|
210
230
|
seriesId: _propTypes.default.string.isRequired
|
|
211
231
|
})]),
|
|
232
|
+
/**
|
|
233
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
234
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
235
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
236
|
+
*/
|
|
237
|
+
hitAreaRadius: _propTypes.default.oneOfType([_propTypes.default.oneOf(['item']), _propTypes.default.number]),
|
|
212
238
|
/**
|
|
213
239
|
* This prop is used to help implement the accessibility logic.
|
|
214
240
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -294,7 +320,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
294
320
|
onHighlightChange: _propTypes.default.func,
|
|
295
321
|
/**
|
|
296
322
|
* Callback fired when clicking on a scatter item.
|
|
297
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using
|
|
323
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using hit area interaction. Or the Mouse event from the scatter element, when `disableHitArea=true`.
|
|
298
324
|
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
299
325
|
*/
|
|
300
326
|
onItemClick: _propTypes.default.func,
|
|
@@ -354,6 +380,10 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
354
380
|
slots: _propTypes.default.object,
|
|
355
381
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
356
382
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
383
|
+
/**
|
|
384
|
+
* The title of the chart.
|
|
385
|
+
* Used to provide an accessible label for the chart.
|
|
386
|
+
*/
|
|
357
387
|
title: _propTypes.default.string,
|
|
358
388
|
/**
|
|
359
389
|
* The controlled axis tooltip.
|
|
@@ -375,12 +405,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
375
405
|
dataIndex: _propTypes.default.number.isRequired,
|
|
376
406
|
seriesId: _propTypes.default.string.isRequired
|
|
377
407
|
})]),
|
|
378
|
-
/**
|
|
379
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
380
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
381
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
382
|
-
*/
|
|
383
|
-
voronoiMaxRadius: _propTypes.default.oneOfType([_propTypes.default.oneOf(['item']), _propTypes.default.number]),
|
|
384
408
|
/**
|
|
385
409
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
386
410
|
*/
|
|
@@ -395,6 +419,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
395
419
|
barGapRatio: _propTypes.default.number,
|
|
396
420
|
categoryGapRatio: _propTypes.default.number,
|
|
397
421
|
classes: _propTypes.default.object,
|
|
422
|
+
className: _propTypes.default.string,
|
|
398
423
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
399
424
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
400
425
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -468,6 +493,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
468
493
|
}), _propTypes.default.shape({
|
|
469
494
|
axis: _propTypes.default.oneOf(['x']),
|
|
470
495
|
classes: _propTypes.default.object,
|
|
496
|
+
className: _propTypes.default.string,
|
|
471
497
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
472
498
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
473
499
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -541,6 +567,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
541
567
|
}), _propTypes.default.shape({
|
|
542
568
|
axis: _propTypes.default.oneOf(['x']),
|
|
543
569
|
classes: _propTypes.default.object,
|
|
570
|
+
className: _propTypes.default.string,
|
|
544
571
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
545
572
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
546
573
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -601,6 +628,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
601
628
|
}), _propTypes.default.shape({
|
|
602
629
|
axis: _propTypes.default.oneOf(['x']),
|
|
603
630
|
classes: _propTypes.default.object,
|
|
631
|
+
className: _propTypes.default.string,
|
|
604
632
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
605
633
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
606
634
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -662,6 +690,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
662
690
|
}), _propTypes.default.shape({
|
|
663
691
|
axis: _propTypes.default.oneOf(['x']),
|
|
664
692
|
classes: _propTypes.default.object,
|
|
693
|
+
className: _propTypes.default.string,
|
|
665
694
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
666
695
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
667
696
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -722,6 +751,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
722
751
|
}), _propTypes.default.shape({
|
|
723
752
|
axis: _propTypes.default.oneOf(['x']),
|
|
724
753
|
classes: _propTypes.default.object,
|
|
754
|
+
className: _propTypes.default.string,
|
|
725
755
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
726
756
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
727
757
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -782,6 +812,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
782
812
|
}), _propTypes.default.shape({
|
|
783
813
|
axis: _propTypes.default.oneOf(['x']),
|
|
784
814
|
classes: _propTypes.default.object,
|
|
815
|
+
className: _propTypes.default.string,
|
|
785
816
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
786
817
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
787
818
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -846,6 +877,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
846
877
|
}), _propTypes.default.shape({
|
|
847
878
|
axis: _propTypes.default.oneOf(['x']),
|
|
848
879
|
classes: _propTypes.default.object,
|
|
880
|
+
className: _propTypes.default.string,
|
|
849
881
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
850
882
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
851
883
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -910,6 +942,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
910
942
|
}), _propTypes.default.shape({
|
|
911
943
|
axis: _propTypes.default.oneOf(['x']),
|
|
912
944
|
classes: _propTypes.default.object,
|
|
945
|
+
className: _propTypes.default.string,
|
|
913
946
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
914
947
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
915
948
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -978,6 +1011,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
978
1011
|
barGapRatio: _propTypes.default.number,
|
|
979
1012
|
categoryGapRatio: _propTypes.default.number,
|
|
980
1013
|
classes: _propTypes.default.object,
|
|
1014
|
+
className: _propTypes.default.string,
|
|
981
1015
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
982
1016
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
983
1017
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -1050,6 +1084,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1050
1084
|
}), _propTypes.default.shape({
|
|
1051
1085
|
axis: _propTypes.default.oneOf(['y']),
|
|
1052
1086
|
classes: _propTypes.default.object,
|
|
1087
|
+
className: _propTypes.default.string,
|
|
1053
1088
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1054
1089
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
1055
1090
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -1122,6 +1157,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1122
1157
|
}), _propTypes.default.shape({
|
|
1123
1158
|
axis: _propTypes.default.oneOf(['y']),
|
|
1124
1159
|
classes: _propTypes.default.object,
|
|
1160
|
+
className: _propTypes.default.string,
|
|
1125
1161
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1126
1162
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1127
1163
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1181,6 +1217,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1181
1217
|
}), _propTypes.default.shape({
|
|
1182
1218
|
axis: _propTypes.default.oneOf(['y']),
|
|
1183
1219
|
classes: _propTypes.default.object,
|
|
1220
|
+
className: _propTypes.default.string,
|
|
1184
1221
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1185
1222
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1186
1223
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1241,6 +1278,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1241
1278
|
}), _propTypes.default.shape({
|
|
1242
1279
|
axis: _propTypes.default.oneOf(['y']),
|
|
1243
1280
|
classes: _propTypes.default.object,
|
|
1281
|
+
className: _propTypes.default.string,
|
|
1244
1282
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1245
1283
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1246
1284
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1300,6 +1338,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1300
1338
|
}), _propTypes.default.shape({
|
|
1301
1339
|
axis: _propTypes.default.oneOf(['y']),
|
|
1302
1340
|
classes: _propTypes.default.object,
|
|
1341
|
+
className: _propTypes.default.string,
|
|
1303
1342
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1304
1343
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1305
1344
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1359,6 +1398,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1359
1398
|
}), _propTypes.default.shape({
|
|
1360
1399
|
axis: _propTypes.default.oneOf(['y']),
|
|
1361
1400
|
classes: _propTypes.default.object,
|
|
1401
|
+
className: _propTypes.default.string,
|
|
1362
1402
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1363
1403
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1364
1404
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1422,6 +1462,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1422
1462
|
}), _propTypes.default.shape({
|
|
1423
1463
|
axis: _propTypes.default.oneOf(['y']),
|
|
1424
1464
|
classes: _propTypes.default.object,
|
|
1465
|
+
className: _propTypes.default.string,
|
|
1425
1466
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1426
1467
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1427
1468
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1485,6 +1526,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1485
1526
|
}), _propTypes.default.shape({
|
|
1486
1527
|
axis: _propTypes.default.oneOf(['y']),
|
|
1487
1528
|
classes: _propTypes.default.object,
|
|
1529
|
+
className: _propTypes.default.string,
|
|
1488
1530
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1489
1531
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1490
1532
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1610,8 +1652,8 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1610
1652
|
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1611
1653
|
type: _propTypes.default.oneOf(['doubleTapReset']).isRequired
|
|
1612
1654
|
}), _propTypes.default.shape({
|
|
1613
|
-
pointerMode: _propTypes.default.
|
|
1614
|
-
requiredKeys: _propTypes.default.
|
|
1655
|
+
pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
|
|
1656
|
+
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1615
1657
|
type: _propTypes.default.oneOf(['brush']).isRequired
|
|
1616
1658
|
})]).isRequired)
|
|
1617
1659
|
})
|
|
@@ -19,8 +19,8 @@ import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
|
|
|
19
19
|
import { ChartsBrushOverlay } from '@mui/x-charts/ChartsBrushOverlay';
|
|
20
20
|
import { ChartsZoomSlider } from "../ChartsZoomSlider/index.mjs";
|
|
21
21
|
import { ChartsToolbarPro } from "../ChartsToolbarPro/index.mjs";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
22
|
+
import { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
23
|
+
import { ChartsDataProviderPro } from "../ChartsDataProviderPro/index.mjs";
|
|
24
24
|
import { SCATTER_CHART_PRO_PLUGINS } from "./ScatterChartPro.plugins.mjs";
|
|
25
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
26
|
/**
|
|
@@ -48,7 +48,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
48
48
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
49
49
|
const {
|
|
50
50
|
chartsWrapperProps,
|
|
51
|
-
|
|
51
|
+
chartsContainerProps,
|
|
52
52
|
chartsAxisProps,
|
|
53
53
|
gridProps,
|
|
54
54
|
scatterPlotProps,
|
|
@@ -58,9 +58,9 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
58
58
|
children
|
|
59
59
|
} = useScatterChartProps(other);
|
|
60
60
|
const {
|
|
61
|
-
|
|
61
|
+
chartsDataProviderProProps,
|
|
62
62
|
chartsSurfaceProps
|
|
63
|
-
} =
|
|
63
|
+
} = useChartsContainerProProps(_extends({}, chartsContainerProps, {
|
|
64
64
|
initialZoom,
|
|
65
65
|
zoomData,
|
|
66
66
|
onZoomChange,
|
|
@@ -69,7 +69,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
69
69
|
}));
|
|
70
70
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
71
71
|
const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
|
|
72
|
-
return /*#__PURE__*/_jsx(
|
|
72
|
+
return /*#__PURE__*/_jsx(ChartsDataProviderPro, _extends({}, chartsDataProviderProProps, {
|
|
73
73
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
74
74
|
ref: ref,
|
|
75
75
|
children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
@@ -130,6 +130,10 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
130
130
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
131
131
|
*/
|
|
132
132
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
133
|
+
/**
|
|
134
|
+
* The description of the chart.
|
|
135
|
+
* Used to provide an accessible description for the chart.
|
|
136
|
+
*/
|
|
133
137
|
desc: PropTypes.string,
|
|
134
138
|
/**
|
|
135
139
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -137,6 +141,17 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
137
141
|
* @default false
|
|
138
142
|
*/
|
|
139
143
|
disableAxisListener: PropTypes.bool,
|
|
144
|
+
/**
|
|
145
|
+
* If true, the closest point interaction is disabled and falls back to hover events.
|
|
146
|
+
* @default false
|
|
147
|
+
* @deprecated Use `disableHitArea` instead.
|
|
148
|
+
*/
|
|
149
|
+
disableClosestPoint: PropTypes.bool,
|
|
150
|
+
/**
|
|
151
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
disableHitArea: PropTypes.bool,
|
|
140
155
|
/**
|
|
141
156
|
* If `true`, disables keyboard navigation for the chart.
|
|
142
157
|
*/
|
|
@@ -144,8 +159,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
144
159
|
/**
|
|
145
160
|
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
146
161
|
* @default false
|
|
162
|
+
* @deprecated Use `disableHitArea` instead.
|
|
147
163
|
*/
|
|
148
164
|
disableVoronoi: PropTypes.bool,
|
|
165
|
+
/**
|
|
166
|
+
* Options to enable features planned for the next major.
|
|
167
|
+
*/
|
|
168
|
+
experimentalFeatures: PropTypes.object,
|
|
149
169
|
/**
|
|
150
170
|
* Option to display a cartesian grid in the background.
|
|
151
171
|
*/
|
|
@@ -202,6 +222,12 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
202
222
|
dataIndex: PropTypes.number,
|
|
203
223
|
seriesId: PropTypes.string.isRequired
|
|
204
224
|
})]),
|
|
225
|
+
/**
|
|
226
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
227
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
228
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
229
|
+
*/
|
|
230
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
205
231
|
/**
|
|
206
232
|
* This prop is used to help implement the accessibility logic.
|
|
207
233
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -287,7 +313,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
287
313
|
onHighlightChange: PropTypes.func,
|
|
288
314
|
/**
|
|
289
315
|
* Callback fired when clicking on a scatter item.
|
|
290
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using
|
|
316
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using hit area interaction. Or the Mouse event from the scatter element, when `disableHitArea=true`.
|
|
291
317
|
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
292
318
|
*/
|
|
293
319
|
onItemClick: PropTypes.func,
|
|
@@ -347,6 +373,10 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
347
373
|
slots: PropTypes.object,
|
|
348
374
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
349
375
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
376
|
+
/**
|
|
377
|
+
* The title of the chart.
|
|
378
|
+
* Used to provide an accessible label for the chart.
|
|
379
|
+
*/
|
|
350
380
|
title: PropTypes.string,
|
|
351
381
|
/**
|
|
352
382
|
* The controlled axis tooltip.
|
|
@@ -368,12 +398,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
368
398
|
dataIndex: PropTypes.number.isRequired,
|
|
369
399
|
seriesId: PropTypes.string.isRequired
|
|
370
400
|
})]),
|
|
371
|
-
/**
|
|
372
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
373
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
374
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
375
|
-
*/
|
|
376
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
377
401
|
/**
|
|
378
402
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
379
403
|
*/
|
|
@@ -388,6 +412,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
388
412
|
barGapRatio: PropTypes.number,
|
|
389
413
|
categoryGapRatio: PropTypes.number,
|
|
390
414
|
classes: PropTypes.object,
|
|
415
|
+
className: PropTypes.string,
|
|
391
416
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
392
417
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
393
418
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -461,6 +486,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
461
486
|
}), PropTypes.shape({
|
|
462
487
|
axis: PropTypes.oneOf(['x']),
|
|
463
488
|
classes: PropTypes.object,
|
|
489
|
+
className: PropTypes.string,
|
|
464
490
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
465
491
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
466
492
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -534,6 +560,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
534
560
|
}), PropTypes.shape({
|
|
535
561
|
axis: PropTypes.oneOf(['x']),
|
|
536
562
|
classes: PropTypes.object,
|
|
563
|
+
className: PropTypes.string,
|
|
537
564
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
538
565
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
539
566
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -594,6 +621,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
594
621
|
}), PropTypes.shape({
|
|
595
622
|
axis: PropTypes.oneOf(['x']),
|
|
596
623
|
classes: PropTypes.object,
|
|
624
|
+
className: PropTypes.string,
|
|
597
625
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
598
626
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
599
627
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -655,6 +683,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
655
683
|
}), PropTypes.shape({
|
|
656
684
|
axis: PropTypes.oneOf(['x']),
|
|
657
685
|
classes: PropTypes.object,
|
|
686
|
+
className: PropTypes.string,
|
|
658
687
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
659
688
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
660
689
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -715,6 +744,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
715
744
|
}), PropTypes.shape({
|
|
716
745
|
axis: PropTypes.oneOf(['x']),
|
|
717
746
|
classes: PropTypes.object,
|
|
747
|
+
className: PropTypes.string,
|
|
718
748
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
719
749
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
720
750
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -775,6 +805,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
775
805
|
}), PropTypes.shape({
|
|
776
806
|
axis: PropTypes.oneOf(['x']),
|
|
777
807
|
classes: PropTypes.object,
|
|
808
|
+
className: PropTypes.string,
|
|
778
809
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
779
810
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
780
811
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -839,6 +870,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
839
870
|
}), PropTypes.shape({
|
|
840
871
|
axis: PropTypes.oneOf(['x']),
|
|
841
872
|
classes: PropTypes.object,
|
|
873
|
+
className: PropTypes.string,
|
|
842
874
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
843
875
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
844
876
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -903,6 +935,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
903
935
|
}), PropTypes.shape({
|
|
904
936
|
axis: PropTypes.oneOf(['x']),
|
|
905
937
|
classes: PropTypes.object,
|
|
938
|
+
className: PropTypes.string,
|
|
906
939
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
907
940
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
908
941
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -971,6 +1004,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
971
1004
|
barGapRatio: PropTypes.number,
|
|
972
1005
|
categoryGapRatio: PropTypes.number,
|
|
973
1006
|
classes: PropTypes.object,
|
|
1007
|
+
className: PropTypes.string,
|
|
974
1008
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
975
1009
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
976
1010
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1043,6 +1077,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1043
1077
|
}), PropTypes.shape({
|
|
1044
1078
|
axis: PropTypes.oneOf(['y']),
|
|
1045
1079
|
classes: PropTypes.object,
|
|
1080
|
+
className: PropTypes.string,
|
|
1046
1081
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1047
1082
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1048
1083
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1115,6 +1150,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1115
1150
|
}), PropTypes.shape({
|
|
1116
1151
|
axis: PropTypes.oneOf(['y']),
|
|
1117
1152
|
classes: PropTypes.object,
|
|
1153
|
+
className: PropTypes.string,
|
|
1118
1154
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1119
1155
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1120
1156
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1174,6 +1210,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1174
1210
|
}), PropTypes.shape({
|
|
1175
1211
|
axis: PropTypes.oneOf(['y']),
|
|
1176
1212
|
classes: PropTypes.object,
|
|
1213
|
+
className: PropTypes.string,
|
|
1177
1214
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1178
1215
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1179
1216
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1234,6 +1271,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1234
1271
|
}), PropTypes.shape({
|
|
1235
1272
|
axis: PropTypes.oneOf(['y']),
|
|
1236
1273
|
classes: PropTypes.object,
|
|
1274
|
+
className: PropTypes.string,
|
|
1237
1275
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1238
1276
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1239
1277
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1293,6 +1331,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1293
1331
|
}), PropTypes.shape({
|
|
1294
1332
|
axis: PropTypes.oneOf(['y']),
|
|
1295
1333
|
classes: PropTypes.object,
|
|
1334
|
+
className: PropTypes.string,
|
|
1296
1335
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1297
1336
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1298
1337
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1352,6 +1391,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1352
1391
|
}), PropTypes.shape({
|
|
1353
1392
|
axis: PropTypes.oneOf(['y']),
|
|
1354
1393
|
classes: PropTypes.object,
|
|
1394
|
+
className: PropTypes.string,
|
|
1355
1395
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1356
1396
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1357
1397
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1415,6 +1455,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1415
1455
|
}), PropTypes.shape({
|
|
1416
1456
|
axis: PropTypes.oneOf(['y']),
|
|
1417
1457
|
classes: PropTypes.object,
|
|
1458
|
+
className: PropTypes.string,
|
|
1418
1459
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1419
1460
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1420
1461
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1478,6 +1519,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1478
1519
|
}), PropTypes.shape({
|
|
1479
1520
|
axis: PropTypes.oneOf(['y']),
|
|
1480
1521
|
classes: PropTypes.object,
|
|
1522
|
+
className: PropTypes.string,
|
|
1481
1523
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1482
1524
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1483
1525
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1603,8 +1645,8 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1603
1645
|
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
1604
1646
|
type: PropTypes.oneOf(['doubleTapReset']).isRequired
|
|
1605
1647
|
}), PropTypes.shape({
|
|
1606
|
-
pointerMode: PropTypes.
|
|
1607
|
-
requiredKeys: PropTypes.
|
|
1648
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
1649
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
1608
1650
|
type: PropTypes.oneOf(['brush']).isRequired
|
|
1609
1651
|
})]).isRequired)
|
|
1610
1652
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ChartProApi } from "./ChartProApi.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* The `useChartProApiContext` hook provides access to the chart API.
|
|
4
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
4
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProviderPro` component.
|
|
5
5
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
6
6
|
* @example
|
|
7
7
|
* const apiRef = useChartProApiContext<ChartProApi<'bar'>>();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ChartProApi } from "./ChartProApi.js";
|
|
2
2
|
/**
|
|
3
3
|
* The `useChartProApiContext` hook provides access to the chart API.
|
|
4
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
4
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProviderPro` component.
|
|
5
5
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
6
6
|
* @example
|
|
7
7
|
* const apiRef = useChartProApiContext<ChartProApi<'bar'>>();
|
|
@@ -7,7 +7,7 @@ exports.useChartProApiContext = useChartProApiContext;
|
|
|
7
7
|
var _context = require("@mui/x-charts/context");
|
|
8
8
|
/**
|
|
9
9
|
* The `useChartProApiContext` hook provides access to the chart API.
|
|
10
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
10
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProviderPro` component.
|
|
11
11
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
12
12
|
* @example
|
|
13
13
|
* const apiRef = useChartProApiContext<ChartProApi<'bar'>>();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useChartApiContext as useChartApiContextCommunity } from '@mui/x-charts/context';
|
|
2
2
|
/**
|
|
3
3
|
* The `useChartProApiContext` hook provides access to the chart API.
|
|
4
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
4
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProviderPro` component.
|
|
5
5
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
6
6
|
* @example
|
|
7
7
|
* const apiRef = useChartProApiContext<ChartProApi<'bar'>>();
|
package/index.d.mts
CHANGED
|
@@ -19,7 +19,6 @@ export * from '@mui/x-charts/Gauge';
|
|
|
19
19
|
export * from '@mui/x-charts/RadarChart';
|
|
20
20
|
export * from '@mui/x-charts/ChartsSurface';
|
|
21
21
|
export * from '@mui/x-charts/ChartsDataProvider';
|
|
22
|
-
export * from '@mui/x-charts/ChartDataProvider';
|
|
23
22
|
export * from '@mui/x-charts/ChartsLabel';
|
|
24
23
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
25
24
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
@@ -32,10 +31,7 @@ export * from "./colorPalettes/index.mjs";
|
|
|
32
31
|
export * from "./Heatmap/index.mjs";
|
|
33
32
|
export { ChartsContainerPro } from "./ChartsContainerPro/index.mjs";
|
|
34
33
|
export type { ChartsContainerProProps, ChartsContainerProSlots, ChartsContainerProSlotProps } from "./ChartsContainerPro/index.mjs";
|
|
35
|
-
export { ChartContainerPro } from "./ChartContainerPro/index.mjs";
|
|
36
|
-
export type { ChartContainerProProps, ChartContainerProSlots, ChartContainerProSlotProps } from "./ChartContainerPro/index.mjs";
|
|
37
34
|
export * from "./ChartsDataProviderPro/index.mjs";
|
|
38
|
-
export * from "./ChartDataProviderPro/index.mjs";
|
|
39
35
|
export * from "./ScatterChartPro/index.mjs";
|
|
40
36
|
export * from "./SankeyChart/index.mjs";
|
|
41
37
|
export * from "./BarChartPro/index.mjs";
|
package/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from '@mui/x-charts/Gauge';
|
|
|
19
19
|
export * from '@mui/x-charts/RadarChart';
|
|
20
20
|
export * from '@mui/x-charts/ChartsSurface';
|
|
21
21
|
export * from '@mui/x-charts/ChartsDataProvider';
|
|
22
|
-
export * from '@mui/x-charts/ChartDataProvider';
|
|
23
22
|
export * from '@mui/x-charts/ChartsLabel';
|
|
24
23
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
25
24
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
@@ -32,10 +31,7 @@ export * from "./colorPalettes/index.js";
|
|
|
32
31
|
export * from "./Heatmap/index.js";
|
|
33
32
|
export { ChartsContainerPro } from "./ChartsContainerPro/index.js";
|
|
34
33
|
export type { ChartsContainerProProps, ChartsContainerProSlots, ChartsContainerProSlotProps } from "./ChartsContainerPro/index.js";
|
|
35
|
-
export { ChartContainerPro } from "./ChartContainerPro/index.js";
|
|
36
|
-
export type { ChartContainerProProps, ChartContainerProSlots, ChartContainerProSlotProps } from "./ChartContainerPro/index.js";
|
|
37
34
|
export * from "./ChartsDataProviderPro/index.js";
|
|
38
|
-
export * from "./ChartDataProviderPro/index.js";
|
|
39
35
|
export * from "./ScatterChartPro/index.js";
|
|
40
36
|
export * from "./SankeyChart/index.js";
|
|
41
37
|
export * from "./BarChartPro/index.js";
|