How to create a legend in Cytoscape Web?

799 views
Skip to first unread message

Andrew Taylor

unread,
Jun 17, 2013, 11:49:45 AM6/17/13
to cytoscapew...@googlegroups.com
Hi, I am using the JavaScript API for Cytoscape Web and I find it very useful. But there is one small thing that is very important for every visualization, which does not seemed to be touched on in the FAQ or tutorial: that is, how to create a legend for the graph.

Does anyone know how to do this? I would specifically like a legend that has every node shape/color, with a place to leave a description to the right. It would be even better if I could get every edge that I am using as well (solid, dashed, directed, undirected). I simply want: a representation of every symbol appearing in the graph, with a place for a description.

Is there a provision for this in Cytoscape? One would think so, since it is an essential feature of every graph. If not, I'll have to start taking screenshots...

Christian Lopes

unread,
Jun 24, 2013, 12:10:26 PM6/24/13
to cytoscapew...@googlegroups.com
Hi Andrew,

Cytoscape Web does not provide any built-in legend, because client apps should create them in HTML instead, which may not be as convenient, but provides more flexibility.

It's however a good idea for Cytoscape.js to have built-in legends, or maybe a Legends plugin. I'll add a feature request for that.

Thanks,
Christian


--
You received this message because you are subscribed to the Google Groups "cytoscapeweb-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscapeweb-dis...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Max Franz

unread,
Jun 24, 2013, 4:37:02 PM6/24/13
to cytoscapew...@googlegroups.com
Since you're specifying the style to Cytoscape Web anyway, why not just create the legend in HTML? -Max
--
Reply all
Reply to author
Forward
0 new messages