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

[Bug]: 配置autofit后,在进行图例filter交互后触发resize会导致显示不正确 #6714

Open
2 of 10 tasks
interstellarmt opened this issue Mar 27, 2025 · 2 comments · May be fixed by #6723
Open
2 of 10 tasks
Labels
bug 🐛 Something isn't working OSCP AntV Open Source Contribution Plan

Comments

@interstellarmt
Copy link
Contributor

interstellarmt commented Mar 27, 2025

Describe the bug / 问题描述

ant-design/ant-design-charts#2873

配置autoFit: true后,如果图表中存在分类图例,点击进行filter交互后,此时改变容器大小触发resize,显示不符合预期:

Image
经排查后不是饼图的特殊问题,具有普遍性,类似的还有折线图:
resize前:
Image
resize后:

Image
面积图:

Image

Reproduction link / 复现链接

https://stackblitz.com/edit/react-chvm779o-p8z7rqsw?file=src%2Findex.js

Steps to Reproduce the Bug or Issue / 重现步骤

  1. 图表存在分类图例。
  2. 配置图表属性autoFit为true。
  3. 点击图例进行filter交互。
  4. 改变图表容器大小(缩放,拖动等)
  5. 图表显示不正确。

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@interstellarmt interstellarmt added waiting for maintainer Triage or intervention needed from a maintainer bug 🐛 Something isn't working and removed waiting for maintainer Triage or intervention needed from a maintainer labels Mar 27, 2025
@hustcc hustcc added the OSCP AntV Open Source Contribution Plan label Mar 27, 2025
@LSTendo
Copy link

LSTendo commented Mar 27, 2025

Also happens with funnel chart

Image

@BQXBQX
Copy link
Contributor

BQXBQX commented Mar 28, 2025

Related issue: #6606

@BQXBQX BQXBQX linked a pull request Mar 30, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working OSCP AntV Open Source Contribution Plan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants