Skip to content

TickLabel

StructChartGuruChartGuru
public struct TickLabel

Represents a tick label with its value, text, and screen position.

public float Value

Returns

System.Single

public string Text

Returns

System.String

public Vector2 Position

Returns

UnityEngine.Vector2

public Vector2 LabelOffset

Optional pixel offset applied to the rendered label text only. Lets the layout engine inset edge labels so they don’t clip past the chart bounds while keeping the tick mark/grid line at ChartGuru.TickLabel.Position.

Returns

UnityEngine.Vector2

public bool IsOnRight

For Y-axis labels: true when positioned on the right (trailing) side.

Returns

System.Boolean

public bool IsOnTop

For X-axis labels: true when positioned above the Plot (top).

Returns

System.Boolean

public bool IsInset

True when this label uses the inset Preset (rendered inside the plot area).

Returns

System.Boolean