Skip to main content
100%

Relation Graph with d3-force

✓ Published1🌍 Public
JJoris Schelfaut
Last edited Oct 12, 2020
Created on Oct 9, 2020

This example visualizes a small entity-relationship diagram (ERD) of a database schema, showing two tables (FILE and VARIABLE) with their columns as labeled nodes and the foreign-key relationship between them. Drawn with SVG, the graph uses the `d3-force` library’s `forceSimulation`, `forceLink`, and `forceManyBody` to apply a physics-based layout, while the `drag` API enables nodes to be repositioned interactively. Labels are added directly to each node, and the view supports pan and zoom via `d3.zoom`.

AI-generated description

Edit of https://vizhub.com/lintonylin/ae9483d1a13142e5808676429ff43da6 to add labels. Example based on an ERD.

MIT Licensed

Similar vizzes