summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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({