@mui/x-charts 8.27.5 → 8.28.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/BarLabel/barLabelClasses.d.ts +12 -7
- package/BarChart/BarLabel/barLabelClasses.js +5 -5
- package/BarChart/barElementClasses.d.ts +10 -6
- package/BarChart/barElementClasses.js +5 -5
- package/BarChart/index.d.ts +1 -1
- package/BarChart/index.js +1 -8
- package/CHANGELOG.md +155 -0
- package/LineChart/AreaElement.d.ts +9 -5
- package/LineChart/AreaElement.js +7 -6
- package/LineChart/CircleMarkElement.js +1 -0
- package/LineChart/LineElement.d.ts +9 -5
- package/LineChart/LineElement.js +7 -6
- package/LineChart/LineHighlightElement.d.ts +4 -4
- package/LineChart/LineHighlightElement.js +5 -5
- package/LineChart/MarkElement.js +1 -0
- package/LineChart/index.d.ts +1 -1
- package/LineChart/index.js +1 -8
- package/LineChart/markElementClasses.d.ts +14 -7
- package/LineChart/markElementClasses.js +5 -5
- package/PieChart/FocusedPieArc.js +4 -1
- package/PieChart/PieArc.d.ts +15 -12
- package/PieChart/PieArc.js +25 -7
- package/PieChart/PieArcLabel.d.ts +16 -2
- package/PieChart/PieArcLabel.js +28 -5
- package/PieChart/PieArcLabelPlot.js +6 -1
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/RadarChart/RadarAxis/RadarAxis.js +6 -4
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +27 -3
- package/RadarChart/RadarAxis/radarAxisClasses.js +19 -0
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -13
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +29 -4
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +31 -1
- package/RadarChart/RadarGrid/RadarGrid.js +8 -1
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +27 -3
- package/RadarChart/RadarGrid/radarGridClasses.js +19 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +7 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -3
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +26 -3
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +19 -0
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/radarClasses.d.ts +32 -0
- package/RadarChart/radarClasses.js +36 -0
- package/ScatterChart/index.d.ts +1 -1
- package/ScatterChart/index.js +1 -8
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +12 -7
- package/esm/BarChart/BarLabel/barLabelClasses.js +5 -5
- package/esm/BarChart/barElementClasses.d.ts +10 -6
- package/esm/BarChart/barElementClasses.js +5 -5
- package/esm/BarChart/index.d.ts +1 -1
- package/esm/BarChart/index.js +1 -1
- package/esm/LineChart/AreaElement.d.ts +9 -5
- package/esm/LineChart/AreaElement.js +7 -6
- package/esm/LineChart/CircleMarkElement.js +1 -0
- package/esm/LineChart/LineElement.d.ts +9 -5
- package/esm/LineChart/LineElement.js +7 -6
- package/esm/LineChart/LineHighlightElement.d.ts +4 -4
- package/esm/LineChart/LineHighlightElement.js +5 -5
- package/esm/LineChart/MarkElement.js +1 -0
- package/esm/LineChart/index.d.ts +1 -1
- package/esm/LineChart/index.js +1 -1
- package/esm/LineChart/markElementClasses.d.ts +14 -7
- package/esm/LineChart/markElementClasses.js +5 -5
- package/esm/PieChart/FocusedPieArc.js +4 -1
- package/esm/PieChart/PieArc.d.ts +15 -12
- package/esm/PieChart/PieArc.js +27 -7
- package/esm/PieChart/PieArcLabel.d.ts +16 -2
- package/esm/PieChart/PieArcLabel.js +30 -5
- package/esm/PieChart/PieArcLabelPlot.js +6 -1
- package/esm/PieChart/PieArcPlot.js +6 -1
- package/esm/PieChart/PiePlot.d.ts +1 -0
- package/esm/PieChart/PiePlot.js +4 -1
- package/esm/PieChart/pieClasses.d.ts +22 -1
- package/esm/PieChart/pieClasses.js +10 -3
- package/esm/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/esm/RadarChart/RadarAxis/radarAxisClasses.d.ts +27 -3
- package/esm/RadarChart/RadarAxis/radarAxisClasses.js +20 -0
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +7 -14
- package/esm/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +29 -4
- package/esm/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +30 -1
- package/esm/RadarChart/RadarGrid/RadarGrid.js +9 -2
- package/esm/RadarChart/RadarGrid/radarGridClasses.d.ts +27 -3
- package/esm/RadarChart/RadarGrid/radarGridClasses.js +20 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +8 -2
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -2
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -3
- package/esm/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +26 -3
- package/esm/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +20 -0
- package/esm/RadarChart/index.d.ts +3 -1
- package/esm/RadarChart/index.js +2 -1
- package/esm/RadarChart/radarClasses.d.ts +32 -0
- package/esm/RadarChart/radarClasses.js +27 -0
- package/esm/ScatterChart/index.d.ts +1 -1
- package/esm/ScatterChart/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +10 -6
- package/esm/themeAugmentation/components.d.ts +9 -0
- package/esm/themeAugmentation/overrides.d.ts +4 -0
- package/index.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +8 -4
- package/package.json +3 -3
- package/themeAugmentation/components.d.ts +9 -0
- package/themeAugmentation/overrides.d.ts +4 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface RadarClasses {
|
|
2
|
+
/** Styles applied to the radar axis root element. */
|
|
3
|
+
axisRoot: string;
|
|
4
|
+
/** Styles applied to the radar axis line element. */
|
|
5
|
+
axisLine: string;
|
|
6
|
+
/** Styles applied to every radar axis label element. */
|
|
7
|
+
axisLabel: string;
|
|
8
|
+
/** Styles applied to every radial line element of the grid. */
|
|
9
|
+
gridRadial: string;
|
|
10
|
+
/** Styles applied to every divider element of the grid. */
|
|
11
|
+
gridDivider: string;
|
|
12
|
+
/** Styles applied to every stripe element of the grid. */
|
|
13
|
+
gridStripe: string;
|
|
14
|
+
/** Styles applied to the series plot root element. */
|
|
15
|
+
seriesRoot: string;
|
|
16
|
+
/** Styles applied to the series area element. */
|
|
17
|
+
seriesArea: string;
|
|
18
|
+
/** Styles applied to the series mark element. */
|
|
19
|
+
seriesMark: string;
|
|
20
|
+
/** Styles applied to the axis highlight root element. */
|
|
21
|
+
axisHighlightRoot: string;
|
|
22
|
+
/** Styles applied to the axis highlight line element. */
|
|
23
|
+
axisHighlightLine: string;
|
|
24
|
+
/** Styles applied to every axis highlight dot element. */
|
|
25
|
+
axisHighlightDot: string;
|
|
26
|
+
}
|
|
27
|
+
export type RadarClassKey = keyof RadarClasses;
|
|
28
|
+
export declare function getRadarUtilityClass(slot: string): string;
|
|
29
|
+
export declare const radarClasses: RadarClasses;
|
|
30
|
+
export declare const useUtilityClasses: (options?: {
|
|
31
|
+
classes?: Partial<RadarClasses>;
|
|
32
|
+
}) => Record<"axisLine" | "axisLabel" | "axisRoot" | "gridRadial" | "gridDivider" | "gridStripe" | "seriesRoot" | "seriesArea" | "seriesMark" | "axisHighlightRoot" | "axisHighlightLine" | "axisHighlightDot", string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
export function getRadarUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiRadarChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const radarClasses = generateUtilityClasses('MuiRadarChart', ['axisRoot', 'axisLine', 'axisLabel', 'gridRadial', 'gridDivider', 'gridStripe', 'seriesRoot', 'seriesArea', 'seriesMark', 'axisHighlightRoot', 'axisHighlightLine', 'axisHighlightDot']);
|
|
8
|
+
export const useUtilityClasses = options => {
|
|
9
|
+
const {
|
|
10
|
+
classes
|
|
11
|
+
} = options ?? {};
|
|
12
|
+
const slots = {
|
|
13
|
+
axisRoot: ['axisRoot'],
|
|
14
|
+
axisLine: ['axisLine'],
|
|
15
|
+
axisLabel: ['axisLabel'],
|
|
16
|
+
gridRadial: ['gridRadial'],
|
|
17
|
+
gridDivider: ['gridDivider'],
|
|
18
|
+
gridStripe: ['gridStripe'],
|
|
19
|
+
seriesRoot: ['seriesRoot'],
|
|
20
|
+
seriesArea: ['seriesArea'],
|
|
21
|
+
seriesMark: ['seriesMark'],
|
|
22
|
+
axisHighlightRoot: ['axisHighlightRoot'],
|
|
23
|
+
axisHighlightLine: ['axisHighlightLine'],
|
|
24
|
+
axisHighlightDot: ['axisHighlightDot']
|
|
25
|
+
};
|
|
26
|
+
return composeClasses(slots, getRadarUtilityClass, classes);
|
|
27
|
+
};
|
|
@@ -5,5 +5,5 @@ export * from "./ScatterMarker.types.js";
|
|
|
5
5
|
export * from "./ScatterMarker.js";
|
|
6
6
|
export * from "./FocusedScatterMark.js";
|
|
7
7
|
export * from "./ScatterChart.plugins.js";
|
|
8
|
-
export { scatterClasses
|
|
8
|
+
export { scatterClasses } from "./scatterClasses.js";
|
|
9
9
|
export type { ScatterClassKey, ScatterClasses } from "./scatterClasses.js";
|
|
@@ -5,4 +5,4 @@ export * from "./ScatterMarker.types.js";
|
|
|
5
5
|
export * from "./ScatterMarker.js";
|
|
6
6
|
export * from "./FocusedScatterMark.js";
|
|
7
7
|
export * from "./ScatterChart.plugins.js";
|
|
8
|
-
export { scatterClasses
|
|
8
|
+
export { scatterClasses } from "./scatterClasses.js";
|
package/esm/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
|
2
2
|
import { selectorChartRawXAxis, selectorChartRawYAxis } from "./useChartCartesianAxisLayout.selectors.js";
|
|
3
3
|
import { selectorChartSeriesConfig, selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.js";
|
|
4
4
|
import { computeAxisValue } from "./computeAxisValue.js";
|
|
5
|
-
import {
|
|
5
|
+
import { selectorChartXAxisWithDomains, selectorChartYAxisWithDomains, selectorChartZoomOptionsLookup } from "./useChartCartesianAxisRendering.selectors.js";
|
|
6
6
|
import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/index.js";
|
|
7
7
|
import { ZOOM_SLIDER_PREVIEW_SIZE } from "../../../constants.js";
|
|
8
|
-
import { getRange } from "./getAxisScale.js";
|
|
8
|
+
import { getNormalizedAxisScale, getRange } from "./getAxisScale.js";
|
|
9
9
|
import { zoomScaleRange } from "./zoom.js";
|
|
10
10
|
import { isOrdinalScale } from "../../../scaleGuards.js";
|
|
11
11
|
function createPreviewDrawingArea(axisDirection, mainChartDrawingArea) {
|
|
@@ -25,14 +25,16 @@ function createPreviewDrawingArea(axisDirection, mainChartDrawingArea) {
|
|
|
25
25
|
bottom: mainChartDrawingArea.height
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
export const selectorChartPreviewXScales = createSelectorMemoized(selectorChartRawXAxis, selectorChartDrawingArea, selectorChartZoomOptionsLookup,
|
|
28
|
+
export const selectorChartPreviewXScales = createSelectorMemoized(selectorChartRawXAxis, selectorChartDrawingArea, selectorChartZoomOptionsLookup, selectorChartXAxisWithDomains, function selectorChartPreviewXScales(xAxes, chartDrawingArea, zoomOptions, {
|
|
29
|
+
domains: unfilteredDomains
|
|
30
|
+
}, axisId) {
|
|
29
31
|
const hasAxis = xAxes?.some(axis => axis.id === axisId);
|
|
30
32
|
const drawingArea = createPreviewDrawingArea(hasAxis ? 'x' : 'y', chartDrawingArea);
|
|
31
33
|
const options = zoomOptions[axisId];
|
|
32
34
|
const scales = {};
|
|
33
35
|
xAxes?.forEach(eachAxis => {
|
|
34
36
|
const axis = eachAxis;
|
|
35
|
-
const scale =
|
|
37
|
+
const scale = getNormalizedAxisScale(axis, unfilteredDomains[axis.id].domain);
|
|
36
38
|
const range = getRange(drawingArea, 'x', axis);
|
|
37
39
|
const zoomedRange = zoomScaleRange(range, [options.minStart, options.maxEnd]);
|
|
38
40
|
scale.range(zoomedRange);
|
|
@@ -69,14 +71,16 @@ export const selectorChartPreviewComputedXAxis = createSelectorMemoized(selector
|
|
|
69
71
|
}
|
|
70
72
|
return computedAxes.axis;
|
|
71
73
|
});
|
|
72
|
-
export const selectorChartPreviewYScales = createSelectorMemoized(selectorChartRawYAxis, selectorChartDrawingArea, selectorChartZoomOptionsLookup,
|
|
74
|
+
export const selectorChartPreviewYScales = createSelectorMemoized(selectorChartRawYAxis, selectorChartDrawingArea, selectorChartZoomOptionsLookup, selectorChartYAxisWithDomains, function selectorChartPreviewYScales(yAxes, chartDrawingArea, zoomOptions, {
|
|
75
|
+
domains: unfilteredDomains
|
|
76
|
+
}, axisId) {
|
|
73
77
|
const hasAxis = yAxes?.some(axis => axis.id === axisId);
|
|
74
78
|
const drawingArea = createPreviewDrawingArea(hasAxis ? 'y' : 'x', chartDrawingArea);
|
|
75
79
|
const options = zoomOptions[axisId];
|
|
76
80
|
const scales = {};
|
|
77
81
|
yAxes?.forEach(eachAxis => {
|
|
78
82
|
const axis = eachAxis;
|
|
79
|
-
const scale =
|
|
83
|
+
const scale = getNormalizedAxisScale(axis, unfilteredDomains[axis.id].domain);
|
|
80
84
|
let range = getRange(drawingArea, 'y', axis);
|
|
81
85
|
if (isOrdinalScale(scale)) {
|
|
82
86
|
range = range.reverse();
|
|
@@ -77,6 +77,12 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
77
77
|
MuiMarkElement?: {
|
|
78
78
|
styleOverrides?: ComponentsOverrides<Theme>['MuiMarkElement'];
|
|
79
79
|
};
|
|
80
|
+
MuiPieArcPlot?: {
|
|
81
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiPieArcPlot'];
|
|
82
|
+
};
|
|
83
|
+
MuiPieArcLabelPlot?: {
|
|
84
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiPieArcLabelPlot'];
|
|
85
|
+
};
|
|
80
86
|
MuiScatterChart?: {
|
|
81
87
|
defaultProps?: ComponentsProps['MuiScatterChart'];
|
|
82
88
|
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
@@ -85,6 +91,9 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
85
91
|
MuiScatter?: {
|
|
86
92
|
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
87
93
|
};
|
|
94
|
+
MuiRadarChart?: {
|
|
95
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiRadarChart'];
|
|
96
|
+
};
|
|
88
97
|
MuiGauge?: {
|
|
89
98
|
styleOverrides?: ComponentsOverrides<Theme>['MuiGauge'];
|
|
90
99
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type GaugeClassKey } from "../Gauge/index.js";
|
|
2
|
+
import { type RadarClassKey } from "../RadarChart/radarClasses.js";
|
|
2
3
|
import { type BarClassKey } from "../BarChart/barClasses.js";
|
|
3
4
|
import { type BarLabelClassKey } from "../BarChart/index.js";
|
|
4
5
|
import { type BarElementClassKey } from "../BarChart/barElementClasses.js";
|
|
@@ -21,6 +22,8 @@ export interface ChartsComponentNameToClassKey {
|
|
|
21
22
|
MuiBarElement: BarElementClassKey;
|
|
22
23
|
/** @deprecated Use `MuiBarChart` instead. */
|
|
23
24
|
MuiBarLabel: BarLabelClassKey;
|
|
25
|
+
MuiPieArcPlot: 'root';
|
|
26
|
+
MuiPieArcLabelPlot: 'root';
|
|
24
27
|
MuiAreaPlot: 'root';
|
|
25
28
|
MuiLinePlot: 'root';
|
|
26
29
|
MuiMarkPlot: 'root';
|
|
@@ -31,6 +34,7 @@ export interface ChartsComponentNameToClassKey {
|
|
|
31
34
|
/** @deprecated Use `MuiLineChart` instead. */
|
|
32
35
|
MuiMarkElement: MarkElementClassKey;
|
|
33
36
|
MuiScatterChart: ScatterClassKey;
|
|
37
|
+
MuiRadarChart: RadarClassKey;
|
|
34
38
|
MuiGauge: GaugeClassKey;
|
|
35
39
|
}
|
|
36
40
|
declare module '@mui/material/styles' {
|
package/index.js
CHANGED
|
@@ -31,14 +31,16 @@ function createPreviewDrawingArea(axisDirection, mainChartDrawingArea) {
|
|
|
31
31
|
bottom: mainChartDrawingArea.height
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
const selectorChartPreviewXScales = exports.selectorChartPreviewXScales = (0, _store.createSelectorMemoized)(_useChartCartesianAxisLayout.selectorChartRawXAxis, _useChartDimensions.selectorChartDrawingArea, _useChartCartesianAxisRendering.selectorChartZoomOptionsLookup, _useChartCartesianAxisRendering.
|
|
34
|
+
const selectorChartPreviewXScales = exports.selectorChartPreviewXScales = (0, _store.createSelectorMemoized)(_useChartCartesianAxisLayout.selectorChartRawXAxis, _useChartDimensions.selectorChartDrawingArea, _useChartCartesianAxisRendering.selectorChartZoomOptionsLookup, _useChartCartesianAxisRendering.selectorChartXAxisWithDomains, function selectorChartPreviewXScales(xAxes, chartDrawingArea, zoomOptions, {
|
|
35
|
+
domains: unfilteredDomains
|
|
36
|
+
}, axisId) {
|
|
35
37
|
const hasAxis = xAxes?.some(axis => axis.id === axisId);
|
|
36
38
|
const drawingArea = createPreviewDrawingArea(hasAxis ? 'x' : 'y', chartDrawingArea);
|
|
37
39
|
const options = zoomOptions[axisId];
|
|
38
40
|
const scales = {};
|
|
39
41
|
xAxes?.forEach(eachAxis => {
|
|
40
42
|
const axis = eachAxis;
|
|
41
|
-
const scale =
|
|
43
|
+
const scale = (0, _getAxisScale.getNormalizedAxisScale)(axis, unfilteredDomains[axis.id].domain);
|
|
42
44
|
const range = (0, _getAxisScale.getRange)(drawingArea, 'x', axis);
|
|
43
45
|
const zoomedRange = (0, _zoom.zoomScaleRange)(range, [options.minStart, options.maxEnd]);
|
|
44
46
|
scale.range(zoomedRange);
|
|
@@ -75,14 +77,16 @@ const selectorChartPreviewComputedXAxis = exports.selectorChartPreviewComputedXA
|
|
|
75
77
|
}
|
|
76
78
|
return computedAxes.axis;
|
|
77
79
|
});
|
|
78
|
-
const selectorChartPreviewYScales = exports.selectorChartPreviewYScales = (0, _store.createSelectorMemoized)(_useChartCartesianAxisLayout.selectorChartRawYAxis, _useChartDimensions.selectorChartDrawingArea, _useChartCartesianAxisRendering.selectorChartZoomOptionsLookup, _useChartCartesianAxisRendering.
|
|
80
|
+
const selectorChartPreviewYScales = exports.selectorChartPreviewYScales = (0, _store.createSelectorMemoized)(_useChartCartesianAxisLayout.selectorChartRawYAxis, _useChartDimensions.selectorChartDrawingArea, _useChartCartesianAxisRendering.selectorChartZoomOptionsLookup, _useChartCartesianAxisRendering.selectorChartYAxisWithDomains, function selectorChartPreviewYScales(yAxes, chartDrawingArea, zoomOptions, {
|
|
81
|
+
domains: unfilteredDomains
|
|
82
|
+
}, axisId) {
|
|
79
83
|
const hasAxis = yAxes?.some(axis => axis.id === axisId);
|
|
80
84
|
const drawingArea = createPreviewDrawingArea(hasAxis ? 'y' : 'x', chartDrawingArea);
|
|
81
85
|
const options = zoomOptions[axisId];
|
|
82
86
|
const scales = {};
|
|
83
87
|
yAxes?.forEach(eachAxis => {
|
|
84
88
|
const axis = eachAxis;
|
|
85
|
-
const scale =
|
|
89
|
+
const scale = (0, _getAxisScale.getNormalizedAxisScale)(axis, unfilteredDomains[axis.id].domain);
|
|
86
90
|
let range = (0, _getAxisScale.getRange)(drawingArea, 'y', axis);
|
|
87
91
|
if ((0, _scaleGuards.isOrdinalScale)(scale)) {
|
|
88
92
|
range = range.reverse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.28.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"reselect": "^5.1.1",
|
|
36
36
|
"use-sync-external-store": "^1.6.0",
|
|
37
|
-
"@mui/x-internals": "8.26.0",
|
|
38
37
|
"@mui/x-charts-vendor": "8.26.0",
|
|
39
|
-
"@mui/x-internal-gestures": "0.4.0"
|
|
38
|
+
"@mui/x-internal-gestures": "0.4.0",
|
|
39
|
+
"@mui/x-internals": "8.26.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|
|
@@ -77,6 +77,12 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
77
77
|
MuiMarkElement?: {
|
|
78
78
|
styleOverrides?: ComponentsOverrides<Theme>['MuiMarkElement'];
|
|
79
79
|
};
|
|
80
|
+
MuiPieArcPlot?: {
|
|
81
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiPieArcPlot'];
|
|
82
|
+
};
|
|
83
|
+
MuiPieArcLabelPlot?: {
|
|
84
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiPieArcLabelPlot'];
|
|
85
|
+
};
|
|
80
86
|
MuiScatterChart?: {
|
|
81
87
|
defaultProps?: ComponentsProps['MuiScatterChart'];
|
|
82
88
|
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
@@ -85,6 +91,9 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
85
91
|
MuiScatter?: {
|
|
86
92
|
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
87
93
|
};
|
|
94
|
+
MuiRadarChart?: {
|
|
95
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiRadarChart'];
|
|
96
|
+
};
|
|
88
97
|
MuiGauge?: {
|
|
89
98
|
styleOverrides?: ComponentsOverrides<Theme>['MuiGauge'];
|
|
90
99
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type GaugeClassKey } from "../Gauge/index.js";
|
|
2
|
+
import { type RadarClassKey } from "../RadarChart/radarClasses.js";
|
|
2
3
|
import { type BarClassKey } from "../BarChart/barClasses.js";
|
|
3
4
|
import { type BarLabelClassKey } from "../BarChart/index.js";
|
|
4
5
|
import { type BarElementClassKey } from "../BarChart/barElementClasses.js";
|
|
@@ -21,6 +22,8 @@ export interface ChartsComponentNameToClassKey {
|
|
|
21
22
|
MuiBarElement: BarElementClassKey;
|
|
22
23
|
/** @deprecated Use `MuiBarChart` instead. */
|
|
23
24
|
MuiBarLabel: BarLabelClassKey;
|
|
25
|
+
MuiPieArcPlot: 'root';
|
|
26
|
+
MuiPieArcLabelPlot: 'root';
|
|
24
27
|
MuiAreaPlot: 'root';
|
|
25
28
|
MuiLinePlot: 'root';
|
|
26
29
|
MuiMarkPlot: 'root';
|
|
@@ -31,6 +34,7 @@ export interface ChartsComponentNameToClassKey {
|
|
|
31
34
|
/** @deprecated Use `MuiLineChart` instead. */
|
|
32
35
|
MuiMarkElement: MarkElementClassKey;
|
|
33
36
|
MuiScatterChart: ScatterClassKey;
|
|
37
|
+
MuiRadarChart: RadarClassKey;
|
|
34
38
|
MuiGauge: GaugeClassKey;
|
|
35
39
|
}
|
|
36
40
|
declare module '@mui/material/styles' {
|