Interface: UseChartResult
Defined in: packages/react/src/use-chart.ts:5
What useChart returns.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
chart | readonly | Chart | null | The live chart, or null before the dashboard is ready. |
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 | (el) => void | A callback ref: put it on an element and the chart's renderer draws there with the spec's view. Leave it unused for a headless chart that you draw yourself from data. |
reset | readonly | () => void | Clear this chart's filter. |