arangodb / arangodb

🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
https://www.arangodb.com
Other
13.55k stars 838 forks source link

Be able to pick multiple labels for the nodes in the graph visualizer #14456

Open EriKWDev opened 3 years ago

EriKWDev commented 3 years ago

My Environment

Affected feature: Graph Visualizer in Interface

Steps to reproduce

  1. Create a graph and open it in the visualizer
  2. Click the hamburger menu and under "Nodes", see "label"
  3. Can only pick one label.

Problem: Since I can only have one label, I could have something like label: _id which would be applicable to every node. However, the _id or _key doesn't give much insight for me as a human. I would much rather see label: title. The problem is that not all my nodes/documents have the field title, so I get undefined for the rest of the nodes.

It would be nice if I could make the label something like label: title|name_singular|name|_id, where it would first look for the field title, then name_singular, name and finally, if none of those exists, simply display the _id.

image

image

Expected result: Being able to select which field should be the label for all node types and not only one at a time.

Something like label: title|name_singular|name|_id, where it would first look for the field title, then name_singular, name and finally, if none of those exists, simply display the _id.

Alternatively have one Node display option section per node/document type.

Simran-B commented 3 years ago

There is already a similar request: #7772 It seems like the other user asks to display multiple labels at once, however.

deenuy commented 2 years ago

Is there a way to prioritize this feature? Looks like a similar request is open since 2018. It doesn't make sense to display graphs without desired attributes to make it insightful. Appreciate if someone provides a clue or suggestion to self-develop.