Closed weituotian closed 1 year ago
Your example is not complete, but this renders fine for me with a local build from v5.0.2 (21a1f57612ec94fde0a37bdd4b23af0cfd257c96):
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="../node_modules/d3/dist/d3.js"></script>
<script src="../node_modules/@hpcc-js/wasm/dist/graphviz.umd.js"></script>
<script src="../build/d3-graphviz.js"></script>
<div id="graph" style="text-align: center;"></div>
<script>
d3.select("#graph").graphviz()
.logEvents(true)
.renderDot(`digraph {
Block_0 -> Block_1
Block_0 -> Block_1125
...
giving (clipped from the top):
What errors are you getting? My guess is that you are using the wrong combination of versions of d3-graphviz, d3 and @hpcc/js/wasm, but I can't tell from your example.
好~( ̄▽ ̄)~*
@magjac i upload the code to temp url: https://www.weituotian.top//examples/d3-graphviz/d3-graphviz@4.4.0/examples/basic_my2.html
sometime it show nothing
That example renders fine for me every time with Firefox 107.0.1 on Ubuntu 22.04 and an AMD Ryzen 7 5800X 8-Core Processor, but it takes around 13 seconds. Perhaps you need to increase the timeout in your browser? I can't tell because your screenshot is only partial and doesn't show where in the code the exception occurs.
thanks, firefox works very well.
It may hard for you to locate the problem, I am using chrome108, and it must open the devtool otherwise it will raise a error with nothing saying. may be there are just something wrong about chrome.
i had found a article introduce how to increase the javascript timeout in chrome, but it not some help https://qa.1r1g.com/sf/ask/443579111/
the basic example work well, but i change to this, it does not generate svg, what is wrong about the graph?