Open
Description
Here is my config in HTML
When I try to load the draw the graph from Neo4j AuraDB, it failed and show nothing
console in web browser shows
But I have write my Neo4j AuraDB url, username, password in config. Why it still try to connect to localhost:7687?
How can I fix it?
<!-- FIXME: load from dist -->
<script type="text/javascript" src="../static/neovis.js"></script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script type="text/javascript">
// define config car
// instantiate nodevis object
// draw
var viz;
function draw() {
var config = {
containerId: "viz",
neo4j: {
server_url: "bolt://xx.xx.xx.xx:7687",
server_user: "neo4j",
server_password: "navigators-bowl-flake",
},
labels: {
Character: {
label: "name",
value: "pagerank",
group: "community"
}
},
relationships: {
INTERACTS: {
value: "weight"
}
},
initialCypher: "MATCH p=()-->() RETURN p"
};
viz = new NeoVis.default(config);
viz.render();
console.log(viz);
}
</script>
</head>
<body onload="draw()">
<div id="viz"></div>
Metadata
Metadata
Assignees
Labels
No labels