ScaleShapeManual

Manual shape mapping: domain values paired with named symbols.

Defaults

helper
scaleShapeManual
family
finite-style
aesthetic
shape
scale type
manual
options type
ManualFiniteStyleScaleOptions<PointShapeName>

Svelte component

import { GGPlot, GeomPoint, ScaleShapeManual } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y", shape: "group" }}>
  <ScaleShapeManual />
  <GeomPoint />
</GGPlot>

JSON scales

{
  "scales": {
    "shape": {
      "type": "manual"
    }
  }
}

Params

domain

Array<DomainValue>

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

naValue

"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"

Replacement for missing/null source values.

unknownValue

"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"

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

guide

GuideSpec

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

values required

PointShapeName[]

Named symbols 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