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
domainArray<DomainValue>Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.
breaksArray<number>Explicit reference ticks or bin boundaries in data units.
rangeArray<"circle" | "triangle" | "square" | "diamond" | "plus" | "cross">Explicit output range for the mapped aesthetic.
reversebooleanReverse 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.
labelsstringGuide label format string (numeric or temporal).
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Legend guide for the mapped style channel. Set guide: "none" to hide.