Scales

A scale maps values to position. It lives on encoding, not on the axis. Set it only to override the inferred type.

spec.json200 · valid

Open the playground to edit a spec with validate, repair, and export.

Types

Field types are quantitative, temporal, ordinal, or nominal.

Domain

encoding.y.scale.domain is [min, max]. Either end may be null to stay automatic, as in [0, null]. scale.type log is for a positive domain.