Contents

init(x:y:z:)

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

Declaration

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

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