Size Glyphs
Rather than rotating or translating equally-sized shapes to avoid overlaps, we can instead use different sizes of concentric shapes.
The type can be changed from circle to square or diamond.
This requires only a small change to the specification.
| |
Construct the network from a hard-coded link-table. | |
Define an ordering that orders the nodes based on their id... | |
...and use this ordering to create a table. | |
Define scale to map from edge type to color. | |
This block defines what we want to draw for each element of the table. | |
Label the rows and columns... | |
...and draw lines between each cell. | |
Define scale for the area of each shape. Defining it here, rather than at the top-level, allows it to be scaled relative to the width of the table cell. | |
This block defines what to draw for each data element inside the parent block: i.e., for each edge in this table cell. | |
We draw a circle, scaled and colored based on the link type. | |