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

fix(chart): resolve issue #6544 with line chart sorting #6621

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

BQXBQX
Copy link
Contributor

@BQXBQX BQXBQX commented Mar 1, 2025

This commit fixes issue #6544 by:

  • Implementing proper domain-based sorting in the sortQuantitative transform
  • Adding support for slicing sorted domains
  • Creating a test case that demonstrates the fix
  • Enhancing the sort transform to handle sorting by a different channel than the one being displayed
Checklist
  • npm test passes
  • commit message follows commit guidelines
Description of change
  • fixed: 折线图按Y轴降序排序 #6544
  • Sort 函数的处理会对 domain 的重新赋值,会导致 domain 的间隔隐藏值的展示(当宽度很小时,domain 还是会适当省略)(单测 gammaRandomLineSortXQuantitative.svg 变化的原因
image
  • 文档是否需要更新? 我对 ordinal 的理解是:若数据是折线图这种数据连续性强的图需要设置 false,ordinal 是否要对数据的连续性前后关系进行重新排序,true 只对 domain 进行重新排序,false 同时对 domain 和数据的连续性前后关系进行重新排序。

This commit fixes issue antvis#6544 by:
- Implementing proper domain-based sorting in the sortQuantitative transform
- Adding support for slicing sorted domains
- Creating a test case that demonstrates the fix
- Enhancing the sort transform to handle sorting by a different channel than the one being displayed
@coveralls
Copy link

coveralls commented Mar 1, 2025

Pull Request Test Coverage Report for Build 13653244175

Details

  • 15 of 15 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.002%) to 86.696%

Totals Coverage Status
Change from base Build 13450352204: -0.002%
Covered Lines: 10599
Relevant Lines: 11851

💛 - Coveralls

@hustcc
Copy link
Member

hustcc commented Mar 6, 2025

@pearmini 没有问题,可行的话,我就合并了。

@pearmini
Copy link
Member

pearmini commented Mar 6, 2025

@hustcc 可以!@BQXBQX 辛苦啦!

@hustcc hustcc merged commit 7000e20 into antvis:v5 Mar 6, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

折线图按Y轴降序排序
4 participants