antvis / antvis/G2Plot

🐛 [BUG]分组条形图在处理日期时显示异常

Open
#2,957 3 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]

> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.

bug link: https://codesandbox.io/s/g2plot-issue-template-forked-rvo6e

在日期格式为年月日时分秒时, 显示异常. 一方面是一些字段被显示为了NaN, 另一方面是日期字段显示不全
![图片](https://user-images.githubusercontent.com/30228406/140069456-26736b0f-a9d9-4d4e-b038-46c927b44fa5.png)

### 📷 Step to reproduce

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and its index.ts entry point, then compare the grouped bar chart behavior for full date-and-time values. The issue is fixed when no fields render as NaN and the complete date value is displayed; the payload does not name a repository test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
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.