From d11eaba86460d6092ebba1c9ead691e3f045e2fa Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 2 Oct 2017 21:58:36 -0400 Subject: [PATCH] cleanup --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index da43394..194b1a9 100644 --- a/app.js +++ b/app.js @@ -25,6 +25,6 @@ d3.forceSimulation() .force("charge_force", d3.forceManyBody()) .force("center_force", d3.forceCenter(WIDTH / 2, HEIGHT / 2)) //position centering force at center x,y coords .on("tick", function(){ - nodes.attr("cx", function(d) { return d.x; }) - .attr("cy", function(d) { return d.y; }); + nodes.attr("cx", function(datum) { return datum.x; }) + .attr("cy", function(datum) { return datum.y; }); });