Data plot: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="500">
<jsxgraph width="600" height="500">
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,-100,25000],axis:true});
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-100],axis:true});
var c = brd.create('curve',[[0,1],[0,1]],{strokeColor:'red'});
var c = brd.create('curve',[[0,1],[0,1]],{strokeColor:'red'});


Line 16: Line 16:
     brd.update();
     brd.update();
}
}
</jsxgraph>
</jsxgraph>
<html>
<form>
<input type="button" value="plot data" onClick="plotData()">
<textarea id="in_data" cols=20 rows=15>
1; 2
3; 4
2; 7
</textarea>
</form>
</html>

Revision as of 23:06, 11 February 2010