D3 challenges- Each bar element's height should accurately represent the data's corresponding GDP

I’ve completed two of the D3 challenges, but I keep failing one of the tests regarding the height of the displayed elements. I’m not sure where I’m going wrong, if anyone can help it would be great.

Bar chart challenge: https://codepen.io/sbnakhi/pen/pOOzpv
Scatter plot challenge: https://codepen.io/sbnakhi/pen/xaPovY