From ab6e4a95bdfb45f2399bb7afe7a68a7cea4ba9b2 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Tue, 26 Feb 2013 22:13:31 -0500 Subject: [PATCH] Skip NaN values in axis min/max calculations. Resolves #489. --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index 09d8fd0..c41b531 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1629,7 +1629,7 @@ Licensed under the MIT license. xoff = yoff = 0; - if (v < axis.min || v > axis.max + if (isNaN(v) || v < axis.min || v > axis.max // skip those lying on the axes if we got a border || (t == "full" && ((typeof bw == "object" && bw[axis.position] > 0) || bw > 0)