Charts, tables, pivots and KPIs
funktionalSeventeen chart kinds with suggestions, formatted tables, pivots and KPI scorecards, click-to-filter, and where every chart's data came from.
Chart, Table, Pivot and KPI cells turn another cell's result into something easier to read. They don't query the database: each reads its Input cell's result, updates as soon as that result changes, and says plainly when it is looking at only part of the data. Any of them can also be shown as its output alone, for a notebook that reads like a report; see Embedded outputs.
Chart cells
- Füge eine Chart cell under the query you want to draw and pick that query with Choose input.
- Pick one of the three suggestions ("Suggested: Bar of Revenue by ShipCountry"), worked out from the result's columns, or press Bearbeiten to build it yourself.
- Drücke Fertig to close the editor. The chart redraws whenever its input runs.


The editor has:
- Chart type
- Any of the 17 kinds below.
- Spalten
- X axis / category, Wert, Second value, Split by (one series per value), Bubble size und Farbe nach.
- Aggregation
- As is, Sum, Average, Count, Distinct count, Minimum, Maximum or Median, for rows that share a category.
- Sort and Top N
- Natural order, Category A–Z or Z–A, Largest or Smallest first; Top N keeps the biggest categories, with Group the rest as Other.
- Date grouping
- None, Hour, Day, Week, Month, Quarter or Year, for a date or time X axis.
- Missing values
- Leave a gap, Treat as zero, or Skip rows.
- Bars
- Side by side, Stacked or Stacked to 100%, and Horizontal.
- Werte
- Show values on the marks; Value format Plain, Percent, Currency or Compact (1.2K), with a Unit und ein Currency code.
- Reference lines
- Lines at fixed values, separated by semicolons:
100 Target; 80 Warning?; 50 Critical!. A trailing?draws a warning line and!a critical one. - Annotations
- Notes on categories or dates:
2026-03: Price change; West: New region. - Expected range
- On a line or area chart with one value, shades the range expected from the series' own history (a rolling average of the last 7 points ± 3 standard deviations, each point judged only against earlier ones) and marks the points outside it.


Export SVG und Export PNG save the chart as a file. Charts use a colour-blind-safe palette in both light and dark themes. Charts the report renderer draws (see below) look the same in the app and in exports; live charts are redrawn by that renderer when you export them.
Which chart to use
The suggestions follow these rules, so they're a good guide when you pick by hand too:
| Art | Use it for |
|---|---|
| Balken | A measure by category. Above 20 categories, keep the top 20 with Top N. |
| Linie | A measure over time; up to four measures, or one measure split into a few series. |
| Fläche | A measure over time where the total matters; best when values are never negative. |
| Streudiagramm | Two measures against each other, one point per row. |
| Bubble | A scatter with a third measure as the point size. |
| Histogramm | How one measure's values are spread. |
| Pie, Donut | Shares of a whole: only for non-negative values and two to six slices, with no time axis. |
| Heatmap | A measure across two categories (or a category and a date bucket). |
| Calendar heatmap | A daily measure over two months to three years, one square per day. |
| Waterfall | Signed changes that add up to a total, such as gains and losses by month. |
| Funnel | Ordered stages that narrow (visits, sign-ups, purchases). |
| Treemap | Shares of a whole when there are too many categories for a pie. |
| Box plot | How a measure is spread within each of a few categories, with outliers. |
| Cohort retention | The share of each starting cohort still active in later periods. |
| Correlation matrix | How three or more measures move together. |
| Sparkline | A small trend line with no axes, for a compact view. |
| KPI card | One headline number with its change; use a KPI cell. |
ID-like columns are never treated as measures. When the input is sampled or cut short, suggestions say so.






Live charts and drawn charts
Bar, line, area, scatter, histogram, pie and donut charts are drawn live by the results grid's chart engine. Every other kind, and any of those seven using a setting the live engine lacks (reference lines, annotations, an expected range, stacked or horizontal bars, axis ranges, bubble size, colour by, shown values, an Other bucket, median or distinct count, smallest-first sorting), is drawn by the report renderer, the same renderer exports use. Which charts can be clicked to filter other cells is listed below.
Table cells
A Table cell shows its input in the same results grid as a query tab, so number and date formats, conditional colours, computed columns, frozen, hidden and reordered columns, sorting, column filters, selection statistics and the row form all work. Its settings are -- sqlly directive lines kept in the cell, the same lines you'd write above a query (see SQLly-Direktiven); arrange the grid and press its Lock button to write the current layout into the cell. The Suchen box ("Show rows containing…") is saved with the cell.


