Skip to content
MyAppBuilder
StableChartsVersion 1

Horizontal Bar

Overview

Bars that run left to right, with the category names on the left. Best when labels are long or there are many categories to rank.

When to use

  • Top customers by revenue
  • Sales per product name
  • Hours per staff member
  • Leads per source

When not to use

  • Time on the axis: use Line or Bar
  • Very few short categories: a vertical Bar is more compact

Quick start

  1. Add a Horizontal Bar and choose the entity
  2. Set X axis / category field to the name to rank (e.g. Customer)
  3. Set Aggregation Sum with Y value field Amount
  4. Raise Chart height when you have more than 8 categories

Properties

Titletext (bindable)

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

Default: Horizontal Bar

Example: Revenue by month

X axis / category fieldfield

One horizontal bar per distinct value; labels get up to 96 px on the left. 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: customer

Y value fieldfield (number, decimal, currency)

The bar length, combined with Aggregation. Ignored for Count. Currency fields are formatted with the app's currency.

Example: amount

Group by (series)field

Splits each category into stacked-looking adjacent bars per value. 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

Works well on phones because labels stay readable; give it a larger Chart height for long lists.

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 category/value pairs

Examples

Top customers

Example
X: Customer (Relation → shows names) · Y: Total · Aggregation: SUM · Group by: (none)
Source: Invoices where paid_at within this year
Chart height: 360

Common patterns

  • Unordered categories are sorted by size automatically, so the biggest is on top
  • On Click → Navigate to the customer page with id = Event → category when X is a relation

Limitations

  • Long labels are truncated to the label width
  • Same 30-category / 8-series limits as Bar

Troubleshooting

Labels show ids instead of names

Why: The role cannot read the related entity

Fix: Grant read access to the related entity

Related

Was this helpful?