Skip to content

GroupChartInput

GroupChartInput = object

Defined in: packages/schema/src/view-chart.ts:17

Records per value of groupBy, counted, or with sum or average that of a numeric field.

optional average?: Ref

Defined in: packages/schema/src/view-chart.ts:27

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


groupBy: Ref

Defined in: packages/schema/src/view-chart.ts:19

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


optional limit?: number

Defined in: packages/schema/src/view-chart.ts:23

How many values it shows, the largest; default 10.


optional sum?: Ref

Defined in: packages/schema/src/view-chart.ts:25

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


optional type?: GroupChartModel["type"]

Defined in: packages/schema/src/view-chart.ts:21

Bars, the default, or a donut.