ScaleLinewidthIdentity
Identity linewidth scale: source numbers used as mapped style values.
Defaults
- helper
scaleLinewidthIdentity- family
numeric-style- aesthetic
linewidth- scale type
identity- options type
IdentityNumericStyleScaleOptions
Svelte component
import { GGPlot, GeomLine, ScaleLinewidthIdentity } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", linewidth: "weight" }}>
<ScaleLinewidthIdentity />
<GeomLine />
</GGPlot> JSON scales
{
"scales": {
"linewidth": {
"type": "identity"
}
}
} Params
naValuenumberReplacement for missing/null source values.
unknownValuenumberReplacement for invalid, out-of-domain, or unmapped values.
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Legend guide for the mapped style channel. Set guide: "none" to hide.