Documentation menu

Interface

ClickEvent

A press and release in a plot that moved at most 3 CSS px (not sent while a drawing is being created).

Properties

NameTypeDescription
xnumber

Position in CSS px relative to the canvas.

ynumber
panenumber
logicalIndexnumber
timenumber | null

UTC ms of the nearest bar, null beyond the data.

pricenumber
targetClickTarget | null

null for empty space.

Declaration

export interface ClickEvent {
    x: number;
    y: number;
    pane: number;
    logicalIndex: number;
    time: number | null;
    price: number;
    target: ClickTarget | null;
}

Used by

ChartEventMap