echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Heatmap does not work with value axis

Open amirajv opened this issue 3 years ago • 1 comments

Version

5.3.3

Link to Minimal Reproduction

https://jsfiddle.net/amiraj/5Lka0wmx/4/

Steps to Reproduce

  1. Create a regular heatmap and set the axis types to 'value'
  2. zoom in and out and you see bad rendering of the pixels

Current Behavior

value type axis won't work with heatmaps. One issue for example is when zooming you see bad pixel locations:

image

These issues can be fixed by changing axis type to category. But that has it's own issues and this fix is a hacky fix.

Expected Behavior

heatmap chart behavior should not depend on axis type.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

amirajv avatar Aug 02 '22 23:08 amirajv

It's suggested to use the unminimized version in the development environment to get some helpful debug information. The heatmap series must have two category axes currently. The value axis is not supported. See also https://github.com/apache/echarts/blob/master/src/chart/heatmap/HeatmapView.ts#L188-L195

plainheart avatar Aug 03 '22 01:08 plainheart