Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Visualizing a dependency graph in a web page

by Fletch (Bishop)
on Apr 01, 2022 at 14:10 UTC ( [id://11142602]=note: print w/replies, xml ) Need Help??


in reply to Visualizing a dependency graph in a web page

I you just want a static image I'd use GraphViz2 and let graphviz do the heavy lifting. If you want something you can interact with then d3 or vega would be the things to peek at (the latter may have something close to off the shelf, the former you might need to do more yourself but may wind up being more flexible).

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: Visualizing a dependency graph in a web page

Replies are listed 'Best First'.
Re^2: Visualizing a dependency graph in a web page
by etj (Deacon) on Apr 09, 2022 at 20:24 UTC
Re^2: Visualizing a dependency graph in a web page
by LanX (Saint) on Apr 01, 2022 at 14:23 UTC
    Thanks, I'll take a look into it.

    > I you just want a static image I'd use GraphViz2 and let graphviz do the heavy lifting.

    no, but I need a start that can be manually adjusted.

    And AFAIK it's possible to export coordinates with graphviz.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Definitely could ask dot to spit out things as an SVG or JSON which you then could instrument / manipulate with d3 or vega.

      Edit: also WRT node shapes mentioned elsewhere: you should be able to specify shape => "whatever" in the add_node call and pick a value from the supported shape tags.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found