Vishvendu Palawat
Vishvendu Palawat

Reputation: 576

Google-Chart Bar Animation

Which property of google chart adds the Animation in column chart from top to bottom ?

By Adding

animation: {duration: 10000, easing: 'out',} 

in option is enough or we need to add something else also for that ?

Upvotes: 0

Views: 1747

Answers (2)

oscarvady
oscarvady

Reputation: 450

You should delete the last comma ,.

Try with this:

animation: {duration: 10000, easing: 'out'}

Upvotes: 0

faby
faby

Reputation: 7558

yes it is enought add

animation: {
            duration: 1000
        }

have a look in this example that I have found

refer this page for documentation about animation property

example

function init() {
    var options = {
      width: 400,
      height: 240,
      animation:{
        duration: 1000,
        easing: 'out'
      },
      vAxis: {minValue:0, maxValue:1000}
    };

Upvotes: 1

Related Questions