Team:Groningen/Graphs/model

From 2009.igem.org

(Difference between revisions)
m
Line 9: Line 9:
height: '8cm',
height: '8cm',
axes: {x: {title: "Dit is de X as", minorLabels: false}, y: {title: "Dit is de Y as", vertical: true} },
axes: {x: {title: "Dit is de X as", minorLabels: false}, y: {title: "Dit is de Y as", vertical: true} },
 +
{{defaultPlot}}
 +
}
 +
 +
 +
{
 +
script: "var growthFactorAnswer=Number(document.getElementById('growthFactorAnswer').value);\
 +
        var d=[{title:'As',data:[],args:[]}];\
 +
        for(var i=0; i<=30; i++) {\
 +
          var f=i;\
 +
          d[0].data.push({x:f,y:f*f*growthFactorAnswer});\
 +
        } d;",
 +
width: '10cm',
 +
height: '8cm',
 +
axes: {x: {title: "Dit is de X as ???????", minorLabels: false}, y: {title: "Dit is de Y as????????", vertical: true} },
{{defaultPlot}}
{{defaultPlot}}
}
}

Revision as of 09:28, 26 August 2009

{ script: "var growthFactor =Number(document.getElementById('growthFactor').value);\

        var d=[{title:'As',data:[],args:[]}];\
        for(var i=0; i<=30; i++) {\
          var f=i;\
          d[0].data.push({x:f,y:f*f*growthFactor});\
        } 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'} } }


{ script: "var growthFactorAnswer=Number(document.getElementById('growthFactorAnswer').value);\

        var d=[{title:'As',data:[],args:[]}];\
        for(var i=0; i<=30; i++) {\
          var f=i;\
          d[0].data.push({x:f,y:f*f*growthFactorAnswer});\
        } 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'} } }