Team:Groningen/Graphs/model

From 2009.igem.org

(Difference between revisions)
 
Line 3: Line 3:
         var d=[{title:'AsIn',data:[],args:[]},{title:'AsEx',data:[],args:[]}];\
         var d=[{title:'AsIn',data:[],args:[]},{title:'AsEx',data:[],args:[]}];\
         if (modelData!=undefined) for(var i=0; i<modelData.time.length; i++) {\
         if (modelData!=undefined) for(var i=0; i<modelData.time.length; i++) {\
-
          // alert('i='+i+', time='+modelData.time[i]+', AsIn='+modelData.AsIn[i]+', AsEx='+modelData.AsEx[i]);\
 
           d[0].data.push({x:modelData.time[i],y:modelData.AsIn[i]});\
           d[0].data.push({x:modelData.time[i],y:modelData.AsIn[i]});\
           d[1].data.push({x:modelData.time[i],y:modelData.AsEx[i]});\
           d[1].data.push({x:modelData.time[i],y:modelData.AsEx[i]});\

Latest revision as of 13:50, 26 August 2009

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

        var d=[{title:'AsIn',data:[],args:[]},{title:'AsEx',data:[],args:[]}];\
        if (modelData!=undefined) for(var i=0; i<modelData.time.length; i++) {\
          d[0].data.push({x:modelData.time[i],y:modelData.AsIn[i]});\
          d[1].data.push({x:modelData.time[i],y:modelData.AsEx[i]});\
        } d;",

width: '10cm', height: '8cm', axes: {x: {title: "Dit is de X as", minorLabels: false}, y: {title: "Dit is de Y as", vertical: true} }, plots: { 'default': {type: 'Lines'} } }