• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using a ImageChart in GWT

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
@com.google.gwt.visualization.client.visualizations.ImageChart::createJso(Lcom/google/gwt/dom/client/Element;)([JavaScript object(262)]): $wnd.google.visualization.ImageChart 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.



Thanks.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You might want to check out https://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic