ScaleSizeIdentity

Identity size scale: source numbers used as mapped style values.

Defaults

helper
scaleSizeIdentity
family
numeric-style
aesthetic
size
scale type
identity
options type
IdentityNumericStyleScaleOptions

Svelte component

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

<GGPlot data={rows} aes={{ x: "x", y: "y", size: "weight" }}>
  <ScaleSizeIdentity />
  <GeomPoint />
</GGPlot>

JSON scales

{
  "scales": {
    "size": {
      "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