Leveraging the Back-End System I’ve Written
Today a co-worker wanted to leverage the back-end Google Visualization system I have created for my web app. Given that I've got all the web services with database connections and the Google Visualization data generation, it made sense to look at the Google Visualization Gallery and see if they had something that would fit her needs. If they did, it would be relatively easy to make a page that issued an AJAX call to my server with the request for the database to be returned and placed into a simple x-y graph tool.
The first thing I needed to do was to subclass the GoogleVisualization class and create one that uses the back-end database connection as opposed to the in-memory database connection. This would allow her to execute queries against the back-end database, which was what she wanted. From there, all she had to do was to glue it together with a little HTML.
It took a while, but she's getting the hang of it.