Skip to content

MajorValueAlignment

StructChartGuruChartGuru
public readonly struct MajorValueAlignment

Major alignment specification for value-aligned scroll snapping. Swift Charts equivalent: MajorValueAlignment.

public readonly MajorValueAlignment.AlignmentKind Kind

Returns

ChartGuru.MajorValueAlignment.AlignmentKind

public readonly float Value

Returns

System.Single

public readonly TimeUnit TimeUnit

Returns

ChartGuru.TimeUnit

public readonly int Count

Returns

System.Int32

public static readonly MajorValueAlignment Page

Aligns major snaps to multiples of the current visible domain length (“paging”).

Returns

ChartGuru.MajorValueAlignment

public static MajorValueAlignment Unit(float unit)

Aligns major snaps to the given unit Offset (current behaviour).

Parameters

Name Type
unit System.Single

Returns

ChartGuru.MajorValueAlignment

public static MajorValueAlignment Matching(TimeUnit timeUnit, int count = 1)

Aligns major snaps to a calendar unit (Day, Month, Year, …).

Parameters

Name Type
timeUnit ChartGuru.TimeUnit
count System.Int32

Returns

ChartGuru.MajorValueAlignment