Plot.plot({
label: null,
y: {
grid: true,
label: "↑ Frequency (%)",
percent: true
},
marks: [
Plot.barY(alphabet, {x: "letter", y: "frequency"}),
Plot.text(alphabet, {x: "letter", y: "frequency", text: (d) => (d.frequency * 100).toFixed(1), dy: -6, lineAnchor: "bottom"}),
Plot.ruleY([0])
]
})