ScaleLinewidthManual

Manual linewidth mapping: domain values paired with explicit numbers.

Defaults

helper
scaleLinewidthManual
family
numeric-style
aesthetic
linewidth
scale type
manual
options type
ManualNumericStyleScaleOptions

Svelte component

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

<GGPlot data={rows} aes={{ x: "x", y: "y", linewidth: "weight" }}>
  <ScaleLinewidthManual />
  <GeomLine />
</GGPlot>

JSON scales

{
  "scales": {
    "linewidth": {
      "type": "manual"
    }
  }
}

Params

domain

Array<DomainValue>

Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.

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).

values required

number[]

Numeric range values paired with domain (required).

Guide interaction

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

Examples

← All scales · Palettes · Scales and guides