antvis / antvis/G2Plot

🐛 [BUG]双轴图 显示异常,把一个时间段的值显示在另一个时间段内

Open
#2,993 1 comment 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
复现的链接
https://codesandbox.io/s/nifty-taussig-8rlpf?file=/src/App.tsx,
本身 虚线位置这段时间预测数据是不存在的 ,上面显示是从2021/11/22 4:39开始虚线的,但是 实际数据中是从2021/11/22 16:39才有的预测数据,为什么2021/11/22 16:39数据会在2021/11/22 4:39上显示呢,我们不是 24小时吗?难道没法区分是上午还是下午吗?是我配置问题还是?

![1637575814](https://user-images.githubusercontent.com/24711571/142843983-772b96fb-29e7-412f-930d-6cf5f11c513a.png)
![1637575814(1)](https://user-images.githubusercontent.com/24711571/142844031-fb130ade-9e34-4704-a2b9-9396bd080fd4.png)

![1637575814(2)](https://user-images.githubusercontent.com/24711571/142844048-5d9e559c-d8a6-464f-9f05-8f50aca22715.png)

### 🏞 希望尽快修复,否则就要换到ehcarts了,老板催得急o(* ̄︶ ̄*)o

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: CodeSandbox用的 "@ant-design/charts": "1.2.11",项目中用的是@ant-design/charts": "1.2.14
* **Platform**: window10, antd-pro v5

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox and inspect src/App.tsx, using the reported @ant-design/charts version as context. Reproduce the dual-axis chart with the supplied timestamps and compare the plotted forecast position with the source data. Done means the forecast beginning at 16:39 is shown at 16:39 rather than 04:39, with the 24-hour distinction preserved.

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.