🤔 [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]
点击一个图例,隐藏该图例下的所有元素,数据量变少,滚动条仍旧保持原样


### 💻 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
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