Contents

Swift Charts

Construct and customize charts on every Apple platform.

Overview

Swift Charts is a powerful and concise SwiftUI framework you can use to transform your data into informative visualizations. With Swift Charts, you can build effective and customizable charts with minimal code. This framework provides marks, scales, axes, and legends as building blocks that you can combine to develop a broad range of data-driven charts.

[Image]

There are many ways you can use Swift Charts to communicate patterns or trends in your data. You can create a variety of charts including line charts, bar charts, and scatter plots as shown above. When you create a chart using this framework, it automatically generates scales and axes that fit your data.

Swift Charts supports localization and accessibility features. You can also override default behavior to customize your charts by using chart modifiers. For example, you can create a dynamic experience by adding animations to your charts.

Topics

Essentials

Charts

3D charts

Marks

Vectorized plots

Mark configuration

Labeled data

Scales

Axes

Axis marks

Annotations

Data bins

Chart management

Scrolling

Structures