Skip to content

Commit d6ce934

Browse files
Update default and docs.
1 parent fc202cb commit d6ce934

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
@@ -23,7 +23,7 @@
2323
"type": { "name": "union", "description": "'auto'<br>&#124;&nbsp;func" },
2424
"default": "'auto'"
2525
},
26-
"tickLabelMinGap": { "type": { "name": "number" }, "default": "8" },
26+
"tickLabelMinGap": { "type": { "name": "number" }, "default": "4" },
2727
"tickLabelPlacement": {
2828
"type": { "name": "enum", "description": "'middle'<br>&#124;&nbsp;'tick'" },
2929
"default": "'middle'"

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

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

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

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

0 commit comments

Comments
 (0)