ScaleAlphaContinuous
Continuous sequential alpha scale.
Defaults
- helper
scaleAlphaContinuous- family
numeric-style- aesthetic
alpha- scale type
sequential- options type
SequentialStyleScaleOptions
Svelte component
import { GGPlot, GeomPoint, ScaleAlphaContinuous } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", alpha: "weight" }}>
<ScaleAlphaContinuous />
<GeomPoint />
</GGPlot> JSON scales
{
"scales": {
"alpha": {
"type": "sequential"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.
breaksArray<number | string>Explicit reference ticks or bin boundaries in data units.
rangeArray<number>Explicit output range for the mapped aesthetic.
reversebooleanReverse the scale's output direction. Default false.
oob"censor" | "squish"Out-of-bounds policy for values outside an explicit domain: "censor" (default) or "squish".
naValuenumberReplacement for missing/null source values.
unknownValuenumberReplacement for invalid, out-of-domain, or unmapped values.
labelsstringGuide label format string (numeric or temporal).
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Legend guide for the mapped style channel. Set guide: "none" to hide.