I am using SurferTims web server example at http://playground.arduino.cc/Code/WebServerST
I want to add a graph to the web pages served up, that shows readings of an analogue input, to the arduino, over time.
I have found sample code at http://www.jscharts.com/how-to-use-line-graphs
var myData = new Array([10, 2], [15, 0], [18, 3], [19, 6], [20, 8.5], [25, 10], [30, 9], [35, 8], [40, 5], [45, 6], [50, 2.5]);
var myChart = new JSChart('chartid', 'line');
Not having any experience at web programming, I was wondering how I insert this code into the web server HTML so that it is syntactically correct and compiles in the IDE?