summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Isaksen <d@duniel.no>2018-12-06 20:41:21 +0100
committerDaniel Isaksen <d@duniel.no>2018-12-06 20:41:21 +0100
commit0e92e3c80efaaeed9189d7fe50315e6379cfc355 (patch)
treebf20c5d822a4fcb17dd1a0daf4b732054f8d1dbc
parent44933b7f3710a2c8842c37ee7b629e928b907d36 (diff)
downloadalpine-netviz-master.tar.bz2
alpine-netviz-master.tar.xz
orange color for edges between cluster nodesHEADmaster
-rw-r--r--alpine-netviz.js10
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({