diff --git a/src/components/chart-elements/BarChart/BarChart.tsx b/src/components/chart-elements/BarChart/BarChart.tsx index 6aa86f79..903eeae8 100644 --- a/src/components/chart-elements/BarChart/BarChart.tsx +++ b/src/components/chart-elements/BarChart/BarChart.tsx @@ -206,7 +206,7 @@ const BarChart = React.forwardRef((props, ref) => axisLine={false} angle={rotateLabelX?.angle} dy={rotateLabelX?.verticalShift} - height={rotateLabelX?.xAxisHeight} + height={rotateLabelX?.xAxisHeight ?? 0} minTickGap={tickGap} > {xAxisLabel && ( @@ -242,7 +242,7 @@ const BarChart = React.forwardRef((props, ref) => allowDecimals={allowDecimals} angle={rotateLabelX?.angle} dy={rotateLabelX?.verticalShift} - height={rotateLabelX?.xAxisHeight} + height={rotateLabelX?.xAxisHeight ?? 0} > {xAxisLabel && (