Bar defaults

AE scale type mismatch for y (needs band)
<script lang="ts">
    // imports etc.
    setPlotDefaults({
        bar: {
            borderRadius: 4,
            stroke: 'currentColor',
            fill: null
        }
    })
</script>

<Plot y={['A', 'B', 'C', 'D', 'E', 'F']}>
    <BarX data={[1, 2, 3, 4, 5, 6]} fill={(d) => d} />
</Plot>
Improve this page
Last update at: 2025/11/24