ScaleColorGrey
Grey ramp color palette for discrete categories.
Defaults
- helper
scaleColorGrey- family
color-fill- aesthetic
color- scale type
ordinal- options type
GreyScaleOptions
Also exported as
ScaleColourGrey
Svelte component
import { GGPlot, GeomPoint, ScaleColorGrey } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", color: "group" }}>
<ScaleColorGrey />
<GeomPoint />
</GGPlot> JSON scales
{
"scales": {
"color": {
"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.