diff --git a/index.html b/index.html index 4397d24..41fd086 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ - + diff --git a/miserables.json b/miserables.json index 0917862..8666688 100644 --- a/miserables.json +++ b/miserables.json @@ -1,6 +1,6 @@ { "nodes": [ - {"id": "Oceane", "group": 1}, + {"identifiant":"qui_il_est", "cible": "ou_il_va", "id": "Oceane", "group": 1}, {"id": "Wiebke", "group": 1}, {"id": "Manon", "group": 1}, {"id": "Andreea", "group": 1}, diff --git a/script/script.js b/script/script.js index a855f17..aeb421e 100644 --- a/script/script.js +++ b/script/script.js @@ -13,14 +13,14 @@ if (error) throw error; var link = svg.append("g") - .attr("class", "links") + .attr("class", "links") .selectAll("line") .data(graph.links) .enter().append("line") - .attr("stroke-width", function(d) { return Math.sqrt(d.value); }); + .attr("stroke-width", function(d) { return Math.sqrt(d.value); }); var node = svg.append("g") - .attr("class", "nodes") + .attr("class", "nodes") .selectAll("text") .data(graph.nodes) .enter().append("text")