We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm working on my visualization project using JSNetworkx but cannot find a way to add label on the edges. Please someone help me.
The text was updated successfully, but these errors were encountered:
Hi @rectangel-paul,
The issue is when updating the edge labels. During the creation process, it works fine. #70
A quick fix is to change the line 759 of the src/drawing/sgv.js with the following code:
src/drawing/sgv.js
if (config.withEdgeLabels) { selection.selectAll('text') .attr(config.edgeLabelAttr) .style(config.edgeLabelStyle) .text(config.edgeLabels); }
If you want to get the already compiled (for browser) version with this fix, take it at: https://github.com/piglesias1/JSNetworkX/blob/master/jsnetworkx.js
Hope it helps!
Thanks, Pablo Iglesias
Sorry, something went wrong.
No branches or pull requests
I'm working on my visualization project using JSNetworkx but cannot find a way to add label on the edges. Please someone help me.
The text was updated successfully, but these errors were encountered: