apache / apache/echarts

[Bug] markArea xAxis does not work as expected for heatmap

Open
#20,387 4 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/magical-bose-sv8qm7?file=%2Fsrc%2Findex.js%3A98%2C2

### Steps to Reproduce

open link to preview the sample
https://codesandbox.io/p/sandbox/magical-bose-sv8qm7?file=%2Fsrc%2Findex.js%3A98%2C2

OR

1 - open heat map sample in echarts website
https://echarts.apache.org/examples/en/editor.html?c=heatmap-cartesian&version=5.5.1
2 - add Markarea code

`markArea: {
data: [ [{name: 'mark',xAxis: '2a'}, { xAxis: '3a'}]],
label: {
color: 'green'
},
itemStyle: {
color: 'orange',
}
}`

### Current Behavior

markarea in heatmap isnt working as spected

![image](https://github.com/user-attachments/assets/ac8254b1-bf98-46d0-aade-476515967163)

it works fine when it is in bar mode:

![image](https://github.com/user-attachments/assets/2665bc8c-1848-4d23-862c-d8016f87a403)

### Expected Behavior

fix this issue

### Environment

```markdown
- OS: Windows
- Browser: Chrome
- Framework: None
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.