square/intro-to-d3

rangeRoundBands is deprecated in v4?

danielcompton opened this issue · 0 comments

On https://square.github.io/intro-to-d3/data-binding/ there is a code section

var y = d3.scaleOrdinal()
  .rangeRoundBands([0, 75])
  .domain(sales.map(function(d, i) {
    return d.product;
  }));

It looks like rangeRoundBands was removed in v4?