axis.tickSizeOuter(0) // (d3 version 4.x) & (d3 version 5.x) axis.outerTickSize(0) // (d3 version 3.x)