Justin-ZS commented on code in PR #20710:
URL: https://github.com/apache/echarts/pull/20710#discussion_r2144537249
##########
src/component/tooltip/TooltipView.ts:
##########
@@ -243,6 +243,11 @@ class TooltipView extends ComponentView {
const api = this._api;
const triggerOn = tooltipModel.get('triggerOn');
+ if (tooltipModel.option.trigger !== 'axis') {
Review Comment:
`_lastDataByCoordSys ` is used for `axis` tooltip only
If current trigger is still `axis`, it should not be cleared.
Other cases to clear the `_lastDataByCoordSys`
1. When the tooltip is hidden (regardless of trigger mode)
2. In `TooltipView. _tryShow`
* When showing axis tooltip via `_showAxisTooltip()`
* When showing non-axis tooltip (set to `null`)
--
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]