+1  A: 

http://raphaeljs.com/ For the Javascript data representation and i guess use PHP to talk with the API.

Kieran Allen