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/11/17 20:04:05 UTC

Re: [I] 当调用 hideTip时,怎么把crossline也给隐藏掉 [echarts]

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

   Workaround by Kikon from [here](https://stackoverflow.com/questions/76183021/apache-echarts-not-hiding-axis-pointer-when-programmatically-hiding-tooltip).
   _"A hacky way I found that helps is to add a showTip with dataIndex:-1 after the hideTip"_
   ```
   myChart.dispatchAction({
       type: 'hideTip'
   });
   myChart.dispatchAction({
       type: 'showTip',
       seriesIndex: 0,
       dataIndex: -1
   });
   ```


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