Skip to content

Commit e78140b

Browse files
committed
fix XAxis height bug
1 parent d8d28e8 commit e78140b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/chart-elements/AreaChart/AreaChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const AreaChart = React.forwardRef<HTMLDivElement, AreaChartProps>((props, ref)
183183
minTickGap={tickGap}
184184
angle={rotateLabelX?.angle}
185185
dy={rotateLabelX?.verticalShift}
186-
height={rotateLabelX?.xAxisHeight}
186+
height={rotateLabelX?.xAxisHeight || 30}
187187
>
188188
{xAxisLabel && (
189189
<Label

src/components/chart-elements/BarChart/BarChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
198198
axisLine={false}
199199
angle={rotateLabelX?.angle}
200200
dy={rotateLabelX?.verticalShift}
201-
height={rotateLabelX?.xAxisHeight}
201+
height={rotateLabelX?.xAxisHeight || 30}
202202
minTickGap={tickGap}
203203
>
204204
{xAxisLabel && (

src/components/chart-elements/LineChart/LineChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const LineChart = React.forwardRef<HTMLDivElement, LineChartProps>((props, ref)
176176
minTickGap={tickGap}
177177
angle={rotateLabelX?.angle}
178178
dy={rotateLabelX?.verticalShift}
179-
height={rotateLabelX?.xAxisHeight}
179+
height={rotateLabelX?.xAxisHeight || 30}
180180
>
181181
{xAxisLabel && (
182182
<Label

src/components/chart-elements/ScatterChart/ScatterChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const ScatterChart = React.forwardRef<HTMLDivElement, ScatterChartProps>((props,
240240
allowDataOverflow={true}
241241
angle={rotateLabelX?.angle}
242242
dy={rotateLabelX?.verticalShift}
243-
height={rotateLabelX?.xAxisHeight}
243+
height={rotateLabelX?.xAxisHeight || 30}
244244
>
245245
{xAxisLabel && (
246246
<Label

0 commit comments

Comments
 (0)