Skip to content

AxisTickLength

StructChartGuruChartGuru
public readonly struct AxisTickLength

Composable tick-length spec, settable via AxisBuilder.TickLength(AxisTickLength). Implicitly converts from a plain float for the common fixed-pixel case.

public readonly AxisTickLengthMode Mode

Returns

ChartGuru.AxisTickLengthMode

public readonly float Pixels

Returns

System.Single

public readonly float ExtendPastBy

Returns

System.Single

public static readonly AxisTickLength Automatic

Renderer-chosen length (currently equivalent to Fixed(5f)).

Returns

ChartGuru.AxisTickLength

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

public static AxisTickLength Fixed(float pixels)

Fixed pixel length.

Parameters

Name Type
pixels System.Single

Returns

ChartGuru.AxisTickLength

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

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

public static implicit operator AxisTickLength(float pixels)

Implicit float → fixed-pixel conversion for backwards compatibility.

Parameters

Name Type
pixels System.Single

Returns

ChartGuru.AxisTickLength