Interface: UseChart
Defined in: packages/svelte/src/runes.svelte.ts:93
What useChart returns. Every field is reactive.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
chart | readonly | Chart | null | The live chart, or null while the dashboard loads. |
data | readonly | ChartData | null | The chart's latest aggregates, or null before the first update. |
filter | readonly | Filter | null | The chart's own filter, or null. |
ref | readonly | Action<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