In D3 4.x rangeRoundBands
was moved to the new Band scale:
d3.scaleBand()
.range([range])
.round([round]);
That’s equivalent to:
d3.scaleBand()
.rangeRound([range]);
Here is the API: https://github.com/d3/d3-scale#band-scales
In D3 4.x rangeRoundBands
was moved to the new Band scale:
d3.scaleBand()
.range([range])
.round([round]);
That’s equivalent to:
d3.scaleBand()
.rangeRound([range]);
Here is the API: https://github.com/d3/d3-scale#band-scales