Team:Groningen/Graphs/Totalmodel
From 2009.igem.org
(Difference between revisions)
m |
|||
Line 2: | Line 2: | ||
script: "var modelData=document.getElementById('Totalmodel').data;\ | script: "var modelData=document.getElementById('Totalmodel').data;\ | ||
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. | + | if (modelData!=undefined) for(var i=0; i<modelData.Time.length; i++) {\ |
- | d[0].data.push({x:modelData. | + | d[0].data.push({x:modelData.Time[i],y:modelData.AsIn[i]});\ |
- | d[1].data.push({x:modelData. | + | d[1].data.push({x:modelData.Time[i],y:modelData.AsEx[i]});\ |
} d;", | } d;", | ||
width: '10cm', | width: '10cm', |
Revision as of 11:30, 16 September 2009
{ script: "var modelData=document.getElementById('Totalmodel').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: "X-as", minorLabels: false}, y: {title: "Y-as", vertical: true} }, plots: { 'default': {type: 'Lines'} } }