
Master Apple's native charts framework in SwiftUI 4 on iOS 16 and learn to build, style, and annotate dynamic charts—from line and area to multi‑series and range charts.
Learn to create a bar chart with the charts framework in SwiftUI 4, using a bar mark and x/y values. Observe how the framework auto-normalizes data and adapts to layout.
See how horizontal bar charts use nominal data for labels and quantitative data for values, swap axes to place quantities on the x-axis and days on the y-axis.
Create a dynamic bar chart with the charts framework by modeling workout data as an identifiable structure and feeding it from an API-driven collection.
Apply foreground style to bar marks to color bars with solid colors or gradients. Use the by-value variant to color each bar differently, with legends appearing automatically.
Explore how to customize SwiftUI charts using the chart foreground style scale modifier, configuring domain and range to assign per-value colors and gradients to bars.
Master chart annotations in SwiftUI by applying the annotation modifier to bar marks, customizing position, alignment, spacing, and content, and styling with indigo color for a clear, informative display.
Create a data structure with course categories and sources using identifiable models and sample data. Build a stacked bar chart with the charts framework in SwiftUI 4 on iOS 16.
Create a stacked bar chart of the number of students by course category using the charts framework in SwiftUI 4, with bars colored by category and annotations showing exact counts.
learn to build a multi-series bar chart view in swiftui 4 with ios 16 by modeling workout data as tuples and rendering side-by-side bars with for each and bar marks.
Explore line charts with Apple's charts framework by plotting day against minutes using line marks, building a walk workout line chart, and adjusting padding and a 400 height.
Style a line chart in SwiftUI by applying foreground style for orange and gradient, adjust line width and dash patterns, and customize line cap and join with a yellow–orange–pink gradient.
Explore line chart interpolation in SwiftUI charts, using the interpolation modifier to plot line and area marks with options such as cardinal, linear, monotone, and step variants.
Annotate a line chart in SwiftUI charts by supplying content to a chart annotation, using custom views or simple text, and adjusting position, alignment, and overlay around the line.
Explore annotating line charts by adding symbols to mark data points, using shapes like circle, square, triangle, diamond, hexagon, and pentagon, and apply symbol by to distinguish in multi-series charts.
Learn to create a multi-series line chart with Apple's charts framework by plotting two workout series (walk and run) and using foreground style to display separate lines and a legend.
Style a multi-series line chart in the charts framework, adding symbols and annotations for workout types, and explore interpolation options like cardinal and step center to enhance visuals in SwiftUI.
Create an area chart using the SwiftUI charts framework by applying area mark with x and y axes, using workout minutes data to visualize minutes spent on workouts.
Explore area chart styling by applying interpolation methods—linear, cardinal, monotone, and step variants—from the interpolation method modifier. See how step center and step start model building heights in neighborhoods.
Master a multi-series area chart in SwiftUI using the charts framework to visualize year-over-year food price trends across items, with foreground style grouping and interpolation options.
Build a candlestick chart in SwiftUI 4 for iOS 16 using the rectangle mark, modeling stock data with open, high, low, and close values, and style with orange gradient.
Combine area and line marks in SwiftUI charts to build a rich walk activity chart with gradients, proper interpolation, and padding.
Build on the area and line marks by adding a point mark and annotate each data point with its exact value using a minutes-formatted caption.
Extend charts by adding a rule mark to show a daily target of 45 minutes alongside data points in a combined SwiftUI chart, with an orange dotted line and annotations.
At WWDC 22 Apple announced brand new framework for data visualization called Charts Framework. Before the introduction of charts for Apple platform, we had options to include third party libraries to add charting capability but now it's all included as a framework into the platform.
Charts give developers ability to easily compose complex data visualization by adding few lines of code. SwiftUI makes it even better where Charts view for SwiftUI is as easy as integrating any other view and the best part is that all the code is declarative in nature so your data drives the changes for data visualization. Charts Framework is supported in all Apple platforms so that includes iOS, iPadOS, macOS, watchOS.
In this course we will take a deep dive into this new Charts Framework using SwiftUI 4 and iOS 16. We will build practical examples while exploring all the options available to configure and use charts framework which would match the theme for your app.
While learning about the Charts framework, we will also get the opportunity to learn SwiftUI 4 features.
This course is designed for developers who wants to include data visualization for their app starting iOS 16 and above.
Join me in this course and learn about the newly introduced Charts Framework.