Export Code
Connected
index.js
import
{
select,
selectAll,
scaleOrdinal,
json,
tsv
}
from 'd3';


var margin = {top: 0, right: 0, bottom: 0, left: 0},
width = window.innerWidth - margin.left - margin.right,
height = window.innerHeight - margin.top - margin.bottom;

// append the svg object to chart
var svg = d3.select("#graph")
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
var g = svg.append("g")

var force = d3.layout.force()
.gravity(0.00)
.distance(75)
.charge(-2000)
.chargeDistance(75)
.size([width,height]);

var color = function(group) {
if (group==1) {return "#aaa"}
else if (group==2) {return "#fbc280
Alt + Click on a hex color
Open a color picker to modify the color
"}
else {return "#405275
Alt + Click on a hex color
Open a color picker to modify the color
"}};

function searchPair(itemSearch,arraySearch, propSearch){

Network Test

xsg13

Last edited Nov 18, 2021
Created on Nov 12, 2021
MIT Licensed