# Click event on anywhere in a graph

**URL:** <https://community.plotly.com/t/click-event-on-anywhere-in-a-graph/92933>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [June 30, 2025, 1:42pm UTC](https://community.plotly.com/t/click-event-on-anywhere-in-a-graph/92933 "2025-06-30T13:42:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [July 1, 2025, 8:21am UTC](https://community.plotly.com/t/click-event-on-anywhere-in-a-graph/92933/2 "2025-07-01T08:21:52Z")

</div>

Hi @Galaktik we had this topic quite a few times, [here](https://community.plotly.com/t/how-to-add-new-data-point-to-graph-canvas-by-single-mouse-click/73039/10) for example

What is the use case for this?

I’m not sure there is a built-in way to do this. You would have to track the cursor within the div and then calculate the coordinates in your graph. If adding possible zoom state into the mix this could be really tricky.

---

_[View the full topic](https://community.plotly.com/t/click-event-on-anywhere-in-a-graph/92933)._
