((chart) => html`
<div style="display: flex;align-items: flex-start;">${chart}${chart.legend(
"color"
)}
`)(
Plot.plot({
y: { grid: true },
marks: [
Plot.rectY(
penguins,
Plot.binX({ y: "count" }, { x: "flipper_length_mm", fill: "sex" })
),
Plot.ruleY([0])
]
})
)