ScaleFillManual
Manual fill mapping: domain values paired with explicit colors.
Defaults
- helper
scaleFillManual- family
color-fill- aesthetic
fill- scale type
manual- options type
ManualColorScaleOptions
Svelte component
import { GGPlot, GeomCol, ScaleFillManual } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", fill: "group" }}>
<ScaleFillManual />
<GeomCol />
</GGPlot> JSON scales
{
"scales": {
"fill": {
"type": "manual"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Manual/ordinal scales use ordered values; sequential/binned scales use [min, max].
naValuestringColor for null/missing values. Default9.
unknownValuestringColor for invalid, out-of-domain, or unmapped values. Default9.
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
valuesrequiredstring[]Colors paired positionally with the explicit or trained domain (required).
Guide interaction
Legend guide for discrete/manual/identity color. Set guide: "none" to hide.