d3.js-lasso

D3.js Scatterplot with Lasso - record selections

徘徊边缘 提交于 2019-12-12 04:12:21
问题 CONTEXT I'm using d3.js & Lasso in order to allow users to select dots on a scatterplot. I want them to be able to select multiple clusters on the same scatterplot, one after the other. I've found an example of how to do this right here: http://bl.ocks.org/skokenes/511c5b658c405ad68941 PROBLEM I want to record each selection of dots so that I end up with an array, where each dot has a list of clusters it belongs to. For example, Dot1 belongs to clusters [1,3,4]. QUESTION What would be the

Why d3.js-lasso is not reading svg variables

我只是一个虾纸丫 提交于 2019-12-04 06:04:59
问题 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 plugin and I am trying to use it for the same purpose:selecting two points and connecting them.Is it possible? Currently my code is Showing cannot read property "forEach" of undefined? why its not reading circles and svg variables in lasso? body { background-color : black; } svg { background-color: white; } /* Styling for new

Lasso and D3.js

…衆ロ難τιáo~ 提交于 2019-12-02 19:17:17
问题 I thought i had a similar issues to this SO user here, but after swapping out the minified lasso library for the actual lasso code, I'm still not getting a working output. My code is more or less the same as the example code on lasso's git hub (I've made the required changes for my set up), so theoretically i shouldn't be having any issues, right? I just want to get the lasso itself working before appending my own styles and returning any data. <script> var data = [["Arsenal",-0