<!--
{
  "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/PointMark/init(x:y:z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts9PointMarkV1x1y1zAcA14PlottableValueVyxG_AHyq_GAHyq0_GtcAA0D0RzAaLR_AaLR0_r1_lufc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

Creates a 3D point mark that plots values to x, y and z.

```
nonisolated init(x: PlottableValue<some Plottable>, y: PlottableValue<some Plottable>, z: PlottableValue<some Plottable>)
```

## Parameters

`x`

The x position.

`y`

The y position.

`z`

The z position.

## Discussion> Important: A 3D PointMark requires exactly three numeric points.

Use this initializer to plot one property with each of the x, y and z axes:

```swift
Chart3D(data) {
    PointMark(
        x: .value("Wing Length", $0.wingLength),
        y: .value("Wing Width", $0.wingWidth),
        z: .value("Weight", $0.weight)
    )
}
```

---

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)