Difference between revisions of "Team:Hong Kong UCCKE/Results"

Line 38: Line 38:
  
 
<canvas id="myChart" width="400" height="400"></canvas>
 
<canvas id="myChart" width="400" height="400"></canvas>
 +
<script>
 +
var ctx = document.getElementById("myChart");
 +
var myChart = new Chart(ctx, {
 +
    type: 'bar',
 +
    data: {
 +
        labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
 +
        datasets: [{
 +
            label: '# of Votes',
 +
            data: [12, 19, 3, 5, 2, 3],
 +
            backgroundColor: [
 +
                'rgba(255, 99, 132, 0.2)',
 +
                'rgba(54, 162, 235, 0.2)',
 +
                'rgba(255, 206, 86, 0.2)',
 +
                'rgba(75, 192, 192, 0.2)',
 +
                'rgba(153, 102, 255, 0.2)',
 +
                'rgba(255, 159, 64, 0.2)'
 +
            ],
 +
            borderColor: [
 +
                'rgba(255,99,132,1)',
 +
                'rgba(54, 162, 235, 1)',
 +
                'rgba(255, 206, 86, 1)',
 +
                'rgba(75, 192, 192, 1)',
 +
                'rgba(153, 102, 255, 1)',
 +
                'rgba(255, 159, 64, 1)'
 +
            ],
 +
            borderWidth: 1
 +
        }]
 +
    },
 +
    options: {
 +
        scales: {
 +
            yAxes: [{
 +
                ticks: {
 +
                    beginAtZero:true
 +
                }
 +
            }]
 +
        }
 +
    }
 +
});
 +
</script>
  
 
<table id="diavol" class="display nowrap gabtable" cellspacing="0" width="100%" style="font-size:15px !important;">
 
<table id="diavol" class="display nowrap gabtable" cellspacing="0" width="100%" style="font-size:15px !important;">
Line 637: Line 676:
 
<script src="https://2016.igem.org/Template:Hong_Kong_UCCKE/chartjs?action=raw&ctype=text/javascript" type="text/javascript"></script>
 
<script src="https://2016.igem.org/Template:Hong_Kong_UCCKE/chartjs?action=raw&ctype=text/javascript" type="text/javascript"></script>
 
<script>
 
<script>
     var myChart = new Chart({...})
+
     var myChart = new Chart({...});
// Any of the following formats may be used
+
var ctx = document.getElementById("myChart");
+
 
</script>
 
</script>
 
<script>
 
<script>

Revision as of 11:56, 2 October 2016

Raw Result of Diacetyl Volatile Test with Index

Chemical Type Concentration # of worms in T # of worms in C Index
Diacetyl Volatile Test 1 10 0 1
Diacetyl Volatile Test 1 80 3 0.927710843
Diacetyl Volatile Test 1 96 2 0.959183673
Diacetyl Volatile Test 1/10 97 8 0.847619048
Diacetyl Volatile Test 1/10 78 9 0.793103448
Diacetyl Volatile Test 1/10 91 6 0.87628866
Diacetyl Volatile Test 1/100 7 4 0.272727273
Diacetyl Volatile Test 1/100 85 54 0.223021583
Diacetyl Volatile Test 1/100 60 32 0.304347826
Diacetyl Volatile Test 1/1000 18 14 0.125
Diacetyl Volatile Test 1/1000 67 45 0.196428571
Diacetyl Volatile Test 1/1000 51 35 0.186046512
Diacetyl Volatile Test 1/10000 13 13 0
Diacetyl Volatile Test 1/10000 27 22 0.102040816
Diacetyl Volatile Test 1/10000 27 24 0.058823529
Diacetyl Volatile Test 1/100000 18 16 0.058823529
Diacetyl Volatile Test 1/100000 32 29 0.049180328
Diacetyl Volatile Test 1/100000 35 31 0.060606061

Raw Result of Cinnemaldehyde Volatile Test with Index

Chemical Type Concentration # of worms in T # of worms in C Index
Cinnemoaldehyde Volatile Test 1 18 75 -0.612903226
Cinnemoaldehyde Volatile Test 1 0 24 -1
Cinnemoaldehyde Volatile Test 1 11 92 -0.786407767
Cinnemoaldehyde Volatile Test 1 9 95 -0.826923077
Cinnemoaldehyde Volatile Test 1/10 10 97 -0.813084112
Cinnemoaldehyde Volatile Test 1/10 3 32 -0.828571429
Cinnemoaldehyde Volatile Test 1/10 13 93 -0.754716981
Cinnemoaldehyde Volatile Test 1/10 11 98 -0.798165138
Cinnemoaldehyde Volatile Test 1/100 6 90 -0.875
Cinnemoaldehyde Volatile Test 1/100 2 38 -0.9
Cinnemoaldehyde Volatile Test 1/100 9 68 -0.766233766
Cinnemoaldehyde Volatile Test 1/100 14 96 -0.745454545
Cinnemoaldehyde Volatile Test 1/1000 27 82 -0.504587156
Cinnemoaldehyde Volatile Test 1/1000 9 28 -0.513513514
Cinnemoaldehyde Volatile Test 1/1000 14 40 -0.481481481
Cinnemoaldehyde Volatile Test 1/1000 17 50 -0.492537313
Cinnemoaldehyde Volatile Test 1/10000 40 35 0.066666667
Cinnemoaldehyde Volatile Test 1/10000 16 28 -0.272727273
Cinnemoaldehyde Volatile Test 1/10000 27 37 -0.15625
Cinnemoaldehyde Volatile Test 1/10000 29 39 -0.147058824
Cinnemoaldehyde Volatile Test 1/100000 34 44 -0.128205128
Cinnemoaldehyde Volatile Test 1/100000 25 37 -0.193548387
Cinnemoaldehyde Volatile Test 1/100000 28 33 -0.081967213
Cinnemoaldehyde Volatile Test 1/100000 32 33 -0.015384615