Skip to main content
100%

Interactive tool for creating directed graphs using d3.js.

✓ Published0🌍 Public
FFrissAnalytics
Last edited Oct 5, 2018
Created on Oct 5, 2018

This interactive tool lets users build and edit directed graphs entirely in the browser. Nodes are created with a shift-click, connected by dragging between them, and can be deleted or retitled, while the whole graph supports pan and zoom. The visualization uses d3.v3’s `d3.behavior.zoom` and `d3.behavior.drag` to manipulate SVG circles and paths, and includes file upload and download via the FileSaver API. The code uses `d3.select` for event handling and manipulates the DOM directly, with a JSON format for saving graph data.

AI-generated description

directed-graph-creator

Interactive tool for creating directed graphs, created using d3.js.

Demo: http://bl.ocks.org/cjrd/6863459

Operation:

  • drag/scroll to translate/zoom the graph
  • shift-click on graph to create a node
  • shift-click on a node and then drag to another node to connect them with a directed edge
  • shift-click on a node to change its title
  • click on node or edge and press backspace/delete to delete

Run:

Github repo is at https://github.com/metacademy/directed-graph-creator

License: MIT/X

forked from <a href='http://bl.ocks.org/cjrd/'>cjrd</a>'s block: <a href='http://bl.ocks.org/cjrd/6863459'>Interactive tool for creating directed graphs using d3.js.</a>

mit Licensed

Similar vizzes