Commit ec168da2 authored by David Schnur's avatar David Schnur

Merge pull request #942 from sejordan/tickformatter-bug

Fix incorrect display of NaN with the default tickFormatter.
parents b637d67b f6f764eb
......@@ -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
......
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