Skip to content

charton API


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

Interface: BarSpan ​

Defined in: packages/core/src/drawing/types.ts:97

The main series bars a data-aware tool reads, without copying: bars is the series' own array, and [start, end) the indices of the bars asked for. Read it only during the call and never change it. The array stays the same object while live bars update or append, and is replaced when the data is reloaded or history is prepended, so tools can cache results on it.

Properties ​

bars ​

readonly bars: readonly Readonly<Bar>[]

Defined in: packages/core/src/drawing/types.ts:98


end ​

readonly end: number

Defined in: packages/core/src/drawing/types.ts:100


start ​

readonly start: number

Defined in: packages/core/src/drawing/types.ts:99