client/js/random-data.js
changeset 21 b43dd87f7ffa
parent 20 bd58970ffd16
child 23 70c8af9b44ec
--- a/client/js/random-data.js	Fri Aug 17 12:50:00 2012 +0200
+++ b/client/js/random-data.js	Fri Aug 17 18:36:12 2012 +0200
@@ -2,8 +2,8 @@
 
 Rkns.RemoteModels.RandomData.prototype._init = function() {
     this._USER_COUNT = 5;
-    this._NODE_COUNT = 20;
-    this._EDGE_COUNT = 40;
+    this._NODE_COUNT = 50;
+    this._EDGE_COUNT = 100;
     this.user_colors = ["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"];
     this.load();
 }
@@ -24,10 +24,10 @@
             title: "Node #"+(1+i),
             created_by: "user-" + Math.floor(this._USER_COUNT*Math.random()),
             position: {
-//                x: 200 * Math.random(),
-//                y: 150 * Math.random()
-                x: 100 * Math.cos(2 * Math.PI * i / this._NODE_COUNT),
-                y: 100 * Math.sin(2 * Math.PI * i / this._NODE_COUNT)
+                x: 200 * Math.random(),
+                y: 150 * Math.random()
+//                x: 100 * Math.cos(2 * Math.PI * i / this._NODE_COUNT),
+//                y: 100 * Math.sin(2 * Math.PI * i / this._NODE_COUNT)
             }
         }));
     }