updateMyPlot = {
replay;
const selection = d3.select(myPlot).select("g[aria-label='bar']");
const colors = d3.quantize(
d3.interpolateHcl(randomColor(), randomColor()),
alphabet.length
);
selection
.selectAll("rect")
.data(updateData(alphabet))
.join("rect")
.transition()
.duration(750)
.attr("y", (d) => y(d.frequency))
.attr("height", (d) => y(0) - y(d.frequency))
.style("fill", (d, i) => colors[i]);
}