If anyone want help integrating jpgraph with moodle!1
check out dvreport block available on moodle/blocks,
Its outdated designed for moodle 1.9 and won't run on your moodle but you can refer the code!!
And for further help you can post on moodle forum!!
If you are lucky enough someone will help yop!!! :D