Im sorry again.
Yes, the most dense would be red and the less would be green. It means that density coming from the data the closest to the lower number green and so on. The problem with removing the density is that the size is related to it, like the point size should follow this, but as you could see, the numbers are very low, so I put the pointSize in the equation to make it bigger in case of user needs.
I mean, actually the colors should follow this map. But its also not working properly I think, because the hsl(300, 100,50) should be the most dense.
export const colormap = [
300, //hsl(300, 100%, 50%)
270, //hsl(270, 100%, 50%)
240, //hsl(240, 100%, 50%)
210, // hsl(210, 100%, 50%)
180, //hsl(180, 100%, 50%)
150, //hsl(150, 100%, 50%)
120, //hsl(120, 100%, 50%)
90, //hsl(90, 100%, 50%)
60, //hsl(60, 100%, 50%)
30, //hsl(30, 100%, 50%)
0, //hsl(0, 100%, 50%)
];