Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Last active December 19, 2015 14:59
Show Gist options
  • Save AbhishekGhosh/5973350 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/5973350 to your computer and use it in GitHub Desktop.
Text to Diagram
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="shttps://raw.github.com/bramp/js-sequence-diagrams/master/sequence-diagram-min.js"></script>
and now you have two options. You can manually parse the text:
<div id="diagram"></div>
<script>
var diagram = Diagram.parse("A->B: Message");
diagram.drawSVG("diagram", {theme: 'hand'});
</script>
<!---Please Use Your Own Source for the URL--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment