Skip to content

charton API


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

Interface: PointColors ​

Defined in: packages/core/src/indicators/types.ts:113

A colour per bar for line, histogram and OHLC plots: colorOutput names an output (which compute must return) holding, per bar, an index into palette. That bar's column, or the line segment from it to the next bar, takes the colour; NaN or an index outside the palette keeps the plot's own. Set both or neither.

Properties ​

colorOutput? ​

optional colorOutput?: string

Defined in: packages/core/src/indicators/types.ts:115


palette? ​

optional palette?: string[]

Defined in: packages/core/src/indicators/types.ts:114