Team:Groningen/Graphs/PromoterActivation

From 2009.igem.org

(Difference between revisions)
(New page: { script: "var data = document.getElementById('promoterActivationData').data;\ var d=[{title:'()',data:[],args:{plot:'in'}},\ {title:'(pro=0)',data:[],args:{plot:'...)
(Different data structure.)
Line 1: Line 1:
{
{
script: "var data = document.getElementById('promoterActivationData').data;\
script: "var data = document.getElementById('promoterActivationData').data;\
-
         var d=[{title:'()',data:[],args:{plot:'in'}},\
+
        if (!data) data = {ars:[],arsNP:[]};\
-
                 {title:'(pro=0)',data:[],args:{plot:'in'}}];\
+
         var d=[{title:'()',data:data.ars,args:{plot:'in'}},\
-
        if (!data) data = {time:[]};\
+
                 {title:'(pro=0)',data:data.arsNP,args:{plot:'in'}}];\
-
        for(var i=0; i<data.time.length; i++) {\
+
-
          var f=data.time[i]/60;\
+
-
          d[0].data.push({x:f,y:data.ars[i]*100});\
+
-
          d[1].data.push({x:f,y:data.arsNP[i]*100});\
+
-
        }\
+
         d;",
         d;",
width: '10cm',
width: '10cm',

Revision as of 11:30, 21 September 2009

{ script: "var data = document.getElementById('promoterActivationData').data;\

        if (!data) data = {ars:[],arsNP:[]};\
        var d=[{title:'()',data:data.ars,args:{plot:'in'}},\
               {title:'(pro=0)',data:data.arsNP,args:{plot:'in'}}];\
        d;",

width: '10cm', height: '8cm', axes: {x: {title: "Time (min)", minorLabels: false}, y: {title: "Unbound ars (%)", vertical: true, min: 0, max: 100}}, plots: { 'in': {type: 'Lines', vAxis: 'y'} } }