interface AddSeriesOptions {
    paneIndex?: number;
    priceFormat?: PriceFormat;
    priceScaleId?: PriceScaleId;
    style?: SeriesStyle;
}

Properties

paneIndex?: number

Target pane index (0 = price). Higher panes are created on demand.

priceFormat?: PriceFormat

Value formatting applied to this series' price scale (axis + crosshair tag): price (tick-size precision), volume (compact 1.2K / 3.4M / 5.6B), percent (a % suffix at a fixed precision), or a custom formatter.

percent suffixes the value as it stands and does not scale it: a study that already returns 0..100 reads 62.24%, and one that returns a 0..1 fraction reads 0.62%. Multiplying here would put the axis and the plotted value into disagreement, which is the one thing a formatter must never do.

priceScaleId?: PriceScaleId

Which price axis this series maps to. 'right' (default) and 'left' each draw an axis and autoscale independently; '' is a hidden overlay scale (no axis) for a volume histogram inside the price pane.

style?: SeriesStyle

Style overrides merged onto the chart type's defaults.