API reference

Public entrypoints for the current integrations.

JavaScript

createChart(host,data,options,mount) returns a contained result. Its controller offers update, updateOptions, getFrame, getSelection, getHiddenSeriesIds, exportSvg, exportPng, exportCsv and destroy. updateOptions retains validated data. planWebChart and describeChartData support pure work; tables accept offset/limit pages and WordCloud uses an explicit measurement port.

Specialized options

Each variant’s data/options panels expose real models compiled against the installed packages. Incompatible options return diagnostics instead of pretending to have an effect.

Defaults and how options apply
OptionWhen omittedWhen to change it
tooltip.enabledEnabledDisable it if your application provides its own detail panel.
legend.visible / legend.positionVisible, below the chartA side position needs 600 px of width. Narrower containers place the legend below.
animation.enabledDisabledEnable it to animate entry or changes. The system motion preference can suppress it.
options.locale / formatting.localeEnglish messages; formatting inherits the chart language.Set both when the interface language and regional format differ.

Presentation and size

Axes, scales and geometry

Interaction and animation

Chart toolbar

Language, accessibility and limits

Content ports

Pass content ports to createChart to customize the title, tooltip, legend and labels. Portable text is retained on the server and on export.

See all five customization examples →

ChartContentSlotName

Import this enum to choose the part of the chart you customize. Each member retains the key used in content and selects its typed context.

TypeScript
import { ChartContentSlotName } from "@neural-charts/web";
Title
title
Legend
legend
Tooltip
tooltip
AxisLabel
axisLabel
DataLabel
dataLabel