ChartWidget
export class VisitsChartWidget extends ChartWidget { static override heading = 'Daily visits (30 days)' static override type = 'line' static override library = 'apex'
static override async data(ctx) { return { labels: ['Mon', 'Tue'], series: [{ name: 'Visits', data: [12, 19] }] } }}Methods
| Method | Description |
|---|---|
static type | line | bar | area | pie | donut. |
static library | apex (default) or chartjs. |
static data(ctx) | Chart payload (async). |
static columnSpan / heading | Layout. |