GWT visualization best practices

I am new to Google Visualization for GWT and I need help. Can someone tell me which one is best to use a DataTable (data for visualization) with GWT RPC. The reason DataTable is not serializable, and I have a lot of data. I want to use GWT RPC because I use Java on the server side. I know that the DataTable.toJson method is in the visualization package, but it is not yet packaged in the gwt.visualization package. I tried this on my own to associate it with JSNI in my GWT code, but I failed. Is anyone succeeding, or is there some other approach to solve this problem.

thanks

+4
source share
3 answers

What I did was send data from the server to the client and create a DataTable on the client side.

I think this is a less dirty method :)

0
source

The problem is that its incredibly slow ... I tried adding ~ 800 values ​​to AnnotatedTimeline , and it took about 10.5 seconds to redraw it. Chrome network analytic tool says that the server request takes 200 ms .. the rest of the time was lost when creating a datatable on the client side.

The usual way is to use a query object to retrieve data. this object will do all the data creation created for you. But I still have not found a way to send such a request without typing the entire URL in one line. IMHO there must be some way to do something like calling RPC ... But it seems that there are no good tutorials on the Internet ... Or maybe I have something wrong :)

0
source

I think the 'Query' object is the best way to get a datatable. Create a datasourceservlet and get the datatable using the response.getDataTable () method. An example is here.

0
source

All Articles