Skip to content

Commit

Permalink
forgot to port timescale fix from graph.mako to index.mako
Browse files Browse the repository at this point in the history
  • Loading branch information
steiza committed Jan 25, 2013
1 parent 62693b7 commit 8f74492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfeedback/templates/index.mako
Expand Up @@ -69,7 +69,7 @@
var graph_type = '${graph_type}';
var time = d3.range(0, ${length});
time.forEach(function(each, i) {
time[i] = new Date(${current_time} + (i * ${time_per_data_point}));
time[i] = new Date(${current_time} + ((i - ${length}) * ${time_per_data_point}));
});
custom_graph('graph_${index}', line_names, data, max, time, ${time_per_data_point}, graph_type);
Expand Down

0 comments on commit 8f74492

Please sign in to comment.