File tree 1 file changed +4
-2
lines changed
packages/x-charts/src/ChartsXAxis
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ function addLabelDimension(
39
39
{
40
40
tickLabelStyle : style ,
41
41
tickLabelInterval,
42
- // FIXME: Define the default value in the correct place
43
- tickLabelMinGap = 8 ,
42
+ tickLabelMinGap,
44
43
reverse,
45
44
isMounted,
46
45
} : Pick < ChartsXAxisProps , 'tickLabelInterval' | 'tickLabelStyle' > &
@@ -101,6 +100,7 @@ const defaultProps = {
101
100
disableLine : false ,
102
101
disableTicks : false ,
103
102
tickSize : 6 ,
103
+ tickLabelMinGap : 4 ,
104
104
} as const ;
105
105
106
106
/**
@@ -140,6 +140,7 @@ function ChartsXAxis(inProps: ChartsXAxisProps) {
140
140
tickLabelInterval,
141
141
tickPlacement,
142
142
tickLabelPlacement,
143
+ tickLabelMinGap,
143
144
sx,
144
145
} = defaultizedProps ;
145
146
@@ -185,6 +186,7 @@ function ChartsXAxis(inProps: ChartsXAxisProps) {
185
186
const xTicksWithDimension = addLabelDimension ( xTicks , {
186
187
tickLabelStyle : axisTickLabelProps . style ,
187
188
tickLabelInterval,
189
+ tickLabelMinGap,
188
190
reverse,
189
191
isMounted,
190
192
} ) ;
You can’t perform that action at this time.
0 commit comments