ScaleLinetypeIdentity

Identity linetype scale: source names used as mapped symbols.

Defaults

helper
scaleLinetypeIdentity
family
finite-style
aesthetic
linetype
scale type
identity
options type
IdentityFiniteStyleScaleOptions<LinetypeName>

Svelte component

import { GGPlot, GeomLine, ScaleLinetypeIdentity } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y", linetype: "group" }}>
  <ScaleLinetypeIdentity />
  <GeomLine />
</GGPlot>

JSON scales

{
  "scales": {
    "linetype": {
      "type": "identity"
    }
  }
}

Params

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.

guide

GuideSpec

Guide presentation override (legend, colorbar, colorsteps, or none).

Guide interaction

Legend guide for the mapped style channel. Set guide: "none" to hide.

Examples

← All scales · Palettes · Scales and guides