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.
Properties
Section titled “Properties”arrange
Section titled “arrange”arrange:
string
Defined in: packages/core/src/types.ts:59
Orders the marks, so its categories form runs.
color?
Section titled “color?”
optionalcolor?:string|null
Defined in: packages/core/src/types.ts:61
Colours each mark by this dimension’s categories. Defaults to arrange.
lightness?
Section titled “lightness?”
optionallightness?:string|null
Defined in: packages/core/src/types.ts:65
Fades marks along this ordered dimension, first category faintest. Off by default.
shape?
Section titled “shape?”
optionalshape?:string|null
Defined in: packages/core/src/types.ts:63
Gives each category of this dimension its own mark shape. Defaults to arrange.