Package Exports
- viz.js
- viz.js/viz
- viz.js/viz-lite
- viz.js/viz.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (viz.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Viz.js
This project builds Graphviz with Emscripten and provides a simple wrapper for using it in the browser.
Become a Patron
Support Viz.js development for as little as $1 a month. ❤️
Getting Viz.js
Install with Bower:
bower install viz.js
Or with npm:
npm install viz.js
Or get it from the releases page.
"Lite" Version
A smaller version of Viz.js is available on the releases page and the Bower package. viz-lite.js
omits Expat and the NEATO layout plugin.
Usage
Rendering a graph as SVG:
var svg = Viz("digraph { a -> b; }");
The input to Viz()
is a graph in the DOT language. The output svg
is an SVG XML string.
For more information, see the API documentation.
Building Viz.js
To build from source, you will need to install the Emscripten SDK.
To download the sources and build everything:
make