Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

viz.js

Package Overview
Dependencies
0
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    viz.js

A hack to put Graphviz on the web.


Version published
Weekly downloads
52K
decreased by-7.95%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Viz.js

Build Status

This project builds Graphviz with Emscripten and provides a simple wrapper for using it in the browser.

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

Keywords

FAQs

Last updated on 04 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc