# Custom charts

Build charts over your telemetry — pick a dataset, a metric, a chart type, and how to group and filter it.

A **custom chart** is a chart you define yourself: choose what to measure, how to slice it, and how to draw it, and Brizz renders it against your telemetry. Charts live on [custom dashboards](/docs/platform/dashboards/custom-dashboards.md) — this page is about the charts themselves.

## What it is

A chart is a **saved query, not saved data.** You describe *what to ask* — a metric, a way to group it, some filters — and Brizz runs that query against your telemetry every time the chart is shown. Change your date range or send new data and the chart reflects it immediately; there's no snapshot to regenerate.

That's the mental model to keep: you're building a question, and the chart is its live answer.

## Four blocks you can add

When you add a block to a dashboard you can:

1. **Build a custom chart** — define a new query from scratch in the chart builder (below). This is the main path.
2. **Add from the library** — start from a ready-made chart instead of a blank one, then tweak it. A fast way to get a common view without wiring it up yourself.
3. **Add a text block** — a Markdown block for a title, a note, or a section header. Not a query — just text to give the board structure.
4. **Add a sessions list** — show the sessions matching the dashboard's date range and filters, with its own filters, sort order, pagination, and a link to the complete set on the Sessions page.

## The chart builder

The builder walks you from *what data* to *how to draw it*. You don't have to touch every step — sensible defaults fill in as you go.

