Add Fill option to benchmark to help with issue #346
authorDan Vanderkam <danvdk@gmail.com>
Tue, 11 Nov 2014 05:06:53 +0000 (00:06 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Tue, 11 Nov 2014 05:07:03 +0000 (00:07 -0500)
tests/dygraph-many-points-benchmark.html

index 9fc0f81..3dfe4bb 100644 (file)
@@ -29,6 +29,7 @@
       <p>x-axis type:
         <input type="radio" id="numeric" name="x-axis-type" value="numeric" onclick="setXAxisType(this)" checked> numeric
         <input type="radio" id="dates" name="x-axis-type" value="date" onclick="setXAxisType(this)"> date/time
+      <p><input type="checkbox" id="fill"><label for="fill"> Fill?</label></p>
       <p>Number of points per series (points):
          <input type="text" id="points" size="20"></p>
       <p>Number of series (series):
         var rollPeriod = parseInt(
             document.getElementById('rollPeriod').value);
         var opts = {labels: labels, rollPeriod: rollPeriod, timingName: "x"};
+        opts['fillGraph'] = document.getElementById('fill').checked;
         var millisecondss = [];
         for (var i = 0; i < repetitions; i++) {
           if (graph != null) {