You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/07/15 04:03:37 UTC

[GitHub] [incubator-echarts] magicdict opened a new issue #12966: ToolTip远离图表

magicdict opened a new issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966


   ### Version
   4.8.0
   
   ### Steps to reproduce
           this.Sample.tooltip = {
               show: true,
               position: 'inside',
               trigger: 'item',
               confine:true
           };
   
   ### What is expected?
   ToolTIp在图表附近
   
   ### What is actually happening?
   ToolTip远离图表
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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

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


[GitHub] [incubator-echarts] plainheart commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-658570611


   这应该不是bug,请检查下是否为样式设置问题,如果你确认是bug,最好能提供一个可复现的示例。示例可以在 [ECharts Gallery](https://gallery.echartsjs.com/editor.html) 或者 [Code Pen](https://codepen.io/Ovilia/pen/dyYWXWM) 上提供。


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

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-658532552


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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


[GitHub] [incubator-echarts] magicdict closed issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict closed issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966


   


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

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


[GitHub] [incubator-echarts] magicdict commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-659112094


   @plainheart 虽然看了源代码,无奈没有看懂计算过程。
   好在发现只要把上层div的position改成relative就可以了。(我这个case,root层有个margin-left,所以导致了charts组件层x方向计算的时候多加了margin-left的值,改为relative之后,应该是和顶层独立开来计算了。。)


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

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


[GitHub] [incubator-echarts] magicdict commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-658533068


   不是很理解ToolTip的表示位置是如何确定的,能否说明一下。按照道理说,应该表示在chart范围内部才是。


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

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


[GitHub] [incubator-echarts] magicdict commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-658532869


   ![image](https://user-images.githubusercontent.com/897796/87502104-51051080-c693-11ea-934f-58798a09693f.png)
   


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

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


[GitHub] [incubator-echarts] magicdict commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-659225612


   追记一下,echarts上层的div,最好都加上position: relative;这句,不然,tooltips就可能乱飞出图表界限


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

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


[GitHub] [incubator-echarts] magicdict commented on issue #12966: ToolTip远离图表

Posted by GitBox <gi...@apache.org>.
magicdict commented on issue #12966:
URL: https://github.com/apache/incubator-echarts/issues/12966#issuecomment-658532719


   ![image](https://user-images.githubusercontent.com/897796/87502068-3fbc0400-c693-11ea-8b0c-0fef2c36ca91.png)
   


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

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