Difference between revisions of "Real-time graphing"

From JSXGraph Wiki
Jump to navigationJump to search
(New page: <html> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script> </html> <jsxgraph width="700" height="400"> var hi, lo, brd, periodical = null,...)
 
Line 3: Line 3:
 
</html>
 
</html>
 
<jsxgraph width="700" height="400">
 
<jsxgraph width="700" height="400">
var hi, lo, brd, periodical = null,
+
var brd, g,  
    brd, g, txt, val,
 
 
     x = [],
 
     x = [],
 
     y = [];
 
     y = [];
Line 35: Line 34:
  
 
Start = function() {
 
Start = function() {
  if (periodical==null) {
+
    periodical = setInterval(fetchData,500);  // Start the periodical update
      periodical = setInterval(fetchData,500);  // Start the periodical update
 
  }
 
 
};
 
};
  

Revision as of 10:09, 18 December 2009