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

graph.js : can handle time_order data with less time/point

- can be used to hide some time/point
parent e1a18f89
......@@ -155,15 +155,16 @@ Graph.prototype = {
initAxis : function(){
this.data_axis=[];
this.graph_col=[];
//abscisse
for (var i=0 ; i<this.m.windows[0].size.length; i++){
this.graph_col[i]=this.marge1 + i*(( 1-(this.marge1+this.marge2) )/(this.m.windows[0].size.length-1) );
for (var i=0 ; i<this.m.time_order.length; i++){
this.graph_col[i]=this.marge1 + i*(( 1-(this.marge1+this.marge2) )/(this.m.time_order.length-1) );
}
if (this.m.windows[0].size.length==1){
if (this.m.time_order.length==1){
this.graph_col[0]=1/2
}
if (this.m.windows[0].size.length==2){
if (this.m.time_order.length==2){
this.graph_col[0]=1/4;
this.graph_col[1]=3/4;
}
......
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