diff --git a/src/mixed-line-bar-chart/bar-series.tsx b/src/mixed-line-bar-chart/bar-series.tsx index 9aa4ced56e..e78c5a1347 100644 --- a/src/mixed-line-bar-chart/bar-series.tsx +++ b/src/mixed-line-bar-chart/bar-series.tsx @@ -116,11 +116,12 @@ export default function BarSeries({ } // Create margins between stacked series but only when series data is not too small. - const baseOffset = stackedBarOffsets ? 3 : 0; - const isSmall = height < 4; - const appliedOffset = isSmall ? 0 : baseOffset; + const baseHeightOffset = stackedBarOffsets ? 3 : 0; + const isSmallBar = height < 4; + const heightOffset = isSmallBar ? 0 : baseHeightOffset; + const widthOffset = 2; - const rx = isRefresh ? (isSmall ? '2px' : '4px') : '0px'; + const rx = isRefresh ? (isSmallBar ? '2px' : '4px') : '0px'; const className = clsx(styles.series__rect, { [styles['series--dimmed']]: highlightedXValue !== null && !matchesX(highlightedXValue, series.data[i].x), }); @@ -129,10 +130,10 @@ export default function BarSeries({ @@ -140,10 +141,10 @@ export default function BarSeries({