/superskills-design:swiftui-charts-3dfrom Superskills Design
Creates 3D data visualizations using Swift Charts' Chart3D and SurfacePlot APIs. Covers math-driven and data-driven surfaces, interactive drag-to-rotate, camera pose control, and height-based surface styling. Requires iOS 26/macOS 26+.
Ships in Superskills Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create 3D data visualizations using Chart3D and SurfacePlot. Covers math-driven surfaces, data-driven surfaces, interactive camera pose control, surface styling, and camera projection modes.
Use this skill when the user:
Chart3D, SurfacePlot, or 3D surface plots| API | Minimum Version | Notes |
|---|---|---|
Chart3D | iOS 26 / macOS 26 | Main 3D chart container |
SurfacePlot | iOS 26 / macOS 26 | 3D surface mark |
Chart3DPose | iOS 26 / macOS 26 | Viewing angle control |
Chart3DCameraProjection | iOS 26 / macOS 26 | .automatic, .perspective, .orthographic |
Chart3DSurfaceStyle | iOS 26 / macOS 26 | .heightBased, .normalBased |
import SwiftUI
import Charts
struct WaveSurfaceView: View {
var body: some View {
Chart3D {
SurfacePlot(
x: "X",
y: "Height",
z: "Z",
function: { x, z in
sin(x) * cos(z)
}
)
.foregroundStyle(.blue)
}
}
}
struct DataPoint: Identifiable {
let id = UUID()
let x: Double
let y: Double
let z: Double
}
struct DataSurfaceView: View {
let points: [DataPoint]
var body: some View {
Chart3D(points) { point in
SurfacePlot(
x: .value("X", point.x),
y: .value("Height", point.y),
z: .value("Z", point.z)
)
}
}
}
struct InteractiveChartView: View {
@State private var pose = Chart3DPose.default
var body: some View {
Chart3D {
SurfacePlot(x: "X", y: "Height", z: "Z", function: { x, z in sin(x) * cos(z) })
.foregroundStyle(.blue)
}
.chart3DPose($pose)
}
}
SurfacePlot(x: "X", y: "Y", z: "Z", function: { x, z in sin(x) * cos(z) })
.foregroundStyle(
Chart3DSurfaceStyle.heightBased(
Gradient(colors: [.blue, .cyan, .green, .yellow, .red]),
yRange: -1...1
)
)
SurfacePlot(x: "X", y: "Y", z: "Z", function: { x, z in sin(x) * cos(z) })
.foregroundStyle(Chart3DSurfaceStyle.normalBased)
SurfacePlot(...)
.foregroundStyle(.blue)
.roughness(0.3) // 0 = reflective, 1 = matte
.chart3DPose(.default) // Standard 3/4 angle
.chart3DPose(.front) // Viewing from front
.chart3DPose(.top) // Top-down view
.chart3DPose(
Chart3DPose(azimuth: .degrees(45), inclination: .degrees(30))
)
// ✅ Read-only — user cannot rotate the chart
.chart3DPose(Chart3DPose.front)
// ✅ Interactive — user can drag to rotate
@State private var pose = Chart3DPose.default
.chart3DPose($pose)
.chart3DCameraProjection(.perspective) // Objects farther away appear smaller (visual appeal)
.chart3DCameraProjection(.orthographic) // No perspective distortion (scientific precision)
.chart3DCameraProjection(.automatic) // System decides
| # | Mistake | Fix |
|---|---|---|
| 1 | Forgetting to import Charts | Both SwiftUI and Charts imports are required |
| 2 | Using .chart3DPose(.default) and expecting drag-to-rotate | Use a @State binding: .chart3DPose($pose) |
| 3 | Setting yRange that does not cover actual function output | Match yRange to actual min/max of your function |
| 4 | Applying .roughness() without .foregroundStyle() | Set a foreground style first |
| 5 | Using orthographic projection for presentation contexts | Prefer .perspective for visual appeal |
import SwiftUI and import Charts are presentChart3D wraps all SurfacePlot contentyRange in .heightBased() matches actual output range@State binding if drag-to-rotate is intendedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swift-charts, 3d-charts, surface-plot, data-visualization, chart3d
npx claudepluginhub ariadoss/superskills --plugin superskills-design37 skills in this plugin
/adaptive-communicationAdjust communication style based on whether the user is in a relational (exploratory, hedging) or transactional (direct, technical) mode. Use when calibrating response tone, level of scaffolding, or how much to acknowledge context before answering./app-store-screenshotsGenerate App Store and Google Play marketing screenshots using Next.js. Use when the user wants to create app store screenshots, marketing screenshots, or device mockup exports for iOS, iPad, or Android./bencium-code-conventionsBence's code style, tech stack, and workflow conventionsOther plugins' skills for the same job