forked from Robert Harris' (@trebor) gist to test d3-lasso
This is an example of the d3Kit factory, which help you create a reusable chart.
Try it by
forked from timelyportfolio's block: Reusable Bubble Chart
xxxxxxxxxx
<html>
<head>
<title>Reusable Bubble Chart</title>
<link rel="stylesheet" href="style.css">
<style>
.lasso path {
stroke: rgb(80,80,80);
stroke-width:2px;
}
.lasso .drawn {
fill-opacity:.05 ;
}
.lasso .loop_close {
fill:none;
stroke-dasharray: 4,4;
}
.lasso .origin {
fill:#3399FF;
fill-opacity:.5;
}
</style>
</head>
<body>
<div id="chart"></div>
<script src="https://d3js.org/d3.v4.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/twitter/d3kit/v2.0.0/dist/d3kit.js" type="text/javascript"></script>
<script src="d3-lasso.min.js"></script>
<script src="main.js"></script>
</body>
</html>
Updated missing url https://rawgit.com/twitter/d3kit/v2.0.0/dist/d3kit.js to https://cdn.jsdelivr.net/gh/twitter/d3kit/v2.0.0/dist/d3kit.js
https://d3js.org/d3.v4.min.js
https://rawgit.com/twitter/d3kit/v2.0.0/dist/d3kit.js