Documentation menu

Interface

PlotEventMap

Properties

NameTypeDescription
hover{ hit: PlotHit | null; }

The hovered element changed.

click{ hit: PlotHit | null; x: number; y: number; }

A click, with the element and the axis values at the pointer (y on the right axis, the left if the right is hidden).

viewChange{}

The visible range of an axis changed (pan, zoom, fit).

Declaration

export interface PlotEventMap {
    hover: {
        hit: PlotHit | null;
    };
    click: {
        hit: PlotHit | null;
        x: number;
        y: number;
    };
    viewChange: {};
}