vis_files/generate_plots.js
/// Draws the time labels onto the graphs
Draws the time labels onto the graphs
Draws the time labels onto the graphs
function draw_timelabels()
{
	for(i = 0; i < visjson.time_labels.length; i++){
		var x = Math.floor(graphdx*(visjson.time_labels[i].time-axxmin)/(axxmax-axxmin));
		add_verticle_line(visjson.time_labels[i].name,x,DPURPLE);
	}
	for(i = 0; i < visjson.pred_timeplot.length; i++){
		var x = Math.floor(graphdx*(visjson.pred_timeplot[i].time-axxmin)/(axxmax-axxmin));
		add_verticle_line(visjson.pred_timeplot[i].name,x,DBLUE);
	}
}
function draw_timelabels ( ) { for ( i = 0 ; i < visjson . time_labels . length ; i ++ ) { var x = Math . floor ( graphdx * ( visjson . time_labels [ i ] . time - axxmin ) / ( axxmax - axxmin ) ) ; add_verticle_line ( visjson . time_labels [ i ] . name , x , DPURPLE ) ; } for ( i = 0 ; i < visjson . pred_timeplot . length ; i ++ ) { var x = Math . floor ( graphdx * ( visjson . pred_timeplot [ i ] . time - axxmin ) / ( axxmax - axxmin ) ) ; add_verticle_line ( visjson . pred_timeplot [ i ] . name , x , DBLUE ) ; } }
Draws the time labels onto the graphs
Draws the time labels onto the graphs