Skip to content
EliteChart

CompareSeries

Documentation


Documentation / @elitechart/core / CompareSeries

Defined in: compare/compare-types.ts:24

A single compare series registered with the chart.

Example

code
const cs: CompareSeries = {
  id: 'eth',
  symbol: ethSymbol,
  bars: ethBars,
  color: '#ff8a00',
  lineWidth: 1.5,
};

Properties

bars

code
readonly bars: readonly Bar[];

Defined in: compare/compare-types.ts:27


color?

code
readonly optional color?: string;

Defined in: compare/compare-types.ts:29

Render color. Falls back to an auto-assigned palette color when omitted.


id

code
readonly id: string;

Defined in: compare/compare-types.ts:25


lineWidth?

code
readonly optional lineWidth?: number;

Defined in: compare/compare-types.ts:31

Line thickness in px. Default 1.5.


symbol

code
readonly symbol: SymbolInfo;

Defined in: compare/compare-types.ts:26