Have a llok at the below links:
 
http://jpgraph.net/download/manuals/chunkhtml/ch01s04.html 
 
http://jpgraph.net/doc/
 
http://kurup87.blogspot.co.uk/2012/12/php-with-jpgraph.html 
 
http://cases.azoft.com/jpgraph-data-visualization/