jiawulin001 commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1107676707

   @MaddyCrowle Try mouse event 
(here)[https://echarts.apache.org/en/api.html#events.Mouse%20events]. I would 
suggest using 'globalout' and 'mousemove' to deactivate and activate the 
tooltip. Take the sample as reference.
   <details>
   <summary>Code Sample</summary>
   
   ```
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar'
       }
     ]
   };
   myChart.on('globalout', function(params) {
     myChart.setOption({
       xAxis:{
         data: ['a','b','c','d','e','f','g',]
       }
     })
   });
   myChart.on('mousemove', function(params) {
     myChart.setOption({
       xAxis:{
         data: ['h','i','j','k','l','m','n',]
       }
     })
   });
   ```
   </details>


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