On this page

Stats

28 stats

All stats

How to set a stat

On any geom shell, pass the stat prop. 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" }}>
  <GeomBar stat="count" />
</GGPlot>