echarts
echarts copied to clipboard
[Bug] Heatmap does not work with value axis
Version
5.3.3
Link to Minimal Reproduction
https://jsfiddle.net/amiraj/5Lka0wmx/4/
Steps to Reproduce
- Create a regular heatmap and set the axis types to 'value'
- 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:

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