Skip to content

AxisMarkConfig

ClassChartGuruChartGuru
public class AxisMarkConfig

Configuration for axis mark styling.

public Color? TickColor

Returns

System.Nullable{UnityEngine.Color}

public float TickWidth

Returns

System.Single

public StrokeStyle? TickStroke

Returns

System.Nullable{ChartGuru.StrokeStyle}

public Color? GridLineColor

Returns

System.Nullable{UnityEngine.Color}

public float GridLineWidth

Returns

System.Single

public StrokeStyle? GridLineStroke

Returns

System.Nullable{ChartGuru.StrokeStyle}

public bool CenteredLabels

Returns

System.Boolean

public AxisMarkPreset Preset

Returns

ChartGuru.AxisMarkPreset

public AxisMarkPosition Position

Returns

ChartGuru.AxisMarkPosition

public bool ShowLabels

Returns

System.Boolean

public bool ShowGridLines

Returns

System.Boolean

public bool ShowTicks

Returns

System.Boolean

public AxisMarkValues Values

Returns

ChartGuru.AxisMarkValues

public AxisLabelAnchor LabelAnchor

Returns

ChartGuru.AxisLabelAnchor

public float TickLength

Returns

System.Single

public HashSet<int> HiddenLabelIndices

Returns

System.Collections.Generic.HashSet{System.Int32}

public HashSet<int> HiddenGridLineIndices

Returns

System.Collections.Generic.HashSet{System.Int32}

public HashSet<int> HiddenTickIndices

Returns

System.Collections.Generic.HashSet{System.Int32}

public Dictionary<int, string> LabelOverrides

Returns

System.Collections.Generic.Dictionary{System.Int32,System.String}

public void SyncToSerializable()

Call after populating NonSerialized fields to sync serializable backing.

public void SyncFromSerializable()

Restore NonSerialized fields from serialized backing after deserialization.

public bool IsLabelVisibleAtIndex(int index)

Reports whether the configured label filters allow the tick label at the supplied index.

Parameters

Name Type
index System.Int32

Returns

System.Boolean

public bool IsGridLineVisibleAtIndex(int index)

Reports whether the configured grid-line filters allow the line at the supplied tick index.

Parameters

Name Type
index System.Int32

Returns

System.Boolean

public bool IsTickVisibleAtIndex(int index)

Reports whether the configured tick filters allow the mark at the supplied index.

Parameters

Name Type
index System.Int32

Returns

System.Boolean

public string GetLabelTextAtIndex(int index, string defaultText)

Returns the configured text override for a tick index, falling back to the caller’s formatted label.

Parameters

Name Type
index System.Int32
defaultText System.String

Returns

System.String

public AxisMarkConfig Clone()

Creates an independent copy of this Axis Mark Config; later configuration changes do not affect the original instance.

Returns

ChartGuru.AxisMarkConfig

public AxisMarkConfig()