diff --git a/Source/Charts/Renderers/AxisRendererBase.swift b/Source/Charts/Renderers/AxisRendererBase.swift index bd1c6aa466..b587d7b12e 100644 --- a/Source/Charts/Renderers/AxisRendererBase.swift +++ b/Source/Charts/Renderers/AxisRendererBase.swift @@ -163,7 +163,11 @@ open class AxisRendererBase: Renderer n += 1 } } - + else if last == first && n == 0 + { + n = 1 + } + // Ensure stops contains at least n elements. axis.entries.removeAll(keepingCapacity: true) axis.entries.reserveCapacity(labelCount)