"2009-09-15,9280.67;9712.28;9829.87,4297.2232125907;4497.07133894216;4551.51896800004\n" +
"2009-10-15,9487.67;9712.73;10092.2,4388.84340147194;4492.9525342659;4668.48924723722\n";
};
-
-function dataManyPoints() {
- var data = [];
- for (var i = 0; i < 1000000; ++i) {
- data[i] = [i, i % 1009, i % 1013, i % 1019, i % 1021]
- }
- return data
-}
<script src="temperature-sf-ny.js"></script>
<script src="interaction.js"></script>
<script src="linear-regression.js"></script>
- <script src="many-points.js"></script>
<!-- These might not remain in the gallery
<script src="dygraph-simple.js"></script>
+++ /dev/null
-/*global Gallery,Dygraph,data */
-/*global dataManyPoints */
-Gallery.register(
- 'many-points',
- {
- name: 'Many Points',
- title: 'Many Points Benchmark',
- setup: function(parent) {
- parent.innerHTML = "<div id='many_points_div' style='width: 600px; height: 300px;'></div><p id='many_points_timing'></p>";
- },
- run: function() {
- var data = dataManyPoints();
- var startTimeMillis = Date.now();
- var g = new Dygraph(document.getElementById("many_points_div"), data, {});
- document.getElementById('many_points_timing').innerHTML = (Date.now() - startTimeMillis) + 'ms';
- }
- });