Skip to content

AnnotationOverflowConfig

StructChartGuruChartGuru
public readonly struct AnnotationOverflowConfig

Apple-shaped richer overflow resolution carrying per-dimension strategies and a boundary. Swift Charts: AnnotationOverflowResolution.init(x:y:boundary:).

public readonly AnnotationOverflowResolution X

Returns

ChartGuru.AnnotationOverflowResolution

public readonly AnnotationOverflowResolution Y

Returns

ChartGuru.AnnotationOverflowResolution

public readonly AnnotationBoundary Boundary

Returns

ChartGuru.AnnotationBoundary

AnnotationOverflowConfig(AnnotationOverflowResolution, AnnotationOverflowResolution, AnnotationBoundary)

Section titled “AnnotationOverflowConfig(AnnotationOverflowResolution, AnnotationOverflowResolution, AnnotationBoundary)”
public AnnotationOverflowConfig(AnnotationOverflowResolution x, AnnotationOverflowResolution y, AnnotationBoundary boundary = AnnotationBoundary.Automatic)

Creates independent horizontal and vertical overflow policies evaluated against the selected chart boundary.

Parameters

Name Type
x ChartGuru.AnnotationOverflowResolution
y ChartGuru.AnnotationOverflowResolution
boundary ChartGuru.AnnotationBoundary

AnnotationOverflowConfig(AnnotationOverflowResolution, AnnotationBoundary)

Section titled “AnnotationOverflowConfig(AnnotationOverflowResolution, AnnotationBoundary)”
public AnnotationOverflowConfig(AnnotationOverflowResolution both, AnnotationBoundary boundary = AnnotationBoundary.Automatic)

Applies one overflow policy to both dimensions against the selected chart boundary.

Parameters

Name Type
both ChartGuru.AnnotationOverflowResolution
boundary ChartGuru.AnnotationBoundary

public static AnnotationOverflowConfig Fit(AnnotationBoundary boundary = AnnotationBoundary.Plot)

Creates overflow behavior that repositions annotations to remain inside the selected chart boundary.

Parameters

Name Type
boundary ChartGuru.AnnotationBoundary

Returns

ChartGuru.AnnotationOverflowConfig

public static AnnotationOverflowConfig PadScale(AnnotationBoundary boundary = AnnotationBoundary.Plot)

Creates overflow behavior that expands the selected scale so annotations fit inside the chart boundary.

Parameters

Name Type
boundary ChartGuru.AnnotationBoundary

Returns

ChartGuru.AnnotationOverflowConfig

public bool Equals(AnnotationOverflowConfig other)

Parameters

Name Type
other ChartGuru.AnnotationOverflowConfig

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

public override string ToString()

Returns

System.String

public static AnnotationOverflowConfig Automatic { get; }

Returns

ChartGuru.AnnotationOverflowConfig