diff --git a/jquery.flot.js b/jquery.flot.js index 0817fd8..ce7253b 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1219,7 +1219,8 @@ }; axis.tickFormatter = function (v, axis) { - return v.toFixed(axis.tickDecimals); + var factor = Math.pow(10, axis.tickDecimals); + return Math.round(v * factor) / factor; }; }