dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 588 forks source link

Clickable nodes to follow hyperlinks in dagre-d3 #388

Open Bluetopia opened 4 years ago

Bluetopia commented 4 years ago

I've read https://github.com/dagrejs/dagre-d3/issues/73 which previously asked this question, but it doesn't seem that adding an href field to the node metadata is working.

The JSbin still works, but it references v0.2.9. I've tried plugging v0.2.9 into my current code, but I get dependency errors about graphlib. I suspect the library has changed significantly since 0.2.9.

Is it currently (v0.6.4) possible to make nodes clickable with hyperlinks or has this functionality been deprecated/removed?

smetroid commented 3 years ago

If I understand your question correctly, the nodes can be made clickable with hyperlinks, the label type should be html. I am using the latest libraries for a personal project and I am able to write html code within the node and the hyperlink within the node label is clickable... hope it helps answer your question.