AxisMarkConfig
public class AxisMarkConfigConfiguration for axis mark styling.
Fields
Section titled “Fields”
TickColor
Section titled “TickColor”public Color? TickColorReturns
System.Nullable{UnityEngine.Color}
TickWidth
Section titled “TickWidth”public float TickWidthReturns
System.Single
TickStroke
Section titled “TickStroke”public StrokeStyle? TickStrokeReturns
System.Nullable{ChartGuru.StrokeStyle}
GridLineColor
Section titled “GridLineColor”public Color? GridLineColorReturns
System.Nullable{UnityEngine.Color}
GridLineWidth
Section titled “GridLineWidth”public float GridLineWidthReturns
System.Single
GridLineStroke
Section titled “GridLineStroke”public StrokeStyle? GridLineStrokeReturns
System.Nullable{ChartGuru.StrokeStyle}
CenteredLabels
Section titled “CenteredLabels”public bool CenteredLabelsReturns
System.Boolean
Preset
Section titled “Preset”public AxisMarkPreset PresetReturns
ChartGuru.AxisMarkPreset
Position
Section titled “Position”public AxisMarkPosition PositionReturns
ChartGuru.AxisMarkPosition
ShowLabels
Section titled “ShowLabels”public bool ShowLabelsReturns
System.Boolean
ShowGridLines
Section titled “ShowGridLines”public bool ShowGridLinesReturns
System.Boolean
ShowTicks
Section titled “ShowTicks”public bool ShowTicksReturns
System.Boolean
Values
Section titled “Values”public AxisMarkValues ValuesReturns
ChartGuru.AxisMarkValues
LabelAnchor
Section titled “LabelAnchor”public AxisLabelAnchor LabelAnchorReturns
ChartGuru.AxisLabelAnchor
TickLength
Section titled “TickLength”public float TickLengthReturns
System.Single
HiddenLabelIndices
Section titled “HiddenLabelIndices”public HashSet<int> HiddenLabelIndicesReturns
System.Collections.Generic.HashSet{System.Int32}
HiddenGridLineIndices
Section titled “HiddenGridLineIndices”public HashSet<int> HiddenGridLineIndicesReturns
System.Collections.Generic.HashSet{System.Int32}
HiddenTickIndices
Section titled “HiddenTickIndices”public HashSet<int> HiddenTickIndicesReturns
System.Collections.Generic.HashSet{System.Int32}
LabelOverrides
Section titled “LabelOverrides”public Dictionary<int, string> LabelOverridesReturns
System.Collections.Generic.Dictionary{System.Int32,System.String}
Methods
Section titled “Methods”
SyncToSerializable()
Section titled “SyncToSerializable()”public void SyncToSerializable()Call after populating NonSerialized fields to sync serializable backing.
SyncFromSerializable()
Section titled “SyncFromSerializable()”public void SyncFromSerializable()Restore NonSerialized fields from serialized backing after deserialization.
IsLabelVisibleAtIndex(int)
Section titled “IsLabelVisibleAtIndex(int)”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
IsGridLineVisibleAtIndex(int)
Section titled “IsGridLineVisibleAtIndex(int)”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
IsTickVisibleAtIndex(int)
Section titled “IsTickVisibleAtIndex(int)”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
GetLabelTextAtIndex(int, string)
Section titled “GetLabelTextAtIndex(int, string)”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
Clone()
Section titled “Clone()”public AxisMarkConfig Clone()Creates an independent copy of this Axis Mark Config; later configuration changes do not affect the original instance.
Returns
ChartGuru.AxisMarkConfig
Constructors
Section titled “Constructors”
AxisMarkConfig()
Section titled “AxisMarkConfig()”public AxisMarkConfig()