The Chart API is simply a mechanism whereby one can submit an HTTP GET or POST request and receive an image file in return. This can be done by a web page on a hit-by-hit basis via an HTML img tag, though as you pointed out, this is rather wasteful. I am not familiar with Java servlets or JSPs, but from my understanding, one should be able to write a component to be called on a schedule, retrieve a set of images and store them in a database or filesystem for cached display by webpages.
I'm doing exactly that for the Android application I'm working on, though not on a schedule, but when the data the chart is meant to display is updated. I then only get a new chart when the data changes. On Tue, Jun 29, 2010 at 10:45 AM, MartinOShea <[email protected]> wrote: > Hello > > As I understand it, the Chart API uses HTTP POST or GET requests to > generate images in real time in web pages using IMAGE tags. However, > is it possible to use the API in such a way that the images are > generated by a scheduled program running on a server at regular > intervals? > > In my case, the images would be stored in a MySQL database and would > represent recently created datasets. The images would later be > displayed on a home page when somebody visited the site. What I'm > trying to do is avoid numerous possibly identical requests whenever > the home page is visited. > > The site will be made up of Java servlets and JSPs running under > Apache Tomcat. > > Thanks > > Martin O'Shea. > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-chart-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-chart-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.
