# Histogram counts in bin under mouse hover

**URL:** <https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743>\
**Category:** Visualization\
**Created:** [January 21, 2021, 8:01pm UTC](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743 "2021-01-21T20:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mocalvao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mocalvao/32/19318_2.png) [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Post date:** [January 21, 2021, 8:01pm UTC](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743/1 "2021-01-21T20:01:01Z")

</div>

I would like to make a histogram, under IJulia jupyter notebook, such that, when I hover the mouse over the bars, I get the number of ocurrences within the corresponding bins, as a tooltip. My MWE is:

```julia
using PlotlyJS
plotly()
df = DataFrame(a=[1, 2, 2, 3, 2, 0, 2, 4, 4])
histogram(df.a)

```

which does show the plot, but without any tooltips at all. Another possibility, not so satisfactory, would be to have static annotations above the bars, with the corresponding counts…
