Team:Groningen/Graphs/AccumulationFactor

From 2009.igem.org

(Difference between revisions)
m
m
Line 2: Line 2:
script: "var data = document.getElementById('accumulationFactorData').data;\
script: "var data = document.getElementById('accumulationFactorData').data;\
         var d=[{title:'As(III)<sub>in</sub>T',data:[],args:{plot:'inner',{{:Team:Groningen/Styles/As(III)}}}},\
         var d=[{title:'As(III)<sub>in</sub>T',data:[],args:{plot:'inner',{{:Team:Groningen/Styles/As(III)}}}},\
-
                 {title:'ars/arsT',data:[],args:{plot:'fraction',{{:Team:Groningen/Styles/As(III)}}}}];\
+
                 {title:'As(III)<sub>in</sub>T/As(III)<sub>in</sub>',data:[],args:{plot:'fraction',{{:Team:Groningen/Styles/As(III)}}}}];\
         d[1].args.stroke.style = 'Dash';\
         d[1].args.stroke.style = 'Dash';\
         if (!data) data = {AsT:[0],AsinT:[0],arsFraction:[0]};\
         if (!data) data = {AsT:[0],AsinT:[0],arsFraction:[0]};\
Line 8: Line 8:
           var f=data.AsT[i]*1e6;\
           var f=data.AsT[i]*1e6;\
           d[0].data.push({x:f,y:data.AsinT[i]*1e6});\
           d[0].data.push({x:f,y:data.AsinT[i]*1e6});\
-
           d[1].data.push({x:f,y:data.arsFraction[i]});\
+
           d[1].data.push({x:f,y:data.accumulationFactor[i]});\
         }\
         }\
         d;",
         d;",
width: '10cm',
width: '10cm',
height: '8cm',
height: '8cm',
-
axes: {x: {title: "As(III)T (µM)", minorLabels: false}, y: {title: "Concentration (µM)", vertical: true, min: 0}, yf: {title: "Fraction", vertical: true, min: 0, max: 1}},
+
axes: {x: {title: "As(III)T (µM)", minorLabels: false}, y: {title: "Concentration (µM)", vertical: true, min: 0}, yf: {title: "Factor", vertical: true, min: 1}},
plots: { 'inner': {type: 'Lines', vAxis: 'y'}, 'fraction': {type: 'Lines', vAxis: 'yf'} }
plots: { 'inner': {type: 'Lines', vAxis: 'y'}, 'fraction': {type: 'Lines', vAxis: 'yf'} }
}
}

Revision as of 08:39, 21 September 2009

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

        var d=[{title:'As(III)inT',data:[],args:{plot:'inner',stroke: { color: '#FF4500' }}},\
               {title:'As(III)inT/As(III)in',data:[],args:{plot:'fraction',stroke: { color: '#FF4500' }}}];\
        d[1].args.stroke.style = 'Dash';\
        if (!data) data = {AsT:[0],AsinT:[0],arsFraction:[0]};\
        for(var i=0; i<data.AsT.length; i++) {\
          var f=data.AsT[i]*1e6;\
          d[0].data.push({x:f,y:data.AsinT[i]*1e6});\
          d[1].data.push({x:f,y:data.accumulationFactor[i]});\
        }\
        d;",

width: '10cm', height: '8cm', axes: {x: {title: "As(III)T (µM)", minorLabels: false}, y: {title: "Concentration (µM)", vertical: true, min: 0}, yf: {title: "Factor", vertical: true, min: 1}}, plots: { 'inner': {type: 'Lines', vAxis: 'y'}, 'fraction': {type: 'Lines', vAxis: 'yf'} } }