swift-charts

Build SwiftUI charts with Swift Charts marks, axes, and accessibility.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill swift-charts-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-charts
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/swift-charts
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill swift-charts-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Swift Charts code often becomes inconsistent, inaccessible, or slow when teams need to visualize data quickly and correctly across different chart types and device constraints.

Core Features & Use Cases

  • Chart construction workflow: Create SwiftUI charts by composing marks inside a Chart container and encoding data via value-driven initializers.
  • Production-ready chart capabilities: Customize axes, scales, legends, selections (including iOS 17+ selection APIs), and annotations to make charts interactive and readable.
  • Performance and maintainability guidance: Use vectorized plots (iOS 18+) for large datasets, apply correct modifier ordering, and avoid common mistakes that break compilation or UX.
  • Accessibility and theming practices: Ensure VoiceOver-friendly labeling via descriptive .value strings and check Dynamic Type and dark mode compatibility.
  • Use Case: Turn a dataset of learner or performance metrics into a responsive iPad/iPhone dashboard using bar, line, sector/donut, and scrollable charts with accurate axes and accessible labels.

Quick Start

Ask the AI to help you implement a scrollable bar chart in SwiftUI using Swift Charts with clearly labeled axes, dynamic scales, and accessible mark values.

Frequently Asked Questions about swift-charts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build interactive SwiftUI charts using Swift Charts?

Build interactive SwiftUI charts by composing marks inside a Chart container and encoding data via value-driven initializers. Customize axes, scales, legends, and annotations to make charts readable and interactive across iOS devices.

Can I use vectorized plots in Swift Charts for large datasets?

Vectorized plots in Swift Charts support large datasets on iOS 18+. Apply correct modifier ordering and use appropriate Plot types to avoid common compilation mistakes and maintain performance.

Does Swift Charts support VoiceOver and Dynamic Type for accessible data visualization?

Swift Charts supports VoiceOver-friendly labeling via descriptive .value strings and checks Dynamic Type compatibility. Ensure data-driven styling and accessible mark values so visually impaired users can navigate chart data.

What's the best way to add scrolling and selection to a SwiftUI bar chart?

Add scrolling and selection to a SwiftUI bar chart by applying iOS 17+ selection APIs inside the Chart container. Configure dynamic scales and use annotations to make the interactive bar chart readable and responsive.

Why does my Swift Charts code break when I change the modifier order?

Swift Charts code breaks because vectorized modifier ordering must be correct to compile properly. Apply modifiers in the correct sequence and avoid common mistakes that break compilation or user experience when building complex chart structures.