Team:TU-Eindhoven/Template:UseGraphs

From 2013.igem.org

(Difference between revisions)
Line 3: Line 3:
<script>
<script>
$(function() {
$(function() {
 +
                var data = [];
 +
                 var i = 0;
                 var i = 0;
$.each(datasets, function(key, val) {
$.each(datasets, function(key, val) {
Line 8: Line 10:
++i;
++i;
});
});
-
$.plot("#placeholder", datasets["usa"],{yaxis: { min: 0 }, xaxis: { tickDecimals: 0 }});
+
 
 +
                data.push(datasets["usa"]);
 +
$.plot("#placeholder", data,{yaxis: { min: 0 }, xaxis: { tickDecimals: 0 }});
});
});
</script>
</script>
</html>
</html>

Revision as of 23:40, 16 August 2013