chartZAxis(content:)
Configures the z-axis for 3D charts in the view.
Declaration
nonisolated func chartZAxis<Content>(@AxisContentBuilder content: () -> Content) -> some View where Content : AxisContent
Parameters
- content:
The axis content.
Discussion
Use this modifier to customize the z-axis of a chart. Provide an AxisMarks builder that composes AxisGridLine, AxisTick, and AxisValueLabel structures to form the axis. Omit components from the builder to omit them from the resulting axis. For example, the following code adds grid lines to the z-axis:
.chartZAxis {
AxisMarks {
AxisGridLine()
}
}Use arguments such as position: or values: to control the placement of the axis values it displays.