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

Links with multiple colors #417

Open
mossy426 opened this issue Jul 24, 2024 · 1 comment
Open

Links with multiple colors #417

mossy426 opened this issue Jul 24, 2024 · 1 comment

Comments

@mossy426
Copy link

The team would really like to be able to color a single link multiple colors as having the multiple links of different coloars can be too hard to see when dealing with large networks.

For instance, we could have some dashed-like line that alternates colors, or possibly one half of the link be one color and the other half another. We'd want to be able to do this dynamically.

Is that possible at all now? Not sure if the new PR for custom rendering will allow for this.

Thanks!

@rokotyan
Copy link
Contributor

This can be tricky due to SVG limitations, but you can try using the linearGradient approach described here, providing stroke color as a url(...) to your gradient definition.

More on SVG gradients here: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Gradients

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