Version
6.0.0
Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/5swcrj
Steps to Reproduce
- Add Heatmap type series
- Set
xAxis / yAxis types either to value or time
- Run it in development mode
Current Behavior
In development mode it throws Heatmap on cartesian must have two category axes error. In production it does not. There is a check in the https://github.com/apache/echarts/blob/master/src/chart/heatmap/HeatmapView.ts file that causes this behavior.
if (__DEV__) {
if (!(xAxis.type === 'category' && yAxis.type === 'category')) {
throw new Error('Heatmap on cartesian must have two category axes');
}
if (!(xAxis.onBand && yAxis.onBand)) {
throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');
}
}
Expected Behavior
It should be the same behavior in both dev and prod modes.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response