Missing features

121 views
Skip to first unread message

JoyaleXandre

unread,
Mar 12, 2012, 1:17:02 PM3/12/12
to gwt-goo...@googlegroups.com
Is it me or the GWT Google Chart library doesn't have the animation
features? Is there any solution I can use to implement the animation present in the javascript api?

Can you help me please?

Ronald

unread,
Mar 12, 2012, 1:42:55 PM3/12/12
to gwt-goo...@googlegroups.com
On Monday, March 12, 2012 6:17:02 PM UTC+1, JoyaleXandre wrote:
Is it me or the GWT Google Chart library doesn't have the animation
features? Is there any solution I can use to implement the animation present in the javascript api?

I think you're right. There are no animation features in the GWT API. However, you could try to extend the current wrapper objects (hard) and add this functionality yourself or just use Google Chart Tools directly via JSNI (easy).

- Ronald

JoyaleXandre

unread,
Mar 12, 2012, 2:25:45 PM3/12/12
to gwt-goo...@googlegroups.com
Do you have an example I can use to familiarize me on how to extend the wrapper objects?

Ronald

unread,
Mar 12, 2012, 3:00:24 PM3/12/12
to gwt-goo...@googlegroups.com
Op maandag 12 maart 2012 19:25:45 UTC+1 schreef JoyaleXandre het volgende:

Do you have an example I can use to familiarize me on how to extend the wrapper objects?

You can just literally extend GWT API classes in Java. I did just that to enable setting double typed ranges on gauges (I added a few native methods to a class that extended Gauge.Options and that set this.greenFrom and this.greenTo for example). You should be able to do the same to set animation options to the option-class in question. You then must find out how to trigger the animation itself, because this is done by re-calling "chart.draw()" in pure JavaScript whereas in Java we can only add the graph object to a GWT UI Panel once.


- Ronald

Rui Afonso

unread,
Mar 31, 2012, 7:06:47 PM3/31/12
to gwt-goo...@googlegroups.com
Try GWT Charts. It is very similar to the visualization library, but supports animations and many other features.
Currently lacks documentation and is in alpha status, but work is being done.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages