Skip to content

Commit e701067

Browse files
Update default and docs.
1 parent 5f0103a commit e701067

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/pages/x/api/charts/charts-x-axis.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"type": { "name": "union", "description": "'auto'<br>&#124;&nbsp;func" },
2323
"default": "'auto'"
2424
},
25-
"tickLabelMinGap": { "type": { "name": "number" }, "default": "8" },
25+
"tickLabelMinGap": { "type": { "name": "number" }, "default": "4" },
2626
"tickLabelPlacement": {
2727
"type": { "name": "enum", "description": "'middle'<br>&#124;&nbsp;'tick'" },
2828
"default": "'middle'"

packages/x-charts/src/ChartsXAxis/ChartsXAxis.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ ChartsXAxis.propTypes = {
353353
/**
354354
* The minimum gap in pixels between two tick labels.
355355
* If two tick labels are closer than this minimum gap, one of them will be hidden.
356-
* @default 8
356+
* @default 4
357357
*/
358358
tickLabelMinGap: PropTypes.number,
359359
/**

packages/x-charts/src/models/axis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface ChartsXAxisProps extends ChartsAxisProps {
142142
/**
143143
* The minimum gap in pixels between two tick labels.
144144
* If two tick labels are closer than this minimum gap, one of them will be hidden.
145-
* @default 8
145+
* @default 4
146146
*/
147147
tickLabelMinGap?: number;
148148
}

0 commit comments

Comments
 (0)