Skip to content
MyAppBuilder
StableChartsVersion 1

Donut Chart

Overview

A pie chart with a hole showing the total in the middle. Same use as Pie, with the overall number readable at a glance.

When to use

  • Jobs by status with the total job count in the centre
  • Revenue by service type with total revenue in the centre
  • Tickets by priority

When not to use

  • More than 8 categories
  • When exact comparisons matter: use Bar

Quick start

  1. Add a Donut Chart and choose the entity
  2. Set X axis / category field (a Select is ideal)
  3. Set Aggregation Sum + Y value field to show a money total in the centre
  4. Scope with filters so the total matches the period you mean

Properties

Titletext (bindable)

Heading shown above the chart. Bindable, so it can include the selected period or customer. Leave empty for none.

Default: Donut Chart

Example: Revenue by month

X axis / category fieldfield

One ring segment per distinct value; up to 8, then “Other”. Dates are grouped automatically by day, or by month when the data spans more than two months. Select fields keep their option order and labels. When empty, the first Select field (or the display field) is used.

Example: status

Y value fieldfield (number, decimal, currency)

Segment size for Sum/Average; the centre shows the total of all segments. Ignored for Count. Currency fields are formatted with the app's currency.

Example: amount

Group by (series)field

Not used; only the first series is drawn. Up to 8 series are shown; smaller ones are folded into “Other”.

Example: technician

Aggregationselect

How records in each category are reduced to one number: Count records, or Sum / Average / Min / Max of the Y value field. Without a Y field, everything falls back to Count.

Options: count, sum, avg, min, max

Default: count

Show legendboolean

Shows the series names under the chart. Only appears when there is more than one series (or for pie/donut slices).

Default: true

Show tooltipboolean

Shows the exact values when hovering or tapping a point, bar or slice.

Default: true

Bubble size field (bubble charts)field (number, decimal, currency)

Only used by Bubble charts; ignored here.

Chart heightnumber (120–800)

Height in pixels. 260 suits dashboard tiles; 400+ for full-width reports.

Default: 260

Data binding

Bind Data to an entity query (filters, search, sort) or an API list. Up to 1000 matching records are loaded and aggregated in the browser: one category per X value, one series per Group by value, reduced with the chosen Aggregation over the Y field. Without a data source the editor shows sample data with a “Sample data” badge.

Properties that can use dynamic data: Title, data.

Events

On click
Runs when a bar, point, slice or cell is clicked (only when actions are set). Event → category is the X value (option value, date key or text), Event → value the number(s) and Event → series the series name when grouped. Typical: Navigate to a list filtered on that category, or Set State to drill down.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Responsive behavior

Scales with the container; the centre total uses compact formatting (1.2K, 3.4M).

Permissions

Only records the current role may read are counted, so a customer's chart shows their own data. Hidden fields are not available as X, Y or Group by for that role.

Accessibility

  • The centre total is decorative; the text description lists the segments

Examples

Revenue by service type

Example
X: Service type · Y: Total · Aggregation: SUM · Group by: (none)
Source: Invoices where status equals paid and paid_at within this month
Centre: total paid revenue this month

Common patterns

  • Donut for share + KPI for the exact total
  • Status donut on a dashboard with On Click drill-down

Limitations

  • Same as Pie: zero segments hidden, Group by ignored, 8 segments max

Troubleshooting

The centre total differs from my KPI

Why: Different filters, or zero-value categories excluded

Fix: Use identical filters on both components

Related

Was this helpful?