score:1

Accepted answer

You just need to sort your data in order of time. I've adjusted your parse function to match how it's stored, then used the array sort method:

var parse = d3.time.format("%H:%M").parse;

data = data.sort(function(a,b) {
    return parse(a.date) - parse(b.date);
} );

See https://jsfiddle.net/zwb1hbdz/2/


Related Query

More Query from same tag