Save The Earth Data Visualization
Challenge: Visualize the survey data for the actions to save the Earth! The survey data is recorded in a table. Each row shows the percentage of the participants who support the opinions on one action. For example, the first row indicates that 50% of the survey participants believe Reduce Plastic Bag Use is Extremely Important to save the Earth, 30% think it is Very Important, and 10% think it is Moderately Important. On the Art Canvas + playground, the bar graph of each action is divided into ten grids, with each grid representing 10% of the participants. The object of the activity is to create a 2D list to store the survey data. Then, based on the survey data, code the VR Robot to use the VR Pen to fill the corresponding color in the appropriate grids for each action to visualize the data in a fun way!
The survey data table and the opinion corresponding colors are as follows:
|
Action |
Extremely Important |
Very Important |
Moderately Important |
|---|---|---|---|
|
Reduce Plastic Bag Use |
50% |
30% |
10% |
|
Reduce Car Usage |
40% |
20% |
20% |
|
Use Renewable Energy |
20% |
30% |
20% |
|
Sort And Recycle Garbage |
40% |
10% |
10% |
|
Reduce Water consumption |
20% |
10% |
10% |
- Choose and Download the Save The Earth Data Visualization activity image as a PNG file from this Google slideshow.
- To learn more about downloading .png files from slideshows, see this article.
- Select the Art Canvas+ Playground and upload the Save The Earth Data Visualization activity image.
- To learn more about uploading images to the Art Canvas+ Playground, see this article.
- Declare a 2D list with five rows and three columns and store the survey data in the list.
- Declare a variable to track the column index, declare a variable to track the row index, and set the initial value of the variables to 1.
- Drive the VR Robot to the first grid of the first action’s bar graph.
- Code the VR Robot to fill the corresponding colors in each action’s bar graph to visualize the survey data.
- Determine the color and the number of grids that need to be filled for the corresponding opinion based on the data retrieved in the list using the index variables. Use a loop to fill the corresponding color in the appropriate grids.
- Move the robot to the next grid in the current bar graph.
- Increase the column index variable by 1 to point to the next item’s position in the list.
- Use a nested loop to repeat the above steps for a set number of times to fill the grids for each opinion in one action’s bar graph.
- Drive the robot to the first grid of the next action’s bar graph and update the index variables.
- Use a nested loop to fill the appropriate grids in each action’s bar graph with the corresponding colors to visualize the survey data in bar graphs!
- Conduct a survey about the actions to save the Earth in your community, record the survey data, and create your own Save The Earth Survey bar graph on the Art Canvas +. Share the bar graph with friends.
Helpful Hints
- Each grid in the bar graph of an action measures 100mm by 100mm.


