Build a chart
Every chart in the composer is driven by a query: what to measure, how to group it, and which rows to include. This page walks through loading data, writing a query, and the shortcuts that do it for you.
1. Load data
In the Data & Query pane, click Load Data. The Data Source dialog lists your saved sources on the left (type to filter) and connector tiles for new ones:
- Enter Data: type or paste values into a sheet, or Start With a Sample.
- Upload: CSV, TSV, XLSX, or gzip-compressed files.
- Connect Google Sheet, Connect URL (HTTP API), Connect Notion, Connect Airtable, Connect Postgres, Connect Snowflake.
See Data sources for how to set up each one. Choose a source and click Select Data.
If your data has dates, check Time Field and Format in the dataset preview. A detected time column unlocks time ranges and time series.
Enter or paste data
Enter Data is the fastest way to chart a small table. Put the column names in the first row, then:
- Parse Unstructured Text: paste messy text, such as a table copied from a web page, and click Extract to turn it into rows.
- AI Search: ask a question to find public data, then click Search.
- Click Visualize when you're done. Columns asks whether each column is a value or a dimension.
2. Write the query

Metrics (values)
Metrics are the numbers on your chart. Add a field to Metrics, then click its chip to choose how it is computed:
- Numbers: SUM (default), AVG, MIN, MAX, percentiles (P10, P25, P50, P75, P90, P99, P99.99), DISTINCT_COUNT, or None (raw values).
- Text: DISTINCT_COUNT.
In Edit a metric you can also give it a display Name, a Color, a Formatting and Currency style, and a per-metric Filter. For example, revenue where region = West.
Formula combines metrics. #1 refers to the first metric, #2 to the second, and so on. Example: #1 / #2 for average order value.
Keys (dimensions)
Keys are the categories you break metrics down by, such as region, product, or month. Add as many as you need.
- Pivot: with two or more keys and exactly one metric, you can pivot a key. Each of its values becomes its own series, and a Breakdowns pane shows what it's pivoted by.
- + Computed Key: create a new key by transforming an existing column. For example, extract the domain from an email address, or bucket ages into ranges.
Conditions (filters)
Conditions narrow the rows before anything is computed. Operators:
| Operator | Example |
|---|---|
| equals / not equals | country equals US |
| is in / is not in | region is in West, East |
| is greater than / is less than | amount is greater than 100 |
| matches / not matches | product matches %Pro% (% is a wildcard) |
| matches / not matches (ignore-case) | email matches %@gmail.com |
| is empty / is not empty | coupon is not empty |
Conditions change the data the chart is built from. In-graph filters are interactive controls on the chart itself that let viewers show or hide series. They only change what's displayed. You control them in General Settings → Graph Filter.
Time range
If the data has a time column, choose a range: All Time, Today, Yesterday, Last 7/30/90 Days, This or Last Week, Month, or Year, or Custom. See Time series for continuous versus bounded time.
3. Shape the result
These panes appear below the query:
| Pane | What it does |
|---|---|
| Sort | Click a metric or key chip to sort by it. Not available while pivoted. |
| Limit | Top N (default 100) keeps the largest results, shown as Top N of M. |
| Transformation | Re-base values against a baseline: Raw, Mean, First, Last, Prev (change from the previous value), or Flip (swap rows and columns). |
| Distribution View | Show Percentage shows each value as a share of the total, optionally By Key. |
| Accumulated View | Shows running totals. |
Shortcuts
Chart Wizard
In the Chart pane, run the wizard. Pick a chart, fill in the fields it asks for (for example, Choose values and Segmented by), and click Make. The wizard writes the query for you. It's the easiest way to set up charts with special requirements, such as tree, scatter, map, box plot, and word cloud.
AI Chat
Open AI Chat from the side menu and ask in plain language. For example: "monthly revenue by channel as a stacked bar". The quick prompts Analysis, Samples, Histogram, Schema, and Style are a good place to start. The AI answers with graphs you can open, chart suggestions, or a theme you can Apply. Chat history is kept per dataset.
Save
Click Save in the side menu. Each save creates a new version, which you can browse from Versions. The visual then appears in your Gallery, ready to share.