diff options
author | Daniel Isaksen <d@duniel.no> | 2018-12-06 20:41:21 +0100 |
---|---|---|
committer | Daniel Isaksen <d@duniel.no> | 2018-12-06 20:41:21 +0100 |
commit | 0e92e3c80efaaeed9189d7fe50315e6379cfc355 (patch) | |
tree | bf20c5d822a4fcb17dd1a0daf4b732054f8d1dbc | |
parent | 44933b7f3710a2c8842c37ee7b629e928b907d36 (diff) | |
download | alpine-netviz-0e92e3c80efaaeed9189d7fe50315e6379cfc355.tar.bz2 alpine-netviz-0e92e3c80efaaeed9189d7fe50315e6379cfc355.tar.xz |
-rw-r--r-- | alpine-netviz.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/alpine-netviz.js b/alpine-netviz.js index d84ed35..7820ef2 100644 --- a/alpine-netviz.js +++ b/alpine-netviz.js @@ -88,16 +88,18 @@ jQuery(document).ready(function($) { t_nodes.forEach(function(node, idx) { if (idx !== t_nodes.length - 1) { edges.push({ - from: node.id, - to: t_nodes[idx + 1].id + from: node.id, + to: t_nodes[idx + 1].id, + color: { color: "#FF851B" } }); } }); // last link edges.push({ - from: t_nodes[0].id, - to: t_nodes[t_nodes.length - 1].id + from: t_nodes[0].id, + to: t_nodes[t_nodes.length - 1].id, + color: { color: "#FF851B" } }); cb({ |