Skip to content
MyAppBuilder
StableChartsVersion 1

Stacked Bar

Overview

Bars split into coloured segments by a second field, showing both the total per category and its composition: revenue per month by service, jobs per technician by status.

When to use

  • Revenue per month by service type
  • Jobs per technician by status
  • Tickets per week by priority
  • Orders per region by channel

When not to use

  • No second field to split by: use Bar
  • Comparing segment sizes precisely across bars: grouped Bar is easier
  • More than 8 segment values

Quick start

  1. Add a Stacked Bar and choose the entity
  2. Set X axis / category field (e.g. Created date or Technician)
  3. Set Group by to the field that splits each bar (e.g. Status)
  4. Set Aggregation and Y value field

Properties

Titletext (bindable)

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

Default: Stacked Bar

Example: Revenue by month

X axis / category fieldfield

One stacked bar per distinct value (dates bucketed by day/month). 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: created_at

Y value fieldfield (number, decimal, currency)

The size of each segment, combined with Aggregation; bar height is the sum of segments. Ignored for Count. Currency fields are formatted with the app's currency.

Example: amount

Group by (series)field

The field that defines the segments and colours. Essential for this chart; up to 8 values. Up to 8 series are shown; smaller ones are folded into “Other”.

Example: status

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 is clicked. Event → category is the X value and Event → value an object with one number per segment name.

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

Same as Bar; legend lists the segments.

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

  • Text description lists each category with its segment values

Examples

Revenue per month by service

Example
X: Paid at (date → month) · Y: Total · Aggregation: SUM · Group by: Service type
Source: Invoices where status equals paid and paid_at within last 12 months

Common patterns

  • Group by Status with a Select field so colours and order follow your options
  • Area chart when you want the same data as smooth trends

Limitations

  • No 100%-stacked mode
  • Segments follow option order for Select fields, otherwise by size

Troubleshooting

Bars are not split

Why: Group by is empty

Fix: Choose the field to split by in Group by

Related

Was this helpful?