From 3b145a40fc64f7e466da9546f6223a690b176ab4 Mon Sep 17 00:00:00 2001 From: Alex Leeds Date: Thu, 11 Jan 2018 15:34:02 -0500 Subject: [PATCH] Fixed X-Axis Labels Not Showing (#3154) --- Source/Charts/Formatters/IndexAxisValueFormatter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Formatters/IndexAxisValueFormatter.swift b/Source/Charts/Formatters/IndexAxisValueFormatter.swift index 9655123984..ae86509d05 100644 --- a/Source/Charts/Formatters/IndexAxisValueFormatter.swift +++ b/Source/Charts/Formatters/IndexAxisValueFormatter.swift @@ -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] } }