# INumericAxisGridCalculator.Calculate method

Calculates the values at which the axis gridlines and tickmarks are placed.

**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 IList<NumericGridEntry> Calculate(double visualRangeMin, double visualRangeMax, 
    double axisLength, double ticksDistance)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| visualRangeMin | `double` | The minimum of the visible range of the axis. |
| visualRangeMax | `double` | The maximum of the visible range of the axis. |
| axisLength | `double` | The length of the axis on screen. |
| ticksDistance | `double` | The preferred distance on screen between adjacent values. |

## Returns

| type | description |
| --- | --- |
| `IList<NumericGridEntry>` | The list of values to draw, in ascending order. |

## See Also

* struct [NumericGridEntry](../NumericGridEntry.md)
* interface [INumericAxisGridCalculator](../INumericAxisGridCalculator.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
