Home forums Using CanvasJS dataPointIndex of scatter Reply To: dataPointIndex of scatter


Sunil Urs


As of we dataPoints are automatically sorted in case of scatter & bubble charts. We’ll consider changing this behavior in upcoming versions.

As a workaround you can store the index value of dataPoints yourself and access them inside the event handler.

Here is an example.

Sunil Urs