One level's appearance. line and label are the two independent toggles.

interface PriceLevelStyle {
    color?: string;
    extentFromRight?: number;
    label: boolean;
    line: boolean;
    lineStyle?: CanvasLineStyle;
    lineWidth?: number;
    text?: string;
}

Properties

color?: string

Line and tag colour. Unset falls through to the theme (see defaultColor).

extentFromRight?: number

Fraction of the plot width the line spans, measured from the price axis. 1 = full width (default), the same meaning PriceLine gives it.

label: boolean

Draw the matching tag on the price axis.

line: boolean

Draw the horizontal line across the plot.

lineStyle?: CanvasLineStyle

Line dash. Default per kind.

lineWidth?: number

Line width in media px. Default 1.

text?: string

Axis tag text. Default: the price, formatted by the scale.