plotlyDiv.on('plotly_click', function (data) {
var x, y, x_axis, y_axis;
data.points.map(function (d) {
x = d.x;
y = d.y;
x_axis = d.xaxis.title.text.toLowerCase().replace(' ','_');
y_axis = d.yaxis.title.text.toLowerCase().replace(' ','_');
});
};
How to highlight the marker in the plotly scatter map