position: "fill"

Stack groups then rescale each x slot to proportions (positive and negative runs separately). Same geom set as stack; y domain becomes proportions.

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomCol position="fill" />
</GGPlot>
{
  "geom": "col",
  "position": "fill"
}

positionParams

This position has no positionParams. Only jitter (width, height, seed) and nudge (x, y) accept parameters.

Default for geoms

No geom uses this as its default position. Set it explicitly when needed.

Compatible geoms

Examples

← All positions · Geoms · Stats