ScaleFillGrey
Grey ramp fill palette for discrete categories.
Defaults
- helper
scaleFillGrey- family
color-fill- aesthetic
fill- scale type
ordinal- options type
GreyScaleOptions
Svelte component
import { GGPlot, GeomCol, ScaleFillGrey } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", fill: "group" }}>
<ScaleFillGrey />
<GeomCol />
</GGPlot> JSON scales
{
"scales": {
"fill": {
"type": "ordinal"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Manual/ordinal scales use ordered values; sequential/binned scales use [min, max].
domainMode"grow" | "data"Ordinal domain stability: "grow" (default) preserves assignments across filters; "data" rebuilds from current data.
reversebooleanReverse the output color range. Default false.
naValuestringColor for null/missing values. Default9.
unknownValuestringColor for invalid, out-of-domain, or unmapped values. Default9.
onExhaust"cycle" | "error"Ordinal palette exhaustion policy: "cycle" (default) with a warning, or "error".
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
startnumberGrey start (0–1).
endnumberGrey end (0–1).
Guide interaction
Legend guide for discrete/manual/identity color. Set guide: "none" to hide.