Team:TU-Eindhoven/Template:InteractiveGraph

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
<html><script src="https://2013.igem.org/Team:TU-Eindhoven/JS:Flot?action=raw&ctype=text/js</html>"></script>
<html><script src="https://2013.igem.org/Team:TU-Eindhoven/JS:Flot?action=raw&ctype=text/js</html>"></script>
<div id="placeholder" class="demo-placeholder"></div>
<div id="placeholder" class="demo-placeholder"></div>
-
<script>
 
-
$(function() {
 
-
 
-
var d1 = [];
 
-
for (var i = 0; i < 14; i += 0.5) {
 
-
d1.push([i, Math.sin(i)]);
 
-
}
 
-
 
-
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
 
-
 
-
// A null signifies separate line segments
 
-
 
-
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
 
-
 
-
$.plot("#placeholder", [ d1, d2, d3 ]);
 
-
});
 
-
</script>
 
</html>
</html>

Revision as of 22:47, 16 August 2013