ClickConfig

interface ClickConfig<A extends Annotation, C extends Chart>

An interface that defines the parameters for a call to the clickBehavior function.

Type parameters

  • A: Annotation

  • C: Chart

Properties

annotations

annotations: A []

The Annotations to which the interaction is applied.

chart

chart: undefined | C

The Chart to which the interaction is applied.

click

click: InteractionCallback <A, C>

A callback function that will be responsible for executing the click behavior. It will implicitly receive references to both a D3 Selection to the Annotation’s representative glyph and the Annotation object itself.

selector

selector: undefined | string

The selector of the glyphs to which the interaction is applied.