Data-visualization-project-1-bar-chart

The problem is with rectangle place on X-axis
i cant seem to position it perfectly
I tried another of getting width of single rectangle bar by finding the whole X-axis length and dividing it by total number of rectangle
But it doesn’t work
https://codepen.io/nkp1111/pen/mdxZYXB