You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Seymur (via GitHub)" <gi...@apache.org> on 2026/01/23 16:05:20 UTC

[I] [Bug] Heatmap Axis "time" and "value" type behavior is different between development and production versions [echarts]

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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Heatmap Axis "time" and "value" type behavior is different between development and production versions [echarts]

Posted by "SakshamSinghal20 (via GitHub)" <gi...@apache.org>.
SakshamSinghal20 commented on issue #21492:
URL: https://github.com/apache/echarts/issues/21492#issuecomment-3822287109

   I hope this fixes your bug.!


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Heatmap Axis "time" and "value" type behavior is different between development and production versions [echarts]

Posted by "Seymur (via GitHub)" <gi...@apache.org>.
Seymur commented on issue #21492:
URL: https://github.com/apache/echarts/issues/21492#issuecomment-3817786810

   > If you use it in a way that is not promised or documented, the behavior is not guaranteed. The limitation is documented [here.](https://echarts.apache.org/en/option.html#series-heatmap).
   > 
   > > Rectangular coordinate must have two categories to use it.
   > 
   > As the name suggests, development mode is for development only. During development, you can use the non-minified (development) bundle instead of the .min.js file.
   
   I understand there is a limitation how to use Heatmap axis types. But why isn't it enforced in the production mode. I can change axis type to `time` in Echarts examples editor and it works without any error and shows `Date` in the axis. Isn't it confusing why there is a difference between dev and prod modes. Last time I spent a lot of time to see why the exactly same code works in Echarts editor and not in my local development environment.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Heatmap Axis "time" and "value" type behavior is different between development and production versions [echarts]

Posted by "Justin-ZS (via GitHub)" <gi...@apache.org>.
Justin-ZS commented on issue #21492:
URL: https://github.com/apache/echarts/issues/21492#issuecomment-3802793326

   The limitation is documented [here.](https://echarts.apache.org/en/option.html#series-heatmap).
   > Rectangular coordinate must have two categories to use it.
   
   As the name suggests, development mode is for development only.
   During development, you can use the non-minified (development) bundle instead of the .min.js file.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org