Skip to content

charton API


charton API / @chart-on/ui / index / chartStyles

Variable: chartStyles ​

const chartStyles: readonly ChartStyleOption[]

Defined in: ui/src/toolbar-presets.ts:238

The built-in candle styles for time bars, in menu order (#861), labelled by their defaultShellMessages keys, chartStyle<Style>, under chartStyleSection<Section> headings. Sections group the styles by the prices they draw: all four, the high-low range, or the close alone. Within a section, candles come first as the default, then the style that shows the most values of a bar, and styles that show as many by English label. A style's count is the bar's own open, high, low, close and volume it draws, plus the price its colour compares the close with when it does not draw that price itself (the previous close for hollow and columns, the open for hlcBars, the base level for baseline); Heikin Ashi draws averages, none of the bar's own values. toolbar-presets.test.ts checks the order against this rule.