Documentation menu

Interface

PlotHit

The element under the pointer.

Properties

NameTypeDescription
markMark
indexnumber

Index of the point in the mark's data.

xnumber
ynumber

For waterfall subtotals and totals, the running total.

position{ x: number; y: number; }

Where it is drawn (a point, or the center of a bar or cell), CSS px relative to the canvas.

Declaration

export interface PlotHit {
    mark: Mark;
    index: number;
    x: number;
    y: number;
    position: {
        x: number;
        y: number;
    };
}

Used by

PlotEventMap