Reputation: 279
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.
Upvotes: 1
Views: 1454
Reputation: 12250
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.
Upvotes: 2