swift-charts

Installation
Summary

Build data visualizations with bar, line, area, point, pie, and donut charts in Swift.

  • Compose marks (BarMark, LineMark, PointMark, AreaMark, RuleMark, RectangleMark, SectorMark) inside a Chart container and configure axes, scales, and legends with view modifiers
  • Support for multi-series encoding via .foregroundStyle(by:), symbol and line style variations, and stacked or grouped layouts
  • Selection, scrolling, and annotation capabilities (iOS 17+); vectorized plots (BarPlot, LinePlot, AreaPlot, PointPlot) for datasets exceeding 1000 points (iOS 18+)
  • Specialized patterns for heat maps, Gantt charts, sparklines, threshold lines, and function plotting with explicit domain control
  • Comprehensive review checklist and common-mistake guidance covering data model setup, accessibility, Dynamic Type compatibility, and performance optimization
SKILL.md

Swift Charts

Build data visualizations with Swift Charts targeting iOS 26+. Compose marks inside a Chart container, configure axes and scales with view modifiers, and use vectorized plots for large datasets.

See references/charts-patterns.md for extended patterns, accessibility, and theming guidance.

Contents

Related skills

More from dpearson2699/swift-ios-skills

Installs
1.5K
GitHub Stars
572
First Seen
Mar 3, 2026