Difference between revisions of "Data plot"

From JSXGraph Wiki
Jump to navigationJump to search
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 01:38, 12 February 2010