echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open melquelima opened this issue 1 year ago • 3 comments

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

it works fine when it is in bar mode:

image

Expected Behavior

fix this issue

Environment

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

Any additional comments?

No response

melquelima avatar Oct 02 '24 15:10 melquelima

agree, would be better if heatmap.markArea display is consistent with bar.markArea. See if changing axisTick could help in some way. image

helgasoft avatar Oct 03 '24 04:10 helgasoft

@helgasoft it makes a little confusion when in heatmap view when Xaxis is not centered, like we dont know if value "3" belogns to 2a,3a or 4a

melquelima avatar Oct 03 '24 14:10 melquelima

no news?

melquelima avatar Dec 12 '24 22:12 melquelima

I have the same problem. Any other ideas?

apeiniger avatar Apr 25 '25 13:04 apeiniger