This commit is contained in:
2018-09-19 23:08:34 +02:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/styles.css">
<svg width="1920" height="1080"></svg>
<svg width="500" height="500"></svg>
<script src="script/d3js/d3.js"></script>
<script src="script/script.js"></script>
+1 -1
View File
@@ -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},
+3 -3
View File
@@ -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")