swift-charts
Implement, review, or improve data visualizations using Swift Charts. Use when building bar, line, area, point, pie, donut, or iOS 26 3D charts; when adding chart selection, scrolling, annotations, axes, scales, legends, or foregroundStyle grouping; when plotting functions with BarPlot, LinePlot, AreaPlot, PointPlot, Chart3D, or SurfacePlot; or when creating heat maps, Gantt charts, grouped bars, sparklines, threshold lines, or spatial visualizations.
npx skills add dpearson2699/swift-ios-skills --skill swift-charts --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Swift Charts Build data visualizations with Swift Charts targeting iOS 26+. Compose marks inside `Chart` or `Chart3D`, configure axes and scales with view modifiers, and use vectorized plots or 3D plots when the data calls for them. See [references/charts-patterns.md](references/charts-patterns.md) for extended patterns, 3D charts, accessibility, and theming guidance. ## Contents - [Workflow](#workflow) - [Chart Container](#chart-container) - [Mark Types](#mark-types) - [Axis Customization](#axis-customization) - [Scale Configuration](#scale-configuration) - [Foreground Style and Encoding](#foreground-style-and-encoding) - [Selection (iOS 17+)](#selection-ios-17) - [Scrollable Charts (iOS 17+)](#scrollable-charts-ios-17) - [Annotations](#annotations) - [Legend](#legend) - [Vectorized Plots (iOS 18+)](#vectorized-plots-ios-18) - [3D Charts (iOS 26+)](#3d-charts-ios-26) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Workflow ### 1. Build a new chart 1. Define data as an `Identifiable` struct or use `id:` key path. 2. Choose mark type(s): `BarMark`, `LineMark`, `PointMark`, `AreaMark`, `RuleMark`, `RectangleMark`, `Sector
- Contents
- Workflow
- 1. Build a new chart
- 2. Review existing chart code
- Chart Container
- Mark Types
- BarMark (iOS 16+)
- LineMark (iOS 16+)
- PointMark (iOS 16+)
- AreaMark (iOS 16+)
- RuleMark (iOS 16+)
- RectangleMark (iOS 16+)
- SectorMark (iOS 17+)
- Axis Customization
What does the swift-charts skill do?
Implement, review, or improve data visualizations using Swift Charts. Use when building bar, line, area, point, pie, donut, or iOS 26 3D charts; when adding chart selection, scrolling, annotations, axes, scales, legends, or foregroundStyle grouping; when plotting functions with BarPlot, LinePlot, AreaPlot, PointPlot, Chart3D, or SurfacePlot; or when creating heat maps, Gantt charts, grouped bars, sparklines, threshold lines, or spatial visualizations.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill swift-charts --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.