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 kalmurzayev committed Feb 26, 2018
1 parent 4ad7143 commit 277bb59
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 277bb59

Please sign in to comment.