how to hide first and last tick in d3js code example
Example: remove axis tick ends d3
axis.tickSizeOuter(0) // (d3 version 4.x) & (d3 version 5.x)
axis.outerTickSize(0) // (d3 version 3.x)
axis.tickSizeOuter(0) // (d3 version 4.x) & (d3 version 5.x)
axis.outerTickSize(0) // (d3 version 3.x)