-
Notifications
You must be signed in to change notification settings - Fork 231
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
Custom link between two nodes? #149
Comments
In nodes, some properties can be defined within the Regarding links, I'm afraid that is not yet possible but I will definitely add it to the roadmap as it seems a pretty obvious feature. |
I'm interested in the ability to have dashed lines and dashed nodes. |
Hey there @paulbarr we could start with the ability to add |
I've made the change locally - I'll submit the PR in the new year when I get back. Happy New Year! |
Hey there! I am new using this amazing tool. Is there any possibility to set the thickness of each link individually? I mean something like:
Thank you so much! |
Hey @mariopnvds thanks to @sauln it will be possible soon! Check out the ongoing work here #166 |
I think using the |
Thank you very much @sauln and @danielcaldas ! Where should I use linksMatrix? I tried to look for it on the docs and it is not appearing. I tried to use it in the configs and in the individual link, and still not working! Would be nice to have it with the width param for each link! Thanks in advance! |
Sorry, the
and then setting It also looks like this will behave differently if If that doesn't work, once #166 is merged, it will be accessible by setting
|
I found a workaround if you are ok with all lines being dashed. You can set the css properties for the link class. .link{ |
Hey thanks for the addition @wendymungovan, that's actually not a bad workaround 👍 |
What do you think about exposing the className on link as a Link config property? This could be added to the class name you are already setting in buildLinkProps in graph.builder.js. I tried it out in the branch and it seems to work if you like that style change. @danielcaldas if you would like this done differently let me know and I can fix it. I tried it out and it ends up looking like this. .dottedLink{ |
@wendymungovan sounds good, feel free to give it a try by adding |
@danielcaldas I set the default to undefined. Here is a link to the branch.Barnstorm-Research@6e1fd86 I just realized that my playing around with the arrows was included in this branch so I will remove that change. |
Hi, guys Is there a concern to not making all the "Link level configurations" documented to be configurable for each link? I really like the idea of per link level customization and I saw you guys first added link.color, then link.width, now dash-line. And my use case would be link.type. I am not an expert in d3/react but I noticed the current implementation for link type depends on graph config. Let me justify my use case a little bit. I would like to render a graph with some links represent close/direct connection using straight lines while others represent distanced/indirect connection using curved links. The graph would be more cleared in case links are dense and overlapping one another. Thanks |
Hello, @WenxuanHu35 this was an architectural decision that I did in the beginning of the project:
So image now that we want to make the ...
className: link.className || CONST.LINK_CLASS_NAME,
... But of course, if nobody would request this, there is no point in impacting the performance of the library to do additional checks that in the end are never used 🙂. |
Is it possible to create a custom link between two nodes?
Let's say all the links in the graph are green except one that is blue and dashed...
Thanks
The text was updated successfully, but these errors were encountered: