colorPlot = function(d, i) {
const colors = ["#3366cc",
"#dc3912",
"#ff9900",
"#109618",
"#990099",
"#0099c6",
"#dd4477",
"#66aa00",
"#b82e2e",
"#316395",
"#994499",
"#22aa99",
"#aaaa11",
"#6633cc",
"#e67300",
"#8b0707",
"#651067",
"#329262",
"#5574a6",
"#3b3eac"
];
const colorIndex = Math.round(Math.random() * 20);
const colorIndex2 = Math.round(Math.random() * 20);
d3.select(this)
.transition()
.delay(i * 25)
.duration(2000)
.ease(d3.easeElasticOut)
.style("fill", colors[colorIndex])
.style("stroke", colors[colorIndex2])
.attr("stroke-width", "2.0px")
.attr("r", 15);
}