1. **Dataset** — pick what you're measuring over: **sessions**, **users**, or **organizations** (see [Datasets](#datasets)).
2. **Chart type** — pick how it's drawn: a line, a bar chart, a number card, a table, and so on (see [Chart types](#chart-types)). This section also holds the display controls supported by the selected type, such as period comparison, stacking, and Y-axis scale.
3. **Metric and aggregation** — pick the number (cost, duration, tokens, a count, a rate, …) and how to roll it up (sum, average, a percentile, …). You can also combine metrics with a formula.
4. **Group by** — pick how to break the metric out: by model, over time, by outcome, by intent, and more, then optionally limit a grouping to its top N values (see [Group by and top-N](#group-by-and-top-n)).
5. **Filter** — narrow to the rows you care about before the metric is computed. Every chart that supports custom properties can filter on them; on LLM-call and tool-call charts a call without the property is matched on the value its session set outside its LLM calls. A value one LLM call set stays that call's own.
6. **Thresholds** — optionally draw reference lines for targets, SLOs, or budgets.
7. **Advanced** — optionally add post-aggregation `having` filters (see [Filters vs. having](#filters-vs-having)).

Throughout, the builder's **pickers show what's actually available for your choices** — the metric list changes with the dataset, the group-by options reflect what Brizz knows about your data. Trust the picker over any fixed list: it's the live source of truth for what you can chart.

## Datasets

Every chart is built on one of three datasets. Pick the one whose "one row" matches the question you're asking:

- **Sessions** — one row per conversation. Answers "how are individual sessions doing?" — cost per session, duration, error rates, outcomes, satisfaction.
- **Users** — one row per end user. Answers "how are my users doing?" — activity, retention-shaped counts, per-user rollups.
- **Organizations** — one row per organization (the accounts your users belong to). Answers the same kinds of questions at the account level.

There's no raw SQL — the dataset plus the builder's pickers define what's queryable, which keeps every chart tenant-scoped and safe.

## Chart types

The **type selector** offers a spread of visualizations; pick the family that fits the shape of your answer:

- **Time series** (line, area) — a metric over time.
- **Bar** (bar, stacked bar) — compare a metric across categories, optionally split into sub-segments.
- **Pie / donut** — parts of a whole. Group by a second dimension to split each slice in an outer ring — intent inside, each intent's outcomes around it.
- **Table** — the raw grouped rows, with columns.
- **Number card** — a single headline figure.
- **Gauge** — one value against a target or range.
- **Scatter** — two metrics plotted against each other.

Not every type fits every query — the selector reflects what makes sense for the metric and grouping you've chosen.

## Group by and top-N

**Group by** is how a metric becomes a chart with more than one value. Brizz offers grouping by the dimensions it understands about your data — for example by **model**, by **time bucket**, by **outcome**, by **satisfaction**, by **journey**, by **intent**, by **issue type**, or by **tool** — plus dynamic dimensions derived from your own data, such as a **custom property**, a **label**, or an **N-day** window.

Where your workspace has the Intents page, three groupings read the intents it lists, in the same grouped names:

- **User Intent** — the whole request, as "action · object" (for example "fix · timeline").
- **Intent Action** — only what the user asked to have done, such as "fix" or "create".
- **Intent Object** — only what they asked about, such as "timeline" or "board".

A session counts once for each different value it had, so a session that fixed a timeline and then fixed a board counts once under "fix". Group by **Intent Object** and then **Intent Action**, for example in a two-ring pie, and each pair comes from one request: a session that asked to "fix the timeline" and later to "create a board" shows under timeline → fix and board → create, never under board → fix. On such a chart a session counts once per (object, action) pair it asked for, and a two-ring pie's inner slice adds up its outer slices: a session that asked to fix the timeline and later to edit it counts twice under timeline, so the inner slice can be larger than the **Intent Object** chart's count for the same object.

A session where no intent was found reads **none**. So does a session with any request that named only one of the two parts, under the part it left out, even when its other requests named that part, so one session can count under both **none** and a real action or object.

When a grouping has many values, use **top-N** to keep the chart readable — chart the largest N groups and let the rest fall away. As with everything else, the available group-by options come from the picker, which reflects your data rather than a fixed menu.

To see how usage unfolds after a key moment, such as finishing onboarding, add one **Time around a moment** filter to a sessions chart and group by:

- **Time Since Anchor** — how long after that moment each session started: under 1 hour, 1–24 hours, 1–7 days, 7–14 days, 14–28 days, or 28 days and more. Bars always run from the shortest wait to the longest. Set the filter to sessions *after* the moment. Unless you set a minimum gap, the session where the moment happened counts too, in the first bucket.
- **Anchor Week** — the week that moment happened, so you can compare groups of users who reached it in different weeks. Weeks run earliest first.

Both need exactly one **Time around a moment** filter that keeps sessions with the moment. The editor won't save the chart until there is one.

On a sessions chart grouped by **Organization ID**, Brizz displays each organization's latest name when one is available while keeping the ID as the group key. This keeps organizations with the same name separate and lets clicks filter by the stable ID.

## Statistic toggle

When a chart's measure is an average, a percentile, a minimum, a maximum, or a sum, you can let viewers switch it. Under **Measure**, pick two or more statistics under **Statistic toggle** (for example Avg, P50 and P90). The card then shows a toggle in its header, and picking a statistic re-runs that chart with every such measure switched to it; counts stay as they are. The card opens on the first statistic you picked, and the measure is set to it. The toggle is offered only when every such measure uses the same statistic: a chart that compares P50 with P90 would turn into identical lines. What a viewer picks is not saved to the dashboard, so everyone opens it the same way.

## Filters vs. having

Two ways to narrow a chart — they act at different stages:

- **Filters** apply **before** aggregation. They pick which rows go into the metric ("only sessions from the checkout service", "only paid users"). Use a filter to define the population you're measuring.
- **Having** applies **after** aggregation. It filters the *grouped results* by their computed value ("only models where average cost > $0.10", "only intents with more than 100 sessions"). Use `having` to hide small or uninteresting groups.

Reach for a filter to change *what you're counting*, and `having` to change *which results you keep*.

## Time series and bucketing

For a time-series chart, Brizz buckets your data into time intervals and plots one point per bucket. Empty buckets are **filled** so the line is continuous rather than skipping gaps — a quiet hour shows up as a real zero, not a missing point, which keeps trends honest. The dashboard's [date range](/docs/platform/dashboards/custom-dashboards.md#date-range) sets the outer window; the chart's bucketing sets the granularity within it.

Time-series charts also have display controls:

- **Compare to previous period** overlays the immediately preceding window of the same length. Previous values are dashed on line and area charts and faded on bar charts. It is available for line, area, bar, and stacked-bar charts whose first grouping is time.
- **Change markers** show detected model, version, tool, and system-prompt changes on the timeline when change events are enabled for the service. Hide or restore them from the chart menu, then save the board. Markers follow the board's service and date range, not its session filters.
- **Y-axis scale** can be linear or logarithmic on line, bar, and unsplit area charts. Stacked charts stay linear because a logarithmic axis would misrepresent the size of their segments.

Charts on the same board coordinate their time cursor. Drag across two or more buckets on any time-series chart to zoom the entire board to that span; select **Zoom out** in the dashboard controls to restore the previous range.

## Thresholds and formulas

Two ways to make a chart say more:

- **Thresholds** — draw a reference line (a target, an SLO, a budget) so "good vs. bad" is visible at a glance, and gauges color against it.
- **Formulas** — derive a value from other metrics (a ratio, a rate, a cost-per-something) rather than charting a single raw metric.

For a recurring period-over-period report outside the dashboard, subscribe the chart to a [Slack digest](#slack-chart-digest).

## Editing and duplicating charts

Open any chart's menu to **edit** it — you re-enter the builder with its current definition loaded, so you can adjust the metric, grouping, or type in place. **Duplicate** a chart to spin off a variant (same query, one knob changed) without rebuilding it. Chart edits, like layout changes, are part of the dashboard **draft** until you save.

## Slack chart digest

Any chart can be turned into a recurring **Slack digest** — subscribe a chart and Brizz renders it as an image and posts it to a Slack channel on a schedule:

- **Cadence** — **daily** or **weekly**.
- **Optional AI summary** — a short written read of what the chart shows and what moved, alongside the numbers.
- **Period-over-period shifts** — each digest compares the current window against the previous one and calls out the notable movers, so the signal isn't buried.

This is per **chart**, not per dashboard — there's no whole-dashboard scheduled export; you subscribe the specific charts worth a recurring nudge. Setting one up requires the [Slack integration](/docs/integrations/slack.md) to be connected.

## Limits

A chart returns a **capped number of rows** so a runaway grouping can't pull an unbounded result set — the builder shows the current default and ceiling when you set a limit, and top-N is the intended tool for high-cardinality groupings. If a chart looks truncated, tighten it with a filter, a smaller top-N, or a coarser grouping rather than trying to raise the cap.

## See also

- [Custom dashboards](/docs/platform/dashboards/custom-dashboards.md) — the boards these charts live on.
- [How cost is computed](/docs/platform/dashboards/cost-calculation.md) — how the cost metric behind cost charts is computed.
- [Slack integration](/docs/integrations/slack.md) — connect Slack to receive chart digests.
- [Labels](/docs/platform/labels.md) — group any chart by a label.
- [Sessions](/docs/platform/observe/sessions.md) — the session data most charts aggregate.

---

[All Brizz documentation](https://docs.brizz.ai/llms.txt) · [Full documentation (single file)](https://docs.brizz.ai/llms-full.txt)
