How does the d3.scaleBand work?
<p>How can I make the line <code>var x = d3.scale.ordinal().rangeRoundBands([0, width], .05);</code> from <a href="http://bl.ocks.org/d3noob/8952219" rel="noreferrer">this example</a> work in d3 v4 using <a href="https://github.com/d3/d3-scale#scaleBand" rel="noreferrer">d3.scaleBand</a>?</p>