title: D3 4.0 rangeRoundBands equivalent?
body: <p>I see a lot of D3 code that has something like this:</p>
  
  <pre><code>var x = d3.scale.ordinal()
    .rangeRoundBands([0, width], .1);
  </code></pre>
  
  <p>As of D3 version 4.0 <code>d3.scale.ordinal()</code> is now <code>d3.scaleOrdinal</code> and <code>rangeRoundBands</code> seems to be gone.</p>
  
  <pre><code>&gt; d3.scaleOrdinal()
  
  { 
    [Function: scale]
    domain: [Function],
    range: [Function],
    unknown: [Function],
    copy: [Function] 
  }
  </code></pre>
  
  <p>What would the D3 v4 equivalent of this code (from Mike Bostock's <a href="http://bl.ocks.org/mbostock/3885304" rel="noreferrer">bar chart example</a>) be?</p>
  
  <pre><code>var x = d3.scale.ordinal()
    .rangeRoundBands([0, width], .1);
  </code></pre>