AxisLabelInfo
public struct AxisLabelInfoInformation about an axis label for external text rendering.
Fields
Section titled “Fields”
Position
Section titled “Position”public Vector2 PositionScreen position where the label should be drawn.
Returns
UnityEngine.Vector2 — No return description is available.
public string TextText to display.
Returns
System.String — No return description is available.
public float ValueThe numeric value this label represents.
Returns
System.Single — No return description is available.
LabelOffset
Section titled “LabelOffset”public Vector2 LabelOffsetOptional 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.
BlockIndex
Section titled “BlockIndex”public int BlockIndexIndex 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.
IndexInBlock
Section titled “IndexInBlock”public int IndexInBlockIndex 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.
IsOnRight
Section titled “IsOnRight”public bool IsOnRightFor 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.
IsOnTop
Section titled “IsOnTop”public bool IsOnTopFor 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.
IsInset
Section titled “IsInset”public bool IsInsetTrue when this label uses the inset Preset (rendered inside the plot area).
Returns
System.Boolean — No return description is available.