There are multiple ways to achieve this -

If you want to continue generating images in java, you will also have
to write a Servlet which returns the BufferedImage in one of the
formats (gif/jpeg etc). Then, in your ImageWidget you would give the
URL for your servlet. In the servlet, you would do something like this
-
a) Read the request parameters and created a BufferedImage
b) Set the appropriate content-type request headers to the tell the
browser that you are sending an image ('image/jpg' or 'image/gif'
etc)
c) Use the ImageIO class to copy the BufferedImage to the servlets
output stream

You can also take a look at FusionCharts. It provides a flash based
client side graph/chart library. In this case, you would have to
create an XML in your client side code and then pass it to
FusionCharts using its Javascript API.



On Aug 29, 8:47 pm, Nether <[email protected]> wrote:
> My goal is to make a chart which shows standard deviations as a
> gradient on the vertical axis.  I don't think it is easy to do this in
> the browser, so what I plan on doing is having the server render the
> chart to a BufferedImage and sending that to the client to display in
> an "Image" widget.
>
> The problem is that the Image widget only takes a URL, but how do I
> give it a bufferedimage?
>
> Also, is this the best solution for me to be using for making this
> gradient chart?
>
> Thanks for your time.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to