https://jsfiddle.net/t52f1rn7/
I am trying to make a line graph with circles at the end of lines.I want to select two points and draw line by click.Then I found lasso pl
Looks like the lasso.min.js doesn't work. Must be a bug. I've just copied and pasted the working version of lasso in the script tag. Check out the fiddle.
var w = 500;
var h = 500;
var padding = 40;
var tt = 4000;
var svg = d3.select("body")
.append("svg")
.attr("width",w)
.attr("height",h);
var data1 = [];
var i = 50;
var p = Math.random()*1000;
var q = Math.random()*1000;
for(var j=0;j
circle {
fill-opacity: 0.5;
}
.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;
}
.not_possible {
fill: rgb(200, 200, 200);
}
.possible {
fill: #EC888C;
}
.selected {
fill: steelblue;
}