Javascript – Google Visualization Animation when chart loads for the first time

chartsgoogle-visualizationjavascript

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!

Best Answer

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