Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to reset the data with new data, not append. #14

Closed
BenDerPan opened this issue Oct 2, 2017 · 6 comments
Closed

How to reset the data with new data, not append. #14

BenDerPan opened this issue Oct 2, 2017 · 6 comments

Comments

@BenDerPan
Copy link

I get new neo4j json data from websocket, and I want to repalce the old data with the new data, but updateWithNeo4jData or updateWithD3Data always append the new data to the old one , how can I clear the old data before it render the new ones?

@laaron2008
Copy link

@BenDerPan Could you tell me how to get neo4j json data?
Thank you

@BenDerPan
Copy link
Author

you can get it from ajax or websocket , that means you need to build a web server which support json api(like resfFul API) or websockets first, and the server provide you the data you need for neo4j.

@blinkcat
Copy link

blinkcat commented May 29, 2018

@BenDerPan Have you found a way to solve this problem?
I need your help.

@BenDerPan
Copy link
Author

@blinkcat sorry I have gave it up... maybe you can use d3.js to do so.

@jesusalber1
Copy link

New pull request to support this functionality #24 . It follows the same idea as updateWithNeo4jData but it replaces the nodes and relationships instead of adding them to the current graph.

@blinkcat
Copy link

blinkcat commented May 30, 2018

@jesusalber1 Nice work!Thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants