Skip to content

Commit

Permalink
fix XAxis height bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauchet committed Dec 13, 2024
1 parent d8d28e8 commit e78140b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/chart-elements/AreaChart/AreaChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const AreaChart = React.forwardRef<HTMLDivElement, AreaChartProps>((props, ref)
minTickGap={tickGap}
angle={rotateLabelX?.angle}
dy={rotateLabelX?.verticalShift}
height={rotateLabelX?.xAxisHeight}
height={rotateLabelX?.xAxisHeight || 30}
>
{xAxisLabel && (
<Label
Expand Down
2 changes: 1 addition & 1 deletion src/components/chart-elements/BarChart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
axisLine={false}
angle={rotateLabelX?.angle}
dy={rotateLabelX?.verticalShift}
height={rotateLabelX?.xAxisHeight}
height={rotateLabelX?.xAxisHeight || 30}
minTickGap={tickGap}
>
{xAxisLabel && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/chart-elements/LineChart/LineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const LineChart = React.forwardRef<HTMLDivElement, LineChartProps>((props, ref)
minTickGap={tickGap}
angle={rotateLabelX?.angle}
dy={rotateLabelX?.verticalShift}
height={rotateLabelX?.xAxisHeight}
height={rotateLabelX?.xAxisHeight || 30}
>
{xAxisLabel && (
<Label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const ScatterChart = React.forwardRef<HTMLDivElement, ScatterChartProps>((props,
allowDataOverflow={true}
angle={rotateLabelX?.angle}
dy={rotateLabelX?.verticalShift}
height={rotateLabelX?.xAxisHeight}
height={rotateLabelX?.xAxisHeight || 30}
>
{xAxisLabel && (
<Label
Expand Down

0 comments on commit e78140b

Please sign in to comment.