Skip to main content

Vega-lite pie chart not working in Airtable

  • March 24, 2022
  • 3 replies
  • 36 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!

3 replies

Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • March 25, 2022

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
  • 2 replies
  • March 25, 2022

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!


Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • March 25, 2022

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…