Team:TU-Delft/SynBioData
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | + | <script> | |
- | + | function drawVisualization() { | |
+ | // To see the data that this visualization uses, browse to | ||
+ | // http://spreadsheets.google.com/ccc?key=pCQbetd-CptGXxxQIG7VFIQ | ||
+ | var query = new google.visualization.Query( | ||
+ | 'https://docs.google.com/spreadsheet/pub?key=0ArsDNt8sj-LBdEdCREdxUTFmVXpPaTVnZm43d0RTdmc&single=true&gid=0&output=html'); | ||
- | + | // Apply query language. | |
+ | query.setQuery('SELECT A WHERE A =1 ORDER BY A'); | ||
- | + | // Send the query with a callback function. | |
- | + | query.send(handleQueryResponse); | |
- | + | } | |
- | + | ||
- | + | ||
- | + | function handleQueryResponse(response) { | |
- | + | if (response.isError()) { | |
- | + | alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); | |
- | + | return; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | var data = response.getDataTable(); | |
- | + | visualization = new google.visualization.LineChart(document.getElementById('visualization')); | |
- | + | visualization.draw(data, {legend: 'bottom'}); | |
- | + | </script> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</html> | </html> |
Revision as of 12:06, 2 September 2013