ScaleLinewidthBinned
Binned linewidth scale: continuous values → stepped numeric style.
Defaults
- helper
scaleLinewidthBinned- family
numeric-style- aesthetic
linewidth- scale type
binned- options type
SequentialStyleScaleOptions
Svelte component
import { GGPlot, GeomLine, ScaleLinewidthBinned } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", linewidth: "weight" }}>
<ScaleLinewidthBinned />
<GeomLine />
</GGPlot> JSON scales
{
"scales": {
"linewidth": {
"type": "binned"
}
}
} 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.