On this page

Positions

6 positions

All positions

How to set a position

Pass the position prop on a geom shell. Only values listed on that geom's Geoms page validate. Omit it to use the geom default.

import { GGPlot, GeomBar } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "category", fill: "group" }}>
  <GeomBar position="dodge" />
</GGPlot>