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.

Zoom and Pan a Realtime JavaScript Chart

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.


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

2D Charts
Chart Legends
SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL.