GithubHelp home page GithubHelp logo

Comments (5)

magjac avatar magjac commented on June 9, 2024

Your example is not complete, but this renders fine for me with a local build from v5.0.2 (21a1f57):

<!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):

image

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.

from d3-graphviz.

weituotian avatar weituotian commented on June 9, 2024

from d3-graphviz.

weituotian avatar weituotian commented on June 9, 2024

@magjac i upload the code to temp url: https://www.weituotian.top//examples/d3-graphviz/[email protected]/examples/basic_my2.html

sometime it show nothing
image

from d3-graphviz.

magjac avatar magjac commented on June 9, 2024

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.

from d3-graphviz.

weituotian avatar weituotian commented on June 9, 2024

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.

image

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/

from d3-graphviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.