ArangoDB 图形查看器选项:使用多个属性的标签
ArangoDB Graph Viewer Options: Label using more than one attribute
在 Arango 的权力游戏示例数据集中,他们显示了一个图形视图,其中角色节点标有两个属性:姓名和姓氏。这是怎么做到的?
Arango graph viewer example with Game of Thrones character data
help没有解释。
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.
这听起来好像只能使用一个属性,但他们的示例显示了两个属性的使用。
图表查看器不支持显示标签的多个属性。
我截取了一张没有任何标签的图表并在 Paint.NET 中对其进行了编辑,这就是全部秘密。这是为了完全控制字体、大小和位置。当我写 AQL tutorial.
时,这种组合是最简单的方法
尽管如此,请随时在 GitHub 上提出功能请求。
幸运的是它是 ArangoDB 开源的,所以可以很容易地实现它
这里是quick and dirty commit adding such a functionality
对其进行测试,而不是将其部署到生产环境中,因为它可能会导致意外的安全问题
克隆 linux https://github.com/pavelsevcik/arangodb
,cd 进去,切换分支到 feature/graph-viewer-config-labels--quick-and-dirty
和 运行
cd js/apps/system/_admin/aardvark/APP
npm install
npm run grunt
mv node_modules ..
zip -r ../app.zip .
mv .. /node_modules .
然后通过 services
> add service
> upload
> 将挂载点设置为 /aardvark
部署创建 js/apps/system/_admin/aardvark/app.zip
然后将url_admin/aardvark
改为aardvark
并测试
这里是Feature Request: Support of multiple attributes for displaying labels in Graph Viewer
在 Arango 的权力游戏示例数据集中,他们显示了一个图形视图,其中角色节点标有两个属性:姓名和姓氏。这是怎么做到的?
Arango graph viewer example with Game of Thrones character data
help没有解释。
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.
这听起来好像只能使用一个属性,但他们的示例显示了两个属性的使用。
图表查看器不支持显示标签的多个属性。
我截取了一张没有任何标签的图表并在 Paint.NET 中对其进行了编辑,这就是全部秘密。这是为了完全控制字体、大小和位置。当我写 AQL tutorial.
时,这种组合是最简单的方法尽管如此,请随时在 GitHub 上提出功能请求。
幸运的是它是 ArangoDB 开源的,所以可以很容易地实现它
这里是quick and dirty commit adding such a functionality
对其进行测试,而不是将其部署到生产环境中,因为它可能会导致意外的安全问题
克隆 linux https://github.com/pavelsevcik/arangodb
,cd 进去,切换分支到 feature/graph-viewer-config-labels--quick-and-dirty
和 运行
cd js/apps/system/_admin/aardvark/APP
npm install
npm run grunt
mv node_modules ..
zip -r ../app.zip .
mv .. /node_modules .
然后通过 services
> add service
> upload
> 将挂载点设置为 /aardvark
js/apps/system/_admin/aardvark/app.zip
然后将url_admin/aardvark
改为aardvark
并测试
这里是Feature Request: Support of multiple attributes for displaying labels in Graph Viewer