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

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.
| Name | Q1 | Q2 | Q3 | Q4 |
|---|---|---|---|---|
| North | 120 | 150 | 135 | 180 |
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%7DSee the chart
A button that opens it
- Add a button field and choose the action Open URL.
- Use the
Chart URLfield as its formula. - 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:
- The Web API. Write the attachment field as a list with one object that has a
url, set to the value ofChart URL. - An automation. In an Update record action, click into the attachment field and insert the
Chart URLfield of the record. Airtable's own steps for this action fill the field with download URLs. Not tested here: we did not run it with a chart 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
- An empty number breaks the chart. An empty field in the middle leaves
120,,135in the data, which is not valid JSON, and ChartPNG answers with an error instead of an image. Fill every number field, or use 0. - Quotes break the JSON. A name with a double quote or a backslash in it makes the config invalid. Clean the names first.
- How numbers become text. Not tested here: what a formula writes for a currency, percent or decimal field. Open the URL from the field and read the data in it.
- Check the field. A bad config returns a JSON error instead of an image. Open the URL in a browser to read the message.
- Anyone with the URL can read the chart. The numbers are in the URL. Never put an API key in it.
- Free plan. A formula builds a plain URL, so the image carries the small
chartpng.devwatermark and the free rate limits. - Config size. The config can be up to 16 KB. Past that, ChartPNG refuses the request.
- Only the chart types ChartPNG renders: bar, line, pie, doughnut, radar, polarArea, scatter and bubble.
Related guides
- Google Sheets: Show a chart in a cell with =IMAGE, built from your own rows.
- Notion: Show a chart on a Notion page with an image block and a URL.
- Keeping a chart up to date: Four ways to make a chart follow its numbers, and what each place does with the image.
Sources
Claims about other products, read at their source on 20 Nov 2026.
- A formula joins text with CONCATENATE or with &:
Joins together the text arguments into a single text value.
support.airtable.com - A double quote inside formula text is written with a backslash:
you need to use a backslash (\) as an escape character.
support.airtable.com - ENCODE_URL_COMPONENT makes text safe for a URL:
Replaces certain characters with encoded equivalents for use in constructing URLs or URIs.
support.airtable.com - A button field can open a URL built by a formula:
Opens a new tab for a URL created with a formula within the button field.
support.airtable.com - The Web API makes an attachment from a URL:
To create new attachments, provide the url and optionally filename.
airtable.com - Airtable uploads the file behind that URL:
attachment uploading happens in an asynchronous manner
airtable.com - The Update record action replaces what an attachment field holds:
The "Update record" action writes an attachment field's complete new value.
support.airtable.com - Airtable's own steps put download URLs into the attachment field of that action:
click Edit token, select Expiring download URL
support.airtable.com