antvis / antvis/G2Plot

🤔 [QUESTION] 我在使用CirclePacking 数据量比较大的时候我想拥有放大缩小功能 我使用了svg 进行渲染 并且使用D3的zoom来进行实现

Open
#3,728 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]
我在使用CirclePacking数据量比较大的时候我想拥有放大缩小功能我使用了svg进行渲染并且使用D3的zoom来进行实现 但是D3好像会让原本的交互事件和Tooltip这些事件失效或者位置不准确,
### 💻 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
有什么办法可以直接到渲染图形的位置信息我自己进行原生SVg渲染或者zoom的放大缩小不让原本的事件失效
### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start by creating the requested minimal reproduction from the G2Plot reproduction template, using a CirclePacking chart rendered with SVG and D3 zoom. Record the G2Plot version and platform, then compare zoom behavior with the existing interactions and tooltip positioning. The issue is complete only when zooming preserves those interactions and tooltip locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.