Skip to content

Commit

Permalink
Fix axis label disappear when zooming in deep enough (ChartsOrg#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxuan30 authored and Konstantin Zyrianov committed Feb 20, 2018
1 parent 77ccc2d commit 18af4ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Charts/Renderers/AxisRendererBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,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)
Expand Down

0 comments on commit 18af4ca

Please sign in to comment.