Documentation menu

Interface

Marker

Properties

NameTypeDescription
timenumber | bigint | Date

UTC ms or a Date. Snaps to the first bar at or after it (the last bar for later times); a marker on a gap is not drawn.

position?'aboveBar' | 'belowBar'

Default 'aboveBar'.

shape?'circle' | 'square' | 'arrowUp' | 'arrowDown'

Default 'circle'.

color?Color | null

null (default): the series' main color.

text?string

Label text; empty (default) for none.

Declaration

export interface Marker {
    time: number | bigint | Date;
    position?: 'aboveBar' | 'belowBar';
    shape?: 'circle' | 'square' | 'arrowUp' | 'arrowDown';
    color?: Color | null;
    text?: string;
}

Used by

Series