Accepted answer

If you'll comment this line (nr 63 in your fiddle):

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

Your code will work as expected.

You did correctly when you took an offset of the minDate from your data, but later on you have overwritten your x.domain with exact min and max from your data.

Related Query

More Query from same tag