I was looking to put together a chart with HTML Canvas using Javascript as well. The required data is in the MySQL database. However, how can I interact and access this data from the Javascript bank, since it is not safe to use that language for the connection to the bank? Would a JSON page be an appropriate solution?