nylen / d3-process-map

Web application to illustrate the relationships between objects in a process using d3.js.
MIT License
416 stars 196 forks source link

Colored arrows #27

Closed yvespierrecabon closed 6 years ago

yvespierrecabon commented 6 years ago

Hi, Do you think it could be possible to add a color value to the dependance between 2 objects to display red , green or black arrows ?

yvespierrecabon commented 6 years ago

I tried to simply modify the color of the arrows. So, in script.js, I tried to assigned 'red' to the color of each link between objects by adding this line of code : link.stroke = 'red';

But it also doesn't work

Someone has a better idea ?

yvespierrecabon commented 6 years ago

I found a solution by :