From 89de7f75275167ed8babe0283f172ca41e78877a Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk <2285135b@student.gla.ac.uk> Date: Wed, 3 Jan 2018 10:47:59 +0700 Subject: [PATCH] Clean up old codes 3 --- examples/js/src/neighbourSampling-papaparsing.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/js/src/neighbourSampling-papaparsing.js b/examples/js/src/neighbourSampling-papaparsing.js index fff9d7b..c858f33 100644 --- a/examples/js/src/neighbourSampling-papaparsing.js +++ b/examples/js/src/neighbourSampling-papaparsing.js @@ -91,22 +91,9 @@ function processData(data, error) { if (error) throw error.message; nodes = data; - - // Number of iterations before stopping. size = nodes.length; - - console.log("Number of iterations: ", ITERATIONS); - - // Start by placing the nodes at the center (its starting positions). simulation = d3.forceSimulation(); - //Put the nodes in random starting positions - nodes.forEach(function (d) { - d.x = (Math.random()-0.5) * 100000; - d.y = (Math.random()-0.5) * 100000; - }); - - console.log("n =", nodes.length); // Calculate normalization arguments and get the list of // properties of the nodes. norm = calculateNormalization(nodes); // Used with distance fn