Google Visualization API

17 views
Skip to first unread message

malcolm...@gmail.com

unread,
May 30, 2008, 12:34:38 AM5/30/08
to Google Web Toolkit
Will the Google Visualization API be made available from the GWT API?

Mal.

Peter Blazejewicz

unread,
May 30, 2008, 11:37:24 AM5/30/08
to Google Web Toolkit
hi Mal,

#1
add issue ticket (and star it) on google gwt api project issue list,

#2
I've done many ajax apis functionality myself recently, including full
Ajax Loader implementation, Language API and some of Visualization API
with 1.5 new JavaScriptObject implementation. What is functionality
form V* api you would use? Maybe I could help,

regards,
Peter

On May 30, 6:34 am, "m.gor...@bom.gov.au" <malcolm.gor...@gmail.com>
wrote:

John

unread,
Jun 4, 2008, 2:26:03 AM6/4/08
to Google Web Toolkit
I too, am interested on this.

How would I import a visualization object into GWT?
Is there a way of java mapping of the visualization api in GWT?

Thanks

-John

On May 30, 8:37 am, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:

Jeremiah Elliott

unread,
Jun 4, 2008, 10:05:53 AM6/4/08
to Google-We...@googlegroups.com
Check me off as "Me Too". In the mean time I have been using it via
JSNI with help from peter.

Here is the thread that may be of help to you. So far its doing what I
want, although if there is ever a gwt-visualization package I will
re-write.
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/583dc26de8595958

-Jeremiah Elliott

John

unread,
Jun 5, 2008, 7:02:56 PM6/5/08
to Google Web Toolkit
Seems it wouldn't be too bad writing gViz wrapper into GWT. Anyone
wants to help me with it?

-john

On Jun 4, 7:05 am, "Jeremiah Elliott" <jeremi...@gmail.com> wrote:
> Check me off as "Me Too". In the mean time I have been using it via
> JSNI with help from peter.
>
> Here is the thread that may be of help to you. So far its doing what I
> want, although if there is ever a gwt-visualization package I will
> re-write.http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> -Jeremiah Elliott

Peter Blazejewicz

unread,
Jun 6, 2008, 11:56:50 AM6/6/08
to Google Web Toolkit
hi John,

will you be using gwt 1.5RC (and later when released)?
(this release really simplify things)

regards,
Peter

John

unread,
Jun 8, 2008, 11:21:34 PM6/8/08
to Google Web Toolkit
Hi Peter:

Yes. I will be.

I will post what I have once I have something.

Thanks

-John

On Jun 6, 8:56 am, Peter Blazejewicz <peter.blazejew...@gmail.com>

John

unread,
Jun 9, 2008, 5:21:28 AM6/9/08
to Google Web Toolkit
I hacked up something to get the piechart working via gwt.

This is not the complete implementation, I still need to learn more
about gwt.

You can download from:
www.browseengine.com/src.tar

included is the modified default MyApplication.

I will add to it once I figure out more about gwt.

Let me know how it works out for you.

Thanks

Peter:

I can't figure out how to build this as a separate jar to be
included into my gwt project. I had to move the src code into my
project for it to work.

-John

Peter Blazejewicz

unread,
Jun 9, 2008, 5:30:49 AM6/9/08
to Google Web Toolkit
hi John,

when I found time I'll give a help to you, After seeing your files I
think you're writing to complex code,
consider such 1.5RC implementation of google.visualization.DataTable
compared to your current one:

package google.visualization;

import com.google.gwt.core.client.JavaScriptObject;

public class DataTable {
static class DataTableImpl extends JavaScriptObject {
static native DataTableImpl create()
/*-{
return new $wnd.google.visualization.DataTable();
}-*/;

protected DataTableImpl() {
}

public native final void addColumn(String dataType, String name)
/*-{
this.addColumn(dataType, name);
}-*/;

public final native void addRows(int i)
/*-{
this.addRows(i);
}-*/;

public final native void setValue(int row, int column, String value)
/*-{
this.setValue(row, column, value);
}-*/;

public final native void setValue(int row, int column, int value)
/*-{
this.setValue(row, column, value);
}-*/;

}

DataTableImpl impl;

public DataTable() {
impl = DataTableImpl.create();
}

public void addColumn(String dataType, String name) {
impl.addColumn(dataType, name);
}

public void addRows(int i) {
impl.addRows(i);
}

public void setValue(int row, int column, String value) {
impl.setValue(row, column, value);
}

public void setValue(int row, int column, int value) {
impl.setValue(row, column, value);
}

}

with such implementation it can be used "as is" with code pasted from
Google Ajax api docs:

DataTable data = new DataTable();
data.addColumn("string", "Task");
data.addColumn("number", "Hours per Day");
data.addRows(5);
data.setValue(0, 0, "Work");
data.setValue(0, 1, 11);
data.setValue(1, 0, "Eat");
data.setValue(1, 1, 2);
data.setValue(2, 0, "Commute");
data.setValue(2, 1, 2);
data.setValue(3, 0, "Watch TV");
data.setValue(3, 1, 2);
data.setValue(4, 0, "Sleep");
data.setValue(4, 1, 7);

regards,
Peter

John

unread,
Jun 9, 2008, 12:05:17 PM6/9/08
to Google Web Toolkit
Hi Peter:

Thanks!

