# Plotly hovermode

**URL:** https://discourse.julialang.org/t/plotly-hovermode/60336
**Category:** Visualization
**Tags:** plots, plotlyjs
**Created:** [April 30, 2021, 6:22pm UTC](https://discourse.julialang.org/t/plotly-hovermode/60336 "2021-04-30T18:22:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cyrieln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cyrieln/32/24612_2.png) [@cyrieln](https://discourse.julialang.org/u/cyrieln)
#### Post date: [April 30, 2021, 6:22pm UTC](https://discourse.julialang.org/t/plotly-hovermode/60336/1 "2021-04-30T18:22:03Z")

</div>

Hi there!

I was wondering if it is possible to change Plots’ plotlyjs default hovermode to `closest`. I have a scatterplot with thousands of points and I’d like to show hover info on each point but only the closest one. Right now, it shows the hoverbox for all points on the same vertical which gets messy very quickly.

I know this is possible in vanilla Plotly, but I haven’t seen it in Plots.jl documentation.

---

<div class="post-metadata">

### Author: ![cyrieln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cyrieln/32/24612_2.png) [@cyrieln](https://discourse.julialang.org/u/cyrieln)
#### Post date: [April 30, 2021, 6:25pm UTC](https://discourse.julialang.org/t/plotly-hovermode/60336/2 "2021-04-30T18:25:36Z")

</div>

Nevermind, found the answer here;

> [@Display (a different) value under scatter point](https://discourse.julialang.org/t/display-a-different-value-under-scatter-point/10821/7):
>
> If you want to change the behavior programatically, you can do p=plot(); PlotlyJS.relayout!(p.o,hovermode="closest") Alternative values are "x" (the default) and "y" (which doesn’t seem to be accessible from the GUI).
