Can I customise hover text to display a histogram?

I want to be able to display a histogram for each point on hovering over a heatmap. Is there any way to do this, or anything similar?