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.

Hit-Test API

Demonstrates how to add Hit-Test on click behavior to a chart using SciChart.js, High Performance JavaScript Charts

Demonstrates the Hit Test API, which can be used to get feedback about clicks on data-points or lines and enable selection, of showing of context menus. Click on the data-point and see hit test info on the right.

Click anywhere on the chart to call BaseRenderableSeries.hitTestProvider. hitTest. The HitTest function accepts a mouse-point and returns the nearest data-point, plus its location in X,Y coordinate space.


The hitTest function accepts parameters to control the hit-test logic. See the documentation on Hit-Testing for more info!

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