Skip to content

charton API


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

Function: tpoColumns() ​

tpoColumns(bars, options): TpoColumn[]

Defined in: packages/core/src/profile/tpo.ts:186

Data for tpoSeries: one item per bar inside a session, grouped like computeTpoProfiles. Column c of a profile holds the c-th TPO of each row that has more than c, so a session's profile spans its own bars and every bar draws one column. On a live bar, call again (or for the last session's bars only) and setData the result.

Parameters ​

bars ​

readonly Bar[]

options ​

TpoSessionOptions

Returns ​

TpoColumn[]