Skip to main content
100%

Gist c8fa96678eda5a2e92a93b8777bf1e1a

✓ Published0🌍 Public
JJuannovo
Last edited Jul 27, 2018
Created on Jul 27, 2018

This example uses a custom JavaScript implementation with the D3.js library to render a small collection of user-supplied x,y coordinates as a scatterplot. The code computes an attraction-repulsion force simulation via a bespoke `d3.forceSimulation`-like routine, drawing nodes and connecting edges on an SVG canvas. The five data points (100,100; 130,120; 80,180; 180,80; 180,40) are displayed without axes or labels, clearly showing their relative spatial arrangement and the network structure formed by the force-directed layout. The rendering relies on SVG `<circle>` and `<line>` elements, with interaction limited to the static initial placement.

AI-generated description

Similar vizzes