ScaleFillIdentity
Identity fill scale: source values are validated #rgb/#rrggbb colors used as-is.
Defaults
- helper
scaleFillIdentity- family
color-fill- aesthetic
fill- scale type
identity- options type
IdentityColorScaleOptions
Svelte component
import { GGPlot, GeomCol, ScaleFillIdentity } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", fill: "group" }}>
<ScaleFillIdentity />
<GeomCol />
</GGPlot> JSON scales
{
"scales": {
"fill": {
"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.