Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an interactive tree chart with d3?

Is there any sample of how one could design an interactive tree chart like in the pearltrees.com web site (see here for example) with D3 ?

thanks for any help !

like image 513
Fopa Léon Constantin Avatar asked Nov 28 '12 06:11

Fopa Léon Constantin


1 Answers

You can create a force-directed graph to do something like this:

http://mbostock.github.com/d3/talk/20110921/#20

You would have a bit of work to do:

  1. Add images dynamically to the nodes (this example adds a favicon to each node)
  2. Allow users to expand/collapse parts of the tree. (this example does this, but uses a tree layout).
  3. Add HTML links to the end nodes (this example shows how nodes can link out to other pages).
like image 141
mccannf Avatar answered Oct 16 '22 13:10

mccannf