ScaleColourIdentity
Identity color scale: source values are validated #rgb/#rrggbb colors used as-is. British Colour spelling — same binding as ScaleColorIdentity.
Defaults
- helper
scaleColourIdentity- family
color-fill- aesthetic
color- scale type
identity- options type
IdentityColorScaleOptions
Alias
This component re-exports ScaleColorIdentity (same binding). Prefer the canonical spelling in new code.
Svelte component
import { GGPlot, GeomPoint, ScaleColourIdentity } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", color: "group" }}>
<ScaleColourIdentity />
<GeomPoint />
</GGPlot> JSON scales
{
"scales": {
"color": {
"type": "identity"
}
}
} Params
naValuestringColor for null/missing values. Default9.
unknownValuestringColor for invalid, out-of-domain, or unmapped values. Default9.
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Legend guide for discrete/manual/identity color. Set guide: "none" to hide.