Ovilia opened a new pull request, #17322: URL: https://github.com/apache/echarts/pull/17322
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. --> When the log axis contains only one data and its value is less than 1, echarts fail to render. This PR fixes this problem. ### Fixed issues #13154 ## Details ### Before: What was the problem? ```js chart.setOption({ xAxis: { type: 'value', }, yAxis: { type: 'log', logBase: 2, }, series: [ { type: 'scatter', itemStyle: { color: 'red', }, data: [ [1, .5], ], }, ], }); ``` <img width="704" alt="image" src="https://user-images.githubusercontent.com/779050/177290130-21b26f14-d4ff-46b1-8e6c-154c0e08d657.png"> ### After: How does it behave after the fixing? <img width="672" alt="image" src="https://user-images.githubusercontent.com/779050/177290224-d1c9c64f-095f-4a8e-a643-0aa3358e02fd.png"> ## Document Info One of the following should be checked. - [x] This PR doesn't relate to document changes - [ ] The document should be updated later - [ ] The document changes have been made in apache/echarts-doc#xxx ## Misc ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs N.A. ## Others ### Merging options - [ ] Please squash the commits into a single one when merging. ### Other information -- 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 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