Google style chart - interactive: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 33: Line 33:
         var p = points[i+1];                      // The point number is one off
         var p = points[i+1];                      // The point number is one off
         var v = prompt("New value:", p.Y())*1.0;
         var v = prompt("New value:", p.Y())*1.0;
         p.setPosition(JXG.COORDS_BY_USER, p.X(), v);
         p.setPosition(JXG.COORDS_BY_USER, p.X(), v); // New coordinates for the point
         y[i] = v;
         y[i] = v;                                 // New coordinates for the curve
         brd.update();
         brd.update();
     };
     };

Revision as of 08:15, 6 July 2011