Dojo图表,替换动画中的线性加速度
使用Dojo中定义的图表模块(此处为条形图)时,可以设置如下动画:Dojo图表,替换动画中的线性加速度,dojo,dojox.charting,Dojo,Dojox.charting,使用Dojo中定义的图表模块(此处为条形图)时,可以设置如下动画: chart.addPlot('default', { type: 'Columns', markers: true, animate: {duration: 1000} }); 我的问题如下: require(["dojo/fx/easing", ...], function(easing, ...){ chart.addPlot('default', { type: 'Columns'
chart.addPlot('default', {
type: 'Columns',
markers: true,
animate: {duration: 1000}
});
我的问题如下:
require(["dojo/fx/easing", ...], function(easing, ...){
chart.addPlot('default', {
type: 'Columns',
markers: true,
animate: {duration: 1000, easing: easing.cubicIn}
});
});
- 如何将动画的线性加速度替换为类似“重力”的加速动画
提前谢谢 您可以尝试以下方法:
require(["dojo/fx/easing", ...], function(easing, ...){
chart.addPlot('default', {
type: 'Columns',
markers: true,
animate: {duration: 1000, easing: easing.cubicIn}
});
});
有关各种缓和功能,请参见dojo/fx/easing