Commit 2d8c2a91 authored by Mathieu Giraud's avatar Mathieu Giraud

js/axis.js: 'float-2' axis style

There should be a more flexible way to encode float formats.
parent 323dac7d
......@@ -274,6 +274,9 @@ Axis.prototype = {
if (output=="percent"){
text = ((min+(h*i))*100).toFixed(1) + "%"
}
if (output=="float-2"){
text = (min+(h*i)).toFixed(2)
}
if (this.reverse) pos = 1 - pos;
......
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