Skip to content

Commit d26bb81

Browse files
[charts] Fix tick label overflow on multiple axes and series demo (#20152)
Co-authored-by: Prakhar Gupta <[email protected]>
1 parent c953f0b commit d26bb81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/modules/components/overview/charts/advancedFeatures/MultiAxesDemo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ function MultiAxes() {
6060
xAxis={[
6161
{
6262
scaleType: 'band',
63+
height: 50,
6364
dataKey: 'month',
6465
label: 'Month',
6566
valueFormatter: (value, context) =>
6667
context.location === 'tick' ? value.slice(0, 3) : value,
6768
},
6869
]}
6970
yAxis={[
70-
{ id: 'leftAxis', width: 50 },
71-
{ id: 'rightAxis', position: 'right', width: 50 },
71+
{ id: 'leftAxis', width: 54 },
72+
{ id: 'rightAxis', position: 'right', width: 54 },
7273
]}
7374
dataset={dataset}
7475
>

0 commit comments

Comments
 (0)