Position Glyphs
Rather than rotating the bars, we can instead translate them horizontally based on the link type.
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 x-position of each bar. 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 bar, sized relative to the table cell, with a color and x-position determined by the link type. |
|