diff --git a/Source/Charts/Renderers/BarChartRenderer.swift b/Source/Charts/Renderers/BarChartRenderer.swift index 9427d5e39e..301fa8f30d 100644 --- a/Source/Charts/Renderers/BarChartRenderer.swift +++ b/Source/Charts/Renderers/BarChartRenderer.swift @@ -159,7 +159,7 @@ open class BarChartRenderer: BarLineScatterCandleBubbleRenderer barRect.origin.x = left barRect.size.width = right - left barRect.origin.y = top - barRect.size.height = bottom - top + offset + barRect.size.height = bottom == top ? 0 : bottom - top + offset buffer.rects[bufferIndex] = barRect bufferIndex += 1