How could I display data from a mysql database within a chart?

Here's another link with an example (which I think is similar to what you are trying to do).