Skip to main content

Vega-lite pie chart not working in Airtable

  • Mar 24, 2022 6:39 PM UTC
  • 3 replies
  • 90 views

Forum|alt.badge.img+4

Hi!

I’m trying to create a simple pie chart with Vega-lite in Airtable. I got it worked in the Vega-lite editor but the pie chart is not showing up in Airtable with the same configuration. See screenshots below. What did I do wrong in Airtable? Thanks!

This topic has been closed for replies.

3 replies

Bill_French
Forum|alt.badge.img+19
  • Inspiring
  • Mar 25, 2022 3:17 PM UTC

You assumed the data node was required. This is not the case in Airtable’s Vega-Lite app - it assumes the data comes from configured declarations. Create a simple pie chart in Airtable using the Vega-Lite app and then look at the declaration code it generates.


Forum|alt.badge.img+4
  • Author
  • New Participant
  • Mar 25, 2022 9:24 PM UTC

You assumed the data node was required. This is not the case in Airtable’s Vega-Lite app - it assumes the data comes from configured declarations. Create a simple pie chart in Airtable using the Vega-Lite app and then look at the declaration code it generates.


Could you give me an example of the pie chart code? I don’t quite understand what you mean. I copied and pasted Vega-lite’s sample code and it doesn’t work. So should I be modifying it for Airtable? Thanks!


Bill_French
Forum|alt.badge.img+19
  • Inspiring
  • Mar 25, 2022 10:35 PM UTC

Could you give me an example of the pie chart code? I don’t quite understand what you mean. I copied and pasted Vega-lite’s sample code and it doesn’t work. So should I be modifying it for Airtable? Thanks!


No. Airtable has some expectations that you select a table and instrument the fields in the code as needed. Example…

Achieved with…