---
title: "init(x:y:z:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/pointmark/init(x:y:z:)"
---

# init(x:y:z:)

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

## Declaration

```swift
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

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: Chart3D(data) {     PointMark(         x: .value("Wing Length", $0.wingLength),         y: .value("Wing Width", $0.wingWidth),         z: .value("Weight", $0.weight)     ) }

## See Also

### Creating a point mark

- [init(x:y:)](charts/pointmark/init(x:y:)-44ke9.md)
- [init(x:y:)](charts/pointmark/init(x:y:)-9dswq.md)
- [init(x:y:)](charts/pointmark/init(x:y:)-9hppd.md)
