Skip to content

Commit

Permalink
Fix axis label disappear when zooming in deep enough
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxuan30 committed Dec 29, 2017
1 parent 5639818 commit 6f76875
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 @@ -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)
Expand Down

0 comments on commit 6f76875

Please sign in to comment.