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

naValue

number

Replacement for missing/null source values.

unknownValue

number

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