JavaScript & React libraryAPIClassesCosmographSizeLegend

Class: CosmographSizeLegend

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 CosmographSizeLegend(cosmograph, targetElement, config): CosmographSizeLegend

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
configCosmographSizeLegendConfigConfiguration for the filtering component

Returns

CosmographSizeLegend

Inherited from

CosmographExclusiveSelectionComponent.constructor

Accessors

domain

Get Signature

get domain(): undefined | [number, number]

Returns

undefined | [number, number]


defaultConfig

Get Signature

get defaultConfig(): CosmographSizeLegendConfig

Returns

CosmographSizeLegendConfig

Overrides

CosmographExclusiveSelectionComponent.defaultConfig


accessor

Get Signature

get accessor(): undefined | string

Returns

undefined | string

Overrides

CosmographExclusiveSelectionComponent.accessor


hasClickableEvents

Get Signature

get hasClickableEvents(): boolean

Returns

boolean

Methods

setConfig()

setConfig(config): Promise<void>

Parameters

ParameterType
configPartial<TConfig>

Returns

Promise<void>

Inherited from

CosmographExclusiveSelectionComponent.setConfig


hide()

hide(): void

Hides the CosmographSizeLegend.

Returns

void


show()

show(): void

Shows the CosmographSizeLegend.

Returns

void


remove()

remove(): void

Removes the CosmographSizeLegend instance and cleans up associated event listeners.

Returns

void

Overrides

CosmographExclusiveSelectionComponent.remove