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

refactor: 优化下玉珏图处理 stack 的代码 #2687

Merged
merged 3 commits into from
Jul 9, 2021
Merged

refactor: 优化下玉珏图处理 stack 的代码 #2687

merged 3 commits into from
Jul 9, 2021

Conversation

visiky
Copy link
Member

@visiky visiky commented Jul 8, 2021

PR includes

ref: #2685

原则: 最小化改动。既然是计算 yScale 最大值有问题,且问题出现在于处理 stack 的时候,没有根据 stack 后的数据进行计算。那就有两个方案:
1、G2 提供钩子获取 stack 处理后的数据
2、G2Plot 自己去获取 stack 后的数据(目前选择 方案2。但是比较简单滴进行处理而已,通过独立的 util 方法,具备内聚性,后续迭代优化逻辑更可控)

Screenshot

Before After

@visiky visiky requested a review from hustcc July 8, 2021 15:05
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2021

🎊 PR Preview 11a45bb has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2687.surge.sh?type=diff&date=2021-07-09

🕐 Build time: 78.281s

🤖 By surge-preview

@visiky visiky merged commit 871b3c5 into master Jul 9, 2021
@visiky visiky deleted the fix-2685 branch July 9, 2021 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

玉珏图没有考虑isStack的情况
1 participant