Ovilia opened a new pull request, #17426: URL: https://github.com/apache/echarts/pull/17426
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [ ] bug fixing - [x] new feature - [ ] others ### What does this PR do? <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. --> Apache ECharts uses [sub-pixel optimization](https://github.com/ecomfe/zrender/blob/master/src/graphic/helper/subPixelOptimize.ts) on horizontal and vertical axes (including splitLines, ticks, and minorTicks) so that these lines should be drawn only at the positions like `10px`, `10.5px`, `11px` for lines whose lineWidth is 1. But for the case of bar-racing, this may cause the weried moving of split lines as reported in #14679 . So this PR provides a new option `axis.subPixelOptimize` so that bar-racing charts can set this to be false to disable the optimazation. ### Fixed issues #14679 ## Details ### Before: What was the problem? https://user-images.githubusercontent.com/779050/180944154-3e2344d5-772a-4533-94b6-cff628052755.mov Pay attention to the red lines. ### After: How does it behave after the fixing? https://user-images.githubusercontent.com/779050/180944235-d260aefc-8bc5-4b96-83dd-b4d81569af48.mov ## Document Info One of the following should be checked. - [ ] This PR doesn't relate to document changes - [x] 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: [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]
