Skip to content

ViewsState

Defined in: packages/react/src/useViews.ts:31

What useViews returns.

legendProps: (group) => GroupBinding

Defined in: packages/react/src/useViews.ts:45

Spread onto a Legend for one group.

LegendGroup

GroupBinding


listProps: (group) => GroupBinding & object

Defined in: packages/react/src/useViews.ts:47

Spread onto a CategoryList for one group, with unit included.

LegendGroup

GroupBinding & object


selected: Selection | null

Defined in: packages/react/src/useViews.ts:41

The selected category of a dimension, or null.


setSelected: (selection) => void

Defined in: packages/react/src/useViews.ts:43

Selects a category of a dimension, or clears with null.

Selection | null

void


setViewId: (viewId) => void

Defined in: packages/react/src/useViews.ts:39

Switches view and clears the selection.

string

void


view: View | undefined

Defined in: packages/react/src/useViews.ts:35

The active view.


viewId: string

Defined in: packages/react/src/useViews.ts:37

The active view’s id.


views: readonly View[]

Defined in: packages/react/src/useViews.ts:33

The views, as given or one per dimension.