Skip to content

AxisTickLength

StructChartGuruChartGuru
[Serializable]
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

No description is available for this member.

Returns

ChartGuru.AxisTickLengthMode — No return description is available.

public readonly float Pixels

No description is available for this member.

Returns

System.Single — No return description is available.

public readonly float ExtendPastBy

No description is available for this member.

Returns

System.Single — No return description is available.

public static readonly AxisTickLength Automatic

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

Returns

ChartGuru.AxisTickLength — No return description is available.

AxisTickLength(AxisTickLengthMode, float, float)

Section titled “AxisTickLength(AxisTickLengthMode, float, float)”
public AxisTickLength(AxisTickLengthMode mode, float pixels, float extendPastBy)

No description is available for this member.

Parameters

Name Type Description
mode ChartGuru.AxisTickLengthMode
pixels System.Single
extendPastBy System.Single

public static AxisTickLength Fixed(float pixels)

Fixed pixel length.

Parameters

Name Type Description
pixels System.Single

Returns

ChartGuru.AxisTickLength — No return description is available.

public static AxisTickLength Label(float extendPastBy = 0)

Each tick spans its own label, plus an optional extension.

Parameters

Name Type Description
extendPastBy System.Single

Returns

ChartGuru.AxisTickLength — No return description is available.

public static AxisTickLength LongestLabel(float extendPastBy = 0)

Every tick spans the longest emitted label, plus an optional extension.

Parameters

Name Type Description
extendPastBy System.Single

Returns

ChartGuru.AxisTickLength — No return description is available.

public static implicit operator AxisTickLength(float pixels)

Implicit float → fixed-pixel conversion for backwards compatibility.

Parameters

Name Type Description
pixels System.Single

Returns

ChartGuru.AxisTickLength — No return description is available.