Edit or Create Graph Style Sheets for WebAdmin

谁说胖子不能爱 提交于 2019-11-27 08:42:18

问题


I have updated to neo4j 2.0 and I am currently becoming desperate trying to edit the web admin stylesheets for my graph. There was a comfortable styles editor in the old version, I can not find in the new one.

There is a message displayed, which is probably explaining, how to edit the style sheet: "Drop Cypher script file to importDrop a grass-file here to import". However I do not understand the message.

Does anybody know any tutorial for editing graph style sheets for neo4j 2.0?

Thanks in advance,

Iwanai


回答1:


In Neo4j 2.0.0 you cannot edit the stylesheet inplace. Instead you have to download the stylesheet using the download symbol right to the caption text "Graph Style Sheet". Edit the downloaded file locally using your favourite editor and use drag & drop it to the designated drop area.




回答2:


Once you download the stylesheet it's pretty easy to open the text file in an editor. You just have to look up color codes per your preferences. for example:

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



来源:https://stackoverflow.com/questions/21409282/edit-or-create-graph-style-sheets-for-webadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!