Here is my code. I am trying to connect/draw a path between center and different nodes. Now I want to make a different colored stroke
for a different path. I ha
Take a look at following three jsFiddles. The key idea of the solution is as @AmeliaBR said. Study thoroughly the link implementation in these three graphs (it's fairly simple). I extracted the most important parts of the code.
.link_dashed {
fill: none;
stroke: #ff0000;
stroke-width: 1.5px;
stroke-dasharray: 0,20,20,30,10,10,10;
}
.link_dashed {
fill: none;
stroke: #000000;
stroke-width: 1.5px;
stroke-dasharray: 20,20,30,10,10,10,0;
}
.link_dashed {
fill: none;
stroke: #ff0000;
stroke-width: 1.5px;
stroke-dasharray: 0,20,20,30,10,10,10;
}
.link_dashed2 {
fill: none;
stroke: #000000;
stroke-width: 1.5px;
stroke-dasharray: 20,20,30,10,10,10,0;
}