Commit f6f764eb authored by Sean Jordan's avatar Sean Jordan

Fixing bug with default tickFormatter

Change-Id: If53fdb1bf9563834c58cf2b569d0e1a6a7155eb8
parent b637d67b
...@@ -1326,7 +1326,7 @@ Licensed under the MIT license. ...@@ -1326,7 +1326,7 @@ Licensed under the MIT license.
axis.tickFormatter = function (value, axis) { 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; var formatted = "" + Math.round(value * factor) / factor;
// If tickDecimals was specified, ensure that we have exactly that // 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