Skip to content

charton API


charton API / @chart-on/core / index / SeriesPriceLineOptions

Interface: SeriesPriceLineOptions ​

Defined in: packages/core/src/series.ts:220

The horizontal line across the plot at a series' newest (or newest visible) value.

Properties ​

color? ​

optional color?: string

Defined in: packages/core/src/series.ts:222

Defaults to the value's label color.


lineStyle? ​

optional lineStyle?: SeriesPriceLineStyle

Defined in: packages/core/src/series.ts:226

Default 'dotted'.


lineWidth? ​

optional lineWidth?: number

Defined in: packages/core/src/series.ts:224

Default 1.


source? ​

optional source?: "last" | "lastVisible"

Defined in: packages/core/src/series.ts:228

'last' (default): the newest value. 'lastVisible': the newest value on screen, following the view while panning.