ScaleShapeBinned

Binned shape scale: continuous values → finite named symbols.

Defaults

helper
scaleShapeBinned
family
finite-style
aesthetic
shape
scale type
binned
options type
BinnedFiniteStyleScaleOptions<PointShapeName>

Svelte component

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

<GGPlot data={rows} aes={{ x: "x", y: "y", shape: "group" }}>
  <ScaleShapeBinned />
  <GeomPoint />
</GGPlot>

JSON scales

{
  "scales": {
    "shape": {
      "type": "binned"
    }
  }
}

Params

domain

Array<DomainValue>

Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.

breaks

Array<number>

Explicit reference ticks or bin boundaries in data units.

range

Array<"circle" | "triangle" | "square" | "diamond" | "plus" | "cross">

Explicit output range for the mapped aesthetic.

reverse

boolean

Reverse the scale's output direction. Default false.

naValue

"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"

Replacement for missing/null source values.

unknownValue

"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"

Replacement for invalid, out-of-domain, or unmapped values.

labels

string

Guide label format string (numeric or temporal).

guide

GuideSpec

Guide presentation override (legend, colorbar, colorsteps, or none).

Guide interaction

Legend guide for the mapped style channel. Set guide: "none" to hide.

Examples

← All scales · Palettes · Scales and guides