Documentation menu

Interface

PriceLineOptions

Properties

NameTypeDescription
price?number

Price, in the series' units. Default 0.

color?Color | null

Line and label color; null (default) uses the series' main color.

lineWidth?number

CSS px. Default 1.

lineStyle?LineStyle

Default 'dashed'.

axisLabelVisible?boolean

Label the price on the price axis. Default true.

title?string

Text above the line at the right edge of the plot; empty (default) for none.

Declaration

export interface PriceLineOptions {
    price?: number;
    color?: Color | null;
    lineWidth?: number;
    lineStyle?: LineStyle;
    axisLabelVisible?: boolean;
    title?: string;
}

Used by

PriceLine, Series