This post explains how to add tooltip to your
bubble chart. This add a lot of insight
to the plot: to go beyond the trend, reader are usually curious to
know who's hidden behind each data point. Visit the
bubble plot section for more examples.
This example works with d3.js v4
and v6
tooltip
element that will contain
the text. Hide it with css (use opacity
or
display
)
showTooltip
), update its position
(moveTooltip
) and hide it when mouse leave
(hideTooltip
)
css
, changing the stroke
color.