Skip to content

Interface: UseChart ​

Defined in: packages/vue/src/index.ts:90

What useChart returns.

Properties ​

PropertyModifierTypeDescription
chartreadonlyShallowRef<Chart | null>The live chart, or null while the dashboard loads.
datareadonlyShallowRef<ChartData | null>The chart's latest aggregates, or null before the first update.
filterreadonlyShallowRef<Filter | null>The chart's own filter, or null.
refreadonly(el) => voidA function template ref: <div :ref="hour.ref" /> draws the chart there with the dashboard's renderer (or spec.renderer). Leave it unused for a headless chart.

Methods ​

reset() ​

ts
reset(): void;

Defined in: packages/vue/src/index.ts:103

Clear this chart's filter.

Returns ​

void

Released under the MIT License.