<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/Chart3DContent",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts14Chart3DContentP"
  },
  "title" : "Chart3DContent"
}
-->

# Chart3DContent

A type that represents the three-dimensional content that you draw on a chart.

```
@MainActor @preconcurrency protocol Chart3DContent
```

## Topics

### Associated Types

[`associatedtype Body : Chart3DContent`](/documentation/Charts/Chart3DContent/Body-swift.associatedtype)

### Instance Properties

[`var body: Self.Body`](/documentation/Charts/Chart3DContent/body-swift.property)

### Instance Methods

[`func foregroundStyle(some Chart3DSurfaceStyle) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/foregroundStyle(_:)-1pjaq)

[`func foregroundStyle(some ShapeStyle) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/foregroundStyle(_:)-7skde)

[`func foregroundStyle<D>(by: PlottableValue<D>) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/foregroundStyle(by:))

[`func metalness(Double) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/metalness(_:))

A value that controls whether the surface has a metallic look.

[`func roughness(Double) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/roughness(_:))

A value that controls the degree of surface roughness.

[`func symbol<S>(S) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/symbol(_:))

[`func symbolRotation(Rotation3D) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/symbolRotation(_:))

Set the rotation of a 3D symbol.

[`func symbolSize(CGFloat) -> some Chart3DContent`](/documentation/Charts/Chart3DContent/symbolSize(_:))

## Relationships

### Conforming Types

[`SurfacePlot`](/documentation/Charts/SurfacePlot)

[`RectangleMark`](/documentation/Charts/RectangleMark)

[`RuleMark`](/documentation/Charts/RuleMark)

[`PointMark`](/documentation/Charts/PointMark)

[`BuilderConditional`](/documentation/Charts/BuilderConditional)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)