How to change the color of an element dinamically ? #4255
Answered
by
huynhicode
Andromelus
asked this question in
Q&A
|
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 ? |
Answered by
huynhicode
Mar 30, 2023
Replies: 1 comment 1 reply
|
Hi @Andromelus Maybe try You can also try |
1 reply
Answer selected by
Andromelus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hi @Andromelus
Maybe try
stroke: red. Although that doesn't update the arrow color to red.You can also try
lineColor: redbefore you export the diagram. This will update the link and arrow color.Example here
Documentation here