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,25000,-100],axis:true});
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-400],axis:true});
var c = brd.create('curve',[[0,1],[0,1]],{strokeColor:'red'});
var c = brd.create('curve',[[0],[0]],{strokeColor:'red'});


var plotData = function() {
var plotData = function() {
Line 22: Line 22:
<input type="button" value="plot data" onClick="plotData()">
<input type="button" value="plot data" onClick="plotData()">
<textarea id="in_data" cols=20 rows=15>
<textarea id="in_data" cols=20 rows=15>
1; 2
3; 4
2; 7
</textarea>
</textarea>
</form>
</form>
</html>
</html>

Revision as of 23:07, 11 February 2010