Commit 287a997f authored by Mathieu Giraud's avatar Mathieu Giraud

js/numerical_axis: PercentAxis, bikeshed format

parent f13c020b
...@@ -271,7 +271,7 @@ PercentAxis.prototype = Object.create(NumericalAxis.prototype); ...@@ -271,7 +271,7 @@ PercentAxis.prototype = Object.create(NumericalAxis.prototype);
} }
PercentAxis.prototype.getLabelText = function(value) { PercentAxis.prototype.getLabelText = function(value) {
return floatToFixed(value*100, 4) + "%" return parseFloat(value*100).toFixed(nice_number_digits(100 * (this.max - this.min), 2)) + "%"
} }
/** /**
......
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