diogobaeder

How to interact with specific bubbles in a bubbles chart?

Recommended Posts

Hi guys,

 

How can I interact with specific bubbles in a bubbles chart?

 

What I need to do is to have a way of hiding/showing specific bubbles in a bubbles chart. I already know that I can set the "alpha" to 0 for certain datapoints, and I know I can add an event listener to "datapointClick", however I don't know how to fetch a specific datapoint object and change its properties.

 

How can this be done?

 

Thanks,

Diogo

Share this post


Link to post
Share on other sites
Hello,

 

Thanks for the query.

 

Showing/hiding any specific bubble is not feasible, however you can show/hide the entire data series using legend.

 

Hope this helps,

Share this post


Link to post
Share on other sites

Hi,

 

As mentioned earlier, its not natively possible. However, we would like to share a work around.

 

To hide/show specific bubble in a bubble chart, by identifying the bubble, retrieving its "dataset" index and "data" index of that particular data plot using 'dataObj' of the 'dataPlotClick' event function.

 

Then setting its "alpha" value in the JSON variable accordingly,and then updating the JSON using "setJSONData" method. 

 
For the further reference please check this sample fiddle link 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now