Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I set label or other informations outside nodes?#352

Answeredbythebestnom
maymao asked this question inQ&A
Discussion options

I want to show informations like labels outside the node just like the example picture but I can only put it in the nodes? Is this function still available in 2.0 version?
image

You must be logged in to vote

Ahh, if you want it outside the node Im pretty sure you need the shape to bedot
Also I recommend next time to put the code inside code block 😅

```jsCode here ```

https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

Replies: 1 comment 9 replies

Comment options

Yes it is, look at the migration guide, everything you can do in vis.js you can now do in neovis

You must be logged in to vote
9 replies
@thebestnom
Comment options

Yep

@maymao
Comment options

Thanks so much!

I tried following the example codes but the labels are still inside my nodes. Could you take a look at my code, please?

labels:{User:{label:"userid",value:"pagerank",group:"communityId",[NeoVis.NEOVIS_ADVANCED_CONFIG]:{cypher:{value:"MATCH (n) WHERE id(n) = $id RETURN n.weight AS c"},function:{title:NeoVis.objectToTitleHtml},static:{font:{size:26,color:"#000FFF"},}}},Community:{label:"communityId",[NeoVis.NEOVIS_ADVANCED_CONFIG]:{cypher:{value:"MATCH (n) WHERE id(n) = $id RETURN (10 - n.risk_level_count - n.risk_level_price) AS s"},function:{title:NeoVis.objectToTitleHtml}}}},relationships:{TRANSACTION:{value:"weight",[NeoVis.NEOVIS_ADVANCED_CONFIG]:{function:{title:NeoVis.objectToTitleHtml}}},BELONG_TO:{[NeoVis.NEOVIS_ADVANCED_CONFIG]:{function:{title:NeoVis.objectToTitleHtml}}}},
@maymao
Comment options

sorry for the indention, it became messy after I paste

@thebestnom
Comment options

Ahh, if you want it outside the node Im pretty sure you need the shape to bedot
Also I recommend next time to put the code inside code block 😅

```jsCode here ```

https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

Answer selected bythebestnom
@maymao
Comment options

Thanks so much for your answer!! Sorry for the format, it was my first time use this discussion board, I truly appreciate your help!

@thebestnom
Comment options

No problem!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@maymao@thebestnom

[8]ページ先頭

©2009-2025 Movatter.jp