@mui/x-charts 6.0.0-alpha.6 → 6.0.0-alpha.7
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 +18 -2
- package/BarChart/BarChart.js +60 -11
- package/BarChart/BarElement.d.ts +22 -0
- package/BarChart/BarElement.js +21 -10
- package/BarChart/BarPlot.d.ts +14 -1
- package/BarChart/BarPlot.js +23 -4
- package/CHANGELOG.md +62 -0
- package/ChartsAxis/ChartsAxis.d.ts +11 -1
- package/ChartsAxis/ChartsAxis.js +51 -6
- package/ChartsLegend/ChartsLegend.d.ts +25 -2
- package/ChartsLegend/ChartsLegend.js +49 -17
- package/ChartsTooltip/ChartsTooltipTable.d.ts +2 -9
- package/ChartsXAxis/ChartsXAxis.js +44 -9
- package/ChartsYAxis/ChartsYAxis.js +44 -9
- package/LineChart/AreaElement.d.ts +22 -0
- package/LineChart/AreaElement.js +31 -11
- package/LineChart/AreaPlot.d.ts +14 -1
- package/LineChart/AreaPlot.js +29 -3
- package/LineChart/LineChart.d.ts +20 -2
- package/LineChart/LineChart.js +62 -10
- package/LineChart/LineElement.d.ts +22 -0
- package/LineChart/LineElement.js +31 -10
- package/LineChart/LinePlot.d.ts +14 -1
- package/LineChart/LinePlot.js +35 -4
- package/LineChart/MarkPlot.d.ts +24 -1
- package/LineChart/MarkPlot.js +25 -3
- package/PieChart/PieArcLabel.js +0 -1
- package/PieChart/PieChart.d.ts +14 -2
- package/PieChart/PieChart.js +51 -9
- package/PieChart/PiePlot.d.ts +27 -1
- package/PieChart/PiePlot.js +29 -6
- package/ScatterChart/ScatterChart.d.ts +18 -2
- package/ScatterChart/ScatterChart.js +55 -9
- package/ScatterChart/ScatterPlot.d.ts +24 -1
- package/ScatterChart/ScatterPlot.js +28 -4
- package/SparkLineChart/SparkLineChart.d.ts +18 -0
- package/SparkLineChart/SparkLineChart.js +28 -5
- package/colorPalettes/colorPalettes.js +2 -2
- package/context/CartesianContextProvider.js +14 -8
- package/esm/BarChart/BarChart.js +60 -11
- package/esm/BarChart/BarElement.js +21 -11
- package/esm/BarChart/BarPlot.js +23 -4
- package/esm/ChartsAxis/ChartsAxis.js +51 -6
- package/esm/ChartsLegend/ChartsLegend.js +47 -14
- package/esm/ChartsXAxis/ChartsXAxis.js +45 -9
- package/esm/ChartsYAxis/ChartsYAxis.js +45 -9
- package/esm/LineChart/AreaElement.js +31 -11
- package/esm/LineChart/AreaPlot.js +31 -4
- package/esm/LineChart/LineChart.js +62 -10
- package/esm/LineChart/LineElement.js +31 -11
- package/esm/LineChart/LinePlot.js +43 -8
- package/esm/LineChart/MarkPlot.js +28 -4
- package/esm/PieChart/PieArcLabel.js +0 -1
- package/esm/PieChart/PieChart.js +51 -9
- package/esm/PieChart/PiePlot.js +31 -6
- package/esm/ScatterChart/ScatterChart.js +55 -9
- package/esm/ScatterChart/ScatterPlot.js +29 -4
- package/esm/SparkLineChart/SparkLineChart.js +28 -5
- package/esm/colorPalettes/colorPalettes.js +2 -2
- package/esm/context/CartesianContextProvider.js +14 -8
- package/esm/hooks/useTicks.js +9 -6
- package/esm/internals/components/AxisSharedComponents.js +10 -10
- package/hooks/useTicks.d.ts +20 -5
- package/hooks/useTicks.js +9 -6
- package/index.js +1 -1
- package/internals/components/AxisSharedComponents.d.ts +4 -4
- package/internals/components/AxisSharedComponents.js +15 -15
- package/legacy/BarChart/BarChart.js +60 -11
- package/legacy/BarChart/BarElement.js +20 -10
- package/legacy/BarChart/BarPlot.js +23 -4
- package/legacy/ChartsAxis/ChartsAxis.js +51 -6
- package/legacy/ChartsLegend/ChartsLegend.js +46 -15
- package/legacy/ChartsXAxis/ChartsXAxis.js +45 -9
- package/legacy/ChartsYAxis/ChartsYAxis.js +45 -9
- package/legacy/LineChart/AreaElement.js +30 -10
- package/legacy/LineChart/AreaPlot.js +29 -4
- package/legacy/LineChart/LineChart.js +62 -10
- package/legacy/LineChart/LineElement.js +30 -10
- package/legacy/LineChart/LinePlot.js +36 -5
- package/legacy/LineChart/MarkPlot.js +26 -4
- package/legacy/PieChart/PieArcLabel.js +0 -1
- package/legacy/PieChart/PieChart.js +51 -9
- package/legacy/PieChart/PiePlot.js +29 -6
- package/legacy/ScatterChart/ScatterChart.js +55 -9
- package/legacy/ScatterChart/ScatterPlot.js +27 -4
- package/legacy/SparkLineChart/SparkLineChart.js +28 -5
- package/legacy/colorPalettes/colorPalettes.js +2 -2
- package/legacy/context/CartesianContextProvider.js +14 -8
- package/legacy/hooks/useTicks.js +9 -9
- package/legacy/index.js +1 -1
- package/legacy/internals/components/AxisSharedComponents.js +10 -10
- package/models/axis.d.ts +24 -1
- package/modern/BarChart/BarChart.js +60 -11
- package/modern/BarChart/BarElement.js +20 -11
- package/modern/BarChart/BarPlot.js +23 -4
- package/modern/ChartsAxis/ChartsAxis.js +51 -6
- package/modern/ChartsLegend/ChartsLegend.js +46 -14
- package/modern/ChartsXAxis/ChartsXAxis.js +44 -9
- package/modern/ChartsYAxis/ChartsYAxis.js +44 -9
- package/modern/LineChart/AreaElement.js +30 -11
- package/modern/LineChart/AreaPlot.js +31 -4
- package/modern/LineChart/LineChart.js +62 -10
- package/modern/LineChart/LineElement.js +30 -11
- package/modern/LineChart/LinePlot.js +37 -5
- package/modern/LineChart/MarkPlot.js +27 -4
- package/modern/PieChart/PieArcLabel.js +0 -1
- package/modern/PieChart/PieChart.js +51 -9
- package/modern/PieChart/PiePlot.js +30 -6
- package/modern/ScatterChart/ScatterChart.js +55 -9
- package/modern/ScatterChart/ScatterPlot.js +28 -4
- package/modern/SparkLineChart/SparkLineChart.js +28 -5
- package/modern/colorPalettes/colorPalettes.js +2 -2
- package/modern/context/CartesianContextProvider.js +14 -8
- package/modern/hooks/useTicks.js +9 -6
- package/modern/index.js +1 -1
- package/modern/internals/components/AxisSharedComponents.js +10 -10
- package/package.json +2 -2
- package/themeAugmentation/components.d.ts +0 -10
- package/themeAugmentation/overrides.d.ts +0 -2
|
@@ -37,6 +37,8 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
|
|
|
37
37
|
showHighlight,
|
|
38
38
|
axisHighlight: inAxisHighlight,
|
|
39
39
|
children,
|
|
40
|
+
slots,
|
|
41
|
+
slotProps,
|
|
40
42
|
data,
|
|
41
43
|
plotType = 'line',
|
|
42
44
|
valueFormatter = v => v.toString(),
|
|
@@ -73,8 +75,17 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
|
|
|
73
75
|
colors: colors,
|
|
74
76
|
sx: sx,
|
|
75
77
|
disableAxisListener: (!showTooltip || tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
|
|
76
|
-
children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
|
|
77
|
-
|
|
78
|
+
children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
|
|
79
|
+
slots: slots,
|
|
80
|
+
slotProps: slotProps
|
|
81
|
+
}), plotType === 'line' && /*#__PURE__*/_jsxs(React.Fragment, {
|
|
82
|
+
children: [/*#__PURE__*/_jsx(AreaPlot, {
|
|
83
|
+
slots: slots,
|
|
84
|
+
slotProps: slotProps
|
|
85
|
+
}), /*#__PURE__*/_jsx(LinePlot, {
|
|
86
|
+
slots: slots,
|
|
87
|
+
slotProps: slotProps
|
|
88
|
+
}), showHighlight && /*#__PURE__*/_jsx(SparkLineMarkPlot, {})]
|
|
78
89
|
}), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlight)), showTooltip && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltip)), children]
|
|
79
90
|
});
|
|
80
91
|
});
|
|
@@ -134,6 +145,16 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
134
145
|
* @default false
|
|
135
146
|
*/
|
|
136
147
|
showTooltip: PropTypes.bool,
|
|
148
|
+
/**
|
|
149
|
+
* The props used for each component slot.
|
|
150
|
+
* @default {}
|
|
151
|
+
*/
|
|
152
|
+
slotProps: PropTypes.object,
|
|
153
|
+
/**
|
|
154
|
+
* Overridable component slots.
|
|
155
|
+
* @default {}
|
|
156
|
+
*/
|
|
157
|
+
slots: PropTypes.object,
|
|
137
158
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
138
159
|
title: PropTypes.string,
|
|
139
160
|
tooltip: PropTypes.shape({
|
|
@@ -172,15 +193,17 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
172
193
|
label: PropTypes.string,
|
|
173
194
|
labelFontSize: PropTypes.number,
|
|
174
195
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
175
|
-
maxTicks: PropTypes.number,
|
|
176
196
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
177
|
-
minTicks: PropTypes.number,
|
|
178
197
|
position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
179
198
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
199
|
+
slotProps: PropTypes.object,
|
|
200
|
+
slots: PropTypes.object,
|
|
180
201
|
stroke: PropTypes.string,
|
|
181
202
|
tickFontSize: PropTypes.number,
|
|
203
|
+
tickMaxStep: PropTypes.number,
|
|
204
|
+
tickMinStep: PropTypes.number,
|
|
205
|
+
tickNumber: PropTypes.number,
|
|
182
206
|
tickSize: PropTypes.number,
|
|
183
|
-
tickSpacing: PropTypes.number,
|
|
184
207
|
valueFormatter: PropTypes.func
|
|
185
208
|
})
|
|
186
209
|
} : void 0;
|
|
@@ -4,6 +4,6 @@ export const blueberryTwilightPalette = mode => mode === 'dark' ? blueberryTwili
|
|
|
4
4
|
export const mangoFusionPaletteLight = ['#173A5E', '#00A3A0', '#C91B63', '#EF5350', '#FFA726', '#B800D8', '#60009B', '#2E96FF', '#2731C8', '#03008D'];
|
|
5
5
|
export const mangoFusionPaletteDark = ['#41698F', '#19D0CD', '#DE196B', '#FC5F5C', '#FFD771', '#DA00FF', '#9001CB', '#72CCFF', '#2E96FF', '#3B48E0'];
|
|
6
6
|
export const mangoFusionPalette = mode => mode === 'dark' ? mangoFusionPaletteDark : mangoFusionPaletteLight;
|
|
7
|
-
export const cheerfulFiestaPaletteDark = ['#
|
|
8
|
-
export const cheerfulFiestaPaletteLight = ['#
|
|
7
|
+
export const cheerfulFiestaPaletteDark = ['#0059B2', '#2E96FF', '#FFC24C', '#FF9F0E', '#F38200', '#2ABFDE', '#1F94AD', '#BD2C38', '#FF3143', '#FF8282'];
|
|
8
|
+
export const cheerfulFiestaPaletteLight = ['#003A75', '#007FFF', '#FFC24C', '#FF9D09', '#CA6C00', '#127D94', '#1F94AD', '#C82634', '#FF3143', '#FF7E7E'];
|
|
9
9
|
export const cheerfulFiestaPalette = mode => mode === 'dark' ? cheerfulFiestaPaletteDark : cheerfulFiestaPaletteLight;
|
|
@@ -123,7 +123,8 @@ function CartesianContextProvider({
|
|
|
123
123
|
const scaleType = axis.scaleType ?? 'linear';
|
|
124
124
|
const extremums = [axis.min ?? minData, axis.max ?? maxData];
|
|
125
125
|
const ticksNumber = getTicksNumber(_extends({}, axis, {
|
|
126
|
-
range
|
|
126
|
+
range,
|
|
127
|
+
domain: extremums
|
|
127
128
|
}));
|
|
128
129
|
const niceScale = getScale(scaleType, extremums, range).nice(ticksNumber);
|
|
129
130
|
const niceDomain = niceScale.domain();
|
|
@@ -170,7 +171,8 @@ function CartesianContextProvider({
|
|
|
170
171
|
const scaleType = axis.scaleType ?? 'linear';
|
|
171
172
|
const extremums = [axis.min ?? minData, axis.max ?? maxData];
|
|
172
173
|
const ticksNumber = getTicksNumber(_extends({}, axis, {
|
|
173
|
-
range
|
|
174
|
+
range,
|
|
175
|
+
domain: extremums
|
|
174
176
|
}));
|
|
175
177
|
const niceScale = getScale(scaleType, extremums, range).nice(ticksNumber);
|
|
176
178
|
const niceDomain = niceScale.domain();
|
|
@@ -219,15 +221,17 @@ process.env.NODE_ENV !== "production" ? CartesianContextProvider.propTypes = {
|
|
|
219
221
|
label: PropTypes.string,
|
|
220
222
|
labelFontSize: PropTypes.number,
|
|
221
223
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
222
|
-
maxTicks: PropTypes.number,
|
|
223
224
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
224
|
-
minTicks: PropTypes.number,
|
|
225
225
|
position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
226
226
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
227
|
+
slotProps: PropTypes.object,
|
|
228
|
+
slots: PropTypes.object,
|
|
227
229
|
stroke: PropTypes.string,
|
|
228
230
|
tickFontSize: PropTypes.number,
|
|
231
|
+
tickMaxStep: PropTypes.number,
|
|
232
|
+
tickMinStep: PropTypes.number,
|
|
233
|
+
tickNumber: PropTypes.number,
|
|
229
234
|
tickSize: PropTypes.number,
|
|
230
|
-
tickSpacing: PropTypes.number,
|
|
231
235
|
valueFormatter: PropTypes.func
|
|
232
236
|
})),
|
|
233
237
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -243,15 +247,17 @@ process.env.NODE_ENV !== "production" ? CartesianContextProvider.propTypes = {
|
|
|
243
247
|
label: PropTypes.string,
|
|
244
248
|
labelFontSize: PropTypes.number,
|
|
245
249
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
246
|
-
maxTicks: PropTypes.number,
|
|
247
250
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
248
|
-
minTicks: PropTypes.number,
|
|
249
251
|
position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
250
252
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
253
|
+
slotProps: PropTypes.object,
|
|
254
|
+
slots: PropTypes.object,
|
|
251
255
|
stroke: PropTypes.string,
|
|
252
256
|
tickFontSize: PropTypes.number,
|
|
257
|
+
tickMaxStep: PropTypes.number,
|
|
258
|
+
tickMinStep: PropTypes.number,
|
|
259
|
+
tickNumber: PropTypes.number,
|
|
253
260
|
tickSize: PropTypes.number,
|
|
254
|
-
tickSpacing: PropTypes.number,
|
|
255
261
|
valueFormatter: PropTypes.func
|
|
256
262
|
}))
|
|
257
263
|
} : void 0;
|
package/modern/hooks/useTicks.js
CHANGED
|
@@ -2,13 +2,16 @@ import * as React from 'react';
|
|
|
2
2
|
import { isBandScale } from '../internals/isBandScale';
|
|
3
3
|
export function getTicksNumber(params) {
|
|
4
4
|
const {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
range
|
|
5
|
+
tickMaxStep,
|
|
6
|
+
tickMinStep,
|
|
7
|
+
tickNumber,
|
|
8
|
+
range,
|
|
9
|
+
domain
|
|
9
10
|
} = params;
|
|
10
|
-
const
|
|
11
|
-
|
|
11
|
+
const maxTicks = tickMinStep === undefined ? 999 : Math.floor(Math.abs(domain[1] - domain[0]) / tickMinStep);
|
|
12
|
+
const minTicks = tickMaxStep === undefined ? 2 : Math.ceil(Math.abs(domain[1] - domain[0]) / tickMaxStep);
|
|
13
|
+
const defaultizedTickNumber = tickNumber ?? Math.floor(Math.abs(range[1] - range[0]) / 50);
|
|
14
|
+
return Math.min(maxTicks, Math.max(minTicks, defaultizedTickNumber));
|
|
12
15
|
}
|
|
13
16
|
function useTicks(options) {
|
|
14
17
|
const {
|
package/modern/index.js
CHANGED
|
@@ -8,39 +8,39 @@ export const AxisRoot = styled('g', {
|
|
|
8
8
|
})({
|
|
9
9
|
[`&.${axisClasses.directionY}`]: {
|
|
10
10
|
[`.${axisClasses.tickLabel}`]: {
|
|
11
|
-
|
|
11
|
+
dominantBaseline: 'middle'
|
|
12
12
|
},
|
|
13
13
|
[`.${axisClasses.label}`]: {
|
|
14
|
-
|
|
14
|
+
dominantBaseline: 'auto',
|
|
15
15
|
textAnchor: 'middle'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
[`&.${axisClasses.left}`]: {
|
|
19
19
|
[`.${axisClasses.tickLabel}`]: {
|
|
20
|
-
|
|
20
|
+
dominantBaseline: 'central',
|
|
21
21
|
textAnchor: 'end'
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
[`&.${axisClasses.right}`]: {
|
|
25
25
|
[`.${axisClasses.tickLabel}`]: {
|
|
26
|
-
|
|
26
|
+
dominantBaseline: 'central',
|
|
27
27
|
textAnchor: 'start'
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
[`&.${axisClasses.bottom}`]: {
|
|
31
31
|
[`.${axisClasses.tickLabel}, .${axisClasses.label}`]: {
|
|
32
|
-
|
|
32
|
+
dominantBaseline: 'hanging',
|
|
33
33
|
textAnchor: 'middle'
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
[`&.${axisClasses.top}`]: {
|
|
37
37
|
[`.${axisClasses.tickLabel}, .${axisClasses.label}`]: {
|
|
38
|
-
|
|
38
|
+
dominantBaseline: 'baseline',
|
|
39
39
|
textAnchor: 'middle'
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
export const
|
|
43
|
+
export const ChartsLine = styled('line', {
|
|
44
44
|
name: 'MuiChartsAxis',
|
|
45
45
|
slot: 'Line',
|
|
46
46
|
overridesResolver: (props, styles) => styles.line
|
|
@@ -51,7 +51,7 @@ export const Line = styled('line', {
|
|
|
51
51
|
shapeRendering: 'crispEdges',
|
|
52
52
|
strokeWidth: 1
|
|
53
53
|
}));
|
|
54
|
-
export const
|
|
54
|
+
export const ChartsTick = styled('line', {
|
|
55
55
|
name: 'MuiChartsAxis',
|
|
56
56
|
slot: 'Tick',
|
|
57
57
|
overridesResolver: (props, styles) => styles.tick
|
|
@@ -61,7 +61,7 @@ export const Tick = styled('line', {
|
|
|
61
61
|
stroke: theme.palette.text.primary,
|
|
62
62
|
shapeRendering: 'crispEdges'
|
|
63
63
|
}));
|
|
64
|
-
export const
|
|
64
|
+
export const ChartsTickLabel = styled('text', {
|
|
65
65
|
name: 'MuiChartsAxis',
|
|
66
66
|
slot: 'TickLabel',
|
|
67
67
|
overridesResolver: (props, styles) => styles.tickLabel
|
|
@@ -70,7 +70,7 @@ export const TickLabel = styled('text', {
|
|
|
70
70
|
}) => _extends({}, theme.typography.caption, {
|
|
71
71
|
fill: theme.palette.text.primary
|
|
72
72
|
}));
|
|
73
|
-
export const
|
|
73
|
+
export const ChartsLabel = styled('text', {
|
|
74
74
|
name: 'MuiChartsAxis',
|
|
75
75
|
slot: 'Label',
|
|
76
76
|
overridesResolver: (props, styles) => styles.label
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.7",
|
|
4
4
|
"description": "The community edition of the charts components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.22.6",
|
|
31
|
-
"clsx": "^
|
|
31
|
+
"clsx": "^2.0.0",
|
|
32
32
|
"d3-color": "^3.1.0",
|
|
33
33
|
"d3-scale": "^4.0.2",
|
|
34
34
|
"d3-shape": "^3.2.0",
|
|
@@ -7,19 +7,15 @@ export interface ChartsComponents {
|
|
|
7
7
|
};
|
|
8
8
|
MuiChartsXAxis?: {
|
|
9
9
|
defaultProps?: ComponentsProps['MuiChartsXAxis'];
|
|
10
|
-
styleOverrides?: ComponentsOverrides['MuiChartsXAxis'];
|
|
11
10
|
};
|
|
12
11
|
MuiChartsYAxis?: {
|
|
13
12
|
defaultProps?: ComponentsProps['MuiChartsYAxis'];
|
|
14
|
-
styleOverrides?: ComponentsOverrides['MuiChartsYAxis'];
|
|
15
13
|
};
|
|
16
14
|
MuiChartsAxisHighlight?: {
|
|
17
15
|
defaultProps?: ComponentsProps['MuiChartsAxisHighlight'];
|
|
18
|
-
styleOverrides?: never; // ComponentsOverrides['MuiChartsAxisHighlight'];
|
|
19
16
|
};
|
|
20
17
|
MuiChartsClipPath?: {
|
|
21
18
|
defaultProps?: ComponentsProps['MuiChartsClipPath'];
|
|
22
|
-
styleOverrides?: never; // ComponentsOverrides['MuiChartsClipPath'];
|
|
23
19
|
};
|
|
24
20
|
MuiChartsLegend?: {
|
|
25
21
|
defaultProps?: ComponentsProps['MuiChartsLegend'];
|
|
@@ -27,15 +23,12 @@ export interface ChartsComponents {
|
|
|
27
23
|
};
|
|
28
24
|
MuiChartsTooltip?: {
|
|
29
25
|
defaultProps?: ComponentsProps['MuiChartsTooltip'];
|
|
30
|
-
styleOverrides?: never; // ComponentsOverrides['MuiChartsTooltip'];
|
|
31
26
|
};
|
|
32
27
|
MuiChartsSurface?: {
|
|
33
28
|
defaultProps?: ComponentsProps['MuiChartsSurface'];
|
|
34
|
-
styleOverrides?: never; // ComponentsOverrides['MuiChartsSurface'];
|
|
35
29
|
};
|
|
36
30
|
MuiBarChart?: {
|
|
37
31
|
defaultProps?: ComponentsProps['MuiBarChart'];
|
|
38
|
-
styleOverrides?: never; // ComponentsOverrides['MuiBarChart'];
|
|
39
32
|
};
|
|
40
33
|
MuiBarElement?: {
|
|
41
34
|
defaultProps?: ComponentsProps['MuiBarElement'];
|
|
@@ -43,7 +36,6 @@ export interface ChartsComponents {
|
|
|
43
36
|
};
|
|
44
37
|
MuiLineChart?: {
|
|
45
38
|
defaultProps?: ComponentsProps['MuiLineChart'];
|
|
46
|
-
styleOverrides?: never; // ComponentsOverrides['MuiLineChart'];
|
|
47
39
|
};
|
|
48
40
|
MuiAreaElement?: {
|
|
49
41
|
defaultProps?: ComponentsProps['MuiAreaElement'];
|
|
@@ -59,11 +51,9 @@ export interface ChartsComponents {
|
|
|
59
51
|
};
|
|
60
52
|
MuiScatterChart?: {
|
|
61
53
|
defaultProps?: ComponentsProps['MuiScatterChart'];
|
|
62
|
-
styleOverrides?: never; // ComponentsOverrides['MuiScatterChart'];
|
|
63
54
|
};
|
|
64
55
|
MuiScatter?: {
|
|
65
56
|
defaultProps?: ComponentsProps['MuiScatter'];
|
|
66
|
-
styleOverrides?: never; // ComponentsOverrides['MuiScatter'];
|
|
67
57
|
};
|
|
68
58
|
}
|
|
69
59
|
|
|
@@ -6,8 +6,6 @@ import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from '.
|
|
|
6
6
|
// prettier-ignore
|
|
7
7
|
export interface PickersComponentNameToClassKey {
|
|
8
8
|
MuiChartsAxis: ChartsAxisClassKey;
|
|
9
|
-
MuiChartsXAxis: ChartsAxisClassKey;
|
|
10
|
-
MuiChartsYAxis: ChartsAxisClassKey;
|
|
11
9
|
MuiChartsLegend: ChartsLegendClassKey;
|
|
12
10
|
|
|
13
11
|
// BarChart components
|