I am trying to do 2 things here.
- Display the bubble on the top when selected in the grid.(Is there a z-index property?)
- Get the same animation on selection as on mouseover.(Scale the bubble size)
I have the code here for reference. Any help would be appreciated.
Answering your questions:
z-index: as you probably have already realized, charts are drawn usingSVG. So the answer is actually hereresizing: Eachbubbleis an SVGcircleso you can resize the bubble (as you did inmouseoverandmouseoutevent handlers) but there is not way of linking the original data with thecircleelement (in a reliable way), so you cannot.EDIT: If you want to go with reordering the element (simulate z-index by placing the element at the end of the list). You might use the following code:
Running here
If you want to order the bubbles based on the color, you should use:
Test it here