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