【问题标题】:Edit or Create Graph Style Sheets for WebAdmin为 WebAdmin 编辑或创建图形样式表
【发布时间】:2014-01-28 15:08:17
【问题描述】:
我已更新到 neo4j 2.0,目前我正绝望地尝试为我的图表编辑 Web 管理样式表。旧版有舒适的样式编辑器,新版找不到了。
显示一条消息,可能解释如何编辑样式表:“Drop Cypher script file to importDrop a Grass-file here to import”。但是我不明白这个消息。
有人知道为 neo4j 2.0 编辑图形样式表的教程吗?
提前致谢,
岩内
【问题讨论】:
标签:
neo4j
stylesheet
web-admin
【解决方案1】:
在 Neo4j 2.0.0 中,您不能就地编辑样式表。相反,您必须使用标题文本“Graph Style Sheet”右侧的下载符号下载样式表。使用您喜欢的编辑器在本地编辑下载的文件,然后将其拖放到指定的放置区域。
【解决方案2】:
一旦您下载了样式表,就很容易在编辑器中打开文本文件。您只需根据自己的喜好查找颜色代码。
例如:
node {
diameter: 40px; #you can change this value to your size preference for diameter of the node
color: #DFE1E3; #this is the value that you need to google.
border-color: #D4D6D7; # same as above
border-width: 2px; #width of node border
text-color-internal: #000000; #pretty obvious
caption: '{Date}';
font-size: 14px; #also obvious
}
relationship {
color: #D4D6D7;
shaft-width: 1px;
font-size: 4px;
padding: 3px;
text-color-external: #000000;
text-color-internal: #FFFFFF;
}
Here is a good reference for HTML color values