antvis / antvis/G2Plot

🐛 [BUG] Brush doesn't work correctly when axis.type is time or timeCat

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

Description

### 🐛 Bug description [Please make everyone to understand it]

* _Required_ **Link to minimal reproduction**: https://codesandbox.io/s/icy-brook-7ju71f

### 📷 Step to reproduce

| before brush | after brush |
| --- | --- |
| ![image](https://user-images.githubusercontent.com/14918822/207000636-b354b767-af8b-413d-b3ba-bdac7b7b429d.png) | ![image](https://user-images.githubusercontent.com/14918822/207000022-cb9aceb0-c444-4084-82dc-acf0330495c8.png) |

### 🏞 Expected result

- Brush should work as expected.

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: 2.4.23
* **Platform**: Chrome 107.0.5304.121 on MacOS

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox minimal reproduction and compare brush behavior for time and timeCat axes in G2Plot 2.4.23. Trace the brush handling from the reproduction, then verify that brushing produces the expected result shown by the issue's before-and-after screenshots.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.