Skip to content

AxisLabelInfo

StructChartGuruChartGuru
public struct AxisLabelInfo

Information about an axis label for external text rendering.

public Vector2 Position

Screen position where the label should be drawn.

Returns

UnityEngine.Vector2 — No return description is available.

public string Text

Text to display.

Returns

System.String — No return description is available.

public float Value

The numeric value this label represents.

Returns

System.Single — No return description is available.

public Vector2 LabelOffset

Optional pixel offset applied to the label text only (not to the tick mark or grid line). Used to inset edge labels so they don’t get clipped by the chart bounds when a tick sits at the exact left/right edge of the plot area. Tick marks continue to use ChartGuru.AxisLabelInfo.Position so they stay aligned with data; only the rendered label text shifts by this offset.

Returns

UnityEngine.Vector2 — No return description is available.

public int BlockIndex

Index into AxisConfig.MarksBlocks identifying which block produced this entry. -1 means it was produced by the legacy (flat) path.

Returns

System.Int32 — No return description is available.

public int IndexInBlock

Index of this tick within its block’s resolved values. Used for per-block index-based visibility checks (AxisMarkConfig.IsLabelVisibleAtIndex etc.).

Returns

System.Int32 — No return description is available.

public bool IsOnRight

For Y-axis labels: true when this label is positioned on the right (trailing) side. Used by text rendering to determine alignment (left-align for right-side labels).

Returns

System.Boolean — No return description is available.

public bool IsOnTop

For X-axis labels: true when this label is positioned above the Plot (top). Used by text rendering to determine alignment (bottom-center for top labels).

Returns

System.Boolean — No return description is available.

public bool IsInset

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

Returns

System.Boolean — No return description is available.