Skip to content

DataLabelInfo

StructChartGuruChartGuru
public struct DataLabelInfo

Information about a data label for external text rendering.

public Vector2 Position

Screen position where the label should be drawn.

Returns

UnityEngine.Vector2

public float Value

The numeric value to display.

Returns

System.Single

public int MarkIndex

Index of the mark this label belongs to.

Returns

System.Int32

public int SeriesIndex

Index of the series this label belongs to.

Returns

System.Int32

public Color Color

Color associated with this data point.

Returns

UnityEngine.Color

public string Text

Formatted text representation of the value.

Returns

System.String

public DataLabelPosition LabelPosition

Position of the label relative to the data point (Above, Below, Center, Left, Right).

Returns

ChartGuru.DataLabelPosition

public bool HasLeaderLine

True when this label should render an external leader line.

Returns

System.Boolean

public Vector2 LeaderLineStart

Leader line start point, usually on the source mark edge.

Returns

UnityEngine.Vector2

public Vector2 LeaderLineElbow

Leader line elbow point between the source mark and label.

Returns

UnityEngine.Vector2

public Vector2 LeaderLineEnd

Leader line end point, before the label text anchor.

Returns

UnityEngine.Vector2