score:0

While not setting the ticks explicitly, this snippet worked to feed the extent to d3 before the axisBottom call, which then cleaned up the display.

svg.append("g")
  .attr("class", "e4rAxis")
  .attr("transform", "translate(0," + height + ")")
  .call(d3.axisBottom(x));

More Query from same tag