You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set axisMaximum for the ordinate on a graph to a value, the range of the values plotted on the ordinate appeared was collapsed to zero. The code for AxisBase.axisMaximum is:
open var axisMaximum: Double
{
get
{
return _axisMaximum
}
set
{
_customAxisMax = true
_axisMaximum = newValue
axisRange = abs(_axisMaximum - newValue) // Always results in a range of zero.
}
}
This results in axisRange is always being set to zero, because newValue has the same value as _axisMaximum. Making the following change fixed the problem:
open var axisMaximum: Double
{
get
{
return _axisMaximum
}
set
{
_customAxisMax = true
_axisMaximum = newValue
axisRange = abs(_axisMaximum - _axisMinimum)
}
}
The text was updated successfully, but these errors were encountered:
liuxuan30
added a commit
to liuxuan30/Charts
that referenced
this issue
Oct 8, 2016
When I set axisMaximum for the ordinate on a graph to a value, the range of the values plotted on the ordinate appeared was collapsed to zero. The code for AxisBase.axisMaximum is:
This results in axisRange is always being set to zero, because newValue has the same value as _axisMaximum. Making the following change fixed the problem:
The text was updated successfully, but these errors were encountered: