Skip to main content
Version: 4.1

Interface: IPriceLine

Represents the interface for interacting with price lines.

Methods

applyOptions

applyOptions(options): void

Apply options to the price line.

Example

priceLine.applyOptions({
price: 90.0,
color: 'red',
lineWidth: 3,
lineStyle: LightweightCharts.LineStyle.Dashed,
axisLabelVisible: false,
title: 'P/L 600',
});

Parameters

NameTypeDescription
optionsPartial<PriceLineOptions>Any subset of options.

Returns

void


options

options(): Readonly<PriceLineOptions>

Get the currently applied options.

Returns

Readonly<PriceLineOptions>