Introducing InstaGraph!
















Usage: Download The Source!
var mainGraph = new InstaGraph(); // Creates new canvas element with default window options

mainGraph.graphFunction(function(x){return 3*x+5;}); //Graphs a function to the internal canvas element

mainGraph.graphPolar(function(theta){return Math.sin(theta*4)*5;}); //Alternatively use graphPolar to graph in polar mode

document.getElementById("MainGraph").appendChild(MainGraph.getFinishedGraph()); //embeds canvas into HTML DOM

mainGraph.clear(); //Clear the graph before changing graph (graphs can be edited/reused and will refresh in the DOM)

mainGraph.graphFunction("3*x+2") //Pass in strings OR functions (Both must be valid Javascript so far...)