我正在尝试使用You should not use Equatable if you want the same state back-to-back to trigger multiple transitions.
库来可视化网页中的Neovis
图形数据。
在Component.ts中
Neo4j
import NeoVis from 'neovis.js/dist/neovis.js';
ngOnInit() {
this.draw();
}
draw() {
const config = {
container_id: 'viz',
server_url: 'bolt://localhost',
server_user: 'neo4j',
server_password: 'test'
};
const viz = new NeoVis.default(config);
viz.render();
}
但是我在应用程序加载时遇到此错误
<div id="viz"></div>
答案 0 :(得分:0)
删除default
可以解决问题。添加密码后查询图工作正常
draw() {
const config = {
container_id: 'viz',
server_url: 'bolt://localhost',
server_user: 'neo4j',
server_password: 'test',
initial_cypher: 'Match (n)-[r]->(m) return n,r,m'
};
const viz = new NeoVis(config);
console.log(viz);
viz.render();
}