2013-05-28 100 views
1

替換線性加速度當使用道場定義的圖表模塊(此處爲條形圖),存在設置這樣的動畫的可能性:道場圖表,在動畫

chart.addPlot('default', { 
    type: 'Columns', 
    markers: true, 
    animate: {duration: 1000} 
}); 

我的問題如下:

  • 如何用「重力」式加速動畫代替動畫的線性加速?

在此先感謝!

回答

2

您可以嘗試類似如下:

require(["dojo/fx/easing", ...], function(easing, ...){ 
    chart.addPlot('default', { 
     type: 'Columns', 
     markers: true, 
     animate: {duration: 1000, easing: easing.cubicIn} 
    }); 
}); 

見道場/ FX /放寬各種寬鬆政策的功能。

+0

嘿,非常感謝你的回答! –