As soon as the next version is ready (very soon hopefully), http://graph.tk/ will by replaced with the beta version currently available at http://aantthony.github.com/graph.tk/. The "Powerful Method" API described below is for new version. Sorry for any inconveniences.
Use the following code to generate a graph.
<iframe src="http://graph.tk/" id="my_graph" style="width:500px;height:400px">
</iframe>
<script>
var my_graph=document.getElementById("my_graph");
my_graph.onload=function(){
function g(m){
my_graph.contentWindow.postMessage(m,"http://graph.tk");
};
g("add:x^3+1");
g("add:e^x");
// g("block"); - Block movement by user
g("center:0,0");
}
//Methods include: add, block, empty, scale, translate, center
</script>
Specify the equations via use of the url hash. An example: http://graph.tk/#y=x^2
<iframe src="http://graph.tk/#y=sin(x)"></iframe>
« about graph.tk