AndrewRatnikov opened a new pull request #14995: URL: https://github.com/apache/echarts/pull/14995
<!-- 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 ONCE SENTENCE TO DESCRIBE WHAT THIS PR DOES. --> Fix wrong calculation for axis pointer ### Fixed issues <!-- - #xxxx: ... --> - #14869 ## Details ### Before: What was the problem? <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. --> https://jsfiddle.net/kbztor76/ 1. Use provided example (with option 'trigger: axis' for tooltip) 1. Slide along one bar by mouse 1. In the middle of the bar, the tooltip changes and shows info from the next bar <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> ### After: How is it fixed in this PR? <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. --> Update condition and choose the one that `diff >= 0` <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> ## Misc <!-- ADD RELATED ISSUE ID WHEN APPLICABLE --> - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs NA. ## Others ### Merging options - [x] Please squash the commits into a single one when merge. ### 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
