import {
csv,
select,
forceSimulation,
forceManyBody,
forceLink,
forceCenter,
drag,
forceCollide,
} from 'd3';
const width = window.innerWidth;
const height = window.innerHeight;
const centerX = width / 2;
const centerY = height / 2;
const svg = select('body')
.append('svg')
.attr('width', width)
.attr('height', height);
const parseRowNode = (d) => {
//add filter here?
return d;
};
const parseRowLinks = (d) => {
//add filter here?
return d;
};
const main = async () => {
const [nodes, links] = await Promise.all([
csv('applications.csv', parseRowNode),
csv('interf.csv', parseRowLinks),
]);