Pre loader

Zoom and Pan a Realtime JavaScript Chart

JavaScript Chart - Examples

SciChart.js ships with over 80 JavaScript Chart demos which you can browse, view the source code and see related documentation. Build incredible complex dashboards with SciChart.js, our High Performance JavaScript Chart Library.

Getting Started

Zoom the real-time chart below by dragging on the surface. Then double-click to reset zoom and start automatically scrolling again.

This examples shows how to add zooming and panning behaviour to a realtime JavaScript Chart.

When you use AutoRanging in a SciChart.js chart, the chart will always automatically range to fit the data. This means that zoom, pan modifiers will not work on the chart. In order to allow both behaviors, this example demonstrates how to use the ZoomState property to determine when to zoom to fit, or when to allow user zooming.

Tips
Check in the source-code for how we use the SciChartSurface.ZoomState property to determine when to scroll and when to allow user-zooming.

JavaScript Chart Examples

2D Charts

Chart Legends

3D Charts
Featured Apps
What's New