Pivot cells
A Pivot cell builds a cross-tab of its input with the grid's pivot (see Pivot). Drag fields in the pivot sidebar, then press Save layout to keep the arrangement in the notebook. Double-click a value to see the rows behind it.
Table and pivot cells, like every other cell, can show only their output, and a pivot or chart can hide its sidebar to give the result the room. A SQL or table cell's own result grid can be locked to its rows, pivot or chart view. See Embedded outputs and report-style notebooks.


KPI cells
A KPI cell is a row of up to eight tiles. For each tile, set:
- Wert
- An aggregate of a column (Sum, Average, Minimum, Maximum, Median, Count, Distinct count, Last value), the row count, or the first row's value.
- Vergleich
- No comparison, Previous period (by day, week, month, quarter or year, when the input has a date column), Basislinie (another cell's result, such as last year's) or Ziel (a number).
- Richtung
- Higher is better, Lower is better, or Neutral.
- Thresholds
- Warning and critical levels on the Wert, das Ändern oder die Change %. The tile shows On track, Warnung oder Critical.
- Sparkline
- A small trend line, when the input has a date column. Over incomplete data it carries a small warning-coloured mark in its corner.
Over a cut-short or sampled input a tile still shows its number but withholds the status: "Status withheld: the input is incomplete". Previous period compares the latest period with the one before it.


Click a chart to filter other cells
- On a table, chart, pivot or KPI cell, press Follow a chart and pick a chart cell. The button then reads "Follows by_category".
- Click a bar, point or slice in that chart. The following cells show only that category, with a chip: "Filtered by by_category: CategoryName = Beverages".
- Drücke Filter löschen to see everything again.
Filtering happens on the rows already downloaded ("Local filter on downloaded rows; nothing is re-run."), so it is instant and never sends a query. It filters the same category labels and date grouping the chart shows. Clicking an Andere bucket filters nothing.
Which charts can be clicked
| Drawn | Clickable | Not clickable |
|---|---|---|
| Live | Bar, line, area, scatter, pie, donut | Histogram (its bars are value ranges, not categories) |
| By the report renderer | Bar (vertical or horizontal, stacked or not), line, area, pie, donut, funnel, treemap, waterfall, including charts with reference lines, annotations or an expected range | Heatmap, calendar heatmap, cohort retention, correlation matrix, box plot, histogram, scatter, bubble, sparkline |




Where a chart's data came from
Every chart, table, pivot and KPI cell has the same toolbar:
- View SQL
- The SQL of its input, as the run builds it (references folded in), with Copy.
- Lineage
- The upstream cells it depends on, and for each input column the table column it came from ("computed or unclear" when SQLly can't tell).
- Provenance
- The connection, database, environment, when the data was extracted, the run id, how many rows were kept of the total, whether it is complete, and a hash of the SQL.
- Open in Editor
- Opens the input's SQL in a new query tab, without running it.


These cells read their input from a snapshot of up to 100,000 rows (or the input's own row limit). When that isn't the whole result, a badge says so ("First 100,000 of 2,400,000 rows", "Sampled: 5,000 rows", "Partial result") with "Totals, charts and KPIs here cover only these rows, not the whole result." When the input is out of date, failed or still running, the cell says that too instead of showing an old picture as current.
A query that uses a formula value computed from a cut-short result is marked too, even though the query itself returned every row: charts and other cells reading it say "Computed from partial data". Drawn charts carry their badge inside the picture, so it stays on the chart in every export. A chart with more categories than it can show folds the rest into Andere rather than dropping them, and exports note how many were folded.
Grenzen
- Heatmaps, calendar heatmaps, cohort retention, correlation matrices, box plots, histograms, scatter and bubble charts drawn by the report renderer, and live histograms, can't be clicked to filter.
- A new KPI cell shows one tile over the first numeric column until you edit it.
- In the browser build, Export SVG downloads the chart; Export PNG needs the desktop app.