Hi all,
The problem I'm facing is that although the width of the bars do change dynamically, the color of the bars don't seem to match the width (See attachment). This problem goes away when I make the data range of x smaller. (Ex: changing "500" to "300" in the following code solves the problem).
var x = d3.scaleLinear()
.range([0, 500])
.domain([0, maxCount]);
I've spent quite a long time but still can't wrap my head around this. Please help! Thanks a lot!!
Cheers,
Kaiting