Last active
September 21, 2024 15:56
-
-
Save magjac/a23d1f1405c2334f288a9cca4c0ef05b to your computer and use it in GitHub Desktop.
d3-graphviz Basic Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<script src="//d3js.org/d3.v7.min.js"></script> | |
<script src="https://unpkg.com/@hpcc-js/[email protected]/dist/graphviz.umd.js"></script> | |
<script src="https://unpkg.com/[email protected]/build/d3-graphviz.js"></script> | |
<div id="graph" style="text-align: center;"></div> | |
<script> | |
d3.select("#graph").graphviz() | |
.renderDot('digraph {a -> b}'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The d3 src doesn't work for me, I replaced with