Hi, I'm not sure if this matters, but the plot code above does not reproduce the chart on the top. Here is the improved snippet
Plot.barY(alphabet, {
x: "letter",
y: "frequency",
sort: { x: "y", reverse: true }
}).plot({ y: { tickFormat: "%" } })
What would be the easiest way of altering
const bar = svg.append("g")
.attr("fill", color)
to highlight a specific set of bars by changing the color ie. Vowels?