cytoscape.js-bubblesets icon indicating copy to clipboard operation
cytoscape.js-bubblesets copied to clipboard

How to add label to bubbleset and/or to a legend?

Open dpdoughe opened this issue 2 years ago • 1 comments

Are there any examples of how to put a text label on the bubblesets? Related question, how about having a legend with the color of the bubbleset and the text label appearing? If there are examples that show this already that would be great. Thanks in advance!

dpdoughe avatar Nov 21 '22 22:11 dpdoughe

this plugin doesn't support creating a legend, you could try use https://github.com/sgratzl/cytoscape.js-layers to manually add a legend as an overlay / annotaiton

sgratzl avatar Nov 23 '22 16:11 sgratzl

I've done this by putting all the nodes that I want in the bubbleset into a compound node as well, and then setting the label on the compound node. With the right style options you can hide the compound node.

mikekucera avatar Nov 01 '23 19:11 mikekucera