chartXAxisLabel(_:position:alignment:spacing:)
Adds x axis label for charts in the view.
Declaration
nonisolated func chartXAxisLabel(_ 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.