Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

syoya/viz-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

viz-runner

Run mdaines/viz.js in your html and render graph.

Usage

1. Add script into your html.

<script src="https://rawgit.com/syoya/viz-runner/master/viz-runner.js"></script>

2. Write DOT language into <script type="text/viz"></script>.

<script type="text/viz">
digraph { a -> b; }
</script>

Options

Format

Set data-format attribute, svg in default.

<script type="text/viz" data-format="dot">
digraph { a -> b; }
</script>

Engine

Set data-engine attribute, dot in default.

<script type="text/viz" data-engine="neato">
digraph { a -> b; }
</script>

More information about options, see mdaines/viz.js.

Releases

No releases published

Packages

No packages published