2

In Arango's Game of Thrones example dataset, they show a graph view where character nodes are labeled with two attributes: name and surname. How is this done?

Arango graph viewer example with Game of Thrones character data

The help doesn't explain it.

Graph Viewer Options
Nodes Options Menu:
Label (string): Nodes will be labeled by this attribute. If node attribute is not found, no label will be displayed.

That makes it sound like only a single attribute can be used, yet their example shows the use of two attributes.

2 Answers 2

3

Luckily it's ArangoDB open source, so it's possible to achieve it and quite easily

here's quick and dirty commit adding such a functionality

to test it, not deploying it into production as it can cause unexpected security issues

clone on linux https://github.com/pavelsevcik/arangodb, cd into it, switch branch to feature/graph-viewer-config-labels--quick-and-dirty and run

cd js/apps/system/_admin/aardvark/APP
npm install
npm run grunt
mv node_modules ..
zip -r ../app.zip .
mv .. /node_modules .

then deploy created js/apps/system/_admin/aardvark/app.zip via services > add service > upload > set mount point to /aardvark

then change in url _admin/aardvark to aardvark and test it

here's Feature Request: Support of multiple attributes for displaying labels in Graph Viewer

Sign up to request clarification or add additional context in comments.

Comments

1

The Graph Viewer does not support multiple attributes for displaying labels.

I took a screenshot of the graph without any labels and edited it in Paint.NET, that's the whole secret. This was for full control about the font face, size and placement. This combination was the easiest way to do it when I wrote the AQL tutorial.

Feel free to open a feature request on GitHub nonetheless.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.