Merge pull request #942 from sejordan/tickformatter-bug

Fix incorrect display of NaN with the default tickFormatter.
pull/1/head
David Schnur 13 years ago
commit ec168da2cb

@ -1326,7 +1326,7 @@ Licensed under the MIT license.
axis.tickFormatter = function (value, axis) {
var factor = Math.pow(10, axis.tickDecimals);
var factor = axis.tickDecimals ? Math.pow(10, axis.tickDecimals) : 1;
var formatted = "" + Math.round(value * factor) / factor;
// If tickDecimals was specified, ensure that we have exactly that

Loading…
Cancel
Save