antvis / antvis/G2Plot

🤔 [QUESTION] 图例点击隐藏一个,滚动条并未跟随数据发生变化

Open
#3,658 0 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]
点击一个图例,隐藏该图例下的所有元素,数据量变少,滚动条仍旧保持原样
![企业微信截图_16945085653845](https://github.com/antvis/G2Plot/assets/50241817/ce4806a1-01a7-4d43-8174-e8b2146375ba)

![企业微信截图_1694508584795](https://github.com/antvis/G2Plot/assets/50241817/b163d641-662c-4885-bb02-e6ca47de40f7)

### 💻 Link to minimal reproduction

Please provide a link by forking these links [g2plot](https://codesandbox.io/s/g2plot-reproduction-template-gyej1) or GitHub repo. What is a minimal reproduction, and why is it required?

### 🏞 Expected result
点击一个图例,隐藏该图例下的所有元素,数据量变少后,滚动条高度能响应式
### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
"@antv/g2plot": "^2.3.40",
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with the G2Plot reproduction template linked in the issue and reproduce the legend-click behavior using G2Plot 2.3.40. Trace how legend filtering affects the chart data and scrollbar, then verify that the scrollbar height responds when a legend hides its elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.