Creating Dynamic Graphs with Swift Charts
Swift Charts is a framework by Apple that allows us to present data in beautiful and expressive charts. Working with charts is not a minor topic – data is an essential topic in mobile apps, and the ability to show glance information of insights and trends is crucial to our app’s user experience.
In this chapter, we will cover the following topics:
- Understanding why we need charts in our apps
- Meeting the Swift Charts framework
- Creating charts such as bar, line, pie, area, and point charts
- Visualizing functions with Charts
- Implementing user interaction to our charts using ChartProxy
- Allowing different data types to work with charts by conforming to the Plottable protocol
Before we create our first chart, let’s understand why charts are important and what value they bring.