Skip to content

Documentation / @finchart/core / index / PlotEventSource

Interface: PlotEventSource ​

Defined in: packages/core/src/plot/capabilities.ts:83

Can listen to the chart's events.

Not named EventSource because that's a global DOM type — colliding with it would make auto-import grab the wrong thing for a consumer with lib.dom enabled.

Consumers: crosshair, legend, tooltip, syncX

Methods ​

on() ​

on<E>(event, handler): () => void

Defined in: packages/core/src/plot/capabilities.ts:84

Type Parameters ​

E ​

E extends keyof PlotEvents

Parameters ​

event ​

E

handler ​

(payload) => void

Returns ​

() => void