Commit ce3bdb08 authored by David Schnur's avatar David Schnur

Fixed autoscale check when using null x/y values.

The autoscale check was too broad; it included the case where autoscale
was undefined.  This resulted in axes not expanding correctly when
coordinates at the end of a series had null x or y values.  Fixed by
narrowing the check to !== false; resolves #1095.
parent e2b9cf8c
...@@ -1131,7 +1131,7 @@ Licensed under the MIT license. ...@@ -1131,7 +1131,7 @@ Licensed under the MIT license.
if (val != null) { if (val != null) {
f = format[m]; f = format[m];
// extract min/max info // extract min/max info
if (f.autoscale) { if (f.autoscale !== false) {
if (f.x) { if (f.x) {
updateAxis(s.xaxis, val, val); updateAxis(s.xaxis, val, val);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment