rob2
( Rob)
January 31, 2021, 9:33am
1
HI
i just started using neovis. My example is simple and I get data - But with 2 labels I have "captions" problems . after draw the caption is "_node"
Her is my code - the rest is the simple example from the github repo ...
....
var config = {
container_id: "viz",
server_url: "bolt://edums.bpmspace.net:7687",
server_user: "neo4j",
server_password: "PASSWD",
labels: {
"topic": {
"caption": "name"
} ,
"course": {
"caption": "short_name"
} ,
"person": {
"caption": "name"
}
},
relationships: {
"allowed_to_teach": {
"caption": false
}
},
initial_cypher: "MATCH (per:person)-[r1:allowed_to_teach]->(cou:course)<-[r2:hasCourse]-(to:topic) RETURN * "
};
...
And here is a screenshot?
what do I do wrong? The Names of the nodes with label person are ok.
Thanks for help?
rob
Not seen that before. Anything in your JS console?
In the past it always worked fine for me. Are you using the latest version?
Perhaps also raise a GH issue on the repository.
rob2
( Rob)
February 1, 2021, 6:44am
3
I use
... src="https://cdn.neo4jlabs.com/neovis.js/v1.6.0/neovis.js "> ....
also tried it with 1.5.0 and 1.4.0 .. same error
there was an encoding error when i copied the example form the github. but with <meta charset="utf-8"/>
the error was solved ....
so I have no idea ...
thanks anyway ... i will open a GH in the repo ... rob
rob2
( Rob)
February 1, 2021, 12:50pm
4
I opend this issue in github - looks like a bug (to me), because of 2 or more labels
opened 06:56AM - 01 Feb 21 UTC
closed 06:56AM - 02 Feb 21 UTC
HI
i just started using neovis. My example is simple and I get data - But wi… th 2 labels I have "captions" problems . after draw the caption is "_node"
Her is my code - the rest is the simple example from the github repo ...
```
....
var config = {
container_id: "viz",
server_url: "bolt://edums.bpmspace.net:7687",
server_user: "neo4j",
server_password: "PASSWD",
labels: {
"topic": {
"caption": "name"
} ,
"course": {
"caption": "short_name"
} ,
"person": {
"caption": "name"
}
},
relationships: {
"allowed_to_teach": {
"caption": false
}
},
initial_cypher: "MATCH (per:person)-[r1:allowed_to_teach]->(cou:course)<-[r2:hasCourse]-(to:topic) RETURN * "
};
...
```
And here is a screenshot?
![grafik](https://user-images.githubusercontent.com/16413104/106424623-ca632580-6462-11eb-8f3f-1c4990ddb0ac.png)
what do I do wrong? The Names of the nodes with label person are ok.
Thanks for help?
rob
PS
I use
... src="https://cdn.neo4jlabs.com/neovis.js/v1.6.0/neovis.js"> ....
also tried it with 1.5.0 and 1.4.0 .. same error
there was an encoding error when i copied the example form the github. but with <meta charset="utf-8"/> the error was solved ....
rob2
( Rob)
February 1, 2021, 1:11pm
5
Short version : multilabel is not supportet at the moment ... it must be the FIRST label! I have a workarround so it is fine for me ...
Hi there,
if you are still interested in neovis visualisation, have a look to my simplified neovis example
You can easily adapt the code to your problem or db. The idea is to use only the core of neovis, ako connector, and delegate the interface to visjs after the rendering. Please observe the circumvention of the neo4j-s vs. trust: standard neovis is not compatible with newer neo4-s schema and its 'use strict'
WJI