Binding multiple graph on click

Hi
i have multiple graphs in one single page!! i would like to bind all the graphs to one single on click event .

$(".class").on(‘plotly_click’,function(data){
console.log(data);
var update = {
title: ‘some new title’,
marker:{
color: [‘red’, ‘red’, ‘red’,‘red’,‘red’,‘red’]
},
};
Plotly.restyle(myDiv1,update);
});

from the above code i could get the complete data about one particular graph but not the exact point where i had clicked !!
Help me !