# Documentation on Plotly hover and click events

**URL:** <https://community.plotly.com/t/documentation-on-plotly-hover-and-click-events/833>\
**Category:** plotly.js\
**Created:** [April 10, 2016, 9:21pm UTC](https://community.plotly.com/t/documentation-on-plotly-hover-and-click-events/833 "2016-04-10T21:21:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [April 22, 2016, 5:10pm UTC](https://community.plotly.com/t/documentation-on-plotly-hover-and-click-events/833/2 "2016-04-22T17:10:27Z")

</div>

You’re right. We should do a better job documenting event data.

For what it’s worth, cartesian `plotly_hover`, `plotly_click` and `plotly_unhover` event data looks like:

```auto
{
  points: [{
    curveNumber: 2, // index in data of the trace associated with the selected point 
    pointNumber: 2, // index of the selected point
    x: 5, // x value
    y: 600, // y value
    data: {/* */}, // ref to the trace as sent to Plotly.plot associated with the selected point
    fullData: {/* */}, // ref to the trace including all the defaults
   xaxis: {/* */}, // ref to x-axis object (i.e layout.xaxis) associated with the selected point
   yaxis: {/* */} // ref to y-axis object " "
  }, {
    /* similarly for other selected points */
  }]
}

```

---

_[View the full topic](https://community.plotly.com/t/documentation-on-plotly-hover-and-click-events/833)._
