Skip to content

Chart builder

The chart builder lets you create a chart by hand and edit the ones already on the dashboard, including the charts the agent made. It covers Matr’s 36 chart types (see Chart types) and tables.

A dashboard built with the builder: key figures, a three-axis chart, a donut with deep dive, a histogram

A Report dashboard: key figures, a three-axis chart and a donut you can explore on click, all made with the builder.

  • Create a chart: while editing the dashboard, Add widget › Chart. An empty dashboard also offers Build a chart.
  • Edit a chart: the widget’s ⋮ menu, then Edit. The builder opens on Edit the chart.

Give the chart a title in the field at the top, then click Add to the dashboard (new chart) or Save. While something is missing, the button is greyed out and the reason shows next to it (“To finish: Values”, “Run the query to use your changes”…).

Two modes, picked at the top of the builder. Your choice is remembered for the next time.

One column of settings, for a chart in three moves: pick the chart type (nine types), the dataset, the columns, then the display (sort, value format, palette, labels, legend).

The builder in Simple mode, with a bar chart of revenue by channel

Three areas: on the left the data (dataset or SQL query, columns, filters), in the middle the chart type, the fields and the preview, on the right every option.

The builder in Advanced mode, with a three-axis Bars + line chart

The builder highlights the most common types. All charts (36) opens the full gallery, grouped by family: Compare, Over time, Part of a whole, Distribution, Flows & profiles, Key figure, Map, Tables.

The gallery of the 36 chart types, grouped in eight families

Switching type keeps the columns already placed: each field moves to the matching field of the new type. Each type’s card (fields, example, question to ask the agent) is in Chart types.

On the left, in Advanced mode, two ways to provide the data:

  • Data: you pick a dataset of the app and its columns. Matr writes the query from your fields; you can read it in the SQL tab of the preview (“The query behind this chart”). Edit as SQL takes it over so you can change it by hand.
  • SQL query: you write the query. Run (or Cmd/Ctrl + Enter) runs it; its columns become the chart’s fields. Full screen opens a larger SQL editor, with the list of datasets and their columns.

The SQL query mode: the query, its result columns and the extract of the first rows

The column list shows an icon per type (text, number, date). Drag a column onto a field, or click it to place it where it fits best.

The Data extract bar, collapsed at the top of the builder, shows the first rows while you build:

  • in Data mode, the first 100 rows of the dataset, before grouping, with the chart’s filters;
  • in SQL query mode, the first rows of the query result.

The data extract open: the first 100 rows of the dataset, before grouping

The rows are only read when you open the bar; if your access to the dataset is restricted, you only see your rows and columns.

Add a filter narrows the chart’s data: “is”, “is one of”, “between”, “contains”, “is empty”, “in the last … days”, “this month”, “last year”… For a text value, Matr suggests the column’s most frequent values, with their counts.

A filter on the channel, adjustable from the dashboard

Turn on Adjustable from the dashboard so the reader can change the filter’s value from the dashboard’s Query parameters bar. Name in the dashboard bar is the label they will see there.

Maximum rows caps the number of rows read (1,000 at most). If the chart draws fewer rows than the result has, a message says so: add a filter or group by a wider period.

Each chart type has its fields: Time (X axis) and Values for a line, Categories and Values for bars, Split by for one series per value of a column… An asterisk marks a required field.

Click a placed field to set it up:

A field's settings: name shown, drawn as, axis, calculation, formula

  • Name shown: the series name in the legend and the tooltip;
  • Calculation: Sum, Average, Count, Distinct count, Median, percentiles, Standard deviation, Minimum, Maximum, or Each value (no grouping). With a date grouped by period, First value of the period and Last value of the period give, for example, an opening and a closing balance;
  • for a date, the breakdown: Day, Week, Month, Quarter, Year, but also Month of the year, Day of the week or Hour of the day;
  • Custom formula: a free calculation that replaces the chosen one, with column names in double quotes (SUM("amount") / COUNT(DISTINCT "client"));
  • on bars and lines: Drawn as (Bars, Line, Area) and Axis (Left, Right, Right, second). You can put revenue in bars on the left, the average basket as a line on the right and the number of orders on a third axis.

On the right in Advanced mode, the options are grouped in sections: Data, Series & colors, Axes & format, Labels, Legend, Tooltip, Reference lines, Interaction. The rarest settings are behind More options.

A few examples:

  • Data: Sort, Keep the top N categories (the rest can be grouped into “Others”), a Calculation on the series (running total, moving average, share of the total, change vs previous point), Compare with the previous year;
  • Series & colors: palette, color of each series, smooth lines, stacking (side by side, stacked, 100 %). The Maps widget has its own layout setting (Carousel, List, Grid) instead of these options — see Chart types ;
  • Axes & format: value format of each axis, axis titles;
  • Reference lines: a line or a band (“Target”, an average, a range);
  • for a heatmap, a map or a calendar: the color scale and its bounds (follow the data, fixed, or centered on zero for gaps);
  • for a histogram: Cumulative %, a line of the cumulative share on a second axis (a Pareto).

