The moose likes GWT and the fly likes Using a ImageChart in GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Using a ImageChart in GWT" Watch "Using a ImageChart in GWT" New topic

Using a ImageChart in GWT

Albert Miller

Joined: Jul 14, 2013
Posts: 2
Hi, in first place, hi everyone, I hope I can get some useful info from what I post here at, at the same time, if I'm able to help people with their programming problems I'll be happy to do so.

I want to use a ImageChart in GWT so I can later transform it into a image file but I've tried this two ways and I don't see any other possible way.

1st way via javascript:

In file imagen.js I've the following:

But I get an error that constructor new google.visualization.ImageChart(document.getElementById('line_div')); is not valid, I wonder how can this be if I put this code in an html file it works perfectly, but whatever...

2nd way

Doing this I get the following error:;)([JavaScript object(262)]): $ is not a constructor

I know the data is different for each, but what's important is to get the image file, data doesn't mean anything right now.

So, I'm stuck with this.

If you can also point me out about how to do the transformation to an image file, I'd be very grateful, but first this is necessary in order to achieve that.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10828

Welcome to the Ranch.

You might want to check out

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Using a ImageChart in GWT
It's not a secret anymore!