Graphics Reference
In-Depth Information
.toFront(
'labeled'
);
}
});
// finally, draw everything!
graph.all().redraw();
}
As shown in
Figure 12-5
, hovering over a node should now highlight flow
through that node.
Figure 12-5:
Hovering over a facility in the supply chain highlights flow
through that node.
Community Layouts with Flow
In certain cases, it may be desirable to lay out nodes in a more conventional
fashion. If progression and clarity of flow is less important than seeing
clusters of nodes with a general sense of volume around them, especially
if the number of nodes is low, you can apply organic layouts.
Figure 12-6
shows how the same supply chain example looks with an organic layout.