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

   ### Version
   
   5.6.0
   
   ### Link to Minimal Reproduction
   
   
https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqtALokAvn3Tkc-IqlJlKNWQDdGAGyW9-sALYRoRAAwatsPFQ4QqhWKNsDQ1ghMBF_AFoARgAmZx5YCLjnFXdDCmo6ACNGDlpbdRI1dQBuIA
   
   ### Steps to Reproduce
   
   1. Create a bar chart with negative data
   2. Set yAxis.min = 0 (or any positive value)
   3. See that this is not respected
   4. Change yAxis.min (for instance to -10)
   5. Limit is respected
   
   ### Current Behavior
   
   If I have a bar chart with all the values below 0 and I set the yAxis.min to 
0 it is not respected.
   
   ### Expected Behavior
   
   I would expect that the yAxis.min is always respected
   
   ### Environment
   
   ```markdown
   - OS: Windows 10
   - Browser: Chrome
   - Framework: Web Components
   
   - reproducible in the official editor
   ```
   
   ### Any additional comments?
   
   Code to reproduce the issue:
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue']
     },
     yAxis: {
       type: 'value',
       min: 0 // change to -10 for instance and see that it works
     },
     series: [
       {
         data: [-120, -200],
         type: 'bar'
       }
     ]
   };


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