ScaleLinetypeDiscrete
Discrete linetype scale for categories (named symbols).
Defaults
- helper
scaleLinetypeDiscrete- family
finite-style- aesthetic
linetype- scale type
ordinal- options type
DiscreteFiniteStyleScaleOptions<LinetypeName>
Svelte component
import { GGPlot, GeomLine, ScaleLinetypeDiscrete } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y", linetype: "group" }}>
<ScaleLinetypeDiscrete />
<GeomLine />
</GGPlot> JSON scales
{
"scales": {
"linetype": {
"type": "ordinal"
}
}
} Params
domainArray<DomainValue>Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.
domainMode"grow" | "data"Ordinal domain stability: "grow" (default) preserves assignments across filters; "data" rebuilds from current data.
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.
onExhaust"cycle" | "error"Ordinal palette exhaustion policy: "cycle" (default) with a warning, or "error".
guideGuideSpecGuide presentation override (legend, colorbar, colorsteps, or none).
Guide interaction
Legend guide for the mapped style channel. Set guide: "none" to hide.