Wherever a chart displays a value (an axis, a key figure, a table cell, a tooltip, a label), its format is set in Axes & format (or in the widget’s equivalent setting) with a Format type:

TypeSettings
Automaticno setting: Matr picks the presentation.
NumberDecimals, Abbreviation (not abbreviated, abbreviated (auto), in thousands (K) or in millions (M)).
Currencya currency code of your choice (EUR by default), Decimals, Abbreviation.
PercentageValue read: already in % (12) or a fraction (0.12), Decimals.
DurationUnit of the value in raw form: seconds, minutes or days.
Datethe usual date format.
CustomBefore (prefix), After (suffix), a Template field (for example {v} €/month), Decimals, Abbreviation — this is the behavior of a value without a type.

The Data, Series & colors settings of a chart in Advanced mode

Display always follows the reader’s language (their account language, or the one sent to an embedded dashboard), never their browser’s: the same number shows “299,419.00 €” in French and “€299,419.00” in English, “44 K€” or “€44K”. The currency symbol position is set by the Currency type; a prefix or suffix typed in Custom stays where you wrote it.

On a key figure, two settings complete the gap shown below the value: Change calculation (Relative change or Difference) and Change suffix, free text already filled with ”%” for a change, or with the value format’s unit for a difference (for example “+2.3 pt”).

For a table, the right column becomes Table formatting: density, sort, grouping, and for each column its name, format and a rendering (badge, bar, gap with an arrow, link). See Report › Formatting a table.

A rule pairs a condition (the same operators as a filter: is, is not, greater than, at least, less than, at most, between, empty… compared to a fixed value or another column of the result) to an effect: text or point color, background color, bold, an icon (▲ ▼ ● ⚠) or a sign displayed (+ / −). Rules apply in order; the last one that matches wins.

You can place one everywhere a chart displays a value:

  • a key figure: its main value and its gap, each with its own rules;
  • bars, lines, areas or a donut: the color of the point, bar or slice;
  • a table: cell or row, no change, see Report › Formatting a table.

These rules also appear on the image sent by Slack or by email.

An On hover area holds extra columns from the result: the chart’s tooltip shows them, in their own format, for the hovered point.

The On hover field, under Split by, to drag an extra column

A dropped column displays on a single value (picked in Shown on) or on All values. This is handy on a chart with a comparison series: the dropped column then appears only on that series’s row, for example “Comparison period · Jul. 2025 · 180 €”. These columns never change the chart’s grouping or calculation.

On a donut, a pie, or any chart with a legend, the Legend style offers Standard or Detailed, beside the chart. The detailed legend displays a list beside the chart (Side: right or left) instead of the usual legend: one line per item, with its color dot, its name, then one or more values of your choice (the value, its share of the total, or another column from the result with its share), each in its own format.

The chart and list share the width; below a minimum width, the list goes under the chart. Hovering a list line highlights it, like hovering the usual legend.

In the builder of a chart, a key figure or a table, the Texts section adds:

TextEffect
Subtitleshown under the title; empty by default.
Helptooltip of the (i) icon next to the title; if empty, the icon shows the usual generated explanation.
No datashown at the center of the map when the query returns no rows; a default message otherwise.
Comparison (key figure)text after “vs”, under the value.
Missing comparison (key figure)text shown after ”—” when a comparison is set but has no value, or is 0 in change mode.

The Texts section of the builder, with Subtitle, Help and other fields

These texts accept variables: {Filter name} or {parameter slug} for the value currently applied, and {column} for that column’s value in the first result row, in its format. An unknown variable stays displayed as is in the builder, highlighted in orange.

A deep dive unfolds, under the chart, other charts filtered on the clicked value. For example, on a donut of revenue by channel, a click on “website” shows the monthly revenue, the carrier mix and the revenue by status of that channel only.

A click on "website" unfolds three charts filtered on that channel

The clicked slice stays in color, the others fade. A second click on the same slice, or the cross, closes the detail.

In Advanced mode, under the preview:

  1. Turn on Deep dive on click.
  2. Pick the column in When clicking a value of (a category of the chart, not a month or a range).
  3. Add a chart to the deep dive opens a second builder, on the same dataset. Build the chart, then click Use in the deep dive. Repeat to add more (up to six).
  4. Save the main chart.

The Deep dive on click section of the builder, with its three charts

The builder of a deep dive chart, with the "Use in the deep dive" button

The chart carries a Deep dive badge. The detail charts follow the dashboard’s filters and parameters, and everyone who can read the dashboard can use them. On a narrow card, the detail charts stack one under the other.

The same deep dive on a narrow card: the charts stack

The builder can’t run a query in some cases: from an embedded dashboard, if you don’t have the right to run queries on the app, or for a chart computed by Python code. It then works on the data already shown: chart type (among those the columns allow), display and every formatting option. The reason shows in the builder.

The charts the agent creates in the chat open in the same builder, with their settings. When the agent edits a chart that has a deep dive, it keeps it.

The agent’s old advanced charts that can’t be turned into fields stay displayed as they are, with an Advanced tag: to change them, ask the agent.