# Cutom scatter tooltip with Makie's DataInspector

**URL:** <https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [January 13, 2022, 12:54pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548 "2022-01-13T12:54:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakob](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Post date:** [January 13, 2022, 12:54pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548/1 "2022-01-13T12:54:56Z")

</div>

Hi all,

Does anyone have an example on how to implement a simple custom tooltip for a scatterplot in Makie? After reading the DataInspector [documentation](https://makie.juliaplots.org/v0.15.1/documentation/inspector/) I was unsure if I need to implement my own plot type or whether I can customize the tooltip content with an argument somewhere.

Thanks!

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [January 13, 2022, 2:30pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548/2 "2022-01-13T14:30:44Z")

</div>

If you don’t implement your own plot type you probably need to replace the `show_data` method for scatter.  
[https://github.com/JuliaPlots/Makie.jl/blob/78d71c5609684ebbeaea7e073740582798d59330/src/interaction/inspector.jl#L540-L555](https://github.com/JuliaPlots/Makie.jl/blob/78d71c5609684ebbeaea7e073740582798d59330/src/interaction/inspector.jl#L540-L555)

What do you want the tooltip to show?

---

<div class="post-metadata">

**Author:** ![Jakob](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Post date:** [January 13, 2022, 2:48pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548/3 "2022-01-13T14:48:03Z")

</div>

Thanks a lot, I’ll give that a try.  
My final use case involves showing different kinds of metadata on hover for the vertices in a patent citation network. But I thought I’d start with the simpler scatter case to do something like what VegaLite or Plotly allow. Maybe the best way will indeed be to implement a custom plot type in the end but the recipe system always seemed a bit daunting.
