Skip to content

Dimension

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

One way of grouping the items. Category order is the order marks are laid out in.

categories: readonly Category[]

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

In the order they should be drawn and listed.


id: string

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

Unique; the key items use in values.


label: string

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

Shown as the legend’s heading and in descriptions.


optional ordered?: boolean

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

True when the categories run in a meaningful order (decades, sizes). Only an ordered dimension may drive lightness: on unordered categories, fainter and stronger would read as less and more.


optional unknownLabel?: string

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

Label of the category unknown values fall into. Defaults to “Unknown”.