Skip to content

FieldEncoding

FieldEncoding = object

Defined in: spec/encoding.ts:29

Binds one field to one channel.

A field reference, not a value: the frame owns the data, and the encoding owns only the claim that this field drives this visual property.

optional axis?: AxisSpec

Defined in: spec/encoding.ts:32


field: string

Defined in: spec/encoding.ts:30


optional legend?: LegendSpec

Defined in: spec/encoding.ts:33


optional scale?: ScaleSpec

Defined in: spec/encoding.ts:31


optional sort?: "ascending" | "descending" | null | { field: string; order?: "ascending" | "descending"; }

Defined in: spec/encoding.ts:37

Reorders a categorical domain by another field’s aggregate.


optional title?: string

Defined in: spec/encoding.ts:35

Overrides the field’s own title for this chart.