diff --git a/Source/Charts/Components/AxisBase.swift b/Source/Charts/Components/AxisBase.swift index 56d56b9c82..b57c59dbb3 100644 --- a/Source/Charts/Components/AxisBase.swift +++ b/Source/Charts/Components/AxisBase.swift @@ -220,7 +220,7 @@ open class AxisBase: ComponentBase /// The maximum number of labels on the axis @objc open var axisMaxLabels = Int(25) { - didSet { axisMinLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue } + didSet { axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue } } /// the number of label entries the axis should have