Visual channels
Open Viz to connect a source to a channel, or Style to set appearance that does not come from graph data. A channel accepts only compatible result types and targets.
Node channels
Section titled “Node channels”| Channel | Accepts | Use |
|---|---|---|
| Size | Numeric | Compare magnitude or importance. |
| Colour | Numeric, category, set | Show a scale, group, or selected set. |
| Shape | Numeric, category, set | Separate categories or roles. |
| Image | Category | Select an image from a categorical field. |
| Glyph | Category, numeric | Draw the node as a character or icon in its colour. |
| Node label | Numeric, category | Show an id, name, or attribute. |
| Border colour | Category, set | Colour the node outline by category, or highlight set membership. |
| Pie slices | Numeric, category | Show a small composition on a node. |
Size values
Section titled “Size values”Size draws a numeric source between a 6 and a 22 pixel radius at the default node size, before the canvas fits sizes to the graph and the screen. A field is drawn with its radius in proportion to the value: give the field the square root of a quantity to make the area track the quantity instead. Degree, the default for new graphs, already sizes the area, so a node with twice the links covers about twice the ink. On a canvas whose short side is under 600 pixels every node is drawn smaller, down to 70% at 400 pixels, so a phone is no more crowded than a desktop.
Glyph values
Section titled “Glyph values”A glyph replaces the node’s disk and is drawn in the node’s colour, so the Colour channel still sets it. A value can be:
- up to three characters, such as
EorQU. A number draws as its digits, so7and42draw but1234and3.14do not. Longer text draws no glyph, since it belongs in a label. An emoji counts as one character but draws as its silhouette in the node’s colour, not in its own colours; - inline SVG markup starting
<svg, up to 20,000 characters. Only its shape is used: every visible pixel takes the node’s colour; - an image URL, as for Image, used the same way.
A node whose value draws no glyph keeps its disk. A glyph is never drawn smaller than 12 pixels across, so it stays readable; an image’s minimum is 18 pixels. On a canvas whose short side is under 600 pixels, such as a phone, both minimums shrink in proportion to that side, to no less than 45%.
Image values and crop regions
Section titled “Image values and crop regions”An image value is an image URL (https:, a site-relative path or a data:
image). It may end in a W3C Media Fragments spatial fragment to show only part
of the picture:
| Fragment | Meaning |
|---|---|
#xywh=10,20,300,200 |
Region in pixels: x, y, width, height. |
#xywh=pixel:10,20,300,200 |
The same, written explicitly. |
#xywh=percent:0,0,50,100 |
Region as percentages of the image, each 0 to 100. |
Several nodes can reference one image with different regions: the file is downloaded once, and each node shows its own part. A region that is partly outside the image is clipped to it. An invalid or empty region (non-numeric, zero or negative size, wholly outside the image, a percentage over 100) is ignored and the whole image is shown. Node images are placed by the Image fit control in Style: whole keeps the region inside the node with a margin, fill crops it to a square that fills the node. Both apply within the region.
Shape values
Section titled “Shape values”A categorical Shape source gives each category the next shape in the cycle:
circle, square, triangle, diamond. A category whose value is itself one of
those names (in any letter case) gets that shape, so a column can state the
shape it wants: a field holding square on every row draws every node as a
square. Shapes claimed by name are left out of the cycle for the other
categories.
Missing numeric values
Section titled “Missing numeric values”A numeric field stays numeric when some rows have no value: a blank CSV cell,
null, or a node or link without the attribute. A numeric channel draws a
row without a finite number as missing; it is not the smallest value:
- Size uses the default node size.
- Colour and Edge color use the neutral grey of an unbound mark.
- Edge width uses the default link width.
- Shape uses the circle.
- Heatmap adds no heat for it.
The colour legend leaves these rows out of the ramp’s range and lists them as No value. A range filter on the field hides them, because they fall outside every range; this is how a node without the attribute has always behaved in a range filter.
Edge channels
Section titled “Edge channels”| Channel | Accepts | Use |
|---|---|---|
| Edge color | Numeric, category, set | Show a relationship value or type. |
| Edge width | Numeric | Show weight or another magnitude. |
| Link label | Numeric, category | Label relationships. |
| Edge style | Category | Distinguish relationship styles. |
Directed edges can also use tapered or line treatments and source-to-target colour gradients from Style.
Layers
Section titled “Layers”Layers add structure around the marks:
- Convex hull and Contour show group or set boundaries.
- Heatmap shows a numeric density or intensity field.
- The minimap can switch between the full drawing and a group-level view. Nodes bound to an image show it in the minimap once they are large enough to read; smaller ones take the image’s average colour.
Bound Convex hull and Heatmap wells include an Intensity slider.
Both start at 50%; 0% suppresses the layer and 100% makes it more prominent.
The slider changes appearance without changing the bound source or its
algorithm parameters. One gesture creates one undo step, and the value is
saved in shared views and .gph projects.
Heatmaps use a warm sequential palette adapted to the canvas theme. Hotspots show accumulated contributions from nearby nodes, with each node’s value adding to the nearby area. Hidden nodes and invalid numeric values do not contribute.
Numeric bindings use scales; categorical bindings use bounded palettes. Saved edge sets can drive Edge color to highlight their exact membership.
See See the structure of a network, the workspace tour, and Sources and algorithms.