There is an GUI element in EJs which you just provide the equation for the curve and the ejs will draw it for you.
VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.


Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.