diff --git a/Source/Charts/Utils/ChartUtils.swift b/Source/Charts/Utils/ChartUtils.swift index 14f6d89c70..17b85e167c 100755 --- a/Source/Charts/Utils/ChartUtils.swift +++ b/Source/Charts/Utils/ChartUtils.swift @@ -51,7 +51,7 @@ open class ChartUtils let i = roundToNextSignificant(number: Double(number)) - if i.isInfinite + if i.isInfinite || i.isNaN { return 0 }