Difference between revisions of "Real-time graphing"

From JSXGraph Wiki
Jump to navigationJump to search
Line 16: Line 16:
 
                 t = transport.responseText;
 
                 t = transport.responseText;
 
                 a = parseFloat(t);
 
                 a = parseFloat(t);
                 if (x.length<10) {
+
                 if (x.length<30) {
 
                     x.push(x.length);
 
                     x.push(x.length);
 
                 } else {
 
                 } else {
Line 28: Line 28:
 
                 }
 
                 }
 
                 brd.update();
 
                 brd.update();
document.getElementById('debug').innerHTML += t +' ';
 
 
             };
 
             };
 
     }});
 
     }});
Line 39: Line 38:
 
Start();
 
Start();
 
</jsxgraph>
 
</jsxgraph>
<html><div id="debug"></div></html>
 
 
  
 
[[Category:Examples]]
 
[[Category:Examples]]
 
[[Category:Charts]]
 
[[Category:Charts]]

Revision as of 10:11, 18 December 2009