kawsndriy opened a new issue, #19517: URL: https://github.com/apache/echarts/issues/19517
### Version 5.4.3 ### Link to Minimal Reproduction https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsCG0IFsORgC5YAzDAGwGcBTAGjVjGGHMhGKQF970BPAQQAeEShwbowvENWIBycsADmshtwaChIseglSZsWQGN81RcABOvWTx0ATfBmIBtWQDEI5ymGsGAytUMYW1kAXVUbGnMIalFYJ3FkBN1pOQAjDHNrJNgAehzYVIBXRWIwAAtqc2pYSkKQEGAaW0ZgAuryquqqwzAsRXIY2BhGCprDTuhsvNgAeWhyXkYAd1aM6ttzDCXoADps-17nWQBaHwAmAAYrkJsdGt7DAGs5PAhoFTu1O9Q75P1ZdKZW52BzOM4AViutFgAGYrhcbtkvBgni8MG8PjpOAwwpwANxAA ### Steps to Reproduce Use the following configuration: ``` js option = { animation: false, tooltip: {}, yAxis: { type: 'log' // this is important }, xAxis: { type: 'category', data: ['First', 'Second'] }, series: [ { type: 'bar', // bug: there supposed to be three rectangles on the screen // Only two are drawn. data: ['-', 2000], stack: 'main' }, { type: 'bar', data: [2500, 3000], stack: 'main' } ] }; ``` ### Current Behavior Looks like starting from version `5.3.0` the stacked bar chart with log scale is no longer rendered correctly when one of the stacks has no data marker (`-`). I <img width="644" alt="image" src="https://github.com/apache/echarts/assets/74387947/99822650-7813-45d9-97ef-9740d14e39c3"> ### Expected Behavior Expected to see all three bars present. ### Environment ```markdown - OS: MacOS 13.6.3 - Browser: Chrome Version 120.0.6099.216 - Framework: plain javascript ``` ### Any additional comments? Looks like the bug was introduced by [this commit](https://github.com/apache/echarts/commit/20eaa3d56e62f1afc14675c75120683389e7ebfe#diff-70c09c3f6cb723c8c9c63c35f88078fe51ad787720d26d4686852dbea8c695d6) in the `barGrid.ts` component - in pre 5.3.0 version the computation accounted for log scale correctly. In 5.3.0+ the log(0) is used to determine the height of the bar, which gives a negative infinity and lack of the rendered rectangle. -- 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