In bubbles.js replacing .sort(null) by .sort( function(a, b) { return -(a.value - b.value);} ) orders the bubbles from the center to the edge.
I am wondering how to include this as an option (e.g. order = TRUE). Then I guess it will be necessary to pass a list to htmlwidgets::createWidget. But how to retrieve the two elements in the JS function (the data frame currently returned and the order TRUE/FALSE value)?
Hi,
In bubbles.js replacing
.sort(null)
by.sort( function(a, b) { return -(a.value - b.value);} )
orders the bubbles from the center to the edge. I am wondering how to include this as an option (e.g. order = TRUE). Then I guess it will be necessary to pass a list to htmlwidgets::createWidget. But how to retrieve the two elements in the JS function (the data frame currently returned and the order TRUE/FALSE value)?Thank you!