Run mdaines/viz.js in your html and render graph.
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>
Set data-format
attribute, svg
in default.
<script type="text/viz" data-format="dot">
digraph { a -> b; }
</script>
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.