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

Line 622: Line 622:
 
         </tbody>
 
         </tbody>
 
     </table>
 
     </table>
 +
 +
 +
 +
 +
 +
<canvas id="over59g3y44" width="400" height="280"></canvas>
 +
 +
<script>
 +
var ctx = document.getElementById("over59g3y44");
 +
var myChart = new Chart(ctx, {
 +
    type: 'bar',
 +
    data: {
 +
        labels: ["Water (-ve control)", "Diacetyl", "Cinnemaldehyde", "Synthetic PA (BBa_K1889007)", "Empty Vector", "PA", "Chilli Oil"],
 +
        datasets: [{
 +
            label: 'Index',
 +
            data: [0.07, 0.96, -0.81, 0.83, 0.63, 0.34, 0.59],
 +
            backgroundColor: [
 +
                'rgba(54, 162, 235, 0.2)',
 +
                'rgba(255, 206, 86, 0.2)',
 +
                'rgba(255, 99, 132, 0.2)',
 +
                'rgba(75, 192, 192, 0.2)',
 +
                'rgba(153, 102, 255, 0.2)',
 +
                'rgba(255, 159, 64, 0.2)'
 +
            ],
 +
            borderColor: [
 +
                'rgba(54, 162, 235, 1)',
 +
                'rgba(255, 206, 86, 1)',
 +
                'rgba(255,99,132,1)',
 +
                'rgba(75, 192, 192, 1)',
 +
                'rgba(153, 102, 255, 1)',
 +
                'rgba(255, 159, 64, 1)'
 +
            ],
 +
            borderWidth: 1
 +
        }]
 +
    },
 +
    options: {
 +
        scales: {
 +
            yAxes: [{
 +
                ticks: {
 +
                    beginAtZero:true,
 +
                    min: -1,
 +
                    max: 1,
 +
                },
 +
                scaleLabel: {
 +
                    display: true,
 +
                    labelString: 'Responsive Index',
 +
                    fontSize: 15,
 +
                }
 +
            }],
 +
            xAxes: [{
 +
                scaleLabel: {
 +
                    display: true,
 +
                    labelString: 'Testing Samples',
 +
                    fontSize: 15,
 +
                }
 +
            }],
 +
        },
 +
 +
        title: {
 +
            display: true,
 +
            text: 'Comparsion of Responsive index',
 +
            fontSize: 15,
 +
        },
 +
animation: {
 +
duration: 0,
 +
onComplete: function () {
 +
    // render the value of the chart above the bar
 +
    var ctx = this.chart.ctx;
 +
    ctx.font = Chart.helpers.fontString(Chart.defaults.global.defaultFontSize, 'normal', Chart.defaults.global.defaultFontFamily);
 +
    ctx.fillStyle = this.chart.config.options.defaultFontColor;
 +
    ctx.textAlign = 'center';
 +
    ctx.textBaseline = 'bottom';
 +
    this.data.datasets.forEach(function (dataset) {
 +
        for (var i = 0; i < dataset.data.length; i++) {
 +
            var model = dataset._meta[Object.keys(dataset._meta)[0]].data[i]._model;
 +
            ctx.fillText(dataset.data[i], model.x, model.y - 5);
 +
        }
 +
    });
 +
}}
 +
 +
    },
 +
 +
});
 +
</script>
 +
 +
 +
  
  

Revision as of 11:29, 3 October 2016

Result of Diacetyl Volatile Test

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

Result of Cinnemaldehyde Volatile Test

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