@mui/x-charts 8.10.0 → 8.10.1
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 +4 -0
- package/CHANGELOG.md +96 -0
- package/ChartContainer/ChartContainer.js +6 -0
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +2 -2
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +8 -2
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.js +1 -0
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsXAxis/ChartsGroupedXAxis.js +1 -0
- package/ChartsXAxis/useAxisProps.d.ts +9 -9
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/ChartsGroupedYAxis.d.ts +7 -0
- package/ChartsYAxis/ChartsGroupedYAxis.js +144 -0
- package/ChartsYAxis/ChartsSingleYAxis.d.ts +7 -0
- package/ChartsYAxis/ChartsSingleYAxis.js +133 -0
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxis.js +12 -211
- package/ChartsYAxis/useAxisProps.d.ts +4452 -0
- package/ChartsYAxis/useAxisProps.js +115 -0
- package/ChartsYAxis/utilities.d.ts +10 -0
- package/ChartsYAxis/utilities.js +42 -0
- package/LineChart/LineChart.js +4 -0
- package/ScatterChart/ScatterChart.js +4 -0
- package/SparkLineChart/SparkLineChart.d.ts +15 -5
- package/SparkLineChart/SparkLineChart.js +61 -34
- package/esm/BarChart/BarChart.js +4 -0
- package/esm/ChartContainer/ChartContainer.js +6 -0
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.js +2 -2
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +8 -2
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsTooltipTable.js +1 -0
- package/esm/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/esm/ChartsXAxis/ChartsGroupedXAxis.js +1 -0
- package/esm/ChartsXAxis/useAxisProps.d.ts +9 -9
- package/esm/ChartsXAxis/utilities.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsGroupedYAxis.d.ts +7 -0
- package/esm/ChartsYAxis/ChartsGroupedYAxis.js +138 -0
- package/esm/ChartsYAxis/ChartsSingleYAxis.d.ts +7 -0
- package/esm/ChartsYAxis/ChartsSingleYAxis.js +129 -0
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsYAxis.js +10 -207
- package/esm/ChartsYAxis/useAxisProps.d.ts +4452 -0
- package/esm/ChartsYAxis/useAxisProps.js +108 -0
- package/esm/ChartsYAxis/utilities.d.ts +10 -0
- package/esm/ChartsYAxis/utilities.js +34 -0
- package/esm/LineChart/LineChart.js +4 -0
- package/esm/ScatterChart/ScatterChart.js +4 -0
- package/esm/SparkLineChart/SparkLineChart.d.ts +15 -5
- package/esm/SparkLineChart/SparkLineChart.js +61 -34
- package/esm/index.js +1 -1
- package/esm/internals/animation/Transition.js +2 -5
- package/esm/internals/configInit.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +3 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +2 -2
- package/esm/internals/plugins/utils/ChartStore.js +16 -18
- package/esm/models/axis.d.ts +31 -48
- package/esm/tests/web-components.js +2 -4
- package/index.js +1 -1
- package/internals/animation/Transition.js +2 -5
- package/internals/configInit.js +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +3 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +2 -2
- package/internals/plugins/utils/ChartStore.js +16 -18
- package/models/axis.d.ts +31 -48
- package/package.json +16 -17
- package/tests/web-components.js +2 -4
package/BarChart/BarChart.js
CHANGED
|
@@ -273,6 +273,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
273
273
|
fill: _propTypes.default.string,
|
|
274
274
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
275
275
|
getValue: _propTypes.default.func.isRequired,
|
|
276
|
+
tickLabelStyle: _propTypes.default.object,
|
|
276
277
|
tickSize: _propTypes.default.number
|
|
277
278
|
})),
|
|
278
279
|
height: _propTypes.default.number,
|
|
@@ -328,6 +329,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
328
329
|
fill: _propTypes.default.string,
|
|
329
330
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
330
331
|
getValue: _propTypes.default.func.isRequired,
|
|
332
|
+
tickLabelStyle: _propTypes.default.object,
|
|
331
333
|
tickSize: _propTypes.default.number
|
|
332
334
|
})),
|
|
333
335
|
height: _propTypes.default.number,
|
|
@@ -714,6 +716,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
714
716
|
fill: _propTypes.default.string,
|
|
715
717
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
716
718
|
getValue: _propTypes.default.func.isRequired,
|
|
719
|
+
tickLabelStyle: _propTypes.default.object,
|
|
717
720
|
tickSize: _propTypes.default.number
|
|
718
721
|
})),
|
|
719
722
|
hideTooltip: _propTypes.default.bool,
|
|
@@ -768,6 +771,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
768
771
|
fill: _propTypes.default.string,
|
|
769
772
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
770
773
|
getValue: _propTypes.default.func.isRequired,
|
|
774
|
+
tickLabelStyle: _propTypes.default.object,
|
|
771
775
|
tickSize: _propTypes.default.number
|
|
772
776
|
})),
|
|
773
777
|
hideTooltip: _propTypes.default.bool,
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,102 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.10.1
|
|
9
|
+
|
|
10
|
+
_Aug 15, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 Y-axes can now be grouped by category when using `band` and `point` scales.
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
The following are all team members who have contributed to this release:
|
|
18
|
+
@alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@8.10.1`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Fix scroll jumping (#19156) @romgrk
|
|
25
|
+
- [DataGrid] Fix scroll restoration (#19182) @romgrk
|
|
26
|
+
- [DataGrid] Fix "no row with id" error (#19193) @romgrk
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-pro@8.10.1` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid@8.10.1`.
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-premium@8.10.1` [](https://mui.com/r/x-premium-svg-link "Premium plan")
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid-pro@8.10.1`.
|
|
35
|
+
|
|
36
|
+
### Date and Time Pickers
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-date-pickers@8.10.0`
|
|
39
|
+
|
|
40
|
+
Internal changes.
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers-pro@8.10.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-date-pickers@8.10.0`.
|
|
45
|
+
|
|
46
|
+
### Charts
|
|
47
|
+
|
|
48
|
+
- Axes can now be grouped by category when using `band` and `point` scales
|
|
49
|
+
|
|
50
|
+
<img width="643" height="455" alt="Bar chart with y-axis grouped per categories" src="https://github.com/user-attachments/assets/59044afe-bcc5-4152-8bf1-225db0635025" />
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-charts@8.10.1`
|
|
53
|
+
|
|
54
|
+
- [charts] Allow y-axis to be grouped (#19081) @JCQuintas
|
|
55
|
+
- [charts] Fix default axis highlight for axes without data attribute (#18985) @alexfauquette
|
|
56
|
+
- [charts] Fix tooltip mark unexpected wrapping in mobile (#19122) @bernardobelchior
|
|
57
|
+
- [charts] Prevent overflow on charts tooltip (#19123) @bernardobelchior
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts-pro@8.10.1` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
60
|
+
|
|
61
|
+
Same changes as in `@mui/x-charts@8.10.1`.
|
|
62
|
+
|
|
63
|
+
### Tree View
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-tree-view@8.10.1`
|
|
66
|
+
|
|
67
|
+
Internal changes.
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-tree-view-pro@8.10.1` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-tree-view@8.10.1`.
|
|
72
|
+
|
|
73
|
+
### Codemod
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-codemod@8.10.1`
|
|
76
|
+
|
|
77
|
+
Internal changes.
|
|
78
|
+
|
|
79
|
+
### Docs
|
|
80
|
+
|
|
81
|
+
- [docs] Add all planned charts on the overview page (#19077) @prakhargupta1
|
|
82
|
+
- [docs] Add future charts components link in the sidebar (#19140) @prakhargupta1
|
|
83
|
+
- [docs] Fix Heatmap docs duplicate text (#19138) @JCQuintas
|
|
84
|
+
- [docs] Remove preview from Toolbar & Funnel (#19131) @mnajdova
|
|
85
|
+
- [docs] Reproduce npm sparkline (#19089) @alexfauquette
|
|
86
|
+
|
|
87
|
+
### Core
|
|
88
|
+
|
|
89
|
+
- [core] Fix licensing model name (#19025) @oliviertassinari
|
|
90
|
+
- [core] Fix usage of `:catalog` for `@babel/runtime` (#19028) @oliviertassinari
|
|
91
|
+
- [core] Refactor virtualizer API (#18995) @romgrk
|
|
92
|
+
|
|
93
|
+
### Miscellaneous
|
|
94
|
+
|
|
95
|
+
- [code-infra] Remove namespaces (#19071) @Janpot
|
|
96
|
+
- [code-infra] Fix `fs-extra` removal from `formattedTSDemos` script (#19132) @bernardobelchior
|
|
97
|
+
- [code-infra] Remove unused code and dependency (#19139) @bernardobelchior
|
|
98
|
+
- [code-infra] Replace `fs-extra` with `node:fs` where possible (#19127) @bernardobelchior
|
|
99
|
+
- [internal] Edit, keep `lockFileMaintenance` simple @oliviertassinari
|
|
100
|
+
- [internal] Fix writing style action name @oliviertassinari
|
|
101
|
+
- [internal] Make it clear that `lockFileMaintenance` is enabled @oliviertassinari
|
|
102
|
+
- [support-infra] Remove default issue label (#19104) @oliviertassinari
|
|
103
|
+
|
|
8
104
|
## 8.10.0
|
|
9
105
|
|
|
10
106
|
_Aug 8, 2025_
|
|
@@ -243,6 +243,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
243
243
|
fill: _propTypes.default.string,
|
|
244
244
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
245
245
|
getValue: _propTypes.default.func.isRequired,
|
|
246
|
+
tickLabelStyle: _propTypes.default.object,
|
|
246
247
|
tickSize: _propTypes.default.number
|
|
247
248
|
})),
|
|
248
249
|
height: _propTypes.default.number,
|
|
@@ -299,6 +300,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
299
300
|
fill: _propTypes.default.string,
|
|
300
301
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
301
302
|
getValue: _propTypes.default.func.isRequired,
|
|
303
|
+
tickLabelStyle: _propTypes.default.object,
|
|
302
304
|
tickSize: _propTypes.default.number
|
|
303
305
|
})),
|
|
304
306
|
height: _propTypes.default.number,
|
|
@@ -724,6 +726,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
724
726
|
fill: _propTypes.default.string,
|
|
725
727
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
726
728
|
getValue: _propTypes.default.func.isRequired,
|
|
729
|
+
tickLabelStyle: _propTypes.default.object,
|
|
727
730
|
tickSize: _propTypes.default.number
|
|
728
731
|
})),
|
|
729
732
|
height: _propTypes.default.number,
|
|
@@ -779,6 +782,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
779
782
|
fill: _propTypes.default.string,
|
|
780
783
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
781
784
|
getValue: _propTypes.default.func.isRequired,
|
|
785
|
+
tickLabelStyle: _propTypes.default.object,
|
|
782
786
|
tickSize: _propTypes.default.number
|
|
783
787
|
})),
|
|
784
788
|
height: _propTypes.default.number,
|
|
@@ -1165,6 +1169,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1165
1169
|
fill: _propTypes.default.string,
|
|
1166
1170
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1167
1171
|
getValue: _propTypes.default.func.isRequired,
|
|
1172
|
+
tickLabelStyle: _propTypes.default.object,
|
|
1168
1173
|
tickSize: _propTypes.default.number
|
|
1169
1174
|
})),
|
|
1170
1175
|
hideTooltip: _propTypes.default.bool,
|
|
@@ -1219,6 +1224,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1219
1224
|
fill: _propTypes.default.string,
|
|
1220
1225
|
groups: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1221
1226
|
getValue: _propTypes.default.func.isRequired,
|
|
1227
|
+
tickLabelStyle: _propTypes.default.object,
|
|
1222
1228
|
tickSize: _propTypes.default.number
|
|
1223
1229
|
})),
|
|
1224
1230
|
hideTooltip: _propTypes.default.bool,
|
|
@@ -37,10 +37,10 @@ function ChartsAxisHighlight(props) {
|
|
|
37
37
|
} = props;
|
|
38
38
|
const classes = useUtilityClasses();
|
|
39
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
40
|
-
children: [xAxisHighlight && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsXAxisHighlight.default, {
|
|
40
|
+
children: [xAxisHighlight && xAxisHighlight !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsXAxisHighlight.default, {
|
|
41
41
|
type: xAxisHighlight,
|
|
42
42
|
classes: classes
|
|
43
|
-
}), yAxisHighlight && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsYAxisHighlight.default, {
|
|
43
|
+
}), yAxisHighlight && yAxisHighlight !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsYAxisHighlight.default, {
|
|
44
44
|
type: yAxisHighlight,
|
|
45
45
|
classes: classes
|
|
46
46
|
})]
|
|
@@ -13,4 +13,4 @@ export interface ChartsLabelGradientClasses {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function getLabelGradientUtilityClass(slot: string): string;
|
|
15
15
|
export declare const labelGradientClasses: ChartsLabelGradientClasses;
|
|
16
|
-
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"root" | "
|
|
16
|
+
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"root" | "fill" | "mask", string>;
|
|
@@ -15,4 +15,4 @@ export interface ChartsLabelMarkClasses {
|
|
|
15
15
|
}
|
|
16
16
|
export declare function getLabelMarkUtilityClass(slot: string): string;
|
|
17
17
|
export declare const labelMarkClasses: ChartsLabelMarkClasses;
|
|
18
|
-
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"root" | "
|
|
18
|
+
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"root" | "fill" | "mask", string>;
|
|
@@ -8,7 +8,7 @@ export type ChartsXReferenceLineProps<TValue extends string | number | Date = st
|
|
|
8
8
|
*/
|
|
9
9
|
x: TValue;
|
|
10
10
|
};
|
|
11
|
-
export declare function getXReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"
|
|
11
|
+
export declare function getXReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"line" | "root" | "label", string>;
|
|
12
12
|
declare function ChartsXReferenceLine(props: ChartsXReferenceLineProps): React.JSX.Element | null;
|
|
13
13
|
declare namespace ChartsXReferenceLine {
|
|
14
14
|
var propTypes: any;
|
|
@@ -8,7 +8,7 @@ export type ChartsYReferenceLineProps<TValue extends string | number | Date = st
|
|
|
8
8
|
*/
|
|
9
9
|
y: TValue;
|
|
10
10
|
};
|
|
11
|
-
export declare function getYReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"
|
|
11
|
+
export declare function getYReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"line" | "root" | "label", string>;
|
|
12
12
|
declare function ChartsYReferenceLine(props: ChartsYReferenceLineProps): React.JSX.Element | null;
|
|
13
13
|
declare namespace ChartsYReferenceLine {
|
|
14
14
|
var propTypes: any;
|
|
@@ -124,8 +124,14 @@ function ChartsTooltipContainer(inProps) {
|
|
|
124
124
|
options: {
|
|
125
125
|
fallbackPlacements: ['top-end', 'top-start', 'bottom-end', 'bottom']
|
|
126
126
|
}
|
|
127
|
-
}] : [])
|
|
128
|
-
|
|
127
|
+
}] : []),
|
|
128
|
+
// Keep default behavior
|
|
129
|
+
{
|
|
130
|
+
name: 'preventOverflow',
|
|
131
|
+
options: {
|
|
132
|
+
altAxis: true
|
|
133
|
+
}
|
|
134
|
+
}], [isMouse, isTouch]);
|
|
129
135
|
if (trigger === 'none') {
|
|
130
136
|
return null;
|
|
131
137
|
}
|
|
@@ -13,6 +13,6 @@ export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "
|
|
16
|
+
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "typography" | "zIndex" | "classes" | "color" | "className" | "sx" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "children" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "p" | "slot" | "style" | "title" | "ref" | "typography" | "zIndex" | "classes" | "color" | "className" | "sx" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
17
17
|
component?: React.ElementType;
|
|
18
18
|
}, {}, {}>;
|
|
@@ -84,6 +84,7 @@ const ChartsTooltipCell = exports.ChartsTooltipCell = (0, _styles.styled)(_Typog
|
|
|
84
84
|
paddingRight: theme.spacing(1)
|
|
85
85
|
},
|
|
86
86
|
[`&.${_chartsTooltipClasses.chartsTooltipClasses.labelCell}`]: {
|
|
87
|
+
whiteSpace: 'nowrap',
|
|
87
88
|
fontWeight: theme.typography.fontWeightRegular
|
|
88
89
|
},
|
|
89
90
|
[`&.${_chartsTooltipClasses.chartsTooltipClasses.valueCell}, &.${_chartsTooltipClasses.chartsTooltipClasses.axisValueCell}`]: {
|
|
@@ -23,4 +23,4 @@ export interface ChartsTooltipClasses {
|
|
|
23
23
|
export type ChartsTooltipClassKey = keyof Omit<ChartsTooltipClasses, 'markContainer' | 'labelCell' | 'valueCell'>;
|
|
24
24
|
export declare function getChartsTooltipUtilityClass(slot: string): string;
|
|
25
25
|
export declare const chartsTooltipClasses: ChartsTooltipClasses;
|
|
26
|
-
export declare const useUtilityClasses: (classes?: Partial<ChartsTooltipClasses>) => Record<"root" | "mark" | "table" | "cell" | "row" | "
|
|
26
|
+
export declare const useUtilityClasses: (classes?: Partial<ChartsTooltipClasses>) => Record<"root" | "mark" | "table" | "cell" | "row" | "paper" | "markContainer" | "labelCell" | "valueCell" | "axisValueCell", string>;
|
|
@@ -3534,7 +3534,7 @@ export declare const useAxisProps: (inProps: ChartsXAxisProps) => {
|
|
|
3534
3534
|
tickNumber: number;
|
|
3535
3535
|
positionSign: number;
|
|
3536
3536
|
skipAxisRendering: boolean;
|
|
3537
|
-
classes: Record<"
|
|
3537
|
+
classes: Record<"line" | "root" | "label" | "tickContainer" | "tick" | "tickLabel", string>;
|
|
3538
3538
|
Line: string | import("react").JSXElementConstructor<import("react").SVGAttributes<SVGPathElement>>;
|
|
3539
3539
|
Tick: string | import("react").JSXElementConstructor<import("react").SVGAttributes<SVGPathElement>>;
|
|
3540
3540
|
TickLabel: import("react").JSXElementConstructor<ChartsTextProps> | typeof ChartsText;
|
|
@@ -3543,18 +3543,19 @@ export declare const useAxisProps: (inProps: ChartsXAxisProps) => {
|
|
|
3543
3543
|
lineHeight?: number | undefined;
|
|
3544
3544
|
ownerState: any;
|
|
3545
3545
|
string?: number | string | undefined | undefined;
|
|
3546
|
-
mask?: string | undefined | undefined;
|
|
3547
|
-
fill?: string | undefined | undefined;
|
|
3548
3546
|
type?: string | undefined | undefined;
|
|
3549
3547
|
filter?: string | undefined | undefined;
|
|
3548
|
+
fill?: string | undefined | undefined;
|
|
3550
3549
|
values?: string | undefined | undefined;
|
|
3550
|
+
mask?: string | undefined | undefined;
|
|
3551
3551
|
clipPath?: string | undefined | undefined;
|
|
3552
3552
|
path?: string | undefined | undefined;
|
|
3553
3553
|
direction?: number | string | undefined | undefined;
|
|
3554
3554
|
spacing?: number | string | undefined | undefined;
|
|
3555
3555
|
name?: string | undefined | undefined;
|
|
3556
|
-
fontWeight?: number | string | undefined | undefined;
|
|
3557
3556
|
color?: string | undefined | undefined;
|
|
3557
|
+
className?: string | undefined | undefined;
|
|
3558
|
+
fontWeight?: number | string | undefined | undefined;
|
|
3558
3559
|
cursor?: number | string | undefined | undefined;
|
|
3559
3560
|
display?: number | string | undefined | undefined;
|
|
3560
3561
|
fontFamily?: string | undefined | undefined;
|
|
@@ -3612,7 +3613,6 @@ export declare const useAxisProps: (inProps: ChartsXAxisProps) => {
|
|
|
3612
3613
|
vectorEffect?: number | string | undefined | undefined;
|
|
3613
3614
|
key?: import("react").Key | null | undefined;
|
|
3614
3615
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
3615
|
-
className?: string | undefined | undefined;
|
|
3616
3616
|
id?: string | undefined | undefined;
|
|
3617
3617
|
lang?: string | undefined | undefined;
|
|
3618
3618
|
tabIndex?: number | undefined | undefined;
|
|
@@ -4034,18 +4034,19 @@ export declare const useAxisProps: (inProps: ChartsXAxisProps) => {
|
|
|
4034
4034
|
lineHeight?: number | undefined;
|
|
4035
4035
|
ownerState: any;
|
|
4036
4036
|
string?: number | string | undefined | undefined;
|
|
4037
|
-
mask?: string | undefined | undefined;
|
|
4038
|
-
fill?: string | undefined | undefined;
|
|
4039
4037
|
type?: string | undefined | undefined;
|
|
4040
4038
|
filter?: string | undefined | undefined;
|
|
4039
|
+
fill?: string | undefined | undefined;
|
|
4041
4040
|
values?: string | undefined | undefined;
|
|
4041
|
+
mask?: string | undefined | undefined;
|
|
4042
4042
|
clipPath?: string | undefined | undefined;
|
|
4043
4043
|
path?: string | undefined | undefined;
|
|
4044
4044
|
direction?: number | string | undefined | undefined;
|
|
4045
4045
|
spacing?: number | string | undefined | undefined;
|
|
4046
4046
|
name?: string | undefined | undefined;
|
|
4047
|
-
fontWeight?: number | string | undefined | undefined;
|
|
4048
4047
|
color?: string | undefined | undefined;
|
|
4048
|
+
className?: string | undefined | undefined;
|
|
4049
|
+
fontWeight?: number | string | undefined | undefined;
|
|
4049
4050
|
cursor?: number | string | undefined | undefined;
|
|
4050
4051
|
display?: number | string | undefined | undefined;
|
|
4051
4052
|
fontFamily?: string | undefined | undefined;
|
|
@@ -4103,7 +4104,6 @@ export declare const useAxisProps: (inProps: ChartsXAxisProps) => {
|
|
|
4103
4104
|
vectorEffect?: number | string | undefined | undefined;
|
|
4104
4105
|
key?: import("react").Key | null | undefined;
|
|
4105
4106
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
4106
|
-
className?: string | undefined | undefined;
|
|
4107
4107
|
id?: string | undefined | undefined;
|
|
4108
4108
|
lang?: string | undefined | undefined;
|
|
4109
4109
|
tabIndex?: number | undefined | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxisConfig, ChartsXAxisProps } from "../models/axis.js";
|
|
2
|
-
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsXAxisProps>) => Record<"
|
|
2
|
+
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsXAxisProps>) => Record<"line" | "root" | "label" | "tickContainer" | "tick" | "tickLabel", string>;
|
|
3
3
|
export declare const TICK_LABEL_GAP = 3;
|
|
4
4
|
export declare const AXIS_LABEL_TICK_LABEL_GAP = 4;
|
|
5
5
|
export declare const XAxisRoot: import("@emotion/styled").StyledComponent<Pick<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Pick<import("react").SVGProps<SVGGElement>, keyof import("react").SVGProps<SVGGElement>>, keyof import("react").SVGProps<SVGGElement> | keyof import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.ChartsGroupedYAxis = ChartsGroupedYAxis;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
13
|
+
var _isBandScale = require("../internals/isBandScale");
|
|
14
|
+
var _useChartContext = require("../context/ChartProvider/useChartContext");
|
|
15
|
+
var _utilities = require("./utilities");
|
|
16
|
+
var _useTicksGrouped = require("../hooks/useTicksGrouped");
|
|
17
|
+
var _useAxisProps = require("./useAxisProps");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const DEFAULT_GROUPING_CONFIG = {
|
|
20
|
+
tickSize: 6
|
|
21
|
+
};
|
|
22
|
+
const getGroupingConfig = (groups, groupIndex, tickSize) => {
|
|
23
|
+
const config = groups[groupIndex] ?? {};
|
|
24
|
+
const defaultTickSize = tickSize ?? DEFAULT_GROUPING_CONFIG.tickSize;
|
|
25
|
+
const calculatedTickSize = defaultTickSize * groupIndex * 2 + defaultTickSize;
|
|
26
|
+
return (0, _extends2.default)({}, DEFAULT_GROUPING_CONFIG, config, {
|
|
27
|
+
tickSize: config.tickSize ?? calculatedTickSize
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @ignore - internal component.
|
|
33
|
+
*/
|
|
34
|
+
function ChartsGroupedYAxis(inProps) {
|
|
35
|
+
const {
|
|
36
|
+
yScale,
|
|
37
|
+
defaultizedProps,
|
|
38
|
+
tickNumber,
|
|
39
|
+
positionSign,
|
|
40
|
+
skipAxisRendering,
|
|
41
|
+
classes,
|
|
42
|
+
Line,
|
|
43
|
+
Tick,
|
|
44
|
+
TickLabel,
|
|
45
|
+
Label,
|
|
46
|
+
axisTickLabelProps,
|
|
47
|
+
axisLabelProps,
|
|
48
|
+
lineProps
|
|
49
|
+
} = (0, _useAxisProps.useAxisProps)(inProps);
|
|
50
|
+
if (!(0, _isBandScale.isBandScale)(yScale)) {
|
|
51
|
+
throw new Error('MUI X Charts: ChartsGroupedYAxis only supports the `band` and `point` scale types.');
|
|
52
|
+
}
|
|
53
|
+
const {
|
|
54
|
+
position,
|
|
55
|
+
disableLine,
|
|
56
|
+
disableTicks,
|
|
57
|
+
label,
|
|
58
|
+
tickSize,
|
|
59
|
+
valueFormatter,
|
|
60
|
+
slotProps,
|
|
61
|
+
tickInterval,
|
|
62
|
+
tickPlacement,
|
|
63
|
+
tickLabelPlacement,
|
|
64
|
+
sx,
|
|
65
|
+
offset,
|
|
66
|
+
width: axisWidth
|
|
67
|
+
} = defaultizedProps;
|
|
68
|
+
const groups = defaultizedProps.groups;
|
|
69
|
+
const drawingArea = (0, _useDrawingArea.useDrawingArea)();
|
|
70
|
+
const {
|
|
71
|
+
left,
|
|
72
|
+
top,
|
|
73
|
+
width,
|
|
74
|
+
height
|
|
75
|
+
} = drawingArea;
|
|
76
|
+
const {
|
|
77
|
+
instance
|
|
78
|
+
} = (0, _useChartContext.useChartContext)();
|
|
79
|
+
const labelRefPoint = {
|
|
80
|
+
x: positionSign * axisWidth,
|
|
81
|
+
y: top + height / 2
|
|
82
|
+
};
|
|
83
|
+
const yTicks = (0, _useTicksGrouped.useTicksGrouped)({
|
|
84
|
+
scale: yScale,
|
|
85
|
+
tickNumber,
|
|
86
|
+
valueFormatter,
|
|
87
|
+
tickInterval,
|
|
88
|
+
tickPlacement,
|
|
89
|
+
tickLabelPlacement,
|
|
90
|
+
direction: 'y',
|
|
91
|
+
groups
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// Skip axis rendering if no data is available
|
|
95
|
+
// - The domain is an empty array for band/point scales.
|
|
96
|
+
// - The domains contains Infinity for continuous scales.
|
|
97
|
+
// - The position is set to 'none'.
|
|
98
|
+
if (skipAxisRendering) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_utilities.YAxisRoot, {
|
|
102
|
+
transform: `translate(${position === 'right' ? left + width + offset : left - offset}, 0)`,
|
|
103
|
+
className: classes.root,
|
|
104
|
+
sx: sx,
|
|
105
|
+
children: [!disableLine && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, (0, _extends2.default)({
|
|
106
|
+
y1: top,
|
|
107
|
+
y2: top + height,
|
|
108
|
+
className: classes.line
|
|
109
|
+
}, lineProps)), yTicks.map((item, index) => {
|
|
110
|
+
const {
|
|
111
|
+
offset: tickOffset,
|
|
112
|
+
labelOffset
|
|
113
|
+
} = item;
|
|
114
|
+
const yTickLabel = labelOffset ?? 0;
|
|
115
|
+
const showTick = instance.isYInside(tickOffset);
|
|
116
|
+
const tickLabel = item.formattedValue;
|
|
117
|
+
const ignoreTick = item.ignoreTick ?? false;
|
|
118
|
+
const groupIndex = item.groupIndex ?? 0;
|
|
119
|
+
const groupConfig = getGroupingConfig(groups, groupIndex, tickSize);
|
|
120
|
+
const tickXSize = positionSign * groupConfig.tickSize;
|
|
121
|
+
const labelPositionX = positionSign * (groupConfig.tickSize + _utilities.TICK_LABEL_GAP);
|
|
122
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
123
|
+
transform: `translate(0, ${tickOffset})`,
|
|
124
|
+
className: classes.tickContainer,
|
|
125
|
+
"data-group-index": groupIndex,
|
|
126
|
+
children: [!disableTicks && !ignoreTick && showTick && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tick, (0, _extends2.default)({
|
|
127
|
+
x2: tickXSize,
|
|
128
|
+
className: classes.tick
|
|
129
|
+
}, slotProps?.axisTick)), tickLabel !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(TickLabel, (0, _extends2.default)({
|
|
130
|
+
x: labelPositionX,
|
|
131
|
+
y: yTickLabel
|
|
132
|
+
}, axisTickLabelProps, {
|
|
133
|
+
style: (0, _extends2.default)({}, axisTickLabelProps.style, groupConfig.tickLabelStyle),
|
|
134
|
+
text: tickLabel
|
|
135
|
+
}))]
|
|
136
|
+
}, index);
|
|
137
|
+
}), label && /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
138
|
+
className: classes.label,
|
|
139
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, (0, _extends2.default)({}, labelRefPoint, axisLabelProps, {
|
|
140
|
+
text: label
|
|
141
|
+
}))
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|