In d3.js charts, the x-axis line (the black line between the bars and bar labels) looks like this by default: | ---------------- |, see screenshot below:

How can I change this to a straight line (without vertical lines at both ends)?
If you look at the generated SVG, this code seems to define the style: <path class="domain" d="M0,6V0H824V6"></path> , which is automatically generated by D3.
Thanks!
source share