return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].first) &&
d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].first);
});
- var maxTime = d3.max(raw_data.relays, function(d) {
+ var maxTime = d3.min(raw_data.relays, function(d) {
return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].last) &&
d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].last);
});