ScaleColourViridisB
Viridis-family color scale — binned (viridis_b). British Colour spelling — same binding as ScaleColorViridisB.
Defaults
- helper
scaleColourViridisB- family
color-fill- aesthetic
color- scale type
binned- options type
ViridisScaleOptions
Alias
This component re-exports ScaleColorViridisB (same binding). Prefer the canonical spelling in new code.
Svelte component
import { GGPlot, GeomPoint, ScaleColourViridisB } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", color: "group" }}>
<ScaleColourViridisB />
<GeomPoint />
</GGPlot> JSON scales
{
"scales": {
"color": {
"type": "binned"
}
}
} Params
option"viridis" | "magma" | "plasma" | "inferno" | "cividis" | "turbo"Viridis family option (default viridis).
domainArray<DomainValue>Explicit semantic domain. Manual/ordinal scales use ordered values; sequential/binned scales use [min, max].
breaksArray<number | string>Explicit semantic reference ticks for sequential colorbars or ordered boundaries for binned colorsteps.
rangeArray<string>Explicit #rgb/#rrggbb colors. Manual pairs them with domain values; sequential/binned interpolate or sample them.
reversebooleanReverse the output color range. Default false.
transform"identity" | "log10" | "sqrt"Pre-training quantitative transform for sequential/binned color values. log10/sqrt require non-temporal values; ordinal, manual, and identity families do not accept a transform.
oob"censor" | "squish"Out-of-bounds policy for an explicit continuous/binned domain: "censor" (default) or "squish".
naValuestringColor for null/missing values. Default9.
unknownValuestringColor for invalid, out-of-domain, or unmapped values. Default9.
labelsstringGuide label format: numeric (".1f", ",d", ".0%") or temporal strftime-style text.
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Colorsteps guide by default for binned color. Use guide helpers or guide: "none" to suppress.