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

折线图动画 #138

Closed
elaine1234 opened this issue Oct 24, 2019 · 0 comments
Closed

折线图动画 #138

elaine1234 opened this issue Oct 24, 2019 · 0 comments

Comments

@elaine1234
Copy link
Contributor

这边应该用 shapeData 里的数据
https://github.com/antvis/g2plot/blob/770b9f64d426da0fa7d520c2250714d2b8893ce6/src/plots/line/animation/clipInWithData.ts#L20
另 同一文件 96 行的 getPositionByRatio 方法可以用 g 里 path.getPoint(ratio) 替换。这样不管是折线还是 smooth 贝塞尔线条都是准的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants