Google chart animation causes legend to flash

518 views
Skip to first unread message

Mike O'Connell

unread,
Aug 28, 2014, 6:02:06 AM8/28/14
to google-c...@googlegroups.com
Hello,

When doing long animations on a chart it causes the legend to disappear or flash when doing short animations. 

I understand that the legend needs to be rebuilt to display the information but can it not be done the same way as the x axis labels?

Thanks

Daniel LaLiberte

unread,
Aug 28, 2014, 12:21:12 PM8/28/14
to google-c...@googlegroups.com
We made a change that will be in the upcoming release (now available in 1.1) such that the legend is not animated, but will be hidden instead during the animation.  The legend animations were sometimes useful if you change what is shown in the legend, but otherwise not.

By the way, you will also be able to animate changes in the chart size and chart area, which used to simply disable animation.


--
You received this message because you are subscribed to the Google Groups "Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chart-a...@googlegroups.com.
To post to this group, send email to google-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Mike O'Connell

unread,
Nov 13, 2014, 12:59:29 AM11/13/14
to google-c...@googlegroups.com
Apologies for the late reply, is there any way to disable the 'hiding' functionality and rather just show the legend animation? I am currently using 1.1 which is the reason why the legend disappears for the duration of the animation which is incredibly frustrating.

Thanks for your feedback.
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Nov 13, 2014, 8:25:20 AM11/13/14
to google-c...@googlegroups.com
The general problem is that the whole chart, including the legend, is erased and redrawn at each step of the animation.  So if any part of the display is to not flash, it must be redrawn correctly at each stage of the animation.  Animating the legend changes seemed fairly pointless relative to other things, and it got more problematic when I enabled the animation of the chart size changes, which I believe is more valuable.   Same with the title and axis titles.  

I can restore animation of the legend and titles under more constraints to avoid the complications, but I am not sure this will make it for the next release.
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Kevin Hofmaenner

unread,
Feb 20, 2016, 11:52:54 AM2/20/16
to Google Chart API
Hi Daniel,

Thanks for responding. Do you know if anything pertaining to the legend disappearing during animation has changed? The animation is a very nice touch but after complete, the legend just sort of pops out of nowhere, not very gracefully.

Thanks for any info.

Kevin

Daniel LaLiberte

unread,
Feb 20, 2016, 9:42:58 PM2/20/16
to google-c...@googlegroups.com
Sorry Kevin. We haven't done any work on reenabling the legend animation.  Not sure when we will be able to get to it.


For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages