AnnotationOverflowConfig
public readonly struct AnnotationOverflowConfigApple-shaped richer overflow resolution carrying per-dimension strategies and a
boundary. Swift Charts: AnnotationOverflowResolution.init(x:y:boundary:).
Fields
Section titled “Fields”
public readonly AnnotationOverflowResolution XReturns
ChartGuru.AnnotationOverflowResolution
public readonly AnnotationOverflowResolution YReturns
ChartGuru.AnnotationOverflowResolution
Boundary
Section titled “Boundary”public readonly AnnotationBoundary BoundaryReturns
ChartGuru.AnnotationBoundary
Constructors
Section titled “Constructors”
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 |
Methods
Section titled “Methods”
Fit(AnnotationBoundary)
Section titled “Fit(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
PadScale(AnnotationBoundary)
Section titled “PadScale(AnnotationBoundary)”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
Equals(AnnotationOverflowConfig)
Section titled “Equals(AnnotationOverflowConfig)”public bool Equals(AnnotationOverflowConfig other)Parameters
| Name | Type |
|---|---|
other |
ChartGuru.AnnotationOverflowConfig |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Properties
Section titled “Properties”
Automatic
Section titled “Automatic”public static AnnotationOverflowConfig Automatic { get; }Returns
ChartGuru.AnnotationOverflowConfig