AxisTickLength
public readonly struct AxisTickLengthComposable tick-length spec, settable via AxisBuilder.TickLength(AxisTickLength).
Implicitly converts from a plain float for the common fixed-pixel case.
Fields
Section titled “Fields”
public readonly AxisTickLengthMode ModeReturns
ChartGuru.AxisTickLengthMode
Pixels
Section titled “Pixels”public readonly float PixelsReturns
System.Single
ExtendPastBy
Section titled “ExtendPastBy”public readonly float ExtendPastByReturns
System.Single
Automatic
Section titled “Automatic”public static readonly AxisTickLength AutomaticRenderer-chosen length (currently equivalent to Fixed(5f)).
Returns
ChartGuru.AxisTickLength
Constructors
Section titled “Constructors”
AxisTickLength(AxisTickLengthMode, float, float)
Section titled “AxisTickLength(AxisTickLengthMode, float, float)”public AxisTickLength(AxisTickLengthMode mode, float pixels, float extendPastBy)Creates a tick-length specification whose numeric fields are interpreted according to the selected mode.
Parameters
| Name | Type |
|---|---|
mode |
ChartGuru.AxisTickLengthMode |
pixels |
System.Single |
extendPastBy |
System.Single |
Methods
Section titled “Methods”
Fixed(float)
Section titled “Fixed(float)”public static AxisTickLength Fixed(float pixels)Fixed pixel length.
Parameters
| Name | Type |
|---|---|
pixels |
System.Single |
Returns
ChartGuru.AxisTickLength
Label(float)
Section titled “Label(float)”public static AxisTickLength Label(float extendPastBy = 0)Each tick spans its own label, plus an optional extension.
Parameters
| Name | Type |
|---|---|
extendPastBy |
System.Single |
Returns
ChartGuru.AxisTickLength
LongestLabel(float)
Section titled “LongestLabel(float)”public static AxisTickLength LongestLabel(float extendPastBy = 0)Every tick spans the longest emitted label, plus an optional extension.
Parameters
| Name | Type |
|---|---|
extendPastBy |
System.Single |
Returns
ChartGuru.AxisTickLength
Operators
Section titled “Operators”
implicit operator AxisTickLength(float)
Section titled “implicit operator AxisTickLength(float)”public static implicit operator AxisTickLength(float pixels)Implicit float → fixed-pixel conversion for backwards compatibility.
Parameters
| Name | Type |
|---|---|
pixels |
System.Single |
Returns
ChartGuru.AxisTickLength