Seymur opened a new issue, #21492:
URL: https://github.com/apache/echarts/issues/21492

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/5swcrj
   
   ### Steps to Reproduce
   
   1. Add Heatmap type series 
   2. Set `xAxis` / `yAxis` types either to `value` or `time`
   3. 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
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to