Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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 !