Data plot: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 24: Line 24:
};
};


var clear = function() {
var clearBoard = function() {
alert('X');
     JXG.JSXGraph.freeBoard(brd);  
     JXG.JSXGraph.freeBoard(brd);  
     brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-400],axis:true});
     brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-400],axis:true});
Line 41: Line 40:
<input type="button" value="plot data" onClick="plotData()">
<input type="button" value="plot data" onClick="plotData()">
<input type="button" value="clear input" onClick="clearInput()">
<input type="button" value="clear input" onClick="clearInput()">
<input type="button" value="clear all" onClick="clear()">
<input type="button" value="clear all" onClick="clearBoard()">
<textarea id="in_data" cols=20 rows=15>
<textarea id="in_data" cols=20 rows=15>
  3591 ; 7612  
  3591 ; 7612  

Revision as of 23:38, 11 February 2010