Pre loader

Hit-Test API

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

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.

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

JavaScript Chart Examples

2D Charts

Chart Legends

3D Charts
Featured Apps
What's New

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies