juliepagano commented on issue #18495:
URL: https://github.com/apache/echarts/issues/18495#issuecomment-1504235593

   > You can acheive this by using triggerTooltip: false (and you may want to 
take a look to into the trigger: "none")
   > 
   > https://codesandbox.io/s/stacked-area-chart-forked-emk9qt?file=/index.js
   > 
   > I still do agree we should have at least a "show" or "silent" to make this 
more dev friendly (I lost some hours to find a solution)
   
   I gave that a try in a modified version of my original example, and I'm 
still seeing similar behavior. Am I doing something slightly wrong in here?
   
   
https://codesandbox.io/s/line-chart-tooltip-highlight-issue-trying-with-triggertooltip-false-56elon?file=/index.js
   
   <img width="573" alt="image" 
src="https://user-images.githubusercontent.com/396962/231305285-48c4a781-eae3-4745-9349-09ab4cf15abd.png";>
   
   Taking a look at the code a little more, it looks like `triggerTooltip` only 
impacts the rendering of the tooltip itself inside `axisTrigger`, but not the 
call to the `dispatchHighDownActually` function, which triggers the 
highlighting. There's a bunch more complexity inside `modelHelper.ts` that uses 
`triggerTooltip` alongside a bunch of other values that I didn't dig into more 
deeply, so might be something in there isn't playing nicely?
   
   
https://github.com/apache/echarts/blob/f5bb3b0c81f9843f73f57a0b01a35488f7795dd6/src/component/axisPointer/axisTrigger.ts#L345-L347
   
   
https://github.com/apache/echarts/blob/f5bb3b0c81f9843f73f57a0b01a35488f7795dd6/src/component/axisPointer/axisTrigger.ts#L206
   
   
   


-- 
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]

Reply via email to