Click event on Violin graph

Hi, I am new with plot.ly and in the community!

I have a violin diagram like the multiple violin traces in here. I want to get the X axes when the user clicks one of the violins. I tried the event onClick like the example on here but I don’t find points object (I guess is diferent for violin plot).

How can I get X axis on click one violin?

Thanks for all!

Actually I got it inside the following object but I guess this isn’t the correct way to get it…

data.handleObj.handler.arguments[1].points[0].x

So I will wait for your reply. Thanks !

Solved, It was different because I took it with jQuery.

Thanks !