Team:TU-Eindhoven/Template:UseGraphs
From 2013.igem.org
(Difference between revisions)
Pascalaldo (Talk | contribs) |
Pascalaldo (Talk | contribs) |
||
Line 11: | Line 11: | ||
}); | }); | ||
- | data.push(datasets[ | + | $('#graph_value_select').click(plotAccordingToChoices); |
- | + | ||
+ | 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