Introduction
In this lesson, you'll get a chance to go back to data visualizations, but with a new twist. Now that you know about structs and enums, you can use a much more expressive and efficient API.
Challenge Yourself
The types you'll explore in this playground are representations of the elements in the visualizations. They'll make it easy to work with the items on the screen—it'll feel less like a series of instructions and more like you're describing how the visualization should look.
To get started, open Visualization Revisited.playground in your course resources and follow the instructions.
Have fun!
Go Further
Try calculating some statistics dynamically. Create a custom struct to represent something you're measuring, and fill an array with instances. Then use a loop to process the items and generate measurements that you can use to create the elements of your pie chart, bar chart, or plot.