Hi again guys, this time I’m exploring a Packed Bubbles type visualization. I already have several configurations done, but I want to see if it is possible that I can customize the tooltip, with some css properties, to enrich it a bit.
Any suggestion about it? Is there any way I can achieve this?
Hi @eleana, thanks for reaching out. Yes, you can achieve this by subscribing to the mousemove event of the Packed Bubbles visualization. Take a look at the following example:
First I subscribe to the mousemove event of the Packed Bubble.
Inside the handler I define a div that will be in content that will go as innerHtml of the main div of the tooltip, this main div can be consulted in the console with this code: $(‘#tooltip’)
I also define some css properties that will be applied to the main div, this is optional.
Finally, I call the set function of the tooltip to set the content for it.
The result of this is a tooltip like the image below: