Skip to content

Interface: UseChart ​

Defined in: packages/svelte/src/runes.svelte.ts:93

What useChart returns. Every field is reactive.

Properties ​

PropertyModifierTypeDescription
chartreadonlyChart | nullThe live chart, or null while the dashboard loads.
datareadonlyChartData | nullThe chart's latest aggregates, or null before the first update.
filterreadonlyFilter | nullThe chart's own filter, or null.
refreadonlyAction<HTMLElement>An action that draws the chart in an element with the dashboard's renderer (or spec.renderer): <div use:hour.ref></div>. Leave it unused for a headless chart.

Methods ​

reset() ​

ts
reset(): void;

Defined in: packages/svelte/src/runes.svelte.ts:106

Clear this chart's filter.

Returns ​

void

Released under the MIT License.