Interface: Graph3dTraceLink
The links.
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
arrow? | Graph3dTraceLinkArrow | undefined | Arrowheads, as cones. Their tips stop at the node's surface, whatever its size. |
color? | PerPointColor | undefined | Link color, or one per link. Default: a translucent gray that reads on the plot background, light or dark. |
curve? | PerPointNumber | undefined | How far a link bows out, as a fraction of its length: 0 is straight. A link bows sideways: for someone who looks down the z axis, positive is to the left of its direction and negative to the right; a link that runs along z bows along y. One value, or one per link. Default: straight, except that the links between the same two nodes are fanned out so that each can be seen, two opposite links bowing apart. Range: -2 – 2 |
customdata? | DataColumn | undefined | Extra data per link for %{customdata} and events. |
dash? | string | "solid" | Dash style of the links drawn as lines: 'solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot', or a dash list such as '5px,10px,2px'. |
hoverinfo? | "all" | "none" | "skip" | "all" | Hover of the links: labels ('all'), events without labels ('none') or no hover and no events ('skip'). Default: the trace hoverinfo. |
hovertemplate? | string | undefined | Template of the link hover labels: %{label}, %{value}, %{source.label}, %{target.label}, %{source.index}, %{target.index}, %{customdata}. <extra>…</extra> replaces the trace name. |
label? | DataColumn | undefined | Link labels, shown in hover labels. |
opacity? | number | 1 | Link opacity (multiplied by the trace opacity and the color alpha). Range: 0 – 1 |
render? | "auto" | "line" | "tube" | "auto" | 'line': screen-space lines, link.width CSS px wide at every depth. 'tube': lit tubes link.width across, which are part of the scene like the spheres. 'auto': tubes when the widest link is 3 px or wider and the graph has at most 5,000 links, else lines. |
source? | DataColumn | undefined | Source node index of every link. A link whose source or target is not a node is dropped. |
target? | DataColumn | undefined | Target node index of every link. A link from a node to itself is drawn as a ring beside the node, on the side away from its neighbours. |
value? | DataColumn | undefined | A positive number per link: its weight for the layouts (a stronger pull, a shorter link) and %{value} in hover labels. It sets the width only with link.widthby: 'value'. Missing or non-positive values count as 1. |
width? | PerPointNumber | 1 | Link width in CSS px, or one per link: at every depth for lines; for tubes their diameter at the middle of the scene in its first view (see link.render). Ignored with link.widthby. Minimum: 0 |
widthby? | "none" | "value" | "none" | 'value': widths from link.value, proportional to it, between the two widths of link.widthrange (the largest value gets the second). |
widthrange? | readonly number[] | [1,8] | With link.widthby: 'value': the widths in CSS px of a link of value 0 and of the link with the largest value. |