Skip to content
MyAppBuilder
StableChartsVersion 1

Line Chart

Overview

A line over time (or any ordered category) showing how a number evolves: revenue per month, sign-ups per day, average rating per week.

When to use

  • Revenue trend by month
  • New leads per day over the last 30 days
  • Average response time per week
  • Comparison of two technicians' job counts over time (Group by)

When not to use

  • Comparing unordered categories: use Bar
  • Emphasising volume under the line: use Area
  • Fewer than 3 points: a KPI is clearer

Quick start

  1. Add a Line Chart and choose the entity
  2. Set X axis / category field to a Date or Datetime field (Created works)
  3. Set Aggregation and Y value field
  4. Add a filter for the period (e.g. last 12 months) so the axis is meaningful

Properties

Titletext (bindable)

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

Default: Line Chart

Example: Revenue by month

X axis / category fieldfield

The horizontal axis; use a date field for trends. Values are grouped by day or month automatically. 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 value plotted at each point. Ignored for Count. Currency fields are formatted with the app's currency.

Example: amount

Group by (series)field

One line per value of this field, each with its own colour. Up to 8 series are shown; smaller ones are folded into “Other”.

Example: service_type

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

Points are drawn when there are 24 or fewer; longer series show a smooth line only. The latest 30 periods are kept for dates.

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 reads out the first periods and values

Examples

Monthly revenue trend

Example
X: Paid at (date) · Y: Total · Aggregation: SUM · Group by: (none)
Source: Invoices where paid_at within last 12 months
Result: one point per month, formatted as currency

Common patterns

  • Group by Status to compare won vs lost over time
  • Combo chart to put bars (volume) and a line (average) together

Limitations

  • Missing periods are not filled with zeros; a month without records is simply absent
  • Bucketing switches to months when the range exceeds about two months

Troubleshooting

The line is a single point

Why: All records fall in one bucket, or X is not a date

Fix: Widen the period or pick a date field for X

Related

Was this helpful?