@mui/x-charts-pro 8.0.0-beta.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChartPro/BarChartPro.js +788 -9
- package/CHANGELOG.md +423 -96
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/ChartDataProviderPro/ChartDataProviderPro.js +27 -22
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- package/FunnelChart/FunnelChart.js +73 -4
- package/FunnelChart/categoryAxis.types.d.ts +3 -2
- package/FunnelChart/funnelSectionClasses.d.ts +5 -0
- package/FunnelChart/funnelSectionClasses.js +1 -1
- package/FunnelChart/index.d.ts +1 -0
- package/FunnelChart/index.js +12 -0
- package/FunnelChart/useFunnelChartProps.js +3 -3
- package/Heatmap/Heatmap.d.ts +1 -1
- package/Heatmap/Heatmap.js +4 -3
- package/Heatmap/{HeatmapTooltip.js → HeatmapTooltip/HeatmapTooltip.js} +30 -34
- package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +4 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js +26 -0
- package/Heatmap/HeatmapTooltip/index.d.ts +1 -0
- package/Heatmap/HeatmapTooltip/index.js +16 -0
- package/Heatmap/heatmapClasses.d.ts +5 -0
- package/Heatmap/heatmapClasses.js +1 -1
- package/Heatmap/index.d.ts +1 -1
- package/LineChartPro/LineChartPro.js +788 -9
- package/ScatterChartPro/ScatterChartPro.js +788 -9
- package/esm/BarChartPro/BarChartPro.js +788 -9
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +28 -23
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -2
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- package/esm/FunnelChart/FunnelChart.js +73 -4
- package/esm/FunnelChart/categoryAxis.types.d.ts +3 -2
- package/esm/FunnelChart/funnelSectionClasses.d.ts +5 -0
- package/esm/FunnelChart/funnelSectionClasses.js +1 -1
- package/esm/FunnelChart/index.d.ts +1 -0
- package/esm/FunnelChart/index.js +1 -0
- package/esm/FunnelChart/useFunnelChartProps.js +3 -3
- package/esm/Heatmap/Heatmap.d.ts +1 -1
- package/esm/Heatmap/Heatmap.js +4 -3
- package/{modern/Heatmap → esm/Heatmap/HeatmapTooltip}/HeatmapTooltip.js +30 -34
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +4 -0
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js +22 -0
- package/esm/Heatmap/HeatmapTooltip/index.d.ts +1 -0
- package/esm/Heatmap/HeatmapTooltip/index.js +1 -0
- package/esm/Heatmap/heatmapClasses.d.ts +5 -0
- package/esm/Heatmap/heatmapClasses.js +1 -1
- package/esm/Heatmap/index.d.ts +1 -1
- package/esm/Heatmap/index.js +1 -1
- package/esm/LineChartPro/LineChartPro.js +788 -9
- package/esm/ScatterChartPro/ScatterChartPro.js +788 -9
- package/esm/index.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +28 -35
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +7 -7
- package/index.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +28 -34
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +7 -7
- package/package.json +9 -19
- package/esm/Heatmap/HeatmapTooltip.js +0 -288
- package/esm/internals/utils/releaseInfo.d.ts +0 -1
- package/esm/internals/utils/releaseInfo.js +0 -13
- package/internals/utils/releaseInfo.d.ts +0 -1
- package/internals/utils/releaseInfo.js +0 -21
- package/modern/BarChartPro/BarChartPro.d.ts +0 -18
- package/modern/BarChartPro/BarChartPro.js +0 -404
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +0 -4
- package/modern/BarChartPro/BarChartPro.plugins.js +0 -3
- package/modern/BarChartPro/index.d.ts +0 -1
- package/modern/BarChartPro/index.js +0 -1
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +0 -35
- package/modern/ChartContainerPro/ChartContainerPro.js +0 -290
- package/modern/ChartContainerPro/index.d.ts +0 -2
- package/modern/ChartContainerPro/index.js +0 -2
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +0 -9
- package/modern/ChartContainerPro/useChartContainerProProps.js +0 -35
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -37
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +0 -106
- package/modern/ChartDataProviderPro/index.d.ts +0 -2
- package/modern/ChartDataProviderPro/index.js +0 -2
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -8
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +0 -15
- package/modern/FunnelChart/FunnelChart.d.ts +0 -37
- package/modern/FunnelChart/FunnelChart.js +0 -212
- package/modern/FunnelChart/FunnelPlot.d.ts +0 -16
- package/modern/FunnelChart/FunnelPlot.js +0 -184
- package/modern/FunnelChart/FunnelSection.d.ts +0 -15
- package/modern/FunnelChart/FunnelSection.js +0 -56
- package/modern/FunnelChart/categoryAxis.types.d.ts +0 -24
- package/modern/FunnelChart/categoryAxis.types.js +0 -1
- package/modern/FunnelChart/funnel.types.d.ts +0 -124
- package/modern/FunnelChart/funnel.types.js +0 -1
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +0 -20
- package/modern/FunnelChart/funnelPlotSlots.types.js +0 -1
- package/modern/FunnelChart/funnelSectionClasses.d.ts +0 -13
- package/modern/FunnelChart/funnelSectionClasses.js +0 -20
- package/modern/FunnelChart/funnelSlots.types.d.ts +0 -19
- package/modern/FunnelChart/funnelSlots.types.js +0 -1
- package/modern/FunnelChart/funnelStepCurve.d.ts +0 -4
- package/modern/FunnelChart/funnelStepCurve.js +0 -67
- package/modern/FunnelChart/index.d.ts +0 -7
- package/modern/FunnelChart/index.js +0 -5
- package/modern/FunnelChart/labelUtils.d.ts +0 -42
- package/modern/FunnelChart/labelUtils.js +0 -166
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/extremums.js +0 -42
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/getColor.js +0 -4
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +0 -11
- package/modern/FunnelChart/seriesConfig/index.d.ts +0 -2
- package/modern/FunnelChart/seriesConfig/index.js +0 -15
- package/modern/FunnelChart/seriesConfig/legend.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/legend.js +0 -25
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +0 -89
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/tooltip.js +0 -29
- package/modern/FunnelChart/useFunnelChartProps.d.ts +0 -30
- package/modern/FunnelChart/useFunnelChartProps.js +0 -161
- package/modern/Heatmap/Heatmap.d.ts +0 -57
- package/modern/Heatmap/Heatmap.js +0 -387
- package/modern/Heatmap/Heatmap.plugins.d.ts +0 -3
- package/modern/Heatmap/Heatmap.plugins.js +0 -2
- package/modern/Heatmap/HeatmapItem.d.ts +0 -49
- package/modern/Heatmap/HeatmapItem.js +0 -106
- package/modern/Heatmap/HeatmapPlot.d.ts +0 -8
- package/modern/Heatmap/HeatmapPlot.js +0 -59
- package/modern/Heatmap/HeatmapTooltip.d.ts +0 -16
- package/modern/Heatmap/heatmapClasses.d.ts +0 -11
- package/modern/Heatmap/heatmapClasses.js +0 -14
- package/modern/Heatmap/index.d.ts +0 -4
- package/modern/Heatmap/index.js +0 -4
- package/modern/Heatmap/seriesConfig/extremums.d.ts +0 -2
- package/modern/Heatmap/seriesConfig/extremums.js +0 -8
- package/modern/Heatmap/seriesConfig/getColor.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/getColor.js +0 -15
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/Heatmap/seriesConfig/index.d.ts +0 -2
- package/modern/Heatmap/seriesConfig/index.js +0 -14
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/seriesProcessor.js +0 -21
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/tooltip.js +0 -25
- package/modern/LineChartPro/LineChartPro.d.ts +0 -17
- package/modern/LineChartPro/LineChartPro.js +0 -401
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +0 -4
- package/modern/LineChartPro/LineChartPro.plugins.js +0 -3
- package/modern/LineChartPro/index.d.ts +0 -1
- package/modern/LineChartPro/index.js +0 -1
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +0 -17
- package/modern/ScatterChartPro/ScatterChartPro.js +0 -395
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +0 -4
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +0 -3
- package/modern/ScatterChartPro/index.d.ts +0 -1
- package/modern/ScatterChartPro/index.js +0 -1
- package/modern/hooks/index.d.ts +0 -2
- package/modern/hooks/index.js +0 -2
- package/modern/hooks/useFunnelSeries.d.ts +0 -33
- package/modern/hooks/useFunnelSeries.js +0 -42
- package/modern/hooks/useHeatmapSeries.d.ts +0 -33
- package/modern/hooks/useHeatmapSeries.js +0 -42
- package/modern/hooks/zoom/index.d.ts +0 -1
- package/modern/hooks/zoom/index.js +0 -1
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +0 -6
- package/modern/hooks/zoom/useIsZoomInteracting.js +0 -14
- package/modern/index.d.ts +0 -34
- package/modern/index.js +0 -45
- package/modern/internals/plugins/allPlugins.d.ts +0 -8
- package/modern/internals/plugins/allPlugins.js +0 -6
- package/modern/internals/plugins/useChartProZoom/index.d.ts +0 -3
- package/modern/internals/plugins/useChartProZoom/index.js +0 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +0 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +0 -350
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +0 -203
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -4
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +0 -53
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -1
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +0 -45
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.js +0 -126
- package/modern/internals/utils/releaseInfo.d.ts +0 -1
- package/modern/internals/utils/releaseInfo.js +0 -13
- package/modern/models/index.d.ts +0 -2
- package/modern/models/index.js +0 -2
- package/modern/models/seriesType/heatmap.d.ts +0 -28
- package/modern/models/seriesType/heatmap.js +0 -1
- package/modern/models/seriesType/index.d.ts +0 -1
- package/modern/models/seriesType/index.js +0 -1
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/components.d.ts +0 -23
- package/modern/themeAugmentation/index.d.ts +0 -4
- package/modern/themeAugmentation/index.js +0 -0
- package/modern/themeAugmentation/overrides.d.ts +0 -11
- package/modern/themeAugmentation/props.d.ts +0 -20
- package/modern/typeOverloads/index.d.ts +0 -1
- package/modern/typeOverloads/index.js +0 -1
- package/modern/typeOverloads/modules.d.ts +0 -33
- package/modern/typeOverloads/modules.js +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
- /package/Heatmap/{HeatmapTooltip.d.ts → HeatmapTooltip/HeatmapTooltip.d.ts} +0 -0
- /package/esm/Heatmap/{HeatmapTooltip.d.ts → HeatmapTooltip/HeatmapTooltip.d.ts} +0 -0
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef"];
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
import { useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import { AreaPlot, LineHighlightPlot, LinePlot, MarkPlot } from '@mui/x-charts/LineChart';
|
|
10
|
-
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
11
|
-
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
12
|
-
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
13
|
-
import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
14
|
-
import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
15
|
-
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
16
|
-
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
17
|
-
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
18
|
-
import { useLineChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
19
|
-
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
20
|
-
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
21
|
-
import { LINE_CHART_PRO_PLUGINS } from "./LineChartPro.plugins.js";
|
|
22
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
/**
|
|
24
|
-
* Demos:
|
|
25
|
-
*
|
|
26
|
-
* - [Lines](https://mui.com/x/react-charts/lines/)
|
|
27
|
-
* - [Line demonstration](https://mui.com/x/react-charts/line-demo/)
|
|
28
|
-
*
|
|
29
|
-
* API:
|
|
30
|
-
*
|
|
31
|
-
* - [LineChart API](https://mui.com/x/api/charts/line-chart/)
|
|
32
|
-
*/
|
|
33
|
-
const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps, ref) {
|
|
34
|
-
const props = useThemeProps({
|
|
35
|
-
props: inProps,
|
|
36
|
-
name: 'MuiLineChartPro'
|
|
37
|
-
});
|
|
38
|
-
const {
|
|
39
|
-
initialZoom,
|
|
40
|
-
zoomData,
|
|
41
|
-
onZoomChange,
|
|
42
|
-
apiRef
|
|
43
|
-
} = props,
|
|
44
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
45
|
-
const {
|
|
46
|
-
chartsWrapperProps,
|
|
47
|
-
chartContainerProps,
|
|
48
|
-
gridProps,
|
|
49
|
-
clipPathProps,
|
|
50
|
-
clipPathGroupProps,
|
|
51
|
-
areaPlotProps,
|
|
52
|
-
linePlotProps,
|
|
53
|
-
markPlotProps,
|
|
54
|
-
overlayProps,
|
|
55
|
-
chartsAxisProps,
|
|
56
|
-
axisHighlightProps,
|
|
57
|
-
lineHighlightPlotProps,
|
|
58
|
-
legendProps,
|
|
59
|
-
children
|
|
60
|
-
} = useLineChartProps(other);
|
|
61
|
-
const {
|
|
62
|
-
chartDataProviderProProps,
|
|
63
|
-
chartsSurfaceProps
|
|
64
|
-
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
65
|
-
initialZoom,
|
|
66
|
-
zoomData,
|
|
67
|
-
onZoomChange,
|
|
68
|
-
apiRef,
|
|
69
|
-
plugins: LINE_CHART_PRO_PLUGINS
|
|
70
|
-
}), ref);
|
|
71
|
-
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
72
|
-
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
73
|
-
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
74
|
-
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
75
|
-
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
76
|
-
children: [/*#__PURE__*/_jsx(AreaPlot, _extends({}, areaPlotProps)), /*#__PURE__*/_jsx(LinePlot, _extends({}, linePlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
77
|
-
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx("g", {
|
|
78
|
-
"data-drawing-container": true,
|
|
79
|
-
children: /*#__PURE__*/_jsx(MarkPlot, _extends({}, markPlotProps))
|
|
80
|
-
}), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
81
|
-
}))]
|
|
82
|
-
}))
|
|
83
|
-
}));
|
|
84
|
-
});
|
|
85
|
-
process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
86
|
-
// ----------------------------- Warning --------------------------------
|
|
87
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
89
|
-
// ----------------------------------------------------------------------
|
|
90
|
-
apiRef: PropTypes.shape({
|
|
91
|
-
current: PropTypes.shape({
|
|
92
|
-
setZoomData: PropTypes.func.isRequired
|
|
93
|
-
})
|
|
94
|
-
}),
|
|
95
|
-
/**
|
|
96
|
-
* The configuration of axes highlight.
|
|
97
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
98
|
-
* @default { x: 'line' }
|
|
99
|
-
*/
|
|
100
|
-
axisHighlight: PropTypes.shape({
|
|
101
|
-
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
102
|
-
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
103
|
-
}),
|
|
104
|
-
children: PropTypes.node,
|
|
105
|
-
className: PropTypes.string,
|
|
106
|
-
/**
|
|
107
|
-
* Color palette used to colorize multiple series.
|
|
108
|
-
* @default rainbowSurgePalette
|
|
109
|
-
*/
|
|
110
|
-
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
111
|
-
/**
|
|
112
|
-
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
113
|
-
*/
|
|
114
|
-
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
115
|
-
desc: PropTypes.string,
|
|
116
|
-
/**
|
|
117
|
-
* If `true`, the charts will not listen to the mouse move event.
|
|
118
|
-
* It might break interactive features, but will improve performance.
|
|
119
|
-
* @default false
|
|
120
|
-
*/
|
|
121
|
-
disableAxisListener: PropTypes.bool,
|
|
122
|
-
/**
|
|
123
|
-
* If `true`, render the line highlight item.
|
|
124
|
-
*/
|
|
125
|
-
disableLineItemHighlight: PropTypes.bool,
|
|
126
|
-
/**
|
|
127
|
-
* Option to display a cartesian grid in the background.
|
|
128
|
-
*/
|
|
129
|
-
grid: PropTypes.shape({
|
|
130
|
-
horizontal: PropTypes.bool,
|
|
131
|
-
vertical: PropTypes.bool
|
|
132
|
-
}),
|
|
133
|
-
/**
|
|
134
|
-
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
135
|
-
*/
|
|
136
|
-
height: PropTypes.number,
|
|
137
|
-
/**
|
|
138
|
-
* If `true`, the legend is not rendered.
|
|
139
|
-
*/
|
|
140
|
-
hideLegend: PropTypes.bool,
|
|
141
|
-
/**
|
|
142
|
-
* The highlighted item.
|
|
143
|
-
* Used when the highlight is controlled.
|
|
144
|
-
*/
|
|
145
|
-
highlightedItem: PropTypes.shape({
|
|
146
|
-
dataIndex: PropTypes.number,
|
|
147
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
148
|
-
}),
|
|
149
|
-
/**
|
|
150
|
-
* This prop is used to help implement the accessibility logic.
|
|
151
|
-
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
152
|
-
*/
|
|
153
|
-
id: PropTypes.string,
|
|
154
|
-
/**
|
|
155
|
-
* The list of zoom data related to each axis.
|
|
156
|
-
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
157
|
-
*/
|
|
158
|
-
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
159
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
160
|
-
end: PropTypes.number.isRequired,
|
|
161
|
-
start: PropTypes.number.isRequired
|
|
162
|
-
})),
|
|
163
|
-
/**
|
|
164
|
-
* If `true`, a loading overlay is displayed.
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
loading: PropTypes.bool,
|
|
168
|
-
/**
|
|
169
|
-
* The margin between the SVG and the drawing area.
|
|
170
|
-
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
171
|
-
*
|
|
172
|
-
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
173
|
-
*/
|
|
174
|
-
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
175
|
-
bottom: PropTypes.number,
|
|
176
|
-
left: PropTypes.number,
|
|
177
|
-
right: PropTypes.number,
|
|
178
|
-
top: PropTypes.number
|
|
179
|
-
})]),
|
|
180
|
-
/**
|
|
181
|
-
* Callback fired when an area element is clicked.
|
|
182
|
-
*/
|
|
183
|
-
onAreaClick: PropTypes.func,
|
|
184
|
-
/**
|
|
185
|
-
* The function called for onClick events.
|
|
186
|
-
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
187
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
188
|
-
* @param {null | AxisData} data The data about the clicked axis and items associated with it.
|
|
189
|
-
*/
|
|
190
|
-
onAxisClick: PropTypes.func,
|
|
191
|
-
/**
|
|
192
|
-
* The callback fired when the highlighted item changes.
|
|
193
|
-
*
|
|
194
|
-
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
195
|
-
*/
|
|
196
|
-
onHighlightChange: PropTypes.func,
|
|
197
|
-
/**
|
|
198
|
-
* Callback fired when a line element is clicked.
|
|
199
|
-
*/
|
|
200
|
-
onLineClick: PropTypes.func,
|
|
201
|
-
/**
|
|
202
|
-
* Callback fired when a mark element is clicked.
|
|
203
|
-
*/
|
|
204
|
-
onMarkClick: PropTypes.func,
|
|
205
|
-
/**
|
|
206
|
-
* Callback fired when the zoom has changed.
|
|
207
|
-
*
|
|
208
|
-
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
209
|
-
*/
|
|
210
|
-
onZoomChange: PropTypes.func,
|
|
211
|
-
/**
|
|
212
|
-
* The series to display in the line chart.
|
|
213
|
-
* An array of [[LineSeriesType]] objects.
|
|
214
|
-
*/
|
|
215
|
-
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
216
|
-
/**
|
|
217
|
-
* If `true`, animations are skipped.
|
|
218
|
-
* @default false
|
|
219
|
-
*/
|
|
220
|
-
skipAnimation: PropTypes.bool,
|
|
221
|
-
/**
|
|
222
|
-
* The props used for each component slot.
|
|
223
|
-
* @default {}
|
|
224
|
-
*/
|
|
225
|
-
slotProps: PropTypes.object,
|
|
226
|
-
/**
|
|
227
|
-
* Overridable component slots.
|
|
228
|
-
* @default {}
|
|
229
|
-
*/
|
|
230
|
-
slots: PropTypes.object,
|
|
231
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
232
|
-
theme: PropTypes.oneOf(['dark', 'light']),
|
|
233
|
-
title: PropTypes.string,
|
|
234
|
-
/**
|
|
235
|
-
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
236
|
-
*/
|
|
237
|
-
width: PropTypes.number,
|
|
238
|
-
/**
|
|
239
|
-
* The configuration of the x-axes.
|
|
240
|
-
* If not provided, a default axis config is used.
|
|
241
|
-
* An array of [[AxisConfig]] objects.
|
|
242
|
-
*/
|
|
243
|
-
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
244
|
-
axis: PropTypes.oneOf(['x']),
|
|
245
|
-
classes: PropTypes.object,
|
|
246
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
247
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
248
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
249
|
-
unknownColor: PropTypes.string,
|
|
250
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
251
|
-
}), PropTypes.shape({
|
|
252
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
253
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
254
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
255
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
256
|
-
}), PropTypes.shape({
|
|
257
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
258
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
259
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
260
|
-
})]),
|
|
261
|
-
data: PropTypes.array,
|
|
262
|
-
dataKey: PropTypes.string,
|
|
263
|
-
disableLine: PropTypes.bool,
|
|
264
|
-
disableTicks: PropTypes.bool,
|
|
265
|
-
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
266
|
-
fill: PropTypes.string,
|
|
267
|
-
height: PropTypes.number,
|
|
268
|
-
hideTooltip: PropTypes.bool,
|
|
269
|
-
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
270
|
-
label: PropTypes.string,
|
|
271
|
-
labelStyle: PropTypes.object,
|
|
272
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
273
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
274
|
-
offset: PropTypes.number,
|
|
275
|
-
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
276
|
-
reverse: PropTypes.bool,
|
|
277
|
-
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
278
|
-
slotProps: PropTypes.object,
|
|
279
|
-
slots: PropTypes.object,
|
|
280
|
-
stroke: PropTypes.string,
|
|
281
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
282
|
-
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
283
|
-
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
284
|
-
tickLabelMinGap: PropTypes.number,
|
|
285
|
-
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
286
|
-
tickLabelStyle: PropTypes.object,
|
|
287
|
-
tickMaxStep: PropTypes.number,
|
|
288
|
-
tickMinStep: PropTypes.number,
|
|
289
|
-
tickNumber: PropTypes.number,
|
|
290
|
-
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
291
|
-
tickSize: PropTypes.number,
|
|
292
|
-
valueFormatter: PropTypes.func,
|
|
293
|
-
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
294
|
-
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
295
|
-
maxEnd: PropTypes.number,
|
|
296
|
-
maxSpan: PropTypes.number,
|
|
297
|
-
minSpan: PropTypes.number,
|
|
298
|
-
minStart: PropTypes.number,
|
|
299
|
-
panning: PropTypes.bool,
|
|
300
|
-
step: PropTypes.number
|
|
301
|
-
}), PropTypes.bool])
|
|
302
|
-
})),
|
|
303
|
-
/**
|
|
304
|
-
* The configuration of the y-axes.
|
|
305
|
-
* If not provided, a default axis config is used.
|
|
306
|
-
* An array of [[AxisConfig]] objects.
|
|
307
|
-
*/
|
|
308
|
-
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
309
|
-
axis: PropTypes.oneOf(['y']),
|
|
310
|
-
classes: PropTypes.object,
|
|
311
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
312
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
313
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
314
|
-
unknownColor: PropTypes.string,
|
|
315
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
316
|
-
}), PropTypes.shape({
|
|
317
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
318
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
319
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
320
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
321
|
-
}), PropTypes.shape({
|
|
322
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
323
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
324
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
325
|
-
})]),
|
|
326
|
-
data: PropTypes.array,
|
|
327
|
-
dataKey: PropTypes.string,
|
|
328
|
-
disableLine: PropTypes.bool,
|
|
329
|
-
disableTicks: PropTypes.bool,
|
|
330
|
-
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
331
|
-
fill: PropTypes.string,
|
|
332
|
-
hideTooltip: PropTypes.bool,
|
|
333
|
-
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
334
|
-
label: PropTypes.string,
|
|
335
|
-
labelStyle: PropTypes.object,
|
|
336
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
337
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
338
|
-
offset: PropTypes.number,
|
|
339
|
-
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
340
|
-
reverse: PropTypes.bool,
|
|
341
|
-
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
342
|
-
slotProps: PropTypes.object,
|
|
343
|
-
slots: PropTypes.object,
|
|
344
|
-
stroke: PropTypes.string,
|
|
345
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
346
|
-
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
347
|
-
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
348
|
-
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
349
|
-
tickLabelStyle: PropTypes.object,
|
|
350
|
-
tickMaxStep: PropTypes.number,
|
|
351
|
-
tickMinStep: PropTypes.number,
|
|
352
|
-
tickNumber: PropTypes.number,
|
|
353
|
-
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
354
|
-
tickSize: PropTypes.number,
|
|
355
|
-
valueFormatter: PropTypes.func,
|
|
356
|
-
width: PropTypes.number,
|
|
357
|
-
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
358
|
-
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
359
|
-
maxEnd: PropTypes.number,
|
|
360
|
-
maxSpan: PropTypes.number,
|
|
361
|
-
minSpan: PropTypes.number,
|
|
362
|
-
minStart: PropTypes.number,
|
|
363
|
-
panning: PropTypes.bool,
|
|
364
|
-
step: PropTypes.number
|
|
365
|
-
}), PropTypes.bool])
|
|
366
|
-
})),
|
|
367
|
-
/**
|
|
368
|
-
* The configuration of the z-axes.
|
|
369
|
-
*/
|
|
370
|
-
zAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
371
|
-
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
372
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
373
|
-
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
374
|
-
unknownColor: PropTypes.string,
|
|
375
|
-
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
376
|
-
}), PropTypes.shape({
|
|
377
|
-
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
378
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
379
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
380
|
-
type: PropTypes.oneOf(['continuous']).isRequired
|
|
381
|
-
}), PropTypes.shape({
|
|
382
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
383
|
-
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
384
|
-
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
385
|
-
})]),
|
|
386
|
-
data: PropTypes.array,
|
|
387
|
-
dataKey: PropTypes.string,
|
|
388
|
-
id: PropTypes.string,
|
|
389
|
-
max: PropTypes.number,
|
|
390
|
-
min: PropTypes.number
|
|
391
|
-
})),
|
|
392
|
-
/**
|
|
393
|
-
* The list of zoom data related to each axis.
|
|
394
|
-
*/
|
|
395
|
-
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
396
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
397
|
-
end: PropTypes.number.isRequired,
|
|
398
|
-
start: PropTypes.number.isRequired
|
|
399
|
-
}))
|
|
400
|
-
} : void 0;
|
|
401
|
-
export { LineChartPro };
|
|
@@ -1,4 +0,0 @@
|
|
|
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>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
|
|
2
|
-
import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
|
|
3
|
-
export const LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LineChartPro.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LineChartPro.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
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 };
|