Team:TU-Eindhoven/Template:UseGraphs

From 2013.igem.org

(Difference between revisions)
Line 11: Line 11:
});
});
-
                 data.push(datasets["Oxygen_0"]);
+
                 $('#graph_value_select').click(plotAccordingToChoices);
-
$.plot("#placeholder", data,{yaxis: { min: 0 }, xaxis: { tickDecimals: 0 }});
+
 
 +
function plotAccordingToChoices() {
 +
 
 +
var data = [];
 +
                        var select_value = $('#graph_value_select').val();
 +
data.push(datasets[select_value]);
 +
 
 +
if (data.length > 0) {
 +
$.plot("#placeholder", data, {
 +
yaxis: {
 +
min: 0
 +
},
 +
xaxis: {
 +
tickDecimals: 0
 +
}
 +
});
 +
}
 +
}
});
});
</script>
</script>
</html>
</html>

Revision as of 00:08, 17 August 2013