Skip to content

TimeSpanScaleOptions.MeasureUnit property

Gets or sets the time span unit to which data values are rounded. Values that fall into the same unit are plotted at the same position, so a series shows them as one value. For example, values one hour and two hours apart share one position when this property is Day, and occupy different positions when it is Hour.

Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public TimeSpanUnit? MeasureUnit { get; set; }

Remarks

This property sets the granularity of the data itself, not of the gridlines and labels; use GridSpacingUnit for those. When this property is null, values are plotted at their exact position. It also defines the granularity at which the crosshair snaps, and stops the gridlines from being drawn more finely than this unit.

See Also

Used in articles