Skip to content

ChartLayerAnnotation

ClassChartGuruChartGuru
public sealed class ChartLayerAnnotation

A caption drawn next to every mark of a layer, as Swift Charts' .annotation modifier with fixed text; the usual use is the label of a target or threshold rule.

public ChartLayerAnnotation Clone()

Returns a copy.

Returns

ChartGuru.ChartLayerAnnotation

public ChartLayerAnnotation()

public string Text { get; set; }

Returns

System.String

public AnnotationPosition Position { get; set; }

Returns

ChartGuru.AnnotationPosition

public AnnotationAlignment Alignment { get; set; }

Returns

ChartGuru.AnnotationAlignment

public bool OverrideTextColor { get; set; }

Returns

System.Boolean

public Color TextColor { get; set; }

Returns

UnityEngine.Color

public float FontSize { get; set; }

Returns

System.Single

public bool OverrideFontStyle { get; set; }

Returns

System.Boolean

public ChartFontStyle FontStyle { get; set; }

Returns

ChartGuru.ChartFontStyle

public bool OverrideSpacing { get; set; }

Returns

System.Boolean

public float Spacing { get; set; }

Returns

System.Single

public AnnotationOverflowConfig Overflow { get; set; }

Keeps the caption inside the chart, as Swift Charts' overflowResolution.

Returns

ChartGuru.AnnotationOverflowConfig

public bool IsEmpty { get; }

True when there is no caption to draw.

Returns

System.Boolean