Contents

init(x:y:z:)

Creates a rectangle mark for a 3D chart.

Declaration

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

Parameters

  • x:

    The x value.

  • y:

    The y value.

  • z:

    The z value.

Discussion

For example, the following Chart3D shows a rectangle mark that extends along the x-axis and y-axis.

Chart3D {
    RectangleMark(
        x: .value("x", -0.5..<0.5),
        y: .value("y", -0.5..<0.5),
        z: .value("z", 0)
    )
}

See Also

Creating a rectangle mark