stat: "sum"
Count overlapping points at each (x, y) cell for geom_count. Publishes n and prop (not y).
Usage
import { GGPlot, GeomCount } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomCount stat="sum" />
</GGPlot> {
"geom": "count",
"stat": "sum"
} Generated columns (after_stat)
Resolve these with channel objects such as { stat: "n" } in aes.
nprop