Data plot: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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 | 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> |