Skip to content

Encoding

Defined in: packages/core/src/types.ts:57

Which dimension drives which visual property, by dimension id. color and shape default to the arrange dimension, so { arrange: "genre" } is a single-dimension view; null turns a property off. Size is never available: mark area is reserved for weight.

arrange: string

Defined in: packages/core/src/types.ts:59

Orders the marks, so its categories form runs.


optional color?: string | null

Defined in: packages/core/src/types.ts:61

Colours each mark by this dimension’s categories. Defaults to arrange.


optional lightness?: string | null

Defined in: packages/core/src/types.ts:65

Fades marks along this ordered dimension, first category faintest. Off by default.


optional shape?: string | null

Defined in: packages/core/src/types.ts:63

Gives each category of this dimension its own mark shape. Defaults to arrange.