antvis / antvis/G2Plot

请问@antv/g2plot的动画支持循环播放吗?

Open
#3,752 0 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

目前我看官网上的动画配置分为4个生命周期

- appear // 图表第一次加载时的入场动画
- enter // 图表绘制完成,发生更新后,产生的新图形的进场动画
- update // 图表绘制完成,数据发生变更后,有状态变更的图形的更新动画
- leave // 图表绘制完成,数据发生变更后,被销毁图形的销毁动画

但都属于一次性动画,或者数据变化后动画

想问问有没有方式可以实现,数据不变的情况下,循环播放某种动画。 需求是因为是要放在在大屏上,而大屏不会有人手动操作,加些循环播放的动画,整体效果会更好看些。

Contributor guide

Open the contributing guide

Research direction

Start by reading the animation configuration described in the issue, especially the appear, enter, update, and leave lifecycles, and trace how G2Plot handles them when data does not change. Determine whether a supported repeat mechanism can be specified and define completion as a documented or implemented way to loop an animation on a static chart.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.