Skip to main content
Skip to main content

API reference

You learned the ideas in Core concepts and the daily tasks in Chart usage. API reference is the lookup layer — exact method names, types, and return values when you code or ask your AI assistant.

ChartInstance, Chart environment, and ChartUI include TypeScript-synced API tables (regenerated on every docs build) from packages/chart and packages/react-chart-ui.

No need to read this cover to cover. Open the page that matches your question.

Loading chart…
Every method below belongs to the chart instance returned by createChart().

Pick your page

You want to…Read
Look up a method on the chart (setMainSeriesData, appendTick, settings, …)ChartInstance
ChartUI props, theme tokens, hooks (useChartEnvironment, …)ChartUI
Compact layout, breakpoints, ENVIRONMENT_CHANGEChart environment and layout
Build or wire a Data Connector (DataAdapter, loadData, …)Data Connectors

How this relates to other sections

flowchart TB
CU["Chart usage — what to call, in what order"]
ADV["Advanced integration — ChartUI, mobile, Chart class"]
API["API reference — exact signatures"]
TUT["Tutorials — full copy-paste examples"]

CU --> API
ADV --> API
API --> TUT
SectionRole
Chart usageExplains tasks in plain language
Advanced integrationChartUI, mobile, runtime gaps
API reference (here)Method and type cheat sheet
TutorialsEnd-to-end recipes

The one object you hold

Almost everything goes through ChartInstance — the return value of createChart():

import { createChart } from "@efixdata/exeria-chart";

const chart = createChart({ container });
chart.init();
await chart.setMainSeriesData(candles, interval);

Import types from the same package:

import type {
Candle,
Tick,
Interval,
Instrument,
ChartInstance,
DataAdapter,
LoadDataOptions,
} from "@efixdata/exeria-chart";

Data connectors in one glance

Connectors implement DataAdapter. The chart wraps them with setDataAdapter, loadData, and subscribeToUpdates:

Loading chart…

Types and contract: Data Connectors. Beginner guide: Data connectors overview.

Quick lookup — most-used methods

TaskMethod
First paintinit()setMainSeriesData()
Live priceappendTick() or subscribeToUpdates()
Scroll / fitfit()
Linear / log scalesetValueAxisMode("lin" | "log" | "%")
Add indicatoraddScript("SMA", …)
Draw a linetoolDrawer.drawTrendLine()
Save user prefsexportChartSettingsTemplate()
Cleanupdestroy()

Full grouped list: ChartInstance.

What is not on ChartInstance

Some runtime methods exist only on the exported Chart class (moveToStamp, addPanelToModel, …). See Chart runtime access.

Quick troubleshooting

ProblemCheck
TypeScript says method missingYou may need Chart class — runtime access
loadData types confusingData Connectors + LoadDataOptions
Layout mode not updatingChart environmentsetLayoutMode, ENVIRONMENT_CHANGE
Event payload shapeChartInstance → Events

Ready? Open ChartInstance or jump to the topic you need.