# CartesianChart.Scroll method

Shifts the visible range of the axes along their value axes.

**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 void Scroll(double deltaX, double deltaY, IEnumerable<Axis>? axes = null)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| deltaX | `double` | The horizontal shift, expressed as a fraction of the visible range. Positive values move the range toward larger X values. |
| deltaY | `double` | The vertical shift, expressed as a fraction of the visible range. Positive values move the range toward larger Y values. |
| axes | `IEnumerable<Axis>?` | The axes to scroll. Pass `null` to scroll all axes of the chart. |

## Remarks

Each delta is applied only to the axes that run in the matching direction, so the horizontal shift affects the horizontal axes and the vertical shift affects the vertical ones.

## See Also

* class [Axis](../Axis.md)
* class [CartesianChart](../CartesianChart.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
