title: How to obtain Click Event Coordinate Data on Plotly Dash Graph in Python?
body: <p>I've tried navigating around the web for a solution to this problem, but have had no luck. The closest solution I found was <a href="https://stackoverflow.com/questions/56193127/plotly-click-events-from-anywhere-on-the-plot">this</a>, however, it's in R and I've been trying to look for a solution in Python for this these past twos days.</p>
  <p>I've already messed with <a href="https://dash.plotly.com/interactive-graphing" rel="nofollow noreferrer">Plotly Dash's documentation here on Interactive Graphing</a> and the clickData and hoverData seems to only output coordinate data on actual data points on the graph that are clicked/hovered over on. My goal is obtain a pair of x,y coordinate through two mouse clicks on the graph, so that I am able to draw a line on the graph using that pair of coordinates. However, it seems Plotly's Dash Interactive Graphing is limited in its ability to provide mouse coordinate data that are not on actual data points. Is there any work around to this or an obvious solution / part of the documentation that I missed?</p>