How to change the color of an element dinamically ? #4255
-
I would like to know if it is possible to change the color of an element (a link between two nodes or a node) after the diagram has been generated. For example, if we take this diagram as an example:
This will generate a link like this:
I wish to assign the red color to the link. I tried to:
All without success. Is what I am trying to achieve possible, and if yes, how can I do it ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Andromelus Maybe try You can also try
|
Beta Was this translation helpful? Give feedback.
Hi @Andromelus
Maybe try
stroke: red
. Although that doesn't update the arrow color to red.You can also try
lineColor: red
before you export the diagram. This will update the link and arrow color.Example here
Documentation here