Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Visualization Animation when chart loads for the first time

I would like to know if I can apply an animation to the charts on the first time it draws?

And not only when a change of data happens?

THanks!

like image 514
Tristan Jade Awat Avatar asked Mar 15 '12 05:03

Tristan Jade Awat


People also ask

How do I animate a chart in Google Slides?

How to add an animation: Open a presentation in Google Slides. Click the text or image you want to animate. Then click Insert > Animation. Click on Select an object to animate, scroll down and choose the animation you want to use.


1 Answers

UPDATED ANSWER

Google has updated chart options and added the option to animate the chart on the first time it draws.

So the only thing you have to do is psecify it in the options like that:

var options = {
            animation: {
                duration: 1500,
                startup: true //This is the new option
            }
        };

So you dont have to load an empty chart on the beggining or to do any other hack.

DEMO

like image 95
laaposto Avatar answered Nov 01 '22 22:11

laaposto