mdaines / viz-js

Graphviz in your browser

Home Page:https://viz-js.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viz.js

This is a collection of packages for working with Graphviz in JavaScript. The main package, viz, is a WebAssembly build of Graphviz with a simple JavaScript wrapper.

With Viz.js, you can easily render a graph diagram as an SVG element to display it in a webpage:

import { instance } from "@viz-js/viz";

instance().then(viz => {
  document.body.appendChild(viz.renderSVGElement("digraph { a -> b }"))
});

Other packages:

  • lang-dot — CodeMirror language support for the Graphviz DOT language.
  • website — Try out Graphviz and Viz.js. Render a graph visualization in your browser.
  • examples/parcel — Example of using Viz.js with the Parcel bundler.
  • examples/script-tag — Example of using the UMD build of Viz.js.

Install

API

API Reference

About

Graphviz in your browser

https://viz-js.com/

License:MIT License


Languages

Language:JavaScript 62.0%Language:HTML 23.4%Language:TypeScript 4.6%Language:C 3.9%Language:CSS 3.6%Language:Dockerfile 1.7%Language:Makefile 0.8%