antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Disable animation not working #6444

gabrielrezk posted onGitHub

问题描述

Hi,

I am using G2Chart on my React project and, I am trying to disable all animations. I've seen here that by calling chart.animate(false) it should turn off all the animations but the animations are still there.

My code looks like this:

const chart = new G2Chart(options);

...

chart.options({
   ...
   animate: false // also tried null, undefined, and {enter: {duration: 0}, update: {duration: 0}, exit: {duration: 0}} based on [this](https://ant-design-charts.antgroup.com/en/options/plots/animation/overview#%E5%8A%A8%E7%94%BB%E7%B1%BB%E5%9E%8B-type)
});

chart.animate(false).render();

My version of @antv/g2 is 5.0.24.

重现链接

No response

重现步骤

Create a G2Chart and add .animate(false) before calling render.

预期行为

The animations would be turned off.

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests