Is it possible to customize the styling of individual links within a graph #97
-
I would like to have some links have a specific color and size which are different than the overall layout. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 6 replies
-
Hi! I was just exploring this library for a graph visualization task. I was wondering if anything has changed since this discussion got opened regarding the styling of links. I was looking to at least change the color of a subset of links. |
Beta Was this translation helpful? Give feedback.
-
I had a similar question for both vertices and edges while evaluating this library for my use case. Any insights would be useful! |
Beta Was this translation helpful? Give feedback.
-
You should be able to set
and then looks like:
If anyone is up for it, this would be a good first ticket for someone. I would just add a |
Beta Was this translation helpful? Give feedback.
-
@amcdnl Would you be ok with a PR adding custom colors for edges and nodes? I would like to add optional attributes |
Beta Was this translation helpful? Give feedback.
-
It would be nice if there were a way to get more control over the line styling, like being able to make dashed lines. This would help to represent different types of relationships. |
Beta Was this translation helpful? Give feedback.
-
It also seems like its not possible to target specific edges to add or remove their arrow, or really do many kinds of custom stylings on nodes and edges on a case by case basis. This is too bad, it's a pretty important feature |
Beta Was this translation helpful? Give feedback.
-
Anyone currently working on this? Custom colors might be able to handle what I need, but I think a general override would be better. If not, I am willing to look into creating a PR to create For context, I'm working on a representation of the recipes in "Against The Storm" - which is a city-building roguelike video game. I'm using As you can see, the precursors / successors of certain items are highlighted in red and green, respectively. I'd like to highlight edges the same way, but that has a few issues. Even if I wanted to do that via |
Beta Was this translation helpful? Give feedback.
-
Hello there, |
Beta Was this translation helpful? Give feedback.
-
maybe, this discussion is resolved with this PR↓ |
Beta Was this translation helpful? Give feedback.
maybe, this discussion is resolved with this PR↓
#275