title: Scale padding in D3 v 4
body: <p><a href="https://i.stack.imgur.com/Y3cd3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y3cd3.png" alt="enter image description here"></a></p>
  
  <p>How to make non-padding edge of the x-scale? There is <code>.rangeBand()</code> in v3, but I am using D3 v4.</p>
  
  <pre><code>var x = d3.scaleBand().rangeRound([0, width], .05).padding(0.1),
      y = d3.scaleLinear().rangeRound([height, 0]);
  </code></pre>