React NVL - View Relationship captions

How to Display Captions on Relationships in React NVL

How can I get the caption to appear when using React NVL? The to and from properties are both correct and match the id of nodes in the graph.

This is my Relationship object example:

{
  id: "rel1",
  from: "nucleus",
  to: "alice",
  type: "FRIENDS",
  width: 2,
  captions: [{ value: "Friends" }],
}

Hi @paul-glazzard,

the relationship looks valid.

There are usually two reasons why captions aren't showing:

  1. The current rendering method set by the renderer option is 'webgl' and not 'canvas' ('canvas' is the default in the latest version of NVL, 'webgl' is a basic renderer that won't render text)
  2. The caption is hidden because the zoom level is too far out. At which zoom level relationship captions are displayed can be set by the relationshipThreshold option (should be 0 by default in the latest version of NVL).

Hope this solves this issue for you. Please let me know if you have any more questions or comments!