# Is it possible to show index when hovering over scatter plot data point?

**URL:** <https://community.plotly.com/t/is-it-possible-to-show-index-when-hovering-over-scatter-plot-data-point/11303>\
**Category:** plotly.js\
**Created:** [June 28, 2018, 3:19pm UTC](https://community.plotly.com/t/is-it-possible-to-show-index-when-hovering-over-scatter-plot-data-point/11303 "2018-06-28T15:19:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim.rants](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kim.rants](https://community.plotly.com/u/kim.rants)\
**Post date:** [June 28, 2018, 3:19pm UTC](https://community.plotly.com/t/is-it-possible-to-show-index-when-hovering-over-scatter-plot-data-point/11303/1 "2018-06-28T15:19:11Z")

</div>

Hi all,

In a scatter plot, when hovering over a data point, is it then possible to show other information (like ID/index) rather than just the coordinates. In my case, the coordinates in isolation are not that interessting.

Thanks!

---

<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:** [June 28, 2018, 5:24pm UTC](https://community.plotly.com/t/is-it-possible-to-show-index-when-hovering-over-scatter-plot-data-point/11303/2 "2018-06-28T17:24:49Z")

</div>

Yes, using `pointNumber`, see

> **[Event Handlers](https://plot.ly/javascript/plotlyjs-events/#event-data)**
>
> Definitions and examples of how to use Plotly.js event handlers to add additional interactive capabilities to Plotly charts.
