Is there any way I can add a Chart widget into cells in a celltable?

29 views
Skip to first unread message

Jian Lu

unread,
Dec 1, 2011, 5:51:05 PM12/1/11
to google-we...@googlegroups.com
Basically I have a chart widget created as documented here: http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=VisualizationGettingStarted

The problem is I need to add this chart into my CellTable, and CellTable doesn't take Widgets.

Is there anyway I can achieve that?

Thanks!

-Jian

-sowdri-

unread,
Dec 2, 2011, 2:19:55 AM12/2/11
to google-we...@googlegroups.com
Cells and widgets are 2 different ways to render info on the screen. While the former uses innerHtml, the later uses DOM level manipulations for rendering the data. 

There is a proposal to come up with cell backed widgets, I'm not sure about the implementation roadmap.

I'm not sure why you are trying to embed widget in cell table. But if you really have to do it, try image charts (http://code.google.com/apis/chart/image/ ). You can create custom cells for each of the chart type you use and you can embed this into the celltable. 

But you will lose the interactivity though :(

Hope this helps,
-sowdri-

Jian Lu

unread,
Dec 2, 2011, 4:07:43 AM12/2/11
to google-we...@googlegroups.com
Thanks a bunch for pointing to the image charts, which seems quite promising for solving my problem. 

The reason I was trying to add a widget to the cell is I want to embed a chart created by Google Chart Tools into my cell table, and the chart created by Google Chart Tools is in the form of a widget, which will eventually be rendered as an iframe with embeded js. 

I will take a look at the image charts and report back. Thanks!

-Jian

-sowdri-

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4vFFCJpHv74J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jian Lu

unread,
Dec 3, 2011, 6:22:35 PM12/3/11
to google-we...@googlegroups.com
the image charts fit our needs well, and provides a rich set of parameters to tweek the charts, and it is very simple to integrate. LOVE IT. 

It seems by nature the chart is static (unless I missed something) and is not interactive as the charts in Chart Tools, but we can live with that for now. 

Thanks a lot for pointing me to the Image Charts. 

-Jian

-sowdri-

unread,
Dec 4, 2011, 12:03:05 AM12/4/11
to google-we...@googlegroups.com
Good the hear that! 

Ya the image charts are static by nature,, 
>> But you will lose the interactivity though :(

-sowdri-
Reply all
Reply to author
Forward
0 new messages