interface GridOptions {
    horzColor?: string;
    horzLines?: boolean;
    horzStyle?: CanvasLineStyle;
    lineWidth?: number;
    spacing: number;
    vertColor?: string;
    vertLines?: boolean;
    vertStyle?: CanvasLineStyle;
}

Properties

horzColor?: string

Horizontal line colour. Unset falls back to theme.grid.

horzLines?: boolean

Draw the horizontal (price) lines. Default true.

horzStyle?: CanvasLineStyle

Horizontal line dash. Unset falls back to theme.gridStyle, then solid.

lineWidth?: number

Line width in media px. Default 1.

spacing: number

Target spacing between grid lines, in media px.

vertColor?: string

Vertical line colour. Unset falls back to theme.grid.

vertLines?: boolean

Draw the vertical (time) lines. Default true.

vertStyle?: CanvasLineStyle

Vertical line dash. Unset falls back to theme.gridStyle, then solid.