Skip to content

charton API


charton API / @chart-on/vue / index / ChartInputs

Interface: ChartInputs ​

Defined in: sync.ts:9

The props both components hand to the engine.

Extended by ​

Properties ​

dataSource? ​

optional dataSource?: DataSource | null

Defined in: sync.ts:28

Where bars come from. Changing it attaches the new source and loads symbol again; null detaches it. Like every prop, leaving it out or setting it to undefined leaves the chart as it is. The chart needs the dataSource() plugin in options.plugins (or builtins()); without it the source is not attached and development builds warn once (data-source-missing).


interval? ​

optional interval?: Interval

Defined in: sync.ts:31


options? ​

optional options?: ChartOptionsPatch

Defined in: sync.ts:19

Chart options. Given to the chart when it is created, then applied with applyOptions whenever they change, including changes made inside a reactive object. Plain data in them is compared by value, so an object literal written in the template does not apply again on every render. Functions, dates and class instances are compared by identity: a formatter written inline in the template is new on every render and applies the options again each time, so define callbacks once in the script.


symbol? ​

optional symbol?: string

Defined in: sync.ts:30

Symbol to load from dataSource; loads once both it and interval are set.