diff --git a/Source/Charts/Renderers/AxisRendererBase.swift b/Source/Charts/Renderers/AxisRendererBase.swift index 0032c13dc2..9ac954d3fc 100644 --- a/Source/Charts/Renderers/AxisRendererBase.swift +++ b/Source/Charts/Renderers/AxisRendererBase.swift @@ -103,7 +103,7 @@ open class AxisRendererBase: Renderer let labelCount = axis.labelCount let range = abs(yMax - yMin) - if labelCount == 0 || range <= 0 || range.isInfinite + if labelCount == 0 || range <= 0 || range.isInfinite || range.isNaN { axis.entries = [Double]() axis.centeredEntries = [Double]()