Closed yvespierrecabon closed 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';
first here
` graph.links = []; for (var name in graph.data) { var obj = graph.data[name]; for (var depIndex in obj.depends) { var link = { source : graph.data[obj.depends[depIndex]], target : obj }; link.strength = (link.source.linkStrength || 1)
Second here
graph.line = graph.svg.append('g').selectAll('.link') .data(graph.force.links()) .enter().append('line') .attr('class', 'link') .attr('stroke','red');
But it also doesn't work
Someone has a better idea ?
I found a solution by :
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 ?