You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "helgasoft (via GitHub)" <gi...@apache.org> on 2023/05/12 17:07:11 UTC

[GitHub] [echarts] helgasoft commented on issue #18620: [Bug] toolTip 设置中禁用自动触发后,通过 dispatchAction 触发 showTip 无效

helgasoft commented on issue #18620:
URL: https://github.com/apache/echarts/issues/18620#issuecomment-1546041199

   Instead of dispatching, why not set a boolean flag in the formatter?
   ```
   ctrl = false;
   option = {
     tooltip: {
       trigger: 'item',
       formatter: function (params) {
         if (ctrl) return params.marker + params.name + ': ' + params.value[3] + ' ms';
       }
     }, ...
   ```
   Then of course you need to monitor the CTRL key and update the _ctrl_ flag.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org