Difference between revisions of "Google style chart - interactive"

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

Revision as of 09:49, 6 July 2011