Stacked WaffleX

scale type mismatch for y (needs band)
<Plot
    height={400}
    x={{ grid: true }}
    color={{ legend: true }}>
    <WaffleX
        gap={2}
        borderRadius={2}
        {...groupY(
            {
                data: penguins,
                y: 'island',
                fill: 'species'
            },
            { x: 'count' }
        )} />
</Plot>

Open in Svelte playground

Improve this page
Last update at: 2025/11/24