# DateTimeScaleOptions.GridSpacingUnit property

Gets or sets the date and time unit of the major gridlines and of the text shown on their labels.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](../index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public DateTimeUnit? GridSpacingUnit { get; set; }
```

## Remarks

This property sets the granularity of the grid, not of the data; use [`MeasureUnit`](./MeasureUnit.md) for that.

## See Also

* enum [DateTimeUnit](../DateTimeUnit.md)
* class [DateTimeScaleOptions](../DateTimeScaleOptions.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
