Skip to content

charton API


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

Function: builtins() ​

builtins(): ChartPlugin[]

Defined in: packages/core/src/builtins.ts:472

Every opt-in feature, for createChart(el, { plugins: builtins() }): data sources, indicators, compared symbols, annotations with trading, heatmaps, volume profiles, point series, viewport bounds, depth lanes, bar replay, drawings with all built-in tools, the render statistics overlay, the data source's marks, corporate action adjustments, the watermark, saved layouts, reference lines, the kagi and point & figure styles, bar grouping, the last-point pulse, localization and the shared WebGL context.

Returns ​

ChartPlugin[]

Example ​

ts
import { builtins, createChart, drawingTools } from '@chart-on/core';

const chart = createChart(el, { plugins: builtins() });
// Or only what the app uses:
const lean = createChart(el, { plugins: [drawingTools()] });