From 5170d18d0073fa04c2273090dbb84a017f4ab783 Mon Sep 17 00:00:00 2001 From: Xuan Liu Date: Tue, 27 Sep 2016 11:57:06 +0800 Subject: [PATCH] n should be 1 whether centerAxisLabelsEnabled or not (if 0, bar chart will have missing x axis labels after zoom in) --- Source/Charts/Renderers/AxisRendererBase.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Renderers/AxisRendererBase.swift b/Source/Charts/Renderers/AxisRendererBase.swift index 8c94572b7e..a98019f78a 100644 --- a/Source/Charts/Renderers/AxisRendererBase.swift +++ b/Source/Charts/Renderers/AxisRendererBase.swift @@ -130,7 +130,7 @@ open class AxisRendererBase: Renderer interval = floor(10.0 * Double(intervalMagnitude)) } - var n = axis.centerAxisLabelsEnabled ? 1 : 0 + var n = 1 // force label count if axis.isForceLabelsEnabled