title: D3.js scaleOrdinal doesn't support rangeRoundBands method
body: <p>Getting error on rangeRoundBands method when using D3.js version 4 for ordinal scale. 
  Below is the example in D3.js version 3.</p>
  
  <p><a href="https://bl.ocks.org/mbostock/7440840" rel="noreferrer">https://bl.ocks.org/mbostock/7440840</a></p>
  
  <p>However with version 4 below code throws an error.</p>
  
  <pre><code>var x = d3.scaleOrdinal()
  .domain(data.map(function(d) { return d.name; }))
  .rangeRoundBands([0, width], 0.1);
  </code></pre>