Contents

chartXAxisLabel(position:alignment:spacing:content:)

Adds x axis label for charts in the view.

Declaration

nonisolated func chartXAxisLabel<C>(position: AnnotationPosition = .automatic, alignment: Alignment? = nil, spacing: CGFloat? = nil, @ViewBuilder content: () -> C) -> some View where C : View

Parameters

  • position:

    The position of the label.

  • alignment:

    The alignment of the label.

  • spacing:

    The spacing of the label from the axis markers.

  • content:

    The label content.

See Also

Axis Labels