score:2

Accepted answer

You have another date format. Try this:

var parseDate = d3.time.format("%d-%m-%Y").parse;

And use d.date instead of d.time in your x.domain:

x.domain(d3.extent(data, function(d) { return d.time; }));

Demo: https://embed.plnkr.co/SGRyjWxjReXq8ENLd4LI/


Related Query

More Query from same tag