I needed some charts for a Drupal site and used the Google Charts module
The charts display Userpoints data - for the current user and overall
and
The code for #2 is
here
The maintainer of the Userpoints module likes the results, asked me to make a module, which I will add to Userpoints contrib.
You don't have to use the API in Drupal - it can be stand alone too
Google Charts API