ScaleLinewidthContinuous

Continuous sequential linewidth scale.

Defaults

helper
scaleLinewidthContinuous
family
numeric-style
aesthetic
linewidth
scale type
sequential
options type
SequentialStyleScaleOptions

Svelte component

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

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

JSON scales

{
  "scales": {
    "linewidth": {
      "type": "sequential"
    }
  }
}

Params

domain

Array<DomainValue>

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

breaks

Array<number | string>

Explicit reference ticks or bin boundaries in data units.

range

Array<number>

Explicit output range for the mapped aesthetic.

reverse

boolean

Reverse the scale's output direction. Default false.

oob

"censor" | "squish"

Out-of-bounds policy for values outside an explicit domain: "censor" (default) or "squish".

naValue

number

Replacement for missing/null source values.

unknownValue

number

Replacement for invalid, out-of-domain, or unmapped values.

labels

string

Guide label format string (numeric or temporal).

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