D3 Barchart Bar Location Not Quite Accurate. Passing 13 of 14!

Tell us what’s happening:
Bars and ticks don’t seem to line up, although things “look” okay.
Something in the declaration of the x position of the bar, or maybe the x axis is wrong?
I’ve spent so many trying to figure it out on my own and even trying to learn from others. Thank you for your help!

Your code so far

Please have a look on Glitch.


remix this

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36.

Challenge: Visualize Data with a Bar Chart

Link to the challenge: