Browse Source

Get graph from api for new map

new-map
Sebastian Lohff 2 years ago
parent
commit
53c70e8042
  1. 5
      bgpdata/templates/bgpdata/new_new_map.html

5
bgpdata/templates/bgpdata/new_new_map.html

@ -109,8 +109,9 @@ drag = simulation => { @@ -109,8 +109,9 @@ drag = simulation => {
.on("end", dragended);
}
d3.json("/api/v2/crawlrun/live/?with_graph").then((data) => {
let path_tokens = window.location.pathname.split("/")
let elem = path_tokens[path_tokens.length - 2]
d3.json("/api/v2/crawlrun/" + elem + "/?with_graph").then((data) => {
// Links data join
data = data.graph

Loading…
Cancel
Save