magjac / d3-graphviz

Graphviz DOT rendering and animated transitions using D3
BSD 3-Clause "New" or "Revised" License
1.67k stars 103 forks source link

Upgrade examples to library version 5.x #291

Open michael-emmi opened 10 months ago

michael-emmi commented 10 months ago

The current usage examples use old versions of d3-graphviz. For example, e.g., d3-graphviz Basic example uses 3.0.5. There’s been a breaking change since then, from 4.5.x to 5.x, and I cannot seem to find a complete working example with 5.x in browser. If I simply upgrade the versions, and try to follow this guidance, I end up with “graphviz is not defined” errors.

magjac commented 9 months ago

Sorry for the delay. I will look into updating the on-line examples.

In the meantime, you have plenty of examples using version 5 at https://github.com/magjac/d3-graphviz/tree/master/examples.

magjac commented 8 months ago

It turns out that http://bl.ocks.org/ that the examples link to is no longer operational, but just redirects to https://gist.github.com/. I will have to port the examples some other JS playground.