Difference between revisions of "Google style chart - interactive"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 26: | Line 26: | ||
p.num = i; // memorize the number of this point in the array | p.num = i; // memorize the number of this point in the array | ||
− | p.rendNode.onclick = | + | p.rendNode.onclick = function() { |
− | var v = prompt("New value:", | + | var v = prompt("New value:", p.Y())*1.0; |
− | this.setPosition(JXG.COORDS_BY_USER, | + | this.setPosition(JXG.COORDS_BY_USER, p.X(), v); |
− | y[ | + | y[p.num] = v; |
brd.update(); | brd.update(); | ||
− | } | + | }; |
points.push(p); | points.push(p); |