Difference between revisions of "Google style chart - interactive"

From JSXGraph Wiki
Jump to: navigation, search
Line 28: Line 28:
 
     p.rendNode.onclick = function() {     
 
     p.rendNode.onclick = function() {     
 
         var v = prompt("New value:", p.Y())*1.0;
 
         var v = prompt("New value:", p.Y())*1.0;
         this.setPosition(JXG.COORDS_BY_USER, p.X(), v);
+
         p.setPosition(JXG.COORDS_BY_USER, p.X(), v);
 
         y[p.num] = v;
 
         y[p.num] = v;
 
         brd.update();
 
         brd.update();

Revision as of 09:58, 6 July 2011