D3 Bar Chart Help: First and Last Data Elements Not Appearing Correctly

If you look carefully at the first and last data bars in this Codepen, you’ll see that they are not appearing correctly. The first data bar appears slightly to the left of the rest of the bars. In addition, the last data bar “bleeds” all the way to the right edge. I would definitely appreciate any assistance. Thank you!

I fixed the issue. I was applying a scale to the width attribute–which made the bar sizes way too big. I was able to debug the issue by changing the width to 1.