From: Anthony Robledo <antrob@google.com>
Date: Fri, 1 Jul 2011 17:10:41 +0000 (-0400)
Subject: Updated the random function generator to be less sporadic.
X-Git-Tag: v1.0.0~454
X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=36d73927ffdd7b345a1ff1700473223b53fd5a63;p=dygraphs.git

Updated the random function generator to be less sporadic.
---

diff --git a/tests/dygraph-many-points-benchmark.html b/tests/dygraph-many-points-benchmark.html
index 3899552..4cf7ef5 100644
--- a/tests/dygraph-many-points-benchmark.html
+++ b/tests/dygraph-many-points-benchmark.html
@@ -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);