Skip to content

An overview of the different types of charts you can make with Swift Charts

License

Notifications You must be signed in to change notification settings

panpapryk/SwiftChartExamples

 
 

Repository files navigation

SwiftChartExamples

An overview of the different types of charts you can make with Swift Charts

image

Let's start by recreating the different chart examples that Apple gave in these session screenshots.

Examples

  • Basis project setup
  • Simple Line chart
  • Simple Bar chart
  • Simple dual bar chart
  • Range Chart
  • Heartbeat Chart
  • Cumulative line Chart
  • Pyramid Chart
  • Heartbeat range Chart
  • Distribution line + Point Chart
  • Area Chart
  • Scatter Chart
  • Range with Max and Min Chart
  • Funky Gradient Chart
  • Block Block Block Chart
  • Other Charts
  • Multi-language Support

See the open issues if you think anything is missing from this list.

(back to top)

How to add a new chart

Each chart needs a preview chart as well as a detail view. The preview chart is used in the home screen of the app for easier navigation. Look at the Simple Chart Simple code to see what the format should be for the preview charts. On the detail view, make sure you add some customisation options in a separate section from the chart.

image

Simulator Screen Shot - iPhone 13 Pro - 2022-06-12 at 17 06 22

About

An overview of the different types of charts you can make with Swift Charts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%