antvis / antvis/G2Plot

🐛 [BUG]热力图色块显示异常

Open
#3,834 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]
热力图色块显示异常,可以查看截图,时等于15的数据被渲染到了横轴维9的坐标系上,以下代码

> 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.

* _Required_ **Link to minimal reproduction**: https://codesandbox.io/p/sandbox/g2plot-issue-template-forked-wrd5md

### 📷 Step to reproduce
打开页面即可查看

### 🏞 Expected result

### 🚑 Any additional [like screenshots]
![image](https://github.com/user-attachments/assets/8e0be041-93b0-49a5-9f5a-083ba7ac2b42)

* **G2Plot Version**: 2.3.35
* **Platform**: mac os

Contributor guide

Open the contributing guide

Research direction

Open the linked CodeSandbox minimal reproduction first and inspect its heatmap data and axis configuration. Trace how the value 15 is mapped to the horizontal coordinate in the chart implementation. Done means the value renders at its intended coordinate and the other heatmap cells remain correctly positioned.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.