I thought according to the javadoc, JavaScriptObject should NOT
be extended. I am following the paradigm from Gears' source code.

Thanks

-John

On Jun 9, 2:30 am, Peter Blazejewicz <peter.blazejew...@gmail.com>

John

unread,
Jun 9, 2008, 12:18:28 PM6/9/08
to Google Web Toolkit
Just realized I could have just used the issue tracker:
Issue 2511

Thanks
-John

John

unread,
Jun 9, 2008, 7:26:37 PM6/9/08
to Google Web Toolkit
created a project under google code:

http://code.google.com/p/gwt-gviz/

please let me know if you can help.

thanks

-John
> > > > > > > > want, although if there is ever a gwt-visualizationpackage I will
> > > > > > > > re-write.http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > > > > > > > -Jeremiah Elliott
>
> > > > > > > > On Wed, Jun 4, 2008 at 1:26 AM, John <john.w...@gmail.com> wrote:
>
> > > > > > > > > I too, am interested on this.
>
> > > > > > > > > How would I import avisualizationobject into GWT?
> > > > > > > > > Is there a way of java mapping of thevisualizationapi in GWT?
>
> > > > > > > > > Thanks
>
> > > > > > > > > -John
>
> > > > > > > > > On May 30, 8:37 am, Peter Blazejewicz <peter.blazejew...@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >> hi Mal,
>
> > > > > > > > >> #1
> > > > > > > > >> add issue ticket (and star it) on google gwt api project issue list,
>
> > > > > > > > >> #2
> > > > > > > > >> I've done many ajax apis functionality myself recently, including full
> > > > > > > > >> Ajax Loader implementation, Language API and some ofVisualizationAPI
> > > > > > > > >> with 1.5 new JavaScriptObject implementation. What is functionality
> > > > > > > > >> form V* api you would use? Maybe I could help,
>
> > > > > > > > >> regards,
> > > > > > > > >> Peter
>
> > > > > > > > >> On May 30, 6:34 am, "m.gor...@bom.gov.au" <malcolm.gor...@gmail.com>
> > > > > > > > >> wrote:
>
> > > > > > > > >> > Will the GoogleVisualizationAPI be made available from the GWT API?
>
> > > > > > > > >> > Mal.

Miguel Méndez

unread,
Jun 11, 2008, 9:24:44 AM6/11/08
to Google-We...@googlegroups.com
Hi John,

I think it is great that you want to create GWT bindings for the visualization API.  There already is a project for these types of bindings: the gwt-google-apis (GALGWT) project.  If you are interested working on these bindings as part of that community, you should check out: Making GWT Better for how to get setup.  Get that lined up and we can create a branch for the development and get it integrated into the continuous build, etc.

GALGWT is near the end of a release cycle so these would be included in the next one.  

Cheers,
--
Miguel

John

unread,
Jun 12, 2008, 12:01:35 AM6/12/08
to Google Web Toolkit
Hi Miguel:

Sure, that's the perfect place for it.

Are you gonna be creating a branch for me to check in?

Thanks

John

On Jun 11, 6:24 am, "Miguel Méndez" <mmen...@google.com> wrote:
> Hi John,
> I think it is great that you want to create GWT bindings for the
> visualization API. There already is a project for these types of bindings:
> the gwt-google-apis <http://code.google.com/p/gwt-google-apis/> (GALGWT)
> project. If you are interested working on these bindings as part of that
> community, you should check out: Making GWT
> Better<http://code.google.com/webtoolkit/makinggwtbetter.html> for

Miguel Méndez

unread,
Jun 12, 2008, 8:05:27 AM6/12/08
to Google-We...@googlegroups.com
Hi John,

Could of things: did you sign and send back a CLA?  The Making GWT Better document talks about how to make contributions to GWT and the gwt-google-apis project uses the same rules.

I'll reach out to the internal Google Visualization API so that they can also provide feedback on the bindings.

Cheers,
--
Miguel

John

unread,
Jun 12, 2008, 11:46:10 AM6/12/08
to Google Web Toolkit
Done.
Let me know what you need me to do next.

Thanks

-John

On Jun 12, 5:05 am, "Miguel Méndez" <mmen...@google.com> wrote:
> Hi John,

Eric Ayers

unread,
Jun 13, 2008, 3:30:41 PM6/13/08
to Google-We...@googlegroups.com, Miguel Méndez
Hi John,

I was talking to Miguel today and we are excited about your contribution.

- I think that one thing you could work on is a sample "HelloViz"
type of application.
- You can also look at the "Making GWT Better" and reformat the code
so that it passes all the GWT "checkstyle" rules - its pretty easy
once Eclipse is setup.

Regards,
-Eric.

--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

John

unread,
Jun 14, 2008, 4:10:49 PM6/14/08
to Google Web Toolkit
Hi Eric:

I am working on the code convention and style setups.

Would you like me to add you or your team members to the project
so I can get some help?

Thanks

-John

On Jun 13, 12:30 pm, "Eric Ayers" <zun...@google.com> wrote:
> Hi John,
>
> I was talking to Miguel today and we are excited about your contribution.
>
> - I think that one thing you could work on is a sample "HelloViz"
> type of application.
> - You can also look at the "Making GWT Better" and reformat the code
> so that it passes all the GWT "checkstyle" rules - its pretty easy
> once Eclipse is setup.
>
> Regards,
> -Eric.
>
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages