Payload of the click event (chart.on('click', ...)).

interface ChartClickEvent {
    ctrlKey: boolean;
    id: null | string;
    metaKey: boolean;
    modifiers: PointerModifiers;
    paneIndex: number;
    point: { x: number; y: number };
    pointerType: PointerKind;
    pressure: number;
    price: null | number;
    shiftKey: boolean;
    time: number;
    viaDrag?: boolean;
}

Hierarchy (View Summary)

Properties

ctrlKey: boolean
id: null | string

externalId of the hit primitive, or null on empty plot.

metaKey: boolean
modifiers: PointerModifiers
paneIndex: number
point: { x: number; y: number }

Press position: container media x, pane-local media y.

pointerType: PointerKind
pressure: number
price: null | number

Price under the press on that pane, or null off the plot.

shiftKey: boolean

The same state as modifiers, in the flat form the draw tier has read since it shipped. pressure here is the pressure at the press, not the release, which always reads 0.

time: number

UTC seconds under the press, interpolated between bars and past the right edge.

viaDrag?: boolean

Set on the release half of a press-drag-release while a host is placing a shape.