Commit a992a622 authored by Marc Duez's avatar Marc Duez
Browse files

graph.js : use formatSize()

parent d362f807
......@@ -198,14 +198,7 @@ Graph.prototype = {
var d={};
d.type = "axis_h";
switch (this.m.notation_type){
case "percent" :
d.text=(100*height)+"%";
break;
case "scientific" :
d.text = height.toExponential(1);
break;
}
d.text = this.m.formatSize(height, false)
d.orientation = "hori";
d.pos = 1-this.scale_x(height*this.precision);
this.data_axis.push(d);
......
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