Customize the d3 month or year tick format
<p>So I made a chart in d3 and used the default x axis format,</p>

<pre><code>d3.axisBottom(x)
</code></pre>

<p>which output the following graph:</p>

<p><a href="https://i.stack.imgur.com/yM3wM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yM3wM.png" alt="months and years"></a></p>

<p>How can I manually create and customize this format? In particular, I'd like to use short month names, like "Oct", so that "October" doesn't obscure the following year label.</p>