Data Visualization Projects - Visualize Data with a Scatterplot Graph

I was able to get the Scatterplot Graph completed and it passes all of the tests. However, I had to do some hacking away on manipulating the color in d3.
Specifically:

  const color = d3.scaleOrdinal(d3.schemeAccent).domain([,,,1,2,3])

I wanted to get to specific colors in the accent scheme and adjusting the domain array worked however it did not behave the way I expected it to. I thought each color was represented as an element in the array. Here is the link to the codepen

Did I use this correct or is there another approach?

Thanks in Advance!