@mui/x-charts-pro 8.0.0-alpha.0 → 8.0.0-alpha.2
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.js +3 -35
- package/CHANGELOG.md +651 -6
- package/ChartContainerPro/ChartContainerPro.js +7 -25
- package/ChartContainerPro/useChartContainerProProps.d.ts +2 -39
- package/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/Heatmap/Heatmap.d.ts +11 -4
- package/Heatmap/Heatmap.js +4 -39
- package/Heatmap/HeatmapTooltip.d.ts +9 -0
- package/Heatmap/HeatmapTooltip.js +272 -0
- package/Heatmap/heatmapClasses.js +2 -1
- package/Heatmap/index.d.ts +1 -1
- package/Heatmap/index.js +1 -1
- package/LineChartPro/LineChartPro.js +3 -36
- package/README.md +2 -2
- package/ScatterChartPro/ScatterChartPro.js +3 -36
- package/context/CartesianProviderPro/createAxisFilterMapper.d.ts +2 -1
- package/context/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/context/ChartDataProviderPro/ChartDataProviderPro.js +20 -268
- package/context/ChartDataProviderPro/useChartDataProviderProProps.d.ts +3 -5
- package/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +2 -2
- package/modern/BarChartPro/BarChartPro.js +3 -35
- package/modern/ChartContainerPro/ChartContainerPro.js +7 -25
- package/modern/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/modern/Heatmap/Heatmap.js +4 -39
- package/modern/Heatmap/HeatmapTooltip.js +272 -0
- package/modern/Heatmap/heatmapClasses.js +2 -1
- package/modern/Heatmap/index.js +1 -1
- package/modern/LineChartPro/LineChartPro.js +3 -36
- package/modern/ScatterChartPro/ScatterChartPro.js +3 -36
- package/modern/context/ChartDataProviderPro/ChartDataProviderPro.js +20 -268
- package/modern/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +2 -2
- package/node/BarChartPro/BarChartPro.js +3 -35
- package/node/ChartContainerPro/ChartContainerPro.js +7 -25
- package/node/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/node/Heatmap/Heatmap.js +4 -39
- package/node/Heatmap/HeatmapTooltip.js +278 -0
- package/node/Heatmap/heatmapClasses.js +5 -4
- package/node/Heatmap/index.js +4 -4
- package/node/LineChartPro/LineChartPro.js +3 -36
- package/node/ScatterChartPro/ScatterChartPro.js +3 -36
- package/node/context/ChartDataProviderPro/ChartDataProviderPro.js +19 -267
- package/node/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +4 -3
- package/package.json +7 -7
- package/Heatmap/DefaultHeatmapTooltip.d.ts +0 -7
- package/Heatmap/DefaultHeatmapTooltip.js +0 -99
- package/modern/Heatmap/DefaultHeatmapTooltip.js +0 -99
- package/node/Heatmap/DefaultHeatmapTooltip.js +0 -105
|
@@ -165,9 +165,9 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
165
165
|
axisHighlightProps,
|
|
166
166
|
lineHighlightPlotProps,
|
|
167
167
|
legendProps,
|
|
168
|
-
tooltipProps,
|
|
169
168
|
children
|
|
170
169
|
} = useLineChartProps(other);
|
|
170
|
+
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
171
171
|
return /*#__PURE__*/_jsxs(ChartContainerPro, _extends({
|
|
172
172
|
ref: ref
|
|
173
173
|
}, chartContainerProps, {
|
|
@@ -178,7 +178,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
178
178
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx("g", {
|
|
179
179
|
"data-drawing-container": true,
|
|
180
180
|
children: /*#__PURE__*/_jsx(MarkPlotZoom, _extends({}, markPlotProps))
|
|
181
|
-
}), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(
|
|
181
|
+
}), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
|
|
182
182
|
}));
|
|
183
183
|
});
|
|
184
184
|
process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
@@ -188,7 +188,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
188
188
|
// ----------------------------------------------------------------------
|
|
189
189
|
/**
|
|
190
190
|
* The configuration of axes highlight.
|
|
191
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
|
|
191
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
192
192
|
* @default { x: 'line' }
|
|
193
193
|
*/
|
|
194
194
|
axisHighlight: PropTypes.shape({
|
|
@@ -303,16 +303,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
303
303
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
304
304
|
*/
|
|
305
305
|
onZoomChange: PropTypes.func,
|
|
306
|
-
/**
|
|
307
|
-
* The chart will try to wait for the parent container to resolve its size
|
|
308
|
-
* before it renders for the first time.
|
|
309
|
-
*
|
|
310
|
-
* This can be useful in some scenarios where the chart appear to grow after
|
|
311
|
-
* the first render, like when used inside a grid.
|
|
312
|
-
*
|
|
313
|
-
* @default false
|
|
314
|
-
*/
|
|
315
|
-
resolveSizeBeforeRender: PropTypes.bool,
|
|
316
306
|
/**
|
|
317
307
|
* Indicate which axis to display the right of the charts.
|
|
318
308
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -341,31 +331,12 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
341
331
|
slots: PropTypes.object,
|
|
342
332
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
343
333
|
title: PropTypes.string,
|
|
344
|
-
/**
|
|
345
|
-
* The configuration of the tooltip.
|
|
346
|
-
* @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
|
|
347
|
-
* @default { trigger: 'item' }
|
|
348
|
-
*/
|
|
349
|
-
tooltip: PropTypes.shape({
|
|
350
|
-
axisContent: PropTypes.elementType,
|
|
351
|
-
classes: PropTypes.object,
|
|
352
|
-
itemContent: PropTypes.elementType,
|
|
353
|
-
slotProps: PropTypes.object,
|
|
354
|
-
slots: PropTypes.object,
|
|
355
|
-
trigger: PropTypes.oneOf(['axis', 'item', 'none'])
|
|
356
|
-
}),
|
|
357
334
|
/**
|
|
358
335
|
* Indicate which axis to display the top of the charts.
|
|
359
336
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
360
337
|
* @default null
|
|
361
338
|
*/
|
|
362
339
|
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
363
|
-
viewBox: PropTypes.shape({
|
|
364
|
-
height: PropTypes.number,
|
|
365
|
-
width: PropTypes.number,
|
|
366
|
-
x: PropTypes.number,
|
|
367
|
-
y: PropTypes.number
|
|
368
|
-
}),
|
|
369
340
|
/**
|
|
370
341
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
371
342
|
*/
|
|
@@ -401,7 +372,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
401
372
|
hideTooltip: PropTypes.bool,
|
|
402
373
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
403
374
|
label: PropTypes.string,
|
|
404
|
-
labelFontSize: PropTypes.number,
|
|
405
375
|
labelStyle: PropTypes.object,
|
|
406
376
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
407
377
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -412,7 +382,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
412
382
|
slots: PropTypes.object,
|
|
413
383
|
stroke: PropTypes.string,
|
|
414
384
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
415
|
-
tickFontSize: PropTypes.number,
|
|
416
385
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
417
386
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
418
387
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
@@ -464,7 +433,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
464
433
|
hideTooltip: PropTypes.bool,
|
|
465
434
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
466
435
|
label: PropTypes.string,
|
|
467
|
-
labelFontSize: PropTypes.number,
|
|
468
436
|
labelStyle: PropTypes.object,
|
|
469
437
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
470
438
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -475,7 +443,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
475
443
|
slots: PropTypes.object,
|
|
476
444
|
stroke: PropTypes.string,
|
|
477
445
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
478
|
-
tickFontSize: PropTypes.number,
|
|
479
446
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
480
447
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
481
448
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ This component has the following peer dependencies that you need to install as w
|
|
|
16
16
|
```json
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
19
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
20
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
19
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -49,9 +49,9 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
49
49
|
overlayProps,
|
|
50
50
|
legendProps,
|
|
51
51
|
axisHighlightProps,
|
|
52
|
-
tooltipProps,
|
|
53
52
|
children
|
|
54
53
|
} = useScatterChartProps(other);
|
|
54
|
+
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
55
55
|
return /*#__PURE__*/_jsx(ChartContainerPro, _extends({
|
|
56
56
|
ref: ref
|
|
57
57
|
}, chartContainerProps, {
|
|
@@ -61,7 +61,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
61
61
|
children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
|
|
62
62
|
"data-drawing-container": true,
|
|
63
63
|
children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
|
|
64
|
-
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(
|
|
64
|
+
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props?.slotProps?.tooltip)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
|
|
65
65
|
}))
|
|
66
66
|
}));
|
|
67
67
|
});
|
|
@@ -72,7 +72,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
72
72
|
// ----------------------------------------------------------------------
|
|
73
73
|
/**
|
|
74
74
|
* The configuration of axes highlight.
|
|
75
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
|
|
75
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
76
76
|
* @default { x: 'none', y: 'none' }
|
|
77
77
|
*/
|
|
78
78
|
axisHighlight: PropTypes.shape({
|
|
@@ -171,16 +171,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
171
171
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
172
172
|
*/
|
|
173
173
|
onZoomChange: PropTypes.func,
|
|
174
|
-
/**
|
|
175
|
-
* The chart will try to wait for the parent container to resolve its size
|
|
176
|
-
* before it renders for the first time.
|
|
177
|
-
*
|
|
178
|
-
* This can be useful in some scenarios where the chart appear to grow after
|
|
179
|
-
* the first render, like when used inside a grid.
|
|
180
|
-
*
|
|
181
|
-
* @default false
|
|
182
|
-
*/
|
|
183
|
-
resolveSizeBeforeRender: PropTypes.bool,
|
|
184
174
|
/**
|
|
185
175
|
* Indicate which axis to display the right of the charts.
|
|
186
176
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -209,31 +199,12 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
209
199
|
slots: PropTypes.object,
|
|
210
200
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
211
201
|
title: PropTypes.string,
|
|
212
|
-
/**
|
|
213
|
-
* The configuration of the tooltip.
|
|
214
|
-
* @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
|
|
215
|
-
* @default { trigger: 'item' }
|
|
216
|
-
*/
|
|
217
|
-
tooltip: PropTypes.shape({
|
|
218
|
-
axisContent: PropTypes.elementType,
|
|
219
|
-
classes: PropTypes.object,
|
|
220
|
-
itemContent: PropTypes.elementType,
|
|
221
|
-
slotProps: PropTypes.object,
|
|
222
|
-
slots: PropTypes.object,
|
|
223
|
-
trigger: PropTypes.oneOf(['axis', 'item', 'none'])
|
|
224
|
-
}),
|
|
225
202
|
/**
|
|
226
203
|
* Indicate which axis to display the top of the charts.
|
|
227
204
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
228
205
|
* @default null
|
|
229
206
|
*/
|
|
230
207
|
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
231
|
-
viewBox: PropTypes.shape({
|
|
232
|
-
height: PropTypes.number,
|
|
233
|
-
width: PropTypes.number,
|
|
234
|
-
x: PropTypes.number,
|
|
235
|
-
y: PropTypes.number
|
|
236
|
-
}),
|
|
237
208
|
/**
|
|
238
209
|
* Defines the maximal distance between a scatter point and the pointer that triggers the interaction.
|
|
239
210
|
* If `undefined`, the radius is assumed to be infinite.
|
|
@@ -274,7 +245,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
274
245
|
hideTooltip: PropTypes.bool,
|
|
275
246
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
276
247
|
label: PropTypes.string,
|
|
277
|
-
labelFontSize: PropTypes.number,
|
|
278
248
|
labelStyle: PropTypes.object,
|
|
279
249
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
280
250
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -285,7 +255,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
285
255
|
slots: PropTypes.object,
|
|
286
256
|
stroke: PropTypes.string,
|
|
287
257
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
288
|
-
tickFontSize: PropTypes.number,
|
|
289
258
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
290
259
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
291
260
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
@@ -337,7 +306,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
337
306
|
hideTooltip: PropTypes.bool,
|
|
338
307
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
339
308
|
label: PropTypes.string,
|
|
340
|
-
labelFontSize: PropTypes.number,
|
|
341
309
|
labelStyle: PropTypes.object,
|
|
342
310
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
343
311
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -348,7 +316,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
348
316
|
slots: PropTypes.object,
|
|
349
317
|
stroke: PropTypes.string,
|
|
350
318
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
351
|
-
tickFontSize: PropTypes.number,
|
|
352
319
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
353
320
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
354
321
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormattedSeries, ExtremumGettersConfig, ExtremumFilter, ZoomAxisFilters, GetZoomAxisFilters } from '@mui/x-charts/internals';
|
|
2
|
-
import {
|
|
2
|
+
import { ScaleName, AxisConfig } from '@mui/x-charts/models';
|
|
3
|
+
import { ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
|
|
3
4
|
import { ZoomData } from '../ZoomProvider';
|
|
4
5
|
type CreateAxisFilterMapperParams = {
|
|
5
6
|
zoomData: ZoomData[];
|
|
@@ -3,5 +3,5 @@ import { ChartDataProviderProps } from '@mui/x-charts/internals';
|
|
|
3
3
|
import { ZoomProps } from '../ZoomProvider';
|
|
4
4
|
export interface ChartDataProviderProProps extends ChartDataProviderProps, ZoomProps {
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
6
|
+
declare function ChartDataProviderPro(props: ChartDataProviderProProps): React.JSX.Element;
|
|
7
7
|
export { ChartDataProviderPro };
|
|
@@ -2,297 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
6
|
-
import { ChartsAxesGradients, DrawingProvider, InteractionProvider, PluginProvider, SeriesProvider, AnimationProvider } from '@mui/x-charts/internals';
|
|
7
|
-
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
5
|
+
import { DrawingAreaProvider, PluginProvider, SeriesProvider, AnimationProvider, SizeProvider, ChartProvider } from '@mui/x-charts/internals';
|
|
8
6
|
import { HighlightedProvider, ZAxisContextProvider } from '@mui/x-charts/context';
|
|
9
7
|
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
10
8
|
import { getReleaseInfo } from "../../internals/utils/releaseInfo.js";
|
|
11
9
|
import { CartesianProviderPro } from "../CartesianProviderPro/index.js";
|
|
12
10
|
import { ZoomProvider } from "../ZoomProvider/index.js";
|
|
13
11
|
import { useChartContainerProProps } from "./useChartDataProviderProProps.js";
|
|
14
|
-
import { jsx as _jsx
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
13
|
const releaseInfo = getReleaseInfo();
|
|
16
|
-
|
|
14
|
+
function ChartDataProviderPro(props) {
|
|
17
15
|
const {
|
|
18
16
|
zoomProviderProps,
|
|
19
|
-
|
|
17
|
+
drawingAreaProviderProps,
|
|
20
18
|
seriesProviderProps,
|
|
21
19
|
zAxisContextProps,
|
|
22
20
|
highlightedProviderProps,
|
|
23
21
|
cartesianProviderProps,
|
|
24
|
-
|
|
22
|
+
sizeProviderProps,
|
|
25
23
|
pluginProviderProps,
|
|
26
24
|
animationProviderProps,
|
|
27
25
|
children
|
|
28
|
-
} = useChartContainerProProps(props
|
|
26
|
+
} = useChartContainerProProps(props);
|
|
29
27
|
useLicenseVerifier('x-charts-pro', releaseInfo);
|
|
30
|
-
return /*#__PURE__*/_jsx(
|
|
31
|
-
children: /*#__PURE__*/_jsx(
|
|
32
|
-
children: /*#__PURE__*/_jsx(
|
|
33
|
-
children: /*#__PURE__*/_jsx(
|
|
34
|
-
children: /*#__PURE__*/_jsx(
|
|
35
|
-
children: /*#__PURE__*/_jsx(
|
|
36
|
-
children: /*#__PURE__*/_jsx(
|
|
37
|
-
children: /*#__PURE__*/_jsx(
|
|
38
|
-
children: /*#__PURE__*/_jsx(
|
|
39
|
-
children: /*#__PURE__*/
|
|
40
|
-
children:
|
|
28
|
+
return /*#__PURE__*/_jsx(ChartProvider, {
|
|
29
|
+
children: /*#__PURE__*/_jsx(SizeProvider, _extends({}, sizeProviderProps, {
|
|
30
|
+
children: /*#__PURE__*/_jsx(DrawingAreaProvider, _extends({}, drawingAreaProviderProps, {
|
|
31
|
+
children: /*#__PURE__*/_jsx(AnimationProvider, _extends({}, animationProviderProps, {
|
|
32
|
+
children: /*#__PURE__*/_jsx(PluginProvider, _extends({}, pluginProviderProps, {
|
|
33
|
+
children: /*#__PURE__*/_jsx(ZoomProvider, _extends({}, zoomProviderProps, {
|
|
34
|
+
children: /*#__PURE__*/_jsx(SeriesProvider, _extends({}, seriesProviderProps, {
|
|
35
|
+
children: /*#__PURE__*/_jsx(CartesianProviderPro, _extends({}, cartesianProviderProps, {
|
|
36
|
+
children: /*#__PURE__*/_jsx(ZAxisContextProvider, _extends({}, zAxisContextProps, {
|
|
37
|
+
children: /*#__PURE__*/_jsx(HighlightedProvider, _extends({}, highlightedProviderProps, {
|
|
38
|
+
children: children
|
|
41
39
|
}))
|
|
42
40
|
}))
|
|
43
|
-
})
|
|
41
|
+
}))
|
|
44
42
|
}))
|
|
45
43
|
}))
|
|
46
44
|
}))
|
|
47
45
|
}))
|
|
48
46
|
}))
|
|
49
47
|
}))
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
process.env.NODE_ENV !== "production" ? ChartDataProviderPro.propTypes = {
|
|
53
|
-
// ----------------------------- Warning --------------------------------
|
|
54
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
56
|
-
// ----------------------------------------------------------------------
|
|
57
|
-
children: PropTypes.node,
|
|
58
|
-
className: PropTypes.string,
|
|
59
|
-
/**
|
|
60
|
-
* Color palette used to colorize multiple series.
|
|
61
|
-
* @default blueberryTwilightPalette
|
|
62
|
-
*/
|
|
63
|
-
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
64
|
-
/**
|
|
65
|
-
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
66
|
-
*/
|
|
67
|
-
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
68
|
-
desc: PropTypes.string,
|
|
69
|
-
/**
|
|
70
|
-
* If `true`, the charts will not listen to the mouse move event.
|
|
71
|
-
* It might break interactive features, but will improve performance.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
disableAxisListener: PropTypes.bool,
|
|
75
|
-
/**
|
|
76
|
-
* The height of the chart in px.
|
|
77
|
-
*/
|
|
78
|
-
height: PropTypes.number.isRequired,
|
|
79
|
-
/**
|
|
80
|
-
* The item currently highlighted. Turns highlighting into a controlled prop.
|
|
81
|
-
*/
|
|
82
|
-
highlightedItem: PropTypes.shape({
|
|
83
|
-
dataIndex: PropTypes.number,
|
|
84
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
85
|
-
}),
|
|
86
|
-
/**
|
|
87
|
-
* The margin between the SVG and the drawing area.
|
|
88
|
-
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
89
|
-
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
90
|
-
* @default object Depends on the charts type.
|
|
91
|
-
*/
|
|
92
|
-
margin: PropTypes.shape({
|
|
93
|
-
bottom: PropTypes.number,
|
|
94
|
-
left: PropTypes.number,
|
|
95
|
-
right: PropTypes.number,
|
|
96
|
-
top: PropTypes.number
|
|
97
|
-
}),
|
|
98
|
-
/**
|
|
99
|
-
* The callback fired when the highlighted item changes.
|
|
100
|
-
*
|
|
101
|
-
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
102
|
-
*/
|
|
103
|
-
onHighlightChange: PropTypes.func,
|
|
104
|
-
/**
|
|
105
|
-
* Callback fired when the zoom has changed.
|
|
106
|
-
*
|
|
107
|
-
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
108
|
-
*/
|
|
109
|
-
onZoomChange: PropTypes.func,
|
|
110
|
-
/**
|
|
111
|
-
* An array of plugins defining how to preprocess data.
|
|
112
|
-
* If not provided, the container supports line, bar, scatter and pie charts.
|
|
113
|
-
*/
|
|
114
|
-
plugins: PropTypes.arrayOf(PropTypes.object),
|
|
115
|
-
/**
|
|
116
|
-
* The array of series to display.
|
|
117
|
-
* Each type of series has its own specificity.
|
|
118
|
-
* Please refer to the appropriate docs page to learn more about it.
|
|
119
|
-
*/
|
|
120
|
-
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
121
|
-
/**
|
|
122
|
-
* If `true`, animations are skipped.
|
|
123
|
-
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
124
|
-
*/
|
|
125
|
-
skipAnimation: PropTypes.bool,
|
|
126
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
127
|
-
title: PropTypes.string,
|
|
128
|
-
viewBox: PropTypes.shape({
|
|
129
|
-
height: PropTypes.number,
|
|
130
|
-
width: PropTypes.number,
|
|
131
|
-
x: PropTypes.number,
|
|
132
|
-
y: PropTypes.number
|
|
133
|
-
}),
|
|
134
|
-
/**
|
|
135
|
-
* The width of the chart in px.
|
|
136
|
-
*/
|
|
137
|
-
width: PropTypes.number.isRequired,
|
|
138
|
-
/**
|
|
139
|
-
* The configuration of the x-axes.
|
|
140
|
-
* If not provided, a default axis config is used.
|
|
141
|
-
* An array of [[AxisConfig]] objects.
|
|
142
|
-
*/
|
|
143
|
-
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
144
|
-
classes: PropTypes.object,
|
|
145
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
146
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
147
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
148
|
-
unknownColor: PropTypes.string,
|
|
149
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
150
|
-
}), PropTypes.shape({
|
|
151
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
152
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
153
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
154
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
155
|
-
}), PropTypes.shape({
|
|
156
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
157
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
158
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
159
|
-
})]),
|
|
160
|
-
data: PropTypes.array,
|
|
161
|
-
dataKey: PropTypes.string,
|
|
162
|
-
disableLine: PropTypes.bool,
|
|
163
|
-
disableTicks: PropTypes.bool,
|
|
164
|
-
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
165
|
-
fill: PropTypes.string,
|
|
166
|
-
hideTooltip: PropTypes.bool,
|
|
167
|
-
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
168
|
-
label: PropTypes.string,
|
|
169
|
-
labelFontSize: PropTypes.number,
|
|
170
|
-
labelStyle: PropTypes.object,
|
|
171
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
172
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
173
|
-
position: PropTypes.oneOf(['bottom', 'top']),
|
|
174
|
-
reverse: PropTypes.bool,
|
|
175
|
-
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
176
|
-
slotProps: PropTypes.object,
|
|
177
|
-
slots: PropTypes.object,
|
|
178
|
-
stroke: PropTypes.string,
|
|
179
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
180
|
-
tickFontSize: PropTypes.number,
|
|
181
|
-
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
182
|
-
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
183
|
-
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
184
|
-
tickLabelStyle: PropTypes.object,
|
|
185
|
-
tickMaxStep: PropTypes.number,
|
|
186
|
-
tickMinStep: PropTypes.number,
|
|
187
|
-
tickNumber: PropTypes.number,
|
|
188
|
-
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
189
|
-
tickSize: PropTypes.number,
|
|
190
|
-
valueFormatter: PropTypes.func,
|
|
191
|
-
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
192
|
-
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
193
|
-
maxEnd: PropTypes.number,
|
|
194
|
-
maxSpan: PropTypes.number,
|
|
195
|
-
minSpan: PropTypes.number,
|
|
196
|
-
minStart: PropTypes.number,
|
|
197
|
-
panning: PropTypes.bool,
|
|
198
|
-
step: PropTypes.number
|
|
199
|
-
}), PropTypes.bool])
|
|
200
|
-
})),
|
|
201
|
-
/**
|
|
202
|
-
* The configuration of the y-axes.
|
|
203
|
-
* If not provided, a default axis config is used.
|
|
204
|
-
* An array of [[AxisConfig]] objects.
|
|
205
|
-
*/
|
|
206
|
-
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
207
|
-
classes: PropTypes.object,
|
|
208
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
209
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
210
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
211
|
-
unknownColor: PropTypes.string,
|
|
212
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
213
|
-
}), PropTypes.shape({
|
|
214
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
215
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
216
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
217
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
218
|
-
}), PropTypes.shape({
|
|
219
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
220
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
221
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
222
|
-
})]),
|
|
223
|
-
data: PropTypes.array,
|
|
224
|
-
dataKey: PropTypes.string,
|
|
225
|
-
disableLine: PropTypes.bool,
|
|
226
|
-
disableTicks: PropTypes.bool,
|
|
227
|
-
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
228
|
-
fill: PropTypes.string,
|
|
229
|
-
hideTooltip: PropTypes.bool,
|
|
230
|
-
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
231
|
-
label: PropTypes.string,
|
|
232
|
-
labelFontSize: PropTypes.number,
|
|
233
|
-
labelStyle: PropTypes.object,
|
|
234
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
235
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
236
|
-
position: PropTypes.oneOf(['left', 'right']),
|
|
237
|
-
reverse: PropTypes.bool,
|
|
238
|
-
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
239
|
-
slotProps: PropTypes.object,
|
|
240
|
-
slots: PropTypes.object,
|
|
241
|
-
stroke: PropTypes.string,
|
|
242
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
243
|
-
tickFontSize: PropTypes.number,
|
|
244
|
-
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
245
|
-
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
246
|
-
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
247
|
-
tickLabelStyle: PropTypes.object,
|
|
248
|
-
tickMaxStep: PropTypes.number,
|
|
249
|
-
tickMinStep: PropTypes.number,
|
|
250
|
-
tickNumber: PropTypes.number,
|
|
251
|
-
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
252
|
-
tickSize: PropTypes.number,
|
|
253
|
-
valueFormatter: PropTypes.func,
|
|
254
|
-
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
255
|
-
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
256
|
-
maxEnd: PropTypes.number,
|
|
257
|
-
maxSpan: PropTypes.number,
|
|
258
|
-
minSpan: PropTypes.number,
|
|
259
|
-
minStart: PropTypes.number,
|
|
260
|
-
panning: PropTypes.bool,
|
|
261
|
-
step: PropTypes.number
|
|
262
|
-
}), PropTypes.bool])
|
|
263
|
-
})),
|
|
264
|
-
/**
|
|
265
|
-
* The configuration of the z-axes.
|
|
266
|
-
*/
|
|
267
|
-
zAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
268
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
269
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
270
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
271
|
-
unknownColor: PropTypes.string,
|
|
272
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
273
|
-
}), PropTypes.shape({
|
|
274
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
275
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
276
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
277
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
278
|
-
}), PropTypes.shape({
|
|
279
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
280
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
281
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
282
|
-
})]),
|
|
283
|
-
data: PropTypes.array,
|
|
284
|
-
dataKey: PropTypes.string,
|
|
285
|
-
id: PropTypes.string,
|
|
286
|
-
max: PropTypes.number,
|
|
287
|
-
min: PropTypes.number
|
|
288
|
-
})),
|
|
289
|
-
/**
|
|
290
|
-
* The list of zoom data related to each axis.
|
|
291
|
-
*/
|
|
292
|
-
zoom: PropTypes.arrayOf(PropTypes.shape({
|
|
293
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
294
|
-
end: PropTypes.number.isRequired,
|
|
295
|
-
start: PropTypes.number.isRequired
|
|
296
|
-
}))
|
|
297
|
-
} : void 0;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
298
50
|
export { ChartDataProviderPro };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ZoomProviderProps } from '../ZoomProvider';
|
|
2
2
|
import type { ChartDataProviderProProps } from './ChartDataProviderPro';
|
|
3
|
-
export declare const useChartContainerProProps: (props: ChartDataProviderProProps
|
|
3
|
+
export declare const useChartContainerProProps: (props: ChartDataProviderProProps) => {
|
|
4
4
|
zoomProviderProps: Omit<ZoomProviderProps, "children">;
|
|
5
5
|
children: import("react").ReactNode;
|
|
6
|
-
|
|
6
|
+
drawingAreaProviderProps: Omit<import("@mui/x-charts/internals").DrawingAreaProviderProps, "children">;
|
|
7
7
|
pluginProviderProps: Omit<import("@mui/x-charts/internals").PluginProviderProps, "children">;
|
|
8
8
|
seriesProviderProps: Omit<import("@mui/x-charts/internals").SeriesProviderProps, "children">;
|
|
9
9
|
cartesianProviderProps: Omit<import("@mui/x-charts/internals").CartesianProviderProps, "children">;
|
|
10
10
|
zAxisContextProps: Omit<import("@mui/x-charts").ZAxisContextProviderProps, "children">;
|
|
11
11
|
highlightedProviderProps: Omit<import("@mui/x-charts").HighlightedProviderProps, "children">;
|
|
12
|
-
|
|
13
|
-
ref: any;
|
|
14
|
-
};
|
|
12
|
+
sizeProviderProps: Omit<import("@mui/x-charts/internals").SizeProviderProps, "children">;
|
|
15
13
|
animationProviderProps: Omit<import("@mui/x-charts/internals").AnimationProviderProps, "children">;
|
|
16
14
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
const _excluded = ["zoom", "onZoomChange"];
|
|
5
5
|
import { useChartDataProviderProps } from '@mui/x-charts/internals';
|
|
6
|
-
export const useChartContainerProProps =
|
|
6
|
+
export const useChartContainerProProps = props => {
|
|
7
7
|
const {
|
|
8
8
|
zoom,
|
|
9
9
|
onZoomChange
|
|
@@ -11,17 +11,17 @@ export const useChartContainerProProps = (props, ref) => {
|
|
|
11
11
|
baseProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
12
12
|
const {
|
|
13
13
|
children,
|
|
14
|
-
|
|
14
|
+
drawingAreaProviderProps,
|
|
15
15
|
seriesProviderProps,
|
|
16
16
|
cartesianProviderProps,
|
|
17
17
|
zAxisContextProps,
|
|
18
18
|
highlightedProviderProps,
|
|
19
|
-
|
|
19
|
+
sizeProviderProps,
|
|
20
20
|
pluginProviderProps,
|
|
21
21
|
animationProviderProps,
|
|
22
22
|
xAxis,
|
|
23
23
|
yAxis
|
|
24
|
-
} = useChartDataProviderProps(baseProps
|
|
24
|
+
} = useChartDataProviderProps(baseProps);
|
|
25
25
|
const zoomProviderProps = {
|
|
26
26
|
zoom,
|
|
27
27
|
onZoomChange,
|
|
@@ -31,13 +31,13 @@ export const useChartContainerProProps = (props, ref) => {
|
|
|
31
31
|
return {
|
|
32
32
|
zoomProviderProps,
|
|
33
33
|
children,
|
|
34
|
-
|
|
34
|
+
drawingAreaProviderProps,
|
|
35
35
|
pluginProviderProps,
|
|
36
36
|
seriesProviderProps,
|
|
37
37
|
cartesianProviderProps,
|
|
38
38
|
zAxisContextProps,
|
|
39
39
|
highlightedProviderProps,
|
|
40
|
-
|
|
40
|
+
sizeProviderProps,
|
|
41
41
|
animationProviderProps
|
|
42
42
|
};
|
|
43
43
|
};
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTczMjgzNDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|