Skip to content

GroupChartModel

GroupChartModel = object

Defined in: packages/schema/src/model.ts:877

A chart of records per value of a field above a list, following its filters (.chart(...) with groupBy).

optional average?: string

Defined in: packages/schema/src/model.ts:885

A numeric field each group averages, instead of counting its records.


groupBy: string

Defined in: packages/schema/src/model.ts:879

The field whose values make the groups, such as a status or a relation; not a date.


limit: number

Defined in: packages/schema/src/model.ts:887

How many values it shows, the largest.


optional sum?: string

Defined in: packages/schema/src/model.ts:883

A numeric field each group adds up, instead of counting its records.


type: "bar" | "donut"

Defined in: packages/schema/src/model.ts:881

Bars, the largest first, or a donut.