Skip to content

ScaleKind

ScaleKind = "linear" | "log" | "pow" | "sqrt" | "symlog" | "time" | "ordinal" | "band" | "point" | "quantile" | "quantize" | "threshold" | "identity"

Defined in: spec/scale.ts:10

How a field’s values map onto a channel’s positions.

A scale declares a domain and never a range: the range is pixels, cells or radians, and only the renderer knows which. This is the single rule that lets one spec drive a canvas and an eighty-column terminal.