diff --git a/packages/charts/src/components/BarChart/BarChart.tsx b/packages/charts/src/components/BarChart/BarChart.tsx index 06076a948b5..a27d91dd7d2 100644 --- a/packages/charts/src/components/BarChart/BarChart.tsx +++ b/packages/charts/src/components/BarChart/BarChart.tsx @@ -299,7 +299,8 @@ const BarChart = forwardRef((props, ref) => { dimensions.map((dimension, index) => { return ( ((props, ref) => let AxisComponent; const axisProps: any = { dataKey: dimension.accessor, - interval: dimension?.interval ?? (isBigDataSet ? 'preserveStart' : 0), + interval: dimension?.interval ?? (isBigDataSet ? 'preserveStartEnd' : 0), tickLine: index < 1, axisLine: index < 1, allowDuplicatedCategory: index === 0 @@ -317,6 +317,8 @@ const BulletChart = forwardRef((props, ref) => axisProps.width = yAxisWidth; AxisComponent = YAxis; axisProps.orientation = isRTL ? 'right' : 'left'; + axisProps.interval = 'preserveStartEnd'; + axisProps.minTickGap = isBigDataSet ? undefined : -10; } else { axisProps.dataKey = dimension.accessor; axisProps.tick = ;