Difference between revisions of "Google style chart - interactive"

From JSXGraph Wiki
Jump to: navigation, search
Line 26: Line 26:
 
     p.highlight = function() {     
 
     p.highlight = function() {     
 
         var v = prompt("New value:",y1);
 
         var v = prompt("New value:",y1);
 +
        this.setPosition(JXG.COORDS_BY_USER,this.X(),v*1.0);
 
     }
 
     }
 +
 
     points.push(p);
 
     points.push(p);
 
     x.push(x1);
 
     x.push(x1);

Revision as of 09:46, 6 July 2011