Black Lives Matter. Please consider donating to Black Girls Code today.

Mouse tracks pre-exisitng data points

Hi all,

I’ve run into a problem and looking for advice. When I hover over my plotly graph (graph is made up of scatter points) - there are certain areas that when I hover over it it will show the coordinates of where that is, but also the coordinates of a breakpoint that already exists. When I do my click event - I’ve noticed that my data points log as the coordinates of the pre-existing plot point, ot the coordinate of my mouse. Is there a way to remove that?

As you can see below - the mouse coordinates show a x:440, y: 93 - and then the graph shows the plot point coordinates of 355.4911, 177.3758 - so when I have my click event, it doesn’t capture the 440, 93 point, it captures the 355, 177 coordinate.

plotlypoints