I am learning cytoscape.js. I want to create graph with nodes and edges. Graph will be created using run-time data. I want to add labels on edges based on data values. Each label will have different value. Can anyone help me with some detailed example for this.
Asked
Active
Viewed 1,409 times
1
-
http://stackoverflow.com/questions/15172427/add-an-edge-label-with-cytoscape-js# I think that's what you're looking for – user2976716 Mar 20 '14 at 13:44
1 Answers
2
For some data field foo
, use content: data(foo)
in your style to map foo
to the label of the elements matched by your selector.

maxkfranz
- 11,896
- 1
- 27
- 36