From cb6f1f824e53e7d8ba1fa127f80b14a4a8b28fda Mon Sep 17 00:00:00 2001 From: Xuan Liu Date: Sat, 8 Oct 2016 09:14:22 +0800 Subject: [PATCH] fix #1603 and API comment --- Source/Charts/Components/AxisBase.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Charts/Components/AxisBase.swift b/Source/Charts/Components/AxisBase.swift index 95c721de12..1066412ea7 100644 --- a/Source/Charts/Components/AxisBase.swift +++ b/Source/Charts/Components/AxisBase.swift @@ -328,7 +328,7 @@ open class AxisBase: ComponentBase /// The maximum value for this axis. /// If set, this value will not be calculated automatically depending on the provided data. - /// Use `resetCustomAxisMin()` to undo this. + /// Use `resetCustomAxisMax()` to undo this. open var axisMaximum: Double { get @@ -339,7 +339,7 @@ open class AxisBase: ComponentBase { _customAxisMax = true _axisMaximum = newValue - axisRange = abs(_axisMaximum - newValue) + axisRange = abs(newValue - _axisMinimum) } }