Zoom and pan

Zoom and pan with drag, pinch, Ctrl+wheel or the keyboard. Zoom previews run in the browser; only the finished zoom calls back into .NET, so zooming stays smooth on Blazor Server too.

Zoom and pan

Zoomable="true": drag to zoom, Shift+drag to pan, Ctrl/⌘+wheel to zoom at the pointer, double-click to reset. On touch screens, pinch to zoom and move two fingers to pan. The y axis fits the visible data. @bind-VisibleRange reads and sets the visible x range.

Chart with 2 series. Web: 192 values, lowest 28 at 11/17/2026 7:45 AM, highest 252 at 11/16/2026 8:00 PM, trend stable. App: 192 values, lowest 13 at 11/16/2026 7:45 AM, highest 165 at 11/17/2026 7:45 PM, trend rising. 0100200300Nov 166:00 AM12:00 PM6:00 PMNov 176:00 AM12:00 PM6:00 PMSessions per 15 minWebAppUse Left and Right to move between points, Up and Down to change series. Plus and minus zoom, Shift with Left and Right pans, 0 shows all data. Press Escape to leave.

Visible: all

Code
Razor
<RioChart TItem="Reading" Zoomable="true" @bind-VisibleRange="range">
    <LineSeries Items="web" Name="Web" XValue="r => r.Time" YValue="r => r.Value" />
    <LineSeries Items="app" Name="App" XValue="r => r.Time" YValue="r => r.Value" />
</RioChart>

<button @onclick="() => range = ChartRange.Of(from, to)">Zoom</button>

Linked charts

Charts in the same Group share the crosshair and the zoom, and line up their plots. Zoom either chart and the other follows.

Chart with 2 series. Web: 192 values, lowest 28 at 11/17/2026 7:45 AM, highest 252 at 11/16/2026 8:00 PM, trend stable. App: 192 values, lowest 13 at 11/16/2026 7:45 AM, highest 165 at 11/17/2026 7:45 PM, trend rising. 0200400Nov 166:00 AM12:00 PM6:00 PMNov 176:00 AM12:00 PM6:00 PMSessions per 15 minWebAppUse Left and Right to move between points, Up and Down to change series. Plus and minus zoom, Shift with Left and Right pans, 0 shows all data. Press Escape to leave.
Chart with 1 series. Revenue: 192 values, lowest 42 € at 11/17/2026 8:00 AM, highest 1,709 € at 11/16/2026 6:15 PM, trend stable. 01k2kNov 166:00 AM12:00 PM6:00 PMNov 176:00 AM12:00 PM6:00 PM€ per 15 minUse Left and Right to move between points. Plus and minus zoom, Shift with Left and Right pans, 0 shows all data. Press Escape to leave.
Code
Razor
<RioChart TItem="Reading" Zoomable="true" Group="store">
    <LineSeries Items="web" ... />
</RioChart>
<RioChart TItem="Reading" Zoomable="true" Group="store">
    <AreaSeries Items="revenue" ... />
</RioChart>

From code

Take a reference with @ref and call ZoomToAsync, PanAsync, ResetZoomAsync or GetVisibleRange. OnZoomChanging can change or cancel a zoom the user made. On the keyboard, +, −, Shift+←/→ and 0 zoom, pan and reset (see Keyboard access).

An unhandled error has occurred. Reload 🗙