sjcobb opened a new pull request, #21001: URL: https://github.com/apache/echarts/pull/21001
## Brief Information This pull request is in the type of: - [ ] bug fixing - [x] new feature - [ ] others ### What does this PR do? Add `triggerAreaEvent` option to line series that can be used to ensure the mouse event only fires when actually hovering on the line, not the shaded area under curve (when areaStyle set). ### Fixed issues - #21000 ## Details ### Before: What was the problem? Mouse event fires when hovering on shaded region, not just on the actual line. That behavior makes sense in many cases, but when there are many series overlapping, it can be useful to only fire when actually hovering directly on the line (or else it might not actually be the series closest to your cursor) https://github.com/user-attachments/assets/88fbd1ea-d019-45e6-9cac-10f17a35acae ### After: How does it behave after the fixing? When `triggerAreaEvent: false` and `triggerLineEvent: true`, only hovering on the line triggers the mouse event https://github.com/user-attachments/assets/5ce15f83-eb63-4d19-b1ce-405b8dd9ba7c ## Document Info One of the following should be checked. - [ ] This PR doesn't relate to document changes - [x] The document should be updated later - _I'm working on getting docs updated now_ - [ ] 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]
