score:3

Accepted answer

I figured out my issue-

let xScale = d3.scaleBand().domain(data).range([0,wid]).padding(0)

The domain was d3.range(5) rather than my data variable.


Related Query

More Query from same tag