Skip to content

Instantly share code, notes, and snippets.

@dima74
Created April 10, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dima74/b64f348cf233d1d17706efa701348c10 to your computer and use it in GitHub Desktop.
Save dima74/b64f348cf233d1d17706efa701348c10 to your computer and use it in GitHub Desktop.
fresh block
license: mit
<html>
<body>
<div><svg width=800 height=800><svg id="venn"></svg></svg></div>
</body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://rawgit.com/benfred/venn.js/master/venn.js"></script>
<script>
// define sets and set set intersections
var sets = [ {sets: ['A'], size: 12},
{sets: ['B'], size: 12},
{sets: ['A','B'], size: 2}];
var chart = venn.VennDiagram();
d3.select("#venn").datum(sets).call(chart);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment