Guides

Charts in Airtable

Build a chart URL for each record with a formula field, then open it with a button or keep it as an attachment.

The result

Bar chart of the North region from Q1 to Q4
Rendered by ChartPNG from the record below. Open the PNG. Open in the editor.

Not tested in Airtable

We have no Airtable base to run this in. The formula below is checked in our tests as text: read with the quoting rules of Airtable's formula reference, it gives the URL of the chart above. The steps in Airtable come from its documentation, quoted at the end of the page.

The table

One record per chart. A text field named Name and one number field for each bar.

NameQ1Q2Q3Q4
North120150135180

The formula field

Add a formula field, name it Chart URL and paste this.

"https://chartpng.dev/chart?w=600&h=360&c=" & ENCODE_URL_COMPONENT("{\"type\":\"bar\",\"data\":{\"labels\":[\"Q1\",\"Q2\",\"Q3\",\"Q4\"],\"datasets\":[{\"label\":\"" & {Name} & "\",\"data\":[" & {Q1} & "," & {Q2} & "," & {Q3} & "," & {Q4} & "]}]}}")

The text inside ENCODE_URL_COMPONENT is a Chart.js config with the record's fields joined in by &. Each \" is a double quote of the config. The labels are written in the formula; the series name and the numbers come from the record. For another chart type, change bar to line, pie or doughnut.

What the field holds for the record above

https://chartpng.dev/chart?w=600&h=360&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Q1%22%2C%22Q2%22%2C%22Q3%22%2C%22Q4%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22North%22%2C%22data%22%3A%5B120%2C150%2C135%2C180%5D%7D%5D%7D%7D

See the chart

A button that opens it

  1. Add a button field and choose the action Open URL.
  2. Use the Chart URL field as its formula.
  3. Click the button on a record. The PNG opens in a new tab.

An attachment that keeps it

We found no field in Airtable's documentation that shows an image straight from a URL. To see the chart inside the record, it has to become a file in an attachment field. Airtable's documentation describes two ways to make an attachment from a URL:

Either way Airtable uploads its own copy of the image. The copy does not follow the record: when a number changes, write the field again.

Limits that matter

Sources

Claims about other products, read at their source on 20 Nov 2026.