antvis / antvis/G2

折线图开启大量labels会导致卡顿

Open
#6,573 1 comment 1 reaction 0 assignees View on GitHub
waiting for maintainer
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

场景:X轴600个 + 分组10个 + 开启 labels ;
即使 labels 开启了 overlapHide 也是会卡顿(比如拖动slider,没法很丝滑)

### 重现链接

https://codesandbox.io/p/sandbox/line-point-3xmy4x

### 重现步骤

_No response_

### 预期行为

不卡顿;

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and profile the line chart while dragging the slider with 600 X-axis points, 10 groups, and labels enabled. Compare the behavior with labels disabled and with overlapHide enabled. Done means the same scenario no longer becomes noticeably sluggish while dragging.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.