How to get select event from plotly json

I am trying to get event when user is clicking/selecting point on plotly chart
Tried to define js code on the select event handler. but didn't get any event
What I am missing ?

Hi @Shachar_Segev

The chart component has, in its state, a selectedPoints property that is an array populated with info about the selection, you can exploit it to do your further logic.

Hope this help.

Thanks for the quick reply
How do I activate the box or lasso selection ?

AFAIK it should be already active, isn't it?