Build charts with data from mysql database

Thanks for filling out the missing parts of the post.

For those following along, looks like the answer to the question is posted here;