Closed Capstan closed 6 years ago
Sorry, the README was a bit unclear regarding this. I've updated it now. See https://github.com/magjac/d3-graphviz#defining-the-vizjs-script-tag.
If you're not using a web worker, the script type must be application/javascript
:
<script src="https://unpkg.com/viz.js@1.8.1/viz.js" type="application/javascript"></script>
Thanks for submitting this issue. If you are using this library, don't forget to Watch it to stay tuned for updates or even Star it if you like it.
You can also use Stack Overflow tags d3.js & graphviz or the d3-graphviz Slack to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly.
d3.select("#graph").graphviz(false);
yields the following error:This is with the following imports:
It appears
Viz
is undefined.