Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Render graph server (node) side #27

Open
rom1504 opened this issue Feb 22, 2017 · 1 comment
Open

Render graph server (node) side #27

rom1504 opened this issue Feb 22, 2017 · 1 comment

Comments

@rom1504
Copy link

rom1504 commented Feb 22, 2017

Is there some module that make it possible to render graphs (as svg image for example) server side (from node) ?

@anvaka
Copy link
Owner

anvaka commented Feb 23, 2017

I think you need ngraph.forcelayout to get the layout. After a few iterations you just go over each node in the graph and get their positions from layout (similar to this demo). Once you have positions, it should be trivial to render SVG document for each node.

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

No branches or pull requests

2 participants