Custom DataTable

17 views
Skip to first unread message

czibula istvan

unread,
Aug 11, 2011, 5:03:20 PM8/11/11
to Google Visualization API
Hi,

I'm working on a GWT project and I want to include some charts into
the existing application.
I already have the necessary data on the client (browser) side in
some custom objects and i need an efficient way to serve this data as
input for the chart.
Constructing a DataTable would create o copy of the data, so I was
thinking that maybe there is a way to create a bridge between my data
format and the data format required by the charts.
Can I avoid the data duplication?

Regards,
Istvan

asgallant

unread,
Aug 12, 2011, 8:40:00 AM8/12/11
to google-visua...@googlegroups.com
AFAIK, the charts require a visualization dataTable object (or a dataView object derived from a dataTable) to function.  It is possible to read the data out of a dataTable object, though, so if you are dead set against having duplicate data, you could use a dataTable object as the primary source.

Xavier Gumara

unread,
Aug 13, 2011, 2:24:08 PM8/13/11
to Google Visualization API
Well, you can keep your custom objects in your existing application
and duplicate only the information that you want to render in a chart
and you minimize dupplicates.

Also, if charts are the only type of data output in your application,
consider saving the information in your client with DataTable
structures.
Reply all
Reply to author
Forward
0 new messages