Skip to content

Commit

Permalink
Fixed X-Axis Labels Not Showing (ChartsOrg#3154) (ChartsOrg#3174)
Browse files Browse the repository at this point in the history
  • Loading branch information
leedsalex authored and kalmurzayev committed Feb 26, 2018
1 parent d71fd3b commit 9a38ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Formatters/IndexAxisValueFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ open class IndexAxisValueFormatter: NSObject, AxisValueFormatter
axis: AxisBase?) -> String
{
let index = Int(value.rounded())
guard values.indices.contains(index), index != Int(value) else { return "" }
guard values.indices.contains(index), index == Int(value) else { return "" }
return _values[index]
}
}

0 comments on commit 9a38ce2

Please sign in to comment.