hp36
hp36

Reputation: 279

label on edges with cytoscape.js

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

Answers (1)

maxkfranz
maxkfranz

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

Related Questions