ScaleShapeManual
Manual shape mapping: domain values paired with named symbols.
Defaults
- helper
scaleShapeManual- family
finite-style- aesthetic
shape- scale type
manual- options type
ManualFiniteStyleScaleOptions<PointShapeName>
Svelte component
import { GGPlot, GeomPoint, ScaleShapeManual } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", shape: "group" }}>
<ScaleShapeManual />
<GeomPoint />
</GGPlot> JSON scales
{
"scales": {
"shape": {
"type": "manual"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.
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.
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
valuesrequiredPointShapeName[]Named symbols paired with domain (required).
Guide interaction
Legend guide for the mapped style channel. Set guide: "none" to hide.