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] } }