So far I've been able to make a straight line graph sort of thing using circles and assigning to them a random x coordinate, and setting y equal to x. This worked.
The trouble I'm having is with Math.pow() to do powers of x. It doesn't seem to be working. The circles don't appear anywhere, but the screen doesn't even get stretched (which is what I'd expect to happen if shapes go outside the boundaries).
var rangeCX = Math.round(Math.random() * 500);
var resultCX = rangeCX;
var resultCY = Math.pow(rangeCX,2);
circle.setAttribute("cx",resultCX);
circle.setAttribute("cy",resultCY);
I'm using SVG to display the circles.