D3 Tutorial
Force-directed Layout
Edit by Jiayi Xu and Han-Wei Shen, The Ohio State University
D3 Tutorial Force-directed Layout Edit by Jiayi Xu and Han-Wei - - PowerPoint PPT Presentation
D3 Tutorial Force-directed Layout Edit by Jiayi Xu and Han-Wei Shen, The Ohio State University Force-directed Layout Automatically position nodes in an aesthetically pleasing way Uses a physics based simulator for positioning visual
Force-directed Layout
Edit by Jiayi Xu and Han-Wei Shen, The Ohio State University
budget-proposal-graphic.html
force simulation
screen without overlapping
nodes
nodes
are closer than the sum of their radiuses
specified function once (here, the ticked function on the right)
the screen based on current nodes’ positions
ends
you may specify two additional properties:
functions which adjust the position and velocity of elements to achieve a number of effects such as attraction and repulsion
budget-proposal-graphic.html
! = 50
! = 50 ! = 50 strength: 0.1
forceX affects the effect of forceY
points, and prevents nodes from overlapping
between a and b is at least radius(a) + radius(b)
strength: -10 strength: 0 strength: 10
desired link distance
{
“source”: source node id, “target”: target node id
}
nodes
corresponding to the id of nodes
to reach its desired distance distance: 100 distance: 50
Misérables
connectivity
appeared in the same chapter
1 2 3 4 5 6 ……
characters
trending stories into topics