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

alpha

number

Bar opacity. Must be between 0 and 1 (inclusive). Default 1.

width

number

Bar width as a fraction of the band step. Must be greater than 0 and at most 1. Default 0.9.

fillPaint

GradientPaint

Within-mark gradient fill paint (not a data scale). Requires a solid fallback.

glow

GlowSpec

Bounded within-mark glow treatment (not theme decoration).

Allowed stats

Allowed positions

Examples

← All geoms · Getting started