score:1

Accepted answer

you need to modify the way the domain is set, not the range. so instead of

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

you would do

x.domain([mindate, maxdate]);

Related Query

More Query from same tag