GeomCol
Column geometry: one rectangle per data row, from the y baseline (zero) to the row's y value. Use when the data already contains the bar heights — prefer over GeomBar, which counts or bins.
Defaults
- geom
col- default stat
identity- default position
stack- params type
ColParams
Svelte component
import { GGPlot, GeomCol } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomCol />
</GGPlot> JSON layer
{
"geom": "col"
} Params
alphanumberBar opacity. Must be between 0 and 1 (inclusive). Default 1.
widthnumberBar width as a fraction of the band step. Must be greater than 0 and at most 1. Default 0.9.
fillPaintGradientPaintWithin-mark gradient fill paint (not a data scale). Requires a solid fallback.
glowGlowSpecBounded within-mark glow treatment (not theme decoration).