D3 Scatter Plot cx attribute not working on graph

I am currently working on freecodeCamp scatter plot project. The cx is not aligning with cy. Currently if i uncomment cx in codepen the circles are showing in left corner of the graph. Any help would be appreciated…
My current version of Scatter Plot

.attr("cx",(d)=> xScale(d["Year"])) … the 'd['Year'] needs to match the X-axis domain

.attr(“cx”,(d)=> xScale(yearParser(d[“Year”])))