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.
Properties
Section titled “Properties”categories
Section titled “categories”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.
ordered?
Section titled “ordered?”
optionalordered?: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.
unknownLabel?
Section titled “unknownLabel?”
optionalunknownLabel?:string
Defined in: packages/core/src/types.ts:41
Label of the category unknown values fall into. Defaults to “Unknown”.