Skip to content

AnnotationOverflowResolution

EnumChartGuruChartGuru
public enum AnnotationOverflowResolution

Strategy for resolving annotations that would overflow the plot area. Swift Charts equivalent: AnnotationOverflowResolution.

Automatic = 0

Let the layout pick between padding, disabling, or flipping the annotation.

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

Disabled = 1

Always draw the annotation at its requested position, even if it overflows.

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

AutomaticOrDisabled = 2

Preserve the annotation when possible, fall back to hiding it when clipping would be unacceptable.

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

Padded = 3

Shift the annotation back inside the plot area when it would overflow.

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

Flipped = 4

Flip the annotation to the opposite side of its mark when it would overflow.

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

Fit = 5

Scale the Annotation (font / extent) until it fits inside the chosen boundary. Swift Charts: .fit(to:).

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.

PadScale = 6

Feed the overflow back into the data scale so the axis padding makes room. Swift Charts: .padScale(_:).

Returns

ChartGuru.AnnotationOverflowResolution — No return description is available.