Interface: UseChart
Defined in: packages/vue/src/index.ts:90
What useChart returns.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
chart | readonly | ShallowRef<Chart | null> | The live chart, or null while the dashboard loads. |
data | readonly | ShallowRef<ChartData | null> | The chart's latest aggregates, or null before the first update. |
filter | readonly | ShallowRef<Filter | null> | The chart's own filter, or null. |
ref | readonly | (el) => void | A 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