Updated the random function generator to be less sporadic.
authorAnthony Robledo <antrob@google.com>
Fri, 1 Jul 2011 17:10:41 +0000 (13:10 -0400)
committerDan Vanderkam <danvk@google.com>
Thu, 7 Jul 2011 21:04:32 +0000 (17:04 -0400)
tests/dygraph-many-points-benchmark.html

index 3899552..4cf7ef5 100644 (file)
@@ -64,7 +64,7 @@
           for (var j = 0; j < numSeries; j++) {
             var y;
             if (dataType == "rand") {
-              y = Math.random() * 2 - 1;
+              y = Math.pow(Math.random() - Math.random(), 7);
             } else {
               y = Math.sin(x + (j * adj));
             }
@@ -74,7 +74,7 @@
         }
         var labels = [ "x" ];
         for (var j = 0; j < numSeries; j++) {
-          labels.push("sin(x + " + (j*adj) + ")");
+          labels.push("data-set-" + j);
         }
         var rollPeriod = parseInt(
             document.getElementById('roll_period_input').value);