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

   ### Version
   
   5.6.0, 6.0.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/strange-worker-l9wcxq?file=%2Fsrc%2Findex.js
   
   ### Steps to Reproduce
   
   Toggle bar series on/off, observe the x-axis bounds. Or, comment out/in the 
bar series.
   
   ### Current Behavior
   
   Here is the real chart that I'm seeing the problem with:
   
   
![Image](https://github.com/user-attachments/assets/dacfe20e-6120-4a6c-96af-6699c8e705fd)
   
   I believe I've been able to narrow down the source of the problem to the 
behavior shown in the minimal reproduction. xAxis bounds are explicitly set. As 
soon as I add an empty bar series, the chart no longer respects the xAxis 
bounds.
   
   ## Without Bar Series
   <img width="1102" height="568" alt="Image" 
src="https://github.com/user-attachments/assets/104a0793-193f-4b6a-b1a0-df7f62bc1fda";
 />
   
   ## With Empty Bar Series
   <img width="1126" height="661" alt="Image" 
src="https://github.com/user-attachments/assets/58250abe-4f28-4480-a614-0b2375226e18";
 />
   
   ### Expected Behavior
   
   I would expect the xAxis to stay at the set min/max bounds when the empty 
bar series gets added.
   
   ### Environment
   
   ```markdown
   - OS: EndeavourOS Linux x86_64
   - Browser: Chromium Version 140.0.7264.0 (Developer Build) (64-bit), also 
tried on Mozilla Firefox 141.0 (64-bit)
   ```
   
   ### 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-unsubscr...@echarts.apache.org.apache.org

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


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

Reply via email to