Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support animation of graphic elements #5988

Closed
jonavila opened this issue Jun 13, 2017 · 2 comments
Closed

Support animation of graphic elements #5988

jonavila opened this issue Jun 13, 2017 · 2 comments
Labels
new-feature stale Inactive for a long time. Will be closed in 7 days.

Comments

@jonavila
Copy link
Contributor

One-line summary [问题简述]

Support animation of graphic elements

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.6.1
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

It would be great if when defining graphic elements, we could specify shape properties with a from and to settings. For example, when creating a custom series with circle items, I may want to animate the radius from 0 to some final value. Perhaps, the return value for renderItem function could look like:

return {
	type: 'circle',
	shape: {
		from: {
			cx: 10,
			cy: 20,
			r: 0
		}, 
		to: {
			cx: 10,
			cy: 20,
			r: 15
		}
	}
}

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

In the mean time, I've been trying to find a way to call animateTo function for each of the shapes created, but haven't found a way to do that.

@jonavila
Copy link
Contributor Author

@pissang Have you guys given any more thought to the possibility of specifying animation of graphic elements in custom series? Wonder if there's a way to achieve this today.

@stale
Copy link

stale bot commented Jun 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Inactive for a long time. Will be closed in 7 days. label Jun 14, 2020
@stale stale bot closed this as completed Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants