Add simple pie chart to app

Hi there,

I’d like to show a simple pie chart to the user at the end of the journey, based on an array of 2 categories and 2 values (percentages), like the following image:

Screen Shot 2022-11-01 at 02.28.06

Could you please advise about how to achieve this?

Thank you!

1 Like

Hello! The easiest way to accomplish this is with https://www.image-charts.com/

Here’s a pie chart similar to your image:
img

You could make this with Airscript like this:

LET data = JOIN(["90", "10"], ",") IN
URL_ENCODE(
  "https://image-charts.com/chart?chco=3577C6,93C6F1&chd=t:{{data}}&chs=300x400&cht=p3"
)

You could add an “Image” control and set the “source” to the Airscript above.

You can explore the different options for a Pie Chart here: https://editor.image-charts.com/

4 Likes

This is a sweet solution @Elliot_Fiske!