Commit e4775aab authored by olau@iola.dk's avatar olau@iola.dk

Convert axis min/max to numbers

git-svn-id: https://flot.googlecode.com/svn/trunk@105 1e0a6537-2640-0410-bfb7-f154510ff394
parent 2c57d535
......@@ -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
......
......@@ -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
......
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