DevTechie
Published in

DevTechie

New in SwiftUI 4: Line Chart

Photo by Markus Winkler on Unsplash

Apple’s new Charts framework makes data visualization easy and fun. We have been exploring these new additions one by one and today, we will focus on LineMark, which is used to create LineCharts.

We can create a line chart by plotting nominal value the x position, and quantitative value typically to the y position. Let’s build example by visualizing daily workout sessions for the week.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store