💾 Archived View for jb55.com › ward.asia.wiki.org › viewing-graphviz-with-javascript captured on 2022-01-08 at 14:08:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-04)

-=-=-=-=-=-=-

Viewing Graphviz with Javascript

I'd like to view a graphviz file in wiki. I can process it on the server but it seems difficult to get any rich format to display on the screen. Of course I want links so this makes image formats a non-starter. What's with svg anyway?

See About Graphviz Plugin for new solutions.

About Graphviz Plugin

Canviz is a JavaScript library for drawing Graphviz graphs to a web browser canvas. More technically, Canviz is a JavaScript xdot renderer. It works in most modern browsers. google code

google code

Viz.js ports graphviz to js with emscripten. This sounds like the wrong way to go but they do have nice examples. github

github

Canvg is a SVG parser and renderer. It takes a URL to a SVG file or the text of an SVG file, parses it in JavaScript, and renders the result on a Canvas element. The rendering speed of the examples is about as fast as native SVG. github

github

The SVG Files Loader for SystemJS and JSPM plugin allows to handle SVG files with DOM as specified by the W3C . However If you simply want to display a SVG image in your html document, the official image plugin could be a better choice for you. github

github

See Graphviz in El Dorado

Graphviz in El Dorado