Commit 917c7231 authored by Marc Duez's avatar Marc Duez
Browse files

graph.js : follow the notation used by model.js (scientific or percent)

parent 843efc9d
......@@ -196,14 +196,21 @@ Graph.prototype = {
//ordonnée
while((height*this.precision)>0.5){
var d={};
d.type = "axis_h";
d.text = height.toExponential(1);
d.orientation = "hori";
d.pos = 1-this.scale_x(height*this.precision);
this.data_axis.push(d);
height=height/10;
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.orientation = "hori";
d.pos = 1-this.scale_x(height*this.precision);
this.data_axis.push(d);
height=height/10;
}
//current time_point
......
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