Contents

chartYAxisLabel(_:position:alignment:spacing:)

Adds y axis label for charts in the view.

Declaration

nonisolated func chartYAxisLabel(_ labelKey: LocalizedStringKey, position: AnnotationPosition = .automatic, alignment: Alignment? = nil, spacing: CGFloat? = nil) -> some View

Parameters

  • labelKey:

    The key for the localized label string.

  • position:

    The position of the label.

  • alignment:

    The alignment of the label.

  • spacing:

    The spacing of the label from the axis markers.

See Also

Axis Labels