@redsift/d3-rs-venn
v0.0.3
Published
Generates venn charts using D3v4.
Downloads
295
Readme
d3-rs-venn
d3-rs-venn
generate a venn via the D3 reusable chart convention. Code adapted from https://github.com/benfred/venn.js
Example
View @redsift/d3-rs-venn on Codepen
Line chart
Multiple series
Usage
Browser
<script src="//static.redsift.io/reusable/d3-rs-venn/latest/d3-rs-venn.umd-es2015.min.js"></script>
<script>
var chart = d3_rs_venn.html();
d3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);
</script>
ES6
import { html as chart } from "@redsift/d3-rs-venn";
let eml = chart();
...
Require
var chart = require("@redsift/d3-rs-venn");
var eml = chart.html();
...