abhash
abhash

Reputation: 253

Dynamic Graph Generation using dagre-d3.js

I want to generate a graph which takes input from json model. I am using dagre-d3.js. I am able to generate nodes and also able to connect nodes statically. The method graph.addEdge(null,"A","B") connects two nodes. But i want to create edges dynamically. Is there any way to generate graph in such a way?

Upvotes: 1

Views: 1155

Answers (1)

byMike
byMike

Reputation: 319

I suggest looking at the interactive demo. More code examples can also be found here.

Upvotes: 1

Related Questions