ScaleLinetypeBinned
Binned linetype scale: continuous values → finite named symbols.
Defaults
- helper
scaleLinetypeBinned- family
finite-style- aesthetic
linetype- scale type
binned- options type
BinnedFiniteStyleScaleOptions<LinetypeName>
Svelte component
import { GGPlot, GeomLine, ScaleLinetypeBinned } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", linetype: "group" }}>
<ScaleLinetypeBinned />
<GeomLine />
</GGPlot> JSON scales
{
"scales": {
"linetype": {
"type": "binned"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.
breaksArray<number>Explicit reference ticks or bin boundaries in data units.
rangeArray<"solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash">Explicit output range for the mapped aesthetic.
reversebooleanReverse the scale's output direction. Default false.
naValue"solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash"Replacement for missing/null source values.
unknownValue"solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash"Replacement 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.