You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "longzaiqian (via GitHub)" <gi...@apache.org> on 2024/12/18 09:24:57 UTC

[I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

longzaiqian opened a new issue, #20599:
URL: https://github.com/apache/echarts/issues/20599

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=bar-tick-align
   
   ### Steps to Reproduce
   
   tooltip.trigger=item鼠标移入,是有正常效果的,设置为axis时,鼠标移入没有效果;改为axis后,原显示item值的dom的地方没有内容。
   ![代码](https://github.com/user-attachments/assets/88ae1135-bdc7-402f-bef5-2409afba4f6f)
   ![实现图](https://github.com/user-attachments/assets/7a1b01b4-7f10-41a5-a5de-f97c0afc409d)
   
   
   ### Current Behavior
   
   鼠标移入柱状图,没有显示tooltip对应的内容。
   ![实现图](https://github.com/user-attachments/assets/fc1783b3-43fe-4bd7-b162-be6fdce9651e)
   
   
   ### Expected Behavior
   
   希望鼠标移入后,能正常的显示内容,如示例一样:https://echarts.apache.org/examples/zh/editor.html?c=bar-tick-align
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "longzaiqian (via GitHub)" <gi...@apache.org>.
longzaiqian commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2550825447

   ![test](https://github.com/user-attachments/assets/82c92ccc-10e5-480c-9bce-916598fe75a4)
   希望实现的效果如示例,鼠标移入后有内容!谢谢各位!


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart closed issue #20599: [Bug] tooltip.trigger=axis时没有效果
URL: https://github.com/apache/echarts/issues/20599


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2552548151

   1、如果 `myChart` 是用的 `ref`,需要去掉改用普通变量或者 `shallowRef`
   2、如果使用了按需导入,是否有 import 并 use `TooltipComponent`


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "longzaiqian (via GitHub)" <gi...@apache.org>.
longzaiqian commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2552876655

   > 您尝试过[appendTo](https://echarts.apache.org/en/option.html#tooltip.appendTo)吗? 此外,最小复制是为了显示错误代码,而不是所需的行为。
   
   功能实现了,谢谢!


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "longzaiqian (via GitHub)" <gi...@apache.org>.
longzaiqian commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2550824576

   希望实现的效果如示例,鼠标移入后有内容!谢谢各位!


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2550810586

   @longzaiqian It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] tooltip.trigger=axis has no effect
   </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: 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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2552001234

   did you try [appendTo](https://echarts.apache.org/en/option.html#tooltip.appendTo) ?
   Also, Minimal Reproduction is to show bug code, not the desired result.


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "longzaiqian (via GitHub)" <gi...@apache.org>.
longzaiqian commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2550823592

   ![实现图](https://github.com/user-attachments/assets/0e524d47-143b-4dbb-99ce-684642a30e6d)
   希望实现的效果如示例,鼠标移入后有内容!感谢各位!


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


Re: [I] [Bug] tooltip.trigger=axis时没有效果 [echarts]

Posted by "longzaiqian (via GitHub)" <gi...@apache.org>.
longzaiqian commented on issue #20599:
URL: https://github.com/apache/echarts/issues/20599#issuecomment-2552875679

   > 1、如果`myChart`是用的`ref`,需要去掉改用普通变量或者`shallowRef` 2、如果使用了再次导入,是否有导入并使用`TooltipComponent` 3、失败复现示例
   改为普通变量就可以了,谢谢!


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