Skip to content

Commit

Permalink
n should be 1 whether centerAxisLabelsEnabled or not (if 0, bar chart…
Browse files Browse the repository at this point in the history
… will have missing x axis labels after zoom in)
  • Loading branch information
liuxuan30 committed Sep 27, 2016
1 parent 67ad1ba commit 5170d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Renderers/AxisRendererBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5170d18

Please sign in to comment.