Click event on Violin graph

Hi, I am new with 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…


So I will wait for your reply. Thanks !

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

Thanks !