diff --git a/NEWS.txt b/NEWS.txt index 54660a5..a635d96 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -14,7 +14,7 @@ Vanderburg), and fixed so that setting lineWidth to 0 also hides the shadow (based on problem reported by Sergio Nunes). Updated mousemove position expression to the latest from jQuery (bug reported by meyuchas). Use borders instead of background in legend (fix printing -issue 25 and 45). +issue 25 and 45). Explicitly convert axis min/max to numbers. Flot 0.5 diff --git a/jquery.flot.js b/jquery.flot.js index d1cc301..6aacefb 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -383,8 +383,8 @@ } function setRange(axis, axisOptions) { - var min = axisOptions.min != null ? axisOptions.min : axis.datamin; - var max = axisOptions.max != null ? axisOptions.max : axis.datamax; + var min = axisOptions.min != null ? +axisOptions.min : axis.datamin; + var max = axisOptions.max != null ? +axisOptions.max : axis.datamax; if (max - min == 0.0) { // degenerate case