score:2

Accepted answer

If you explicitly set the tick values, you'll avoid the weird end of the year rounding issue:

var xAxis = d3.svg.axis()
    .scale(x)
    .tickValues(d3.time.days(t1, t2).filter(function(d, i){ return !(i % 2); }))

fixed


Related Query

More Query from same tag