D3 bar chart chart not aligning

I can’t seem to align my chart along the x-axis. I can’t seem to make much sense out of it I’ve looked at many examples but everyone seems to have their own way of doing it. Any help would be appreciated. The exercises we did didn’t seem to go in much depth regarding axis.