Swift Charts
Beautiful, accessible charts built the same way you build the rest of your UI.
Overview
Swift Charts describes a chart as a set of marks: bars, lines, points, areas, rules. You combine them like SwiftUI views and the framework handles axes, scales, legends and animation.
Charts adapt to Dark Mode, Dynamic Type and every platform, and come with VoiceOver support, including Audio Graphs, built in.
Marks
BarMark, LineMark, PointMark, AreaMark, RuleMark, RectangleMark and SectorMark.
Composition
Layer marks in one chart, just like stacking SwiftUI views.
Interactivity
Selection and scrolling with a single modifier.
Accessible by default
VoiceOver descriptions and Audio Graphs come with every chart.
History
How it grew up.
Introduced
Hello Swift Charts at WWDC22.
Pie charts and selection
SectorMark for pie and donut charts, plus selection and scrolling.
Function plots
Plot mathematical functions and large data sets efficiently.
3D charts
Chart3D brings charts into the third dimension.