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
| Name | Type | Description |
|---|---|---|
options | Partial<PriceLineOptions> | Any subset of options. |
Returns
void
options
▸ options(): Readonly<PriceLineOptions>
Get the currently applied options.
Returns
Readonly<PriceLineOptions>