💾 Archived View for jb55.com › ward.asia.wiki.org › viewing-graphviz-with-javascript captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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.
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
Viz.js ports graphviz to js with emscripten. This sounds like the wrong way to go but they do have nice examples. 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
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
See Graphviz in El Dorado