简体   繁体   English

Google图表栏动画

[英]Google-Chart Bar Animation

Which property of google chart adds the Animation in column chart from top to bottom ? Google图表的哪个属性从顶部到底部在柱形图中添加了Animation?

By Adding 通过增加

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

in option is enough or we need to add something else also for that ? 选项是否足够,或者我们还需要为此添加其他内容?

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}
    };

You should delete the last comma , . 您应该删除最后一个逗号,

Try with this: 试试这个:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM