<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/AxisContent",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts11AxisContentP"
  },
  "title" : "AxisContent"
}
-->

# AxisContent

A type that represents the elements you use to build a chart’s axes.

```
protocol AxisContent
```

## Topics

### Instance Methods

[`func compositingLayer() -> some AxisContent`](/documentation/Charts/AxisContent/compositingLayer())

Creates a compositing layer for the axis content.

[`func compositingLayer<V>(style: (PlaceholderContentView<Self>) -> V) -> some AxisContent`](/documentation/Charts/AxisContent/compositingLayer(style:))

Creates a compositing layer for the axis content, and apply view
modifiers to the compositing layer.

## Relationships

### Conforming Types

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

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

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

---

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)