Class: CosmographBars

Internal

Abstract component that enforces exclusive selection across all instances. Only one component of this type can have an active selection at any time.

Extends

Constructors

Constructor

new CosmographBars(cosmograph, targetElement, config): CosmographBars

Constructs a filtering component that connects Cosmograph data to a UI component.

Parameters

ParameterTypeDescription
cosmographCosmographThe Cosmograph instance to connect to
targetElementHTMLElementHTML element for rendering the UI component
configCosmographBarsConfigConfiguration for the filtering component

Returns

CosmographBars

Inherited from

CosmographExclusiveSelectionComponent.constructor

Accessors

defaultConfig

Get Signature

get defaultConfig(): CosmographBarsConfig

Returns

CosmographBarsConfig

Overrides

CosmographExclusiveSelectionComponent.defaultConfig


accessor

Get Signature

get accessor(): undefined | string

Returns

undefined | string

Overrides

CosmographExclusiveSelectionComponent.accessor

Methods

setConfig()

setConfig(config): Promise<void>

Parameters

ParameterType
configPartial<TConfig>

Returns

Promise<void>

Inherited from

CosmographExclusiveSelectionComponent.setConfig


remove()

remove(): void

Removes the component and cleans up event listeners

Returns

void

Inherited from

CosmographExclusiveSelectionComponent.remove


setSelectedItem()

setSelectedItem(item?): void

Parameters

ParameterType
item?BarData

Returns

void

Overrides

CosmographExclusiveSelectionComponent.setSelectedItem