@mui/x-charts 6.18.0 → 6.18.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/BarChart/BarChart.d.ts +7 -0
- package/BarChart/BarChart.js +41 -4
- package/CHANGELOG.md +116 -5
- package/ChartsAxis/ChartsAxis.js +5 -5
- package/ChartsAxis/axisClasses.d.ts +2 -2
- package/ChartsLegend/ChartsLegend.d.ts +1 -0
- package/ChartsLegend/ChartsLegend.js +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegendClasses.js +2 -2
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +10 -0
- package/ChartsReferenceLine/ChartsReferenceLine.js +78 -0
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +13 -0
- package/ChartsReferenceLine/ChartsXReferenceLine.js +112 -0
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +13 -0
- package/ChartsReferenceLine/ChartsYReferenceLine.js +112 -0
- package/ChartsReferenceLine/chartsReferenceLineClasses.d.ts +15 -0
- package/ChartsReferenceLine/chartsReferenceLineClasses.js +14 -0
- package/ChartsReferenceLine/common.d.ts +41 -0
- package/ChartsReferenceLine/common.js +27 -0
- package/ChartsReferenceLine/index.d.ts +2 -0
- package/ChartsReferenceLine/index.js +27 -0
- package/ChartsReferenceLine/package.json +6 -0
- package/ChartsSurface.d.ts +11 -0
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltip.js +13 -5
- package/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/ChartsTooltip/chartsTooltipClasses.d.ts +21 -0
- package/ChartsTooltip/chartsTooltipClasses.js +12 -0
- package/ChartsTooltip/index.d.ts +1 -0
- package/ChartsTooltip/index.js +11 -0
- package/ChartsTooltip/utils.d.ts +1 -1
- package/ChartsTooltip/utils.js +2 -2
- package/ChartsXAxis/ChartsXAxis.js +9 -5
- package/ChartsYAxis/ChartsYAxis.js +9 -5
- package/LineChart/LineChart.d.ts +7 -0
- package/LineChart/LineChart.js +41 -4
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/MarkPlot.js +2 -1
- package/PieChart/PieArc.d.ts +5 -2
- package/PieChart/PieArc.js +17 -2
- package/PieChart/PieArcLabel.d.ts +1 -1
- package/PieChart/PieArcLabel.js +5 -10
- package/PieChart/PieArcLabelPlot.js +2 -2
- package/PieChart/PieArcPlot.js +2 -2
- package/PieChart/PieChart.js +34 -4
- package/PieChart/index.d.ts +4 -2
- package/PieChart/index.js +37 -27
- package/ResponsiveChartContainer/index.d.ts +13 -3
- package/ScatterChart/ScatterChart.js +34 -4
- package/SparkLineChart/SparkLineChart.js +22 -0
- package/context/CartesianContextProvider.d.ts +21 -1
- package/context/CartesianContextProvider.js +11 -0
- package/context/DrawingProvider.d.ts +18 -0
- package/context/DrawingProvider.js +6 -0
- package/context/HighlightProvider.d.ts +17 -0
- package/context/InteractionProvider.d.ts +6 -0
- package/context/SeriesContextProvider.d.ts +5 -0
- package/esm/BarChart/BarChart.js +41 -4
- package/esm/ChartsAxis/ChartsAxis.js +6 -5
- package/esm/ChartsLegend/ChartsLegend.js +2 -2
- package/esm/ChartsLegend/chartsLegendClasses.js +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +70 -0
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +105 -0
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +105 -0
- package/esm/ChartsReferenceLine/chartsReferenceLineClasses.js +6 -0
- package/esm/ChartsReferenceLine/common.js +20 -0
- package/esm/ChartsReferenceLine/index.js +2 -0
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/esm/ChartsTooltip/ChartsTooltip.js +15 -7
- package/esm/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/esm/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/esm/ChartsTooltip/index.js +2 -1
- package/esm/ChartsTooltip/utils.js +1 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +10 -6
- package/esm/ChartsYAxis/ChartsYAxis.js +10 -6
- package/esm/LineChart/LineChart.js +41 -4
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/MarkPlot.js +2 -1
- package/esm/PieChart/PieArc.js +18 -2
- package/esm/PieChart/PieArcLabel.js +7 -11
- package/esm/PieChart/PieArcLabelPlot.js +1 -1
- package/esm/PieChart/PieArcPlot.js +1 -1
- package/esm/PieChart/PieChart.js +34 -4
- package/esm/PieChart/index.js +2 -2
- package/esm/ScatterChart/ScatterChart.js +34 -4
- package/esm/SparkLineChart/SparkLineChart.js +22 -0
- package/esm/context/CartesianContextProvider.js +11 -0
- package/esm/context/DrawingProvider.js +6 -0
- package/esm/index.js +1 -0
- package/esm/internals/geometry.js +2 -2
- package/hooks/useScale.d.ts +2 -2
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/internals/components/ChartsText.d.ts +1 -1
- package/internals/geometry.d.ts +2 -2
- package/internals/geometry.js +2 -2
- package/internals/isBandScale.d.ts +3 -1
- package/internals/utils.d.ts +5 -0
- package/legacy/BarChart/BarChart.js +41 -4
- package/legacy/ChartsAxis/ChartsAxis.js +6 -5
- package/legacy/ChartsLegend/ChartsLegend.js +2 -2
- package/legacy/ChartsLegend/chartsLegendClasses.js +1 -1
- package/legacy/ChartsReferenceLine/ChartsReferenceLine.js +70 -0
- package/legacy/ChartsReferenceLine/ChartsXReferenceLine.js +105 -0
- package/legacy/ChartsReferenceLine/ChartsYReferenceLine.js +105 -0
- package/legacy/ChartsReferenceLine/chartsReferenceLineClasses.js +6 -0
- package/legacy/ChartsReferenceLine/common.js +20 -0
- package/legacy/ChartsReferenceLine/index.js +2 -0
- package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/legacy/ChartsTooltip/ChartsTooltip.js +20 -12
- package/legacy/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/legacy/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/legacy/ChartsTooltip/index.js +2 -1
- package/legacy/ChartsTooltip/utils.js +1 -1
- package/legacy/ChartsXAxis/ChartsXAxis.js +15 -12
- package/legacy/ChartsYAxis/ChartsYAxis.js +15 -12
- package/legacy/LineChart/LineChart.js +41 -4
- package/legacy/LineChart/LineHighlightPlot.js +1 -1
- package/legacy/LineChart/MarkPlot.js +2 -1
- package/legacy/PieChart/PieArc.js +18 -2
- package/legacy/PieChart/PieArcLabel.js +7 -11
- package/legacy/PieChart/PieArcLabelPlot.js +1 -1
- package/legacy/PieChart/PieArcPlot.js +1 -1
- package/legacy/PieChart/PieChart.js +34 -4
- package/legacy/PieChart/index.js +2 -2
- package/legacy/ScatterChart/ScatterChart.js +34 -4
- package/legacy/SparkLineChart/SparkLineChart.js +22 -0
- package/legacy/context/CartesianContextProvider.js +11 -0
- package/legacy/context/DrawingProvider.js +6 -0
- package/legacy/index.js +2 -1
- package/legacy/internals/geometry.js +2 -2
- package/models/axis.d.ts +33 -13
- package/models/layout.d.ts +6 -0
- package/models/seriesType/common.d.ts +16 -0
- package/modern/BarChart/BarChart.js +41 -4
- package/modern/ChartsAxis/ChartsAxis.js +5 -5
- package/modern/ChartsLegend/ChartsLegend.js +2 -2
- package/modern/ChartsLegend/chartsLegendClasses.js +1 -1
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +70 -0
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +104 -0
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +104 -0
- package/modern/ChartsReferenceLine/chartsReferenceLineClasses.js +6 -0
- package/modern/ChartsReferenceLine/common.js +20 -0
- package/modern/ChartsReferenceLine/index.js +2 -0
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/modern/ChartsTooltip/ChartsTooltip.js +15 -7
- package/modern/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/modern/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/modern/ChartsTooltip/index.js +2 -1
- package/modern/ChartsTooltip/utils.js +1 -1
- package/modern/ChartsXAxis/ChartsXAxis.js +9 -5
- package/modern/ChartsYAxis/ChartsYAxis.js +9 -5
- package/modern/LineChart/LineChart.js +41 -4
- package/modern/LineChart/LineHighlightPlot.js +1 -1
- package/modern/LineChart/MarkPlot.js +2 -1
- package/modern/PieChart/PieArc.js +18 -2
- package/modern/PieChart/PieArcLabel.js +7 -11
- package/modern/PieChart/PieArcLabelPlot.js +1 -1
- package/modern/PieChart/PieArcPlot.js +1 -1
- package/modern/PieChart/PieChart.js +34 -4
- package/modern/PieChart/index.js +2 -2
- package/modern/ScatterChart/ScatterChart.js +34 -4
- package/modern/SparkLineChart/SparkLineChart.js +22 -0
- package/modern/context/CartesianContextProvider.js +11 -0
- package/modern/context/DrawingProvider.js +6 -0
- package/modern/index.js +2 -1
- package/modern/internals/geometry.js +2 -2
- package/package.json +1 -1
- package/themeAugmentation/components.d.ts +1 -0
- package/themeAugmentation/overrides.d.ts +2 -0
- package/ChartsTooltip/tooltipClasses.d.ts +0 -13
- package/ChartsTooltip/tooltipClasses.js +0 -12
- package/esm/ChartsTooltip/tooltipClasses.js +0 -5
- package/legacy/ChartsTooltip/tooltipClasses.js +0 -5
- package/modern/ChartsTooltip/tooltipClasses.js +0 -5
|
@@ -111,6 +111,13 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
111
111
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
112
112
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
113
113
|
// ----------------------------------------------------------------------
|
|
114
|
+
/**
|
|
115
|
+
* Object `{ x, y }` that defines how the charts highlight the mouse position along the x- and y-axes.
|
|
116
|
+
* The two properties accept the following values:
|
|
117
|
+
* - 'none': display nothing.
|
|
118
|
+
* - 'line': display a line at the current mouse position.
|
|
119
|
+
* - 'band': display a band at the current mouse position. Only available with band scale.
|
|
120
|
+
*/
|
|
114
121
|
axisHighlight: PropTypes.shape({
|
|
115
122
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
116
123
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
@@ -121,7 +128,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
121
128
|
* @default xAxisIds[0] The id of the first provided axis
|
|
122
129
|
*/
|
|
123
130
|
bottomAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
124
|
-
axisId: PropTypes.string
|
|
131
|
+
axisId: PropTypes.string,
|
|
125
132
|
classes: PropTypes.object,
|
|
126
133
|
disableLine: PropTypes.bool,
|
|
127
134
|
disableTicks: PropTypes.bool,
|
|
@@ -148,13 +155,25 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
148
155
|
* Color palette used to colorize multiple series.
|
|
149
156
|
*/
|
|
150
157
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
158
|
+
/**
|
|
159
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
160
|
+
*/
|
|
151
161
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
152
162
|
desc: PropTypes.string,
|
|
163
|
+
/**
|
|
164
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
165
|
+
* It might break interactive features, but will improve performance.
|
|
166
|
+
* @default false
|
|
167
|
+
*/
|
|
153
168
|
disableAxisListener: PropTypes.bool,
|
|
154
169
|
/**
|
|
155
170
|
* If `true`, render the line highlight item.
|
|
156
171
|
*/
|
|
157
172
|
disableLineItemHighlight: PropTypes.bool,
|
|
173
|
+
/**
|
|
174
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
175
|
+
* @default undefined
|
|
176
|
+
*/
|
|
158
177
|
height: PropTypes.number,
|
|
159
178
|
/**
|
|
160
179
|
* Indicate which axis to display the left of the charts.
|
|
@@ -162,7 +181,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
162
181
|
* @default yAxisIds[0] The id of the first provided axis
|
|
163
182
|
*/
|
|
164
183
|
leftAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
165
|
-
axisId: PropTypes.string
|
|
184
|
+
axisId: PropTypes.string,
|
|
166
185
|
classes: PropTypes.object,
|
|
167
186
|
disableLine: PropTypes.bool,
|
|
168
187
|
disableTicks: PropTypes.bool,
|
|
@@ -197,6 +216,12 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
197
216
|
slotProps: PropTypes.object,
|
|
198
217
|
slots: PropTypes.object
|
|
199
218
|
}),
|
|
219
|
+
/**
|
|
220
|
+
* The margin between the SVG and the drawing area.
|
|
221
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
222
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
223
|
+
* @default object Depends on the charts type.
|
|
224
|
+
*/
|
|
200
225
|
margin: PropTypes.shape({
|
|
201
226
|
bottom: PropTypes.number,
|
|
202
227
|
left: PropTypes.number,
|
|
@@ -209,7 +234,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
209
234
|
* @default null
|
|
210
235
|
*/
|
|
211
236
|
rightAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
212
|
-
axisId: PropTypes.string
|
|
237
|
+
axisId: PropTypes.string,
|
|
213
238
|
classes: PropTypes.object,
|
|
214
239
|
disableLine: PropTypes.bool,
|
|
215
240
|
disableTicks: PropTypes.bool,
|
|
@@ -279,7 +304,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
279
304
|
* @default null
|
|
280
305
|
*/
|
|
281
306
|
topAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
282
|
-
axisId: PropTypes.string
|
|
307
|
+
axisId: PropTypes.string,
|
|
283
308
|
classes: PropTypes.object,
|
|
284
309
|
disableLine: PropTypes.bool,
|
|
285
310
|
disableTicks: PropTypes.bool,
|
|
@@ -306,7 +331,15 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
306
331
|
x: PropTypes.number,
|
|
307
332
|
y: PropTypes.number
|
|
308
333
|
}),
|
|
334
|
+
/**
|
|
335
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
336
|
+
* @default undefined
|
|
337
|
+
*/
|
|
309
338
|
width: PropTypes.number,
|
|
339
|
+
/**
|
|
340
|
+
* The configuration of the x-axes.
|
|
341
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
342
|
+
*/
|
|
310
343
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
311
344
|
axisId: PropTypes.string,
|
|
312
345
|
classes: PropTypes.object,
|
|
@@ -337,6 +370,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
337
370
|
tickSize: PropTypes.number,
|
|
338
371
|
valueFormatter: PropTypes.func
|
|
339
372
|
})),
|
|
373
|
+
/**
|
|
374
|
+
* The configuration of the y-axes.
|
|
375
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
376
|
+
*/
|
|
340
377
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
341
378
|
axisId: PropTypes.string,
|
|
342
379
|
classes: PropTypes.object,
|
|
@@ -72,7 +72,7 @@ function LineHighlightPlot(props) {
|
|
|
72
72
|
throw new Error(`Axis of id "${xAxisKey}" should have data property to be able to display a line plot.`);
|
|
73
73
|
}
|
|
74
74
|
const x = xScale(xData[highlightedIndex]);
|
|
75
|
-
const y = yScale(stackedData[highlightedIndex][1]);
|
|
75
|
+
const y = yScale(stackedData[highlightedIndex][1]); // This should not be undefined since y should not be a band scale
|
|
76
76
|
return /*#__PURE__*/_jsx(Element, _extends({
|
|
77
77
|
id: seriesId,
|
|
78
78
|
color: series[seriesId].color,
|
|
@@ -125,7 +125,8 @@ function MarkPlot(props) {
|
|
|
125
125
|
shape: "circle",
|
|
126
126
|
color: series[seriesId].color,
|
|
127
127
|
x: x,
|
|
128
|
-
y: y
|
|
128
|
+
y: y // Don't knwo why TS don't get from the filter that y can't be null
|
|
129
|
+
,
|
|
129
130
|
highlightScope: series[seriesId].highlightScope
|
|
130
131
|
}, slotProps?.mark), `${seriesId}-${index}`);
|
|
131
132
|
});
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["id", "dataIndex", "classes", "color", "highlightScope", "onClick", "isFaded", "isHighlighted", "startAngle", "endAngle", "paddingAngle", "innerRadius", "outerRadius", "cornerRadius"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import { arc as d3Arc } from 'd3-shape';
|
|
6
7
|
import { animated, to } from '@react-spring/web';
|
|
7
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -37,7 +38,7 @@ const PieArcRoot = styled(animated.path, {
|
|
|
37
38
|
strokeWidth: 1,
|
|
38
39
|
strokeLinejoin: 'round'
|
|
39
40
|
}));
|
|
40
|
-
|
|
41
|
+
function PieArc(props) {
|
|
41
42
|
const {
|
|
42
43
|
id,
|
|
43
44
|
dataIndex,
|
|
@@ -82,4 +83,19 @@ export default function PieArc(props) {
|
|
|
82
83
|
seriesId: id,
|
|
83
84
|
dataIndex
|
|
84
85
|
})));
|
|
85
|
-
}
|
|
86
|
+
}
|
|
87
|
+
process.env.NODE_ENV !== "production" ? PieArc.propTypes = {
|
|
88
|
+
// ----------------------------- Warning --------------------------------
|
|
89
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
90
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
91
|
+
// ----------------------------------------------------------------------
|
|
92
|
+
classes: PropTypes.object,
|
|
93
|
+
dataIndex: PropTypes.number.isRequired,
|
|
94
|
+
highlightScope: PropTypes.shape({
|
|
95
|
+
faded: PropTypes.oneOf(['global', 'none', 'series']),
|
|
96
|
+
highlighted: PropTypes.oneOf(['item', 'none', 'series'])
|
|
97
|
+
}),
|
|
98
|
+
isFaded: PropTypes.bool.isRequired,
|
|
99
|
+
isHighlighted: PropTypes.bool.isRequired
|
|
100
|
+
} : void 0;
|
|
101
|
+
export { PieArc };
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["id", "classes", "color", "startAngle", "endAngle", "paddingAngle", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "style"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import { animated, to } from '@react-spring/web';
|
|
6
7
|
import { arc as d3Arc } from 'd3-shape';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
10
10
|
import { styled } from '@mui/material/styles';
|
|
@@ -57,7 +57,7 @@ const getLabelPosition = (formattedArcLabel, variable) => (startAngle, endAngle,
|
|
|
57
57
|
}
|
|
58
58
|
return y;
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
function PieArcLabel(props) {
|
|
61
61
|
const {
|
|
62
62
|
id,
|
|
63
63
|
classes: innerClasses,
|
|
@@ -98,12 +98,8 @@ process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
|
98
98
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
99
99
|
// ----------------------------------------------------------------------
|
|
100
100
|
classes: PropTypes.object,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
innerRadius: PropTypes.number,
|
|
108
|
-
outerRadius: PropTypes.number.isRequired
|
|
109
|
-
} : void 0;
|
|
101
|
+
formattedArcLabel: PropTypes.string,
|
|
102
|
+
isFaded: PropTypes.bool.isRequired,
|
|
103
|
+
isHighlighted: PropTypes.bool.isRequired
|
|
104
|
+
} : void 0;
|
|
105
|
+
export { PieArcLabel };
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import { useTransition } from '@react-spring/web';
|
|
7
7
|
import { defaultLabelTransitionConfig } from './dataTransform/transition';
|
|
8
8
|
import { useTransformData } from './dataTransform/useTransformData';
|
|
9
|
-
import PieArcLabel from './PieArcLabel';
|
|
9
|
+
import { PieArcLabel } from './PieArcLabel';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const RATIO = 180 / Math.PI;
|
|
12
12
|
function getItemLabel(arcLabel, arcLabelMinAngle, item) {
|
|
@@ -4,7 +4,7 @@ const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRa
|
|
|
4
4
|
_excluded2 = ["startAngle", "endAngle", "paddingAngle", "innerRadius", "outerRadius", "cornerRadius"];
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useTransition } from '@react-spring/web';
|
|
7
|
-
import PieArc from './PieArc';
|
|
7
|
+
import { PieArc } from './PieArc';
|
|
8
8
|
import { defaultTransitionConfig } from './dataTransform/transition';
|
|
9
9
|
import { useTransformData } from './dataTransform/useTransformData';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -111,7 +111,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
111
111
|
* @default xAxisIds[0] The id of the first provided axis
|
|
112
112
|
*/
|
|
113
113
|
bottomAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
114
|
-
axisId: PropTypes.string
|
|
114
|
+
axisId: PropTypes.string,
|
|
115
115
|
classes: PropTypes.object,
|
|
116
116
|
disableLine: PropTypes.bool,
|
|
117
117
|
disableTicks: PropTypes.bool,
|
|
@@ -138,9 +138,21 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
138
138
|
* Color palette used to colorize multiple series.
|
|
139
139
|
*/
|
|
140
140
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
141
|
+
/**
|
|
142
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
143
|
+
*/
|
|
141
144
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
142
145
|
desc: PropTypes.string,
|
|
146
|
+
/**
|
|
147
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
148
|
+
* It might break interactive features, but will improve performance.
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
143
151
|
disableAxisListener: PropTypes.bool,
|
|
152
|
+
/**
|
|
153
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
154
|
+
* @default undefined
|
|
155
|
+
*/
|
|
144
156
|
height: PropTypes.number,
|
|
145
157
|
/**
|
|
146
158
|
* Indicate which axis to display the left of the charts.
|
|
@@ -148,7 +160,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
148
160
|
* @default yAxisIds[0] The id of the first provided axis
|
|
149
161
|
*/
|
|
150
162
|
leftAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
151
|
-
axisId: PropTypes.string
|
|
163
|
+
axisId: PropTypes.string,
|
|
152
164
|
classes: PropTypes.object,
|
|
153
165
|
disableLine: PropTypes.bool,
|
|
154
166
|
disableTicks: PropTypes.bool,
|
|
@@ -183,6 +195,12 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
183
195
|
slotProps: PropTypes.object,
|
|
184
196
|
slots: PropTypes.object
|
|
185
197
|
}),
|
|
198
|
+
/**
|
|
199
|
+
* The margin between the SVG and the drawing area.
|
|
200
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
201
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
202
|
+
* @default object Depends on the charts type.
|
|
203
|
+
*/
|
|
186
204
|
margin: PropTypes.shape({
|
|
187
205
|
bottom: PropTypes.number,
|
|
188
206
|
left: PropTypes.number,
|
|
@@ -196,7 +214,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
196
214
|
* @default null
|
|
197
215
|
*/
|
|
198
216
|
rightAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
199
|
-
axisId: PropTypes.string
|
|
217
|
+
axisId: PropTypes.string,
|
|
200
218
|
classes: PropTypes.object,
|
|
201
219
|
disableLine: PropTypes.bool,
|
|
202
220
|
disableTicks: PropTypes.bool,
|
|
@@ -287,7 +305,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
287
305
|
* @default null
|
|
288
306
|
*/
|
|
289
307
|
topAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
290
|
-
axisId: PropTypes.string
|
|
308
|
+
axisId: PropTypes.string,
|
|
291
309
|
classes: PropTypes.object,
|
|
292
310
|
disableLine: PropTypes.bool,
|
|
293
311
|
disableTicks: PropTypes.bool,
|
|
@@ -314,7 +332,15 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
314
332
|
x: PropTypes.number,
|
|
315
333
|
y: PropTypes.number
|
|
316
334
|
}),
|
|
335
|
+
/**
|
|
336
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
337
|
+
* @default undefined
|
|
338
|
+
*/
|
|
317
339
|
width: PropTypes.number,
|
|
340
|
+
/**
|
|
341
|
+
* The configuration of the x-axes.
|
|
342
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
343
|
+
*/
|
|
318
344
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
319
345
|
axisId: PropTypes.string,
|
|
320
346
|
classes: PropTypes.object,
|
|
@@ -345,6 +371,10 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
345
371
|
tickSize: PropTypes.number,
|
|
346
372
|
valueFormatter: PropTypes.func
|
|
347
373
|
})),
|
|
374
|
+
/**
|
|
375
|
+
* The configuration of the y-axes.
|
|
376
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
377
|
+
*/
|
|
348
378
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
349
379
|
axisId: PropTypes.string,
|
|
350
380
|
classes: PropTypes.object,
|
package/modern/PieChart/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PiePlot } from './PiePlot';
|
|
2
2
|
export { PieChart } from './PieChart';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export { PieArcLabel, getPieArcLabelUtilityClass, pieArcLabelClasses } from './PieArcLabel';
|
|
4
|
+
export { PieArc, getPieArcUtilityClass, pieArcClasses } from './PieArc';
|
|
@@ -88,7 +88,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
88
88
|
* @default xAxisIds[0] The id of the first provided axis
|
|
89
89
|
*/
|
|
90
90
|
bottomAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
91
|
-
axisId: PropTypes.string
|
|
91
|
+
axisId: PropTypes.string,
|
|
92
92
|
classes: PropTypes.object,
|
|
93
93
|
disableLine: PropTypes.bool,
|
|
94
94
|
disableTicks: PropTypes.bool,
|
|
@@ -115,9 +115,21 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
115
115
|
* Color palette used to colorize multiple series.
|
|
116
116
|
*/
|
|
117
117
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
118
|
+
/**
|
|
119
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
120
|
+
*/
|
|
118
121
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
119
122
|
desc: PropTypes.string,
|
|
123
|
+
/**
|
|
124
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
125
|
+
* It might break interactive features, but will improve performance.
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
120
128
|
disableAxisListener: PropTypes.bool,
|
|
129
|
+
/**
|
|
130
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
131
|
+
* @default undefined
|
|
132
|
+
*/
|
|
121
133
|
height: PropTypes.number,
|
|
122
134
|
/**
|
|
123
135
|
* Indicate which axis to display the left of the charts.
|
|
@@ -125,7 +137,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
125
137
|
* @default yAxisIds[0] The id of the first provided axis
|
|
126
138
|
*/
|
|
127
139
|
leftAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
128
|
-
axisId: PropTypes.string
|
|
140
|
+
axisId: PropTypes.string,
|
|
129
141
|
classes: PropTypes.object,
|
|
130
142
|
disableLine: PropTypes.bool,
|
|
131
143
|
disableTicks: PropTypes.bool,
|
|
@@ -160,6 +172,12 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
160
172
|
slotProps: PropTypes.object,
|
|
161
173
|
slots: PropTypes.object
|
|
162
174
|
}),
|
|
175
|
+
/**
|
|
176
|
+
* The margin between the SVG and the drawing area.
|
|
177
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
178
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
179
|
+
* @default object Depends on the charts type.
|
|
180
|
+
*/
|
|
163
181
|
margin: PropTypes.shape({
|
|
164
182
|
bottom: PropTypes.number,
|
|
165
183
|
left: PropTypes.number,
|
|
@@ -172,7 +190,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
172
190
|
* @default null
|
|
173
191
|
*/
|
|
174
192
|
rightAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
175
|
-
axisId: PropTypes.string
|
|
193
|
+
axisId: PropTypes.string,
|
|
176
194
|
classes: PropTypes.object,
|
|
177
195
|
disableLine: PropTypes.bool,
|
|
178
196
|
disableTicks: PropTypes.bool,
|
|
@@ -238,7 +256,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
238
256
|
* @default null
|
|
239
257
|
*/
|
|
240
258
|
topAxis: PropTypes.oneOfType([PropTypes.shape({
|
|
241
|
-
axisId: PropTypes.string
|
|
259
|
+
axisId: PropTypes.string,
|
|
242
260
|
classes: PropTypes.object,
|
|
243
261
|
disableLine: PropTypes.bool,
|
|
244
262
|
disableTicks: PropTypes.bool,
|
|
@@ -265,7 +283,15 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
265
283
|
x: PropTypes.number,
|
|
266
284
|
y: PropTypes.number
|
|
267
285
|
}),
|
|
286
|
+
/**
|
|
287
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
288
|
+
* @default undefined
|
|
289
|
+
*/
|
|
268
290
|
width: PropTypes.number,
|
|
291
|
+
/**
|
|
292
|
+
* The configuration of the x-axes.
|
|
293
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
294
|
+
*/
|
|
269
295
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
270
296
|
axisId: PropTypes.string,
|
|
271
297
|
classes: PropTypes.object,
|
|
@@ -296,6 +322,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
296
322
|
tickSize: PropTypes.number,
|
|
297
323
|
valueFormatter: PropTypes.func
|
|
298
324
|
})),
|
|
325
|
+
/**
|
|
326
|
+
* The configuration of the y-axes.
|
|
327
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
328
|
+
*/
|
|
299
329
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
300
330
|
axisId: PropTypes.string,
|
|
301
331
|
classes: PropTypes.object,
|
|
@@ -129,10 +129,28 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
129
129
|
* Data to plot.
|
|
130
130
|
*/
|
|
131
131
|
data: PropTypes.arrayOf(PropTypes.number).isRequired,
|
|
132
|
+
/**
|
|
133
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
134
|
+
*/
|
|
132
135
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
133
136
|
desc: PropTypes.string,
|
|
137
|
+
/**
|
|
138
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
139
|
+
* It might break interactive features, but will improve performance.
|
|
140
|
+
* @default false
|
|
141
|
+
*/
|
|
134
142
|
disableAxisListener: PropTypes.bool,
|
|
143
|
+
/**
|
|
144
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
145
|
+
* @default undefined
|
|
146
|
+
*/
|
|
135
147
|
height: PropTypes.number,
|
|
148
|
+
/**
|
|
149
|
+
* The margin between the SVG and the drawing area.
|
|
150
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
151
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
152
|
+
* @default object Depends on the charts type.
|
|
153
|
+
*/
|
|
136
154
|
margin: PropTypes.shape({
|
|
137
155
|
bottom: PropTypes.number,
|
|
138
156
|
left: PropTypes.number,
|
|
@@ -188,6 +206,10 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
188
206
|
x: PropTypes.number,
|
|
189
207
|
y: PropTypes.number
|
|
190
208
|
}),
|
|
209
|
+
/**
|
|
210
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
211
|
+
* @default undefined
|
|
212
|
+
*/
|
|
191
213
|
width: PropTypes.number,
|
|
192
214
|
/**
|
|
193
215
|
* The xAxis configuration.
|
|
@@ -215,7 +215,14 @@ process.env.NODE_ENV !== "production" ? CartesianContextProvider.propTypes = {
|
|
|
215
215
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
216
216
|
// ----------------------------------------------------------------------
|
|
217
217
|
children: PropTypes.node,
|
|
218
|
+
/**
|
|
219
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
220
|
+
*/
|
|
218
221
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
222
|
+
/**
|
|
223
|
+
* The configuration of the x-axes.
|
|
224
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
225
|
+
*/
|
|
219
226
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
220
227
|
axisId: PropTypes.string,
|
|
221
228
|
classes: PropTypes.object,
|
|
@@ -246,6 +253,10 @@ process.env.NODE_ENV !== "production" ? CartesianContextProvider.propTypes = {
|
|
|
246
253
|
tickSize: PropTypes.number,
|
|
247
254
|
valueFormatter: PropTypes.func
|
|
248
255
|
})),
|
|
256
|
+
/**
|
|
257
|
+
* The configuration of the y-axes.
|
|
258
|
+
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
259
|
+
*/
|
|
249
260
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
250
261
|
axisId: PropTypes.string,
|
|
251
262
|
classes: PropTypes.object,
|
|
@@ -46,6 +46,12 @@ process.env.NODE_ENV !== "production" ? DrawingProvider.propTypes = {
|
|
|
46
46
|
// ----------------------------------------------------------------------
|
|
47
47
|
children: PropTypes.node,
|
|
48
48
|
height: PropTypes.number.isRequired,
|
|
49
|
+
/**
|
|
50
|
+
* The margin between the SVG and the drawing area.
|
|
51
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
52
|
+
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
53
|
+
* @default object Depends on the charts type.
|
|
54
|
+
*/
|
|
49
55
|
margin: PropTypes.shape({
|
|
50
56
|
bottom: PropTypes.number,
|
|
51
57
|
left: PropTypes.number,
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v6.18.
|
|
2
|
+
* @mui/x-charts v6.18.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -11,6 +11,7 @@ export * from './hooks';
|
|
|
11
11
|
export * from './colorPalettes';
|
|
12
12
|
export * from './models';
|
|
13
13
|
export * from './ChartsClipPath';
|
|
14
|
+
export * from './ChartsReferenceLine';
|
|
14
15
|
export * from './ChartsAxis';
|
|
15
16
|
export * from './ChartsXAxis';
|
|
16
17
|
export * from './ChartsYAxis';
|
|
@@ -6,8 +6,8 @@ let warnedOnce = false;
|
|
|
6
6
|
* Return the minimal translation along the x-axis to avoid overflow of a rectangle of a given width, height, and rotation.
|
|
7
7
|
* This assumes that all rectangles have the same height and angle between -90 and 90.
|
|
8
8
|
* Otherwise it would be problematic because you need the height/width of the next rectangle to do the correct computation.
|
|
9
|
-
* @param width the side along the x
|
|
10
|
-
* @param height the side along the y
|
|
9
|
+
* @param width the side along the x-axis.
|
|
10
|
+
* @param height the side along the y-axis.
|
|
11
11
|
* @param angle the rotation in degrees.
|
|
12
12
|
*/
|
|
13
13
|
export function getMinXTranslation(width, height, angle = 0) {
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export interface ChartsComponents {
|
|
|
24
24
|
};
|
|
25
25
|
MuiChartsTooltip?: {
|
|
26
26
|
defaultProps?: ComponentsProps['MuiChartsTooltip'];
|
|
27
|
+
styleOverrides?: ComponentsOverrides['MuiChartsTooltip'];
|
|
27
28
|
};
|
|
28
29
|
MuiChartsSurface?: {
|
|
29
30
|
defaultProps?: ComponentsProps['MuiChartsSurface'];
|
|
@@ -2,6 +2,7 @@ import { BarElementClassKey } from '../BarChart/BarElement';
|
|
|
2
2
|
import { ChartsAxisClassKey } from '../ChartsAxis';
|
|
3
3
|
import { ChartsAxisHighlightClassKey } from '../ChartsAxisHighlight';
|
|
4
4
|
import { ChartsLegendClassKey } from '../ChartsLegend';
|
|
5
|
+
import { ChartsTooltipClassKey } from '../ChartsTooltip';
|
|
5
6
|
import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from '../LineChart';
|
|
6
7
|
|
|
7
8
|
// prettier-ignore
|
|
@@ -9,6 +10,7 @@ export interface PickersComponentNameToClassKey {
|
|
|
9
10
|
MuiChartsAxis: ChartsAxisClassKey;
|
|
10
11
|
MuiChartsAxisHighlight: ChartsAxisHighlightClassKey;
|
|
11
12
|
MuiChartsLegend: ChartsLegendClassKey;
|
|
13
|
+
MuiChartsTooltip: ChartsTooltipClassKey;
|
|
12
14
|
|
|
13
15
|
// BarChart components
|
|
14
16
|
MuiBarElement: BarElementClassKey;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ChartsTooltipClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the markCell element. */
|
|
5
|
-
markCell: string;
|
|
6
|
-
/** Styles applied to the labelCell element. */
|
|
7
|
-
labelCell: string;
|
|
8
|
-
/** Styles applied to the valueCell element. */
|
|
9
|
-
valueCell: string;
|
|
10
|
-
}
|
|
11
|
-
export type ChartsTooltipClassKey = keyof ChartsTooltipClasses;
|
|
12
|
-
export declare function getTooltipUtilityClass(slot: string): string;
|
|
13
|
-
export declare const tooltipClasses: ChartsTooltipClasses;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getTooltipUtilityClass = getTooltipUtilityClass;
|
|
7
|
-
exports.tooltipClasses = void 0;
|
|
8
|
-
var _utils = require("@mui/utils");
|
|
9
|
-
function getTooltipUtilityClass(slot) {
|
|
10
|
-
return (0, _utils.unstable_generateUtilityClass)('MuiChartsTooltip', slot);
|
|
11
|
-
}
|
|
12
|
-
const tooltipClasses = exports.tooltipClasses = (0, _utils.unstable_generateUtilityClasses)('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
2
|
-
export function getTooltipUtilityClass(slot) {
|
|
3
|
-
return generateUtilityClass('MuiChartsTooltip', slot);
|
|
4
|
-
}
|
|
5
|
-
export const tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
2
|
-
export function getTooltipUtilityClass(slot) {
|
|
3
|
-
return generateUtilityClass('MuiChartsTooltip', slot);
|
|
4
|
-
}
|
|
5
|
-
export var tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
2
|
-
export function getTooltipUtilityClass(slot) {
|
|
3
|
-
return generateUtilityClass('MuiChartsTooltip', slot);
|
|
4
|
-
}
|
|
5
|
-
export const tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
|