@mui/x-charts 7.0.0-alpha.9 → 7.0.0-beta.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/BarChart/BarChart.js +1 -19
- package/CHANGELOG.md +139 -38
- package/ChartContainer/ChartContainer.d.ts +12 -0
- package/ChartContainer/ChartContainer.js +197 -0
- package/ChartContainer/index.d.ts +1 -11
- package/ChartContainer/index.js +9 -63
- package/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
- package/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
- package/LineChart/LineChart.js +1 -23
- package/PieChart/PieChart.js +1 -46
- package/README.md +2 -2
- package/ResponsiveChartContainer/ResponsiveChartContainer.d.ts +16 -0
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +250 -0
- package/ResponsiveChartContainer/index.d.ts +1 -15
- package/ResponsiveChartContainer/index.js +8 -113
- package/ScatterChart/Scatter.js +1 -20
- package/ScatterChart/ScatterChart.js +1 -20
- package/esm/BarChart/BarChart.js +1 -19
- package/esm/ChartContainer/ChartContainer.js +189 -0
- package/esm/ChartContainer/index.js +1 -61
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
- package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
- package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
- package/esm/LineChart/LineChart.js +1 -23
- package/esm/PieChart/PieChart.js +1 -46
- package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +245 -0
- package/esm/ResponsiveChartContainer/index.js +1 -115
- package/esm/ScatterChart/Scatter.js +1 -20
- package/esm/ScatterChart/ScatterChart.js +1 -20
- package/index.js +1 -1
- package/legacy/BarChart/BarChart.js +1 -19
- package/legacy/ChartContainer/ChartContainer.js +187 -0
- package/legacy/ChartContainer/index.js +1 -59
- package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
- package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
- package/legacy/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
- package/legacy/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
- package/legacy/LineChart/LineChart.js +1 -23
- package/legacy/PieChart/PieChart.js +1 -46
- package/legacy/ResponsiveChartContainer/ResponsiveChartContainer.js +253 -0
- package/legacy/ResponsiveChartContainer/index.js +1 -123
- package/legacy/ScatterChart/Scatter.js +1 -20
- package/legacy/ScatterChart/ScatterChart.js +1 -20
- package/legacy/index.js +1 -1
- package/modern/BarChart/BarChart.js +1 -19
- package/modern/ChartContainer/ChartContainer.js +189 -0
- package/modern/ChartContainer/index.js +1 -61
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
- package/modern/LineChart/LineChart.js +1 -23
- package/modern/PieChart/PieChart.js +1 -46
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +242 -0
- package/modern/ResponsiveChartContainer/index.js +1 -112
- package/modern/ScatterChart/Scatter.js +1 -20
- package/modern/ScatterChart/ScatterChart.js +1 -20
- package/modern/index.js +1 -1
- package/package.json +4 -4
package/ChartContainer/index.js
CHANGED
|
@@ -1,70 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _HighlightProvider = require("../context/HighlightProvider");
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
const ChartContainer = exports.ChartContainer = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
|
|
21
|
-
const {
|
|
22
|
-
width,
|
|
23
|
-
height,
|
|
24
|
-
series,
|
|
25
|
-
margin,
|
|
26
|
-
xAxis,
|
|
27
|
-
yAxis,
|
|
28
|
-
colors,
|
|
29
|
-
dataset,
|
|
30
|
-
sx,
|
|
31
|
-
title,
|
|
32
|
-
desc,
|
|
33
|
-
disableAxisListener,
|
|
34
|
-
children
|
|
35
|
-
} = props;
|
|
36
|
-
const svgRef = React.useRef(null);
|
|
37
|
-
const handleRef = (0, _useForkRef.default)(ref, svgRef);
|
|
38
|
-
(0, _useReducedMotion.useReducedMotion)(); // a11y reduce motion (see: https://react-spring.dev/docs/utilities/use-reduced-motion)
|
|
39
|
-
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawingProvider.DrawingProvider, {
|
|
41
|
-
width: width,
|
|
42
|
-
height: height,
|
|
43
|
-
margin: margin,
|
|
44
|
-
svgRef: svgRef,
|
|
45
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SeriesContextProvider.SeriesContextProvider, {
|
|
46
|
-
series: series,
|
|
47
|
-
colors: colors,
|
|
48
|
-
dataset: dataset,
|
|
49
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CartesianContextProvider.CartesianContextProvider, {
|
|
50
|
-
xAxis: xAxis,
|
|
51
|
-
yAxis: yAxis,
|
|
52
|
-
dataset: dataset,
|
|
53
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_InteractionProvider.InteractionProvider, {
|
|
54
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_HighlightProvider.HighlightProvider, {
|
|
55
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsSurface.ChartsSurface, {
|
|
56
|
-
width: width,
|
|
57
|
-
height: height,
|
|
58
|
-
ref: handleRef,
|
|
59
|
-
sx: sx,
|
|
60
|
-
title: title,
|
|
61
|
-
desc: desc,
|
|
62
|
-
disableAxisListener: disableAxisListener,
|
|
63
|
-
children: children
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
})
|
|
6
|
+
var _ChartContainer = require("./ChartContainer");
|
|
7
|
+
Object.keys(_ChartContainer).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ChartContainer[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ChartContainer[key];
|
|
14
|
+
}
|
|
69
15
|
});
|
|
70
16
|
});
|
|
@@ -85,37 +85,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
|
|
|
85
85
|
classes: _propTypes.default.object.isRequired,
|
|
86
86
|
content: _propTypes.default.elementType,
|
|
87
87
|
contentProps: _propTypes.default.shape({
|
|
88
|
-
axis: _propTypes.default.
|
|
89
|
-
axisId: _propTypes.default.string,
|
|
90
|
-
classes: _propTypes.default.object,
|
|
91
|
-
data: _propTypes.default.array,
|
|
92
|
-
dataKey: _propTypes.default.string,
|
|
93
|
-
disableLine: _propTypes.default.bool,
|
|
94
|
-
disableTicks: _propTypes.default.bool,
|
|
95
|
-
fill: _propTypes.default.string,
|
|
96
|
-
hideTooltip: _propTypes.default.bool,
|
|
97
|
-
id: _propTypes.default.string.isRequired,
|
|
98
|
-
label: _propTypes.default.string,
|
|
99
|
-
labelFontSize: _propTypes.default.number,
|
|
100
|
-
labelStyle: _propTypes.default.object,
|
|
101
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
102
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
103
|
-
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
104
|
-
scale: _propTypes.default.func.isRequired,
|
|
105
|
-
scaleType: _propTypes.default.oneOf(['time']).isRequired,
|
|
106
|
-
slotProps: _propTypes.default.object,
|
|
107
|
-
slots: _propTypes.default.object,
|
|
108
|
-
stroke: _propTypes.default.string,
|
|
109
|
-
tickFontSize: _propTypes.default.number,
|
|
110
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
111
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
112
|
-
tickLabelStyle: _propTypes.default.object,
|
|
113
|
-
tickMaxStep: _propTypes.default.number,
|
|
114
|
-
tickMinStep: _propTypes.default.number,
|
|
115
|
-
tickNumber: _propTypes.default.number.isRequired,
|
|
116
|
-
tickSize: _propTypes.default.number,
|
|
117
|
-
valueFormatter: _propTypes.default.func
|
|
118
|
-
}),
|
|
88
|
+
axis: _propTypes.default.object,
|
|
119
89
|
axisData: _propTypes.default.shape({
|
|
120
90
|
x: _propTypes.default.shape({
|
|
121
91
|
index: _propTypes.default.number,
|
|
@@ -129,29 +99,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
|
|
|
129
99
|
axisValue: _propTypes.default.any,
|
|
130
100
|
classes: _propTypes.default.object,
|
|
131
101
|
dataIndex: _propTypes.default.number,
|
|
132
|
-
series: _propTypes.default.arrayOf(_propTypes.default.
|
|
133
|
-
area: _propTypes.default.bool,
|
|
134
|
-
color: _propTypes.default.string.isRequired,
|
|
135
|
-
connectNulls: _propTypes.default.bool,
|
|
136
|
-
curve: _propTypes.default.oneOf(['catmullRom', 'linear', 'monotoneX', 'monotoneY', 'natural', 'step', 'stepAfter', 'stepBefore']),
|
|
137
|
-
data: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
138
|
-
dataKey: _propTypes.default.string,
|
|
139
|
-
disableHighlight: _propTypes.default.bool,
|
|
140
|
-
highlightScope: _propTypes.default.shape({
|
|
141
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
142
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
143
|
-
}),
|
|
144
|
-
id: _propTypes.default.string.isRequired,
|
|
145
|
-
label: _propTypes.default.string,
|
|
146
|
-
showMark: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.bool]),
|
|
147
|
-
stack: _propTypes.default.string,
|
|
148
|
-
stackOffset: _propTypes.default.oneOf(['diverging', 'expand', 'none', 'silhouette', 'wiggle']),
|
|
149
|
-
stackOrder: _propTypes.default.oneOf(['appearance', 'ascending', 'descending', 'insideOut', 'none', 'reverse']),
|
|
150
|
-
type: _propTypes.default.oneOf(['line']).isRequired,
|
|
151
|
-
valueFormatter: _propTypes.default.func.isRequired,
|
|
152
|
-
xAxisKey: _propTypes.default.string,
|
|
153
|
-
yAxisKey: _propTypes.default.string
|
|
154
|
-
})),
|
|
102
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
155
103
|
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])
|
|
156
104
|
}),
|
|
157
105
|
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])
|
|
@@ -51,17 +51,7 @@ process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes = {
|
|
|
51
51
|
seriesId: _propTypes.default.string.isRequired,
|
|
52
52
|
type: _propTypes.default.oneOf(['bar', 'line', 'pie', 'scatter']).isRequired
|
|
53
53
|
}),
|
|
54
|
-
series: _propTypes.default.
|
|
55
|
-
color: _propTypes.default.string,
|
|
56
|
-
data: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
57
|
-
highlightScope: _propTypes.default.shape({
|
|
58
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
59
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
60
|
-
}),
|
|
61
|
-
id: _propTypes.default.string.isRequired,
|
|
62
|
-
type: _propTypes.default.oneOf(['bar', 'line', 'pie', 'scatter']).isRequired,
|
|
63
|
-
valueFormatter: _propTypes.default.func.isRequired
|
|
64
|
-
}),
|
|
54
|
+
series: _propTypes.default.object,
|
|
65
55
|
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])
|
|
66
56
|
}),
|
|
67
57
|
itemData: _propTypes.default.shape({
|
|
@@ -88,37 +88,7 @@ process.env.NODE_ENV !== "production" ? DefaultChartsAxisTooltipContent.propType
|
|
|
88
88
|
/**
|
|
89
89
|
* The properties of the triggered axis.
|
|
90
90
|
*/
|
|
91
|
-
axis: _propTypes.default.
|
|
92
|
-
axisId: _propTypes.default.string,
|
|
93
|
-
classes: _propTypes.default.object,
|
|
94
|
-
data: _propTypes.default.array,
|
|
95
|
-
dataKey: _propTypes.default.string,
|
|
96
|
-
disableLine: _propTypes.default.bool,
|
|
97
|
-
disableTicks: _propTypes.default.bool,
|
|
98
|
-
fill: _propTypes.default.string,
|
|
99
|
-
hideTooltip: _propTypes.default.bool,
|
|
100
|
-
id: _propTypes.default.string.isRequired,
|
|
101
|
-
label: _propTypes.default.string,
|
|
102
|
-
labelFontSize: _propTypes.default.number,
|
|
103
|
-
labelStyle: _propTypes.default.object,
|
|
104
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
105
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
106
|
-
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
107
|
-
scale: _propTypes.default.func.isRequired,
|
|
108
|
-
scaleType: _propTypes.default.oneOf(['time']).isRequired,
|
|
109
|
-
slotProps: _propTypes.default.object,
|
|
110
|
-
slots: _propTypes.default.object,
|
|
111
|
-
stroke: _propTypes.default.string,
|
|
112
|
-
tickFontSize: _propTypes.default.number,
|
|
113
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
114
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
115
|
-
tickLabelStyle: _propTypes.default.object,
|
|
116
|
-
tickMaxStep: _propTypes.default.number,
|
|
117
|
-
tickMinStep: _propTypes.default.number,
|
|
118
|
-
tickNumber: _propTypes.default.number.isRequired,
|
|
119
|
-
tickSize: _propTypes.default.number,
|
|
120
|
-
valueFormatter: _propTypes.default.func
|
|
121
|
-
}).isRequired,
|
|
91
|
+
axis: _propTypes.default.object.isRequired,
|
|
122
92
|
/**
|
|
123
93
|
* Data identifying the triggered axis.
|
|
124
94
|
*/
|
|
@@ -147,28 +117,6 @@ process.env.NODE_ENV !== "production" ? DefaultChartsAxisTooltipContent.propType
|
|
|
147
117
|
/**
|
|
148
118
|
* The series linked to the triggered axis.
|
|
149
119
|
*/
|
|
150
|
-
series: _propTypes.default.arrayOf(_propTypes.default.
|
|
151
|
-
area: _propTypes.default.bool,
|
|
152
|
-
color: _propTypes.default.string.isRequired,
|
|
153
|
-
connectNulls: _propTypes.default.bool,
|
|
154
|
-
curve: _propTypes.default.oneOf(['catmullRom', 'linear', 'monotoneX', 'monotoneY', 'natural', 'step', 'stepAfter', 'stepBefore']),
|
|
155
|
-
data: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
156
|
-
dataKey: _propTypes.default.string,
|
|
157
|
-
disableHighlight: _propTypes.default.bool,
|
|
158
|
-
highlightScope: _propTypes.default.shape({
|
|
159
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
160
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
161
|
-
}),
|
|
162
|
-
id: _propTypes.default.string.isRequired,
|
|
163
|
-
label: _propTypes.default.string,
|
|
164
|
-
showMark: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.bool]),
|
|
165
|
-
stack: _propTypes.default.string,
|
|
166
|
-
stackOffset: _propTypes.default.oneOf(['diverging', 'expand', 'none', 'silhouette', 'wiggle']),
|
|
167
|
-
stackOrder: _propTypes.default.oneOf(['appearance', 'ascending', 'descending', 'insideOut', 'none', 'reverse']),
|
|
168
|
-
type: _propTypes.default.oneOf(['line']).isRequired,
|
|
169
|
-
valueFormatter: _propTypes.default.func.isRequired,
|
|
170
|
-
xAxisKey: _propTypes.default.string,
|
|
171
|
-
yAxisKey: _propTypes.default.string
|
|
172
|
-
})).isRequired,
|
|
120
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
173
121
|
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])
|
|
174
122
|
} : void 0;
|
|
@@ -82,16 +82,6 @@ process.env.NODE_ENV !== "production" ? DefaultChartsItemTooltipContent.propType
|
|
|
82
82
|
/**
|
|
83
83
|
* The series linked to the triggered axis.
|
|
84
84
|
*/
|
|
85
|
-
series: _propTypes.default.
|
|
86
|
-
color: _propTypes.default.string,
|
|
87
|
-
data: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
|
|
88
|
-
highlightScope: _propTypes.default.shape({
|
|
89
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
90
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
91
|
-
}),
|
|
92
|
-
id: _propTypes.default.string.isRequired,
|
|
93
|
-
type: _propTypes.default.oneOf(['bar', 'line', 'pie', 'scatter']).isRequired,
|
|
94
|
-
valueFormatter: _propTypes.default.func.isRequired
|
|
95
|
-
}).isRequired,
|
|
85
|
+
series: _propTypes.default.object.isRequired,
|
|
96
86
|
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])
|
|
97
87
|
} : void 0;
|
package/LineChart/LineChart.js
CHANGED
|
@@ -265,29 +265,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
265
265
|
tickNumber: _propTypes.default.number,
|
|
266
266
|
tickSize: _propTypes.default.number
|
|
267
267
|
}), _propTypes.default.string]),
|
|
268
|
-
series: _propTypes.default.arrayOf(_propTypes.default.
|
|
269
|
-
area: _propTypes.default.bool,
|
|
270
|
-
color: _propTypes.default.string,
|
|
271
|
-
connectNulls: _propTypes.default.bool,
|
|
272
|
-
curve: _propTypes.default.oneOf(['catmullRom', 'linear', 'monotoneX', 'monotoneY', 'natural', 'step', 'stepAfter', 'stepBefore']),
|
|
273
|
-
data: _propTypes.default.arrayOf(_propTypes.default.number),
|
|
274
|
-
dataKey: _propTypes.default.string,
|
|
275
|
-
disableHighlight: _propTypes.default.bool,
|
|
276
|
-
highlightScope: _propTypes.default.shape({
|
|
277
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
278
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
279
|
-
}),
|
|
280
|
-
id: _propTypes.default.string,
|
|
281
|
-
label: _propTypes.default.string,
|
|
282
|
-
showMark: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.bool]),
|
|
283
|
-
stack: _propTypes.default.string,
|
|
284
|
-
stackOffset: _propTypes.default.oneOf(['diverging', 'expand', 'none', 'silhouette', 'wiggle']),
|
|
285
|
-
stackOrder: _propTypes.default.oneOf(['appearance', 'ascending', 'descending', 'insideOut', 'none', 'reverse']),
|
|
286
|
-
type: _propTypes.default.oneOf(['line']),
|
|
287
|
-
valueFormatter: _propTypes.default.func,
|
|
288
|
-
xAxisKey: _propTypes.default.string,
|
|
289
|
-
yAxisKey: _propTypes.default.string
|
|
290
|
-
})).isRequired,
|
|
268
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
291
269
|
/**
|
|
292
270
|
* The props used for each component slot.
|
|
293
271
|
* @default {}
|
package/PieChart/PieChart.js
CHANGED
|
@@ -244,52 +244,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
244
244
|
tickNumber: _propTypes.default.number,
|
|
245
245
|
tickSize: _propTypes.default.number
|
|
246
246
|
}), _propTypes.default.string]),
|
|
247
|
-
series: _propTypes.default.arrayOf(_propTypes.default.
|
|
248
|
-
arcLabel: _propTypes.default.oneOfType([_propTypes.default.oneOf(['formattedValue', 'label', 'value']), _propTypes.default.func]),
|
|
249
|
-
arcLabelMinAngle: _propTypes.default.number,
|
|
250
|
-
arcLabelRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
251
|
-
color: _propTypes.default.string,
|
|
252
|
-
cornerRadius: _propTypes.default.number,
|
|
253
|
-
cx: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
254
|
-
cy: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
255
|
-
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
256
|
-
color: _propTypes.default.string,
|
|
257
|
-
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
258
|
-
label: _propTypes.default.string,
|
|
259
|
-
value: _propTypes.default.number.isRequired
|
|
260
|
-
})).isRequired,
|
|
261
|
-
endAngle: _propTypes.default.number,
|
|
262
|
-
faded: _propTypes.default.shape({
|
|
263
|
-
additionalRadius: _propTypes.default.number,
|
|
264
|
-
arcLabelRadius: _propTypes.default.number,
|
|
265
|
-
color: _propTypes.default.string,
|
|
266
|
-
cornerRadius: _propTypes.default.number,
|
|
267
|
-
innerRadius: _propTypes.default.number,
|
|
268
|
-
outerRadius: _propTypes.default.number,
|
|
269
|
-
paddingAngle: _propTypes.default.number
|
|
270
|
-
}),
|
|
271
|
-
highlighted: _propTypes.default.shape({
|
|
272
|
-
additionalRadius: _propTypes.default.number,
|
|
273
|
-
arcLabelRadius: _propTypes.default.number,
|
|
274
|
-
color: _propTypes.default.string,
|
|
275
|
-
cornerRadius: _propTypes.default.number,
|
|
276
|
-
innerRadius: _propTypes.default.number,
|
|
277
|
-
outerRadius: _propTypes.default.number,
|
|
278
|
-
paddingAngle: _propTypes.default.number
|
|
279
|
-
}),
|
|
280
|
-
highlightScope: _propTypes.default.shape({
|
|
281
|
-
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
282
|
-
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|
|
283
|
-
}),
|
|
284
|
-
id: _propTypes.default.string,
|
|
285
|
-
innerRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
286
|
-
outerRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
287
|
-
paddingAngle: _propTypes.default.number,
|
|
288
|
-
sortingValues: _propTypes.default.oneOfType([_propTypes.default.oneOf(['asc', 'desc', 'none']), _propTypes.default.func]),
|
|
289
|
-
startAngle: _propTypes.default.number,
|
|
290
|
-
type: _propTypes.default.oneOf(['pie']),
|
|
291
|
-
valueFormatter: _propTypes.default.func
|
|
292
|
-
})).isRequired,
|
|
247
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
293
248
|
/**
|
|
294
249
|
* If `true`, animations are skiped.
|
|
295
250
|
* @default false
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# MUI
|
|
1
|
+
# MUI X Charts
|
|
2
2
|
|
|
3
3
|
This package is the community edition of the chart components.
|
|
4
|
-
It's part of [MUI
|
|
4
|
+
It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ChartContainerProps } from '../ChartContainer';
|
|
3
|
+
export interface ResponsiveChartContainerProps extends Omit<ChartContainerProps, 'width' | 'height'> {
|
|
4
|
+
/**
|
|
5
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
6
|
+
* @default undefined
|
|
7
|
+
*/
|
|
8
|
+
width?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
11
|
+
* @default undefined
|
|
12
|
+
*/
|
|
13
|
+
height?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const ResponsiveChartContainer: React.ForwardRefExoticComponent<ResponsiveChartContainerProps & React.RefAttributes<unknown>>;
|
|
16
|
+
export { ResponsiveChartContainer };
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ResponsiveChartContainer = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
13
|
+
var _ownerWindow = _interopRequireDefault(require("@mui/utils/ownerWindow"));
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
15
|
+
var _ChartContainer = require("../ChartContainer");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
const _excluded = ["width", "height"];
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
const useChartDimensions = (inWidth, inHeight) => {
|
|
21
|
+
const rootRef = React.useRef(null);
|
|
22
|
+
const displayError = React.useRef(false);
|
|
23
|
+
const [width, setWidth] = React.useState(0);
|
|
24
|
+
const [height, setHeight] = React.useState(0);
|
|
25
|
+
|
|
26
|
+
// Adaptation of the `computeSizeAndPublishResizeEvent` from the grid.
|
|
27
|
+
const computeSize = React.useCallback(() => {
|
|
28
|
+
const mainEl = rootRef?.current;
|
|
29
|
+
if (!mainEl) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const win = (0, _ownerWindow.default)(mainEl);
|
|
33
|
+
const computedStyle = win.getComputedStyle(mainEl);
|
|
34
|
+
const newHeight = Math.floor(parseFloat(computedStyle.height)) || 0;
|
|
35
|
+
const newWidth = Math.floor(parseFloat(computedStyle.width)) || 0;
|
|
36
|
+
setWidth(newWidth);
|
|
37
|
+
setHeight(newHeight);
|
|
38
|
+
}, []);
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
// Ensure the error detection occurs after the first rendering.
|
|
41
|
+
displayError.current = true;
|
|
42
|
+
}, []);
|
|
43
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
44
|
+
if (inWidth !== undefined && inHeight !== undefined) {
|
|
45
|
+
return () => {};
|
|
46
|
+
}
|
|
47
|
+
computeSize();
|
|
48
|
+
const elementToObserve = rootRef.current;
|
|
49
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
50
|
+
return () => {};
|
|
51
|
+
}
|
|
52
|
+
let animationFrame;
|
|
53
|
+
const observer = new ResizeObserver(() => {
|
|
54
|
+
// See https://github.com/mui/mui-x/issues/8733
|
|
55
|
+
animationFrame = requestAnimationFrame(() => {
|
|
56
|
+
computeSize();
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
if (elementToObserve) {
|
|
60
|
+
observer.observe(elementToObserve);
|
|
61
|
+
}
|
|
62
|
+
return () => {
|
|
63
|
+
if (animationFrame) {
|
|
64
|
+
window.cancelAnimationFrame(animationFrame);
|
|
65
|
+
}
|
|
66
|
+
if (elementToObserve) {
|
|
67
|
+
observer.unobserve(elementToObserve);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}, [computeSize, inHeight, inWidth]);
|
|
71
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
72
|
+
if (displayError.current && inWidth === undefined && width === 0) {
|
|
73
|
+
console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
|
|
74
|
+
displayError.current = false;
|
|
75
|
+
}
|
|
76
|
+
if (displayError.current && inHeight === undefined && height === 0) {
|
|
77
|
+
console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
|
|
78
|
+
displayError.current = false;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return [rootRef, inWidth ?? width, inHeight ?? height];
|
|
82
|
+
};
|
|
83
|
+
const ResizableContainer = (0, _styles.styled)('div', {
|
|
84
|
+
name: 'MuiResponsiveChart',
|
|
85
|
+
slot: 'Container'
|
|
86
|
+
})(({
|
|
87
|
+
ownerState
|
|
88
|
+
}) => ({
|
|
89
|
+
width: ownerState.width ?? '100%',
|
|
90
|
+
height: ownerState.height ?? '100%',
|
|
91
|
+
display: 'flex',
|
|
92
|
+
position: 'relative',
|
|
93
|
+
flexGrow: 1,
|
|
94
|
+
flexDirection: 'column',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
justifyContent: 'center',
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
'&>svg': {
|
|
99
|
+
width: '100%',
|
|
100
|
+
height: '100%'
|
|
101
|
+
}
|
|
102
|
+
}));
|
|
103
|
+
const ResponsiveChartContainer = exports.ResponsiveChartContainer = /*#__PURE__*/React.forwardRef(function ResponsiveChartContainer(props, ref) {
|
|
104
|
+
const {
|
|
105
|
+
width: inWidth,
|
|
106
|
+
height: inHeight
|
|
107
|
+
} = props,
|
|
108
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
109
|
+
const [containerRef, width, height] = useChartDimensions(inWidth, inHeight);
|
|
110
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ResizableContainer, {
|
|
111
|
+
ref: containerRef,
|
|
112
|
+
ownerState: {
|
|
113
|
+
width: inWidth,
|
|
114
|
+
height: inHeight
|
|
115
|
+
},
|
|
116
|
+
children: width && height ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartContainer.ChartContainer, (0, _extends2.default)({}, other, {
|
|
117
|
+
width: width,
|
|
118
|
+
height: height,
|
|
119
|
+
ref: ref
|
|
120
|
+
})) : null
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
process.env.NODE_ENV !== "production" ? ResponsiveChartContainer.propTypes = {
|
|
124
|
+
// ----------------------------- Warning --------------------------------
|
|
125
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
126
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
127
|
+
// ----------------------------------------------------------------------
|
|
128
|
+
children: _propTypes.default.node,
|
|
129
|
+
className: _propTypes.default.string,
|
|
130
|
+
/**
|
|
131
|
+
* Color palette used to colorize multiple series.
|
|
132
|
+
* @default blueberryTwilightPalette
|
|
133
|
+
*/
|
|
134
|
+
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
135
|
+
/**
|
|
136
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
137
|
+
*/
|
|
138
|
+
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
139
|
+
desc: _propTypes.default.string,
|
|
140
|
+
/**
|
|
141
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
142
|
+
* It might break interactive features, but will improve performance.
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
disableAxisListener: _propTypes.default.bool,
|
|
146
|
+
/**
|
|
147
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
148
|
+
* @default undefined
|
|
149
|
+
*/
|
|
150
|
+
height: _propTypes.default.number,
|
|
151
|
+
/**
|
|
152
|
+
* The margin between the SVG and the drawing area.
|
|
153
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
154
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
155
|
+
* @default object Depends on the charts type.
|
|
156
|
+
*/
|
|
157
|
+
margin: _propTypes.default.shape({
|
|
158
|
+
bottom: _propTypes.default.number,
|
|
159
|
+
left: _propTypes.default.number,
|
|
160
|
+
right: _propTypes.default.number,
|
|
161
|
+
top: _propTypes.default.number
|
|
162
|
+
}),
|
|
163
|
+
/**
|
|
164
|
+
* The array of series to display.
|
|
165
|
+
* Each type of series has its own specificity.
|
|
166
|
+
* Please refer to the appropriate docs page to learn more about it.
|
|
167
|
+
*/
|
|
168
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
169
|
+
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]),
|
|
170
|
+
title: _propTypes.default.string,
|
|
171
|
+
viewBox: _propTypes.default.shape({
|
|
172
|
+
height: _propTypes.default.number,
|
|
173
|
+
width: _propTypes.default.number,
|
|
174
|
+
x: _propTypes.default.number,
|
|
175
|
+
y: _propTypes.default.number
|
|
176
|
+
}),
|
|
177
|
+
/**
|
|
178
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
179
|
+
* @default undefined
|
|
180
|
+
*/
|
|
181
|
+
width: _propTypes.default.number,
|
|
182
|
+
/**
|
|
183
|
+
* The configuration of the x-axes.
|
|
184
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
185
|
+
*/
|
|
186
|
+
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
187
|
+
axisId: _propTypes.default.string,
|
|
188
|
+
classes: _propTypes.default.object,
|
|
189
|
+
data: _propTypes.default.array,
|
|
190
|
+
dataKey: _propTypes.default.string,
|
|
191
|
+
disableLine: _propTypes.default.bool,
|
|
192
|
+
disableTicks: _propTypes.default.bool,
|
|
193
|
+
fill: _propTypes.default.string,
|
|
194
|
+
hideTooltip: _propTypes.default.bool,
|
|
195
|
+
id: _propTypes.default.string,
|
|
196
|
+
label: _propTypes.default.string,
|
|
197
|
+
labelFontSize: _propTypes.default.number,
|
|
198
|
+
labelStyle: _propTypes.default.object,
|
|
199
|
+
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
200
|
+
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
201
|
+
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
202
|
+
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
203
|
+
slotProps: _propTypes.default.object,
|
|
204
|
+
slots: _propTypes.default.object,
|
|
205
|
+
stroke: _propTypes.default.string,
|
|
206
|
+
tickFontSize: _propTypes.default.number,
|
|
207
|
+
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
208
|
+
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
209
|
+
tickLabelStyle: _propTypes.default.object,
|
|
210
|
+
tickMaxStep: _propTypes.default.number,
|
|
211
|
+
tickMinStep: _propTypes.default.number,
|
|
212
|
+
tickNumber: _propTypes.default.number,
|
|
213
|
+
tickSize: _propTypes.default.number,
|
|
214
|
+
valueFormatter: _propTypes.default.func
|
|
215
|
+
})),
|
|
216
|
+
/**
|
|
217
|
+
* The configuration of the y-axes.
|
|
218
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
219
|
+
*/
|
|
220
|
+
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
221
|
+
axisId: _propTypes.default.string,
|
|
222
|
+
classes: _propTypes.default.object,
|
|
223
|
+
data: _propTypes.default.array,
|
|
224
|
+
dataKey: _propTypes.default.string,
|
|
225
|
+
disableLine: _propTypes.default.bool,
|
|
226
|
+
disableTicks: _propTypes.default.bool,
|
|
227
|
+
fill: _propTypes.default.string,
|
|
228
|
+
hideTooltip: _propTypes.default.bool,
|
|
229
|
+
id: _propTypes.default.string,
|
|
230
|
+
label: _propTypes.default.string,
|
|
231
|
+
labelFontSize: _propTypes.default.number,
|
|
232
|
+
labelStyle: _propTypes.default.object,
|
|
233
|
+
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
234
|
+
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
235
|
+
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
236
|
+
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
237
|
+
slotProps: _propTypes.default.object,
|
|
238
|
+
slots: _propTypes.default.object,
|
|
239
|
+
stroke: _propTypes.default.string,
|
|
240
|
+
tickFontSize: _propTypes.default.number,
|
|
241
|
+
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
242
|
+
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
243
|
+
tickLabelStyle: _propTypes.default.object,
|
|
244
|
+
tickMaxStep: _propTypes.default.number,
|
|
245
|
+
tickMinStep: _propTypes.default.number,
|
|
246
|
+
tickNumber: _propTypes.default.number,
|
|
247
|
+
tickSize: _propTypes.default.number,
|
|
248
|
+
valueFormatter: _propTypes.default.func
|
|
249
|
+
}))
|
|
250
|
+
} : void 0;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ChartContainerProps } from '../ChartContainer';
|
|
3
|
-
export interface ResponsiveChartContainerProps extends Omit<ChartContainerProps, 'width' | 'height'> {
|
|
4
|
-
/**
|
|
5
|
-
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
6
|
-
* @default undefined
|
|
7
|
-
*/
|
|
8
|
-
width?: number;
|
|
9
|
-
/**
|
|
10
|
-
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
11
|
-
* @default undefined
|
|
12
|
-
*/
|
|
13
|
-
height?: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const ResponsiveChartContainer: React.ForwardRefExoticComponent<ResponsiveChartContainerProps & React.RefAttributes<unknown>>;
|
|
1
|
+
export * from './ResponsiveChartContainer';
|