ScaleFillManual

Manual fill mapping: domain values paired with explicit colors.

Defaults

helper
scaleFillManual
family
color-fill
aesthetic
fill
scale type
manual
options type
ManualColorScaleOptions

Svelte component

import { GGPlot, GeomCol, ScaleFillManual } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y", fill: "group" }}>
  <ScaleFillManual />
  <GeomCol />
</GGPlot>

JSON scales

{
  "scales": {
    "fill": {
      "type": "manual"
    }
  }
}

Params

domain

Array<DomainValue>

Explicit semantic domain. Manual/ordinal scales use ordered values; sequential/binned scales use [min, max].

naValue

string

Color for null/missing values. Default9.

unknownValue

string

Color for invalid, out-of-domain, or unmapped values. Default9.

guide

GuideSpec

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

values required

string[]

Colors paired positionally with the explicit or trained domain (required).

Guide interaction

Legend guide for discrete/manual/identity color. Set guide: "none" to hide.

Examples

← All scales · Palettes · Scales and guides