D3 in Action Chapter 6 - Example 1
This example uses D3’s adjacency matrix layout to display relationships in alumni data. Unlike arc diagrams or force-directed layouts, nodes are shown along both axes with links represented as filled grid cells where connected nodes intersect. The matrix includes helper functions that render x and y axes to label nodes. The data is drawn from alumni_data.json, which contains information about graduate fellows, their departments, and communities. The visualization is rendered using SVG and is based on a block by emeeks, with a current version available in the d3-plugins repository.
AI-generated descriptionA simple D3 layout that creates an adjacency matrix. In an adjacency matrix, unlike an arc diagram or a force-directed layout, the links are not lines and the nodes are not circles (or other icons). Instead, all nodes are shown across the x and y axes, and a link is indicated by a filled grid cell where the connected nodes meet.
The layout also includes helper functions to draw the x and y axes to label the nodes.
The most current version of the layout is here.
forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block: <a href='http://bl.ocks.org/emeeks/15c005cba60aad26e11a'>Adjacency Matrix Layout</a>