Skip to content

Commit

Permalink
Fixed X-Axis Labels Not Showing (#3154) (#3174)
Browse files Browse the repository at this point in the history
  • Loading branch information
leedsalex authored and jjatie committed Jan 12, 2018
1 parent fc21586 commit 0011c35
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, IAxisValueFormatter
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 0011c35

Please sign in to comment.