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 2021/07/30 12:45:12 UTC

[GitHub] [echarts] xianchenxy opened a new issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

xianchenxy opened a new issue #15446:
URL: https://github.com/apache/echarts/issues/15446


   ### Version
   3.8.5
   
   ### Steps to reproduce
   点击 markPoint,打开series[0]第n位的 tooltip,当第n位的 value有数据时正常,当 value为 '-'时 tooltip不显示。
   
   ### What is expected?
   tooltip能被正常打开,无论对应位置上的数据有没有。
   
   ### What is actually happening?
   当 value为 '-'时 tooltip不显示。
   
   ```
   chartInstance.on('click', params => {
     if (params.componentType === 'markPoint') {
       chartInstance.dispatchAction({
         type: 'showTip',
         seriesIndex: 0,
         dataIndex: params.data._absolutePos // 手动在外部绑定的位置信息,已确定位置信息正确
       })
     }
   })
   ```
   
   复现步骤:
   1. 首先点击markPoint,打开 _absolutePos上有数据的一项,功能正常:
   2. 然后再打开 _absolutePos上 value为 '-',功能异常。
   
   第一步时 tooltip面板样式:
   ```
   <div style="position: absolute; display: none; border-style: solid; white-space: nowrap; z-index: 9999999; 
           transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s; 
           background-color: rgba(50, 50, 50, 0.7); border-width: 0px; border-color: rgb(51, 51, 51); 
           border-radius: 4px; color: rgb(255, 255, 255); font: 14px / 21px &quot;Microsoft YaHei&quot;;
           padding: 5px; left: 211.954px; top: 291.246px;">
       <div style="padding: 2px 8px 2px 6px;max-height: 450px;overflow-y: auto;">
           <p style="max-width: 1000px;white-space: pre-wrap;">2021-06-01(周二;儿童节;30)</p>
           <p>
               <span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:$4fa8f9;"></span>
               活跃用户: 5,722</p>
           <p>
               <span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:$6ec71e;"></span>
               新增用户: 3,308</p>
       </div>
   </div>
   ```
   第二步时 tooltip面板样式:
   (tooltip样式增加了 display: none,其他样式和内容都没有发生改变)
   ```
   <div style="position: absolute; display: none; border-style: solid; white-space: nowrap; z-index: 9999999; 
           transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s; 
           background-color: rgba(50, 50, 50, 0.7); border-width: 0px; border-color: rgb(51, 51, 51); 
           border-radius: 4px; color: rgb(255, 255, 255); font: 14px / 21px &quot;Microsoft YaHei&quot;;
           padding: 5px; left: 211.954px; top: 291.246px;">
     <div style="padding: 2px 8px 2px 6px;max-height: 450px;overflow-y: auto;">
       <p style="max-width: 1000px;white-space: pre-wrap;">2021-06-01(周二;儿童节;30)</p>
       <p>
         <span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:fa8f9;"></span>
         活跃用户: 5,722</p>
       <p>
         <span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:ec71e;"></span>
         新增用户: 3,308</p>
     </div>
   </div>
   ```
   <!-- This issue is generated by echarts-issue-helper. 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.

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


[GitHub] [echarts] xianchenxy closed issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy closed issue #15446:
URL: https://github.com/apache/echarts/issues/15446


   


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


[GitHub] [echarts] xianchenxy commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-966074348


   > @xianchenxy 是的,3 是很早的版本了,建议还是升级到最新版本。如果不准备升级,可以根据到时候的 pr,自己调整 ECharts 源码并打包一个版本。
   
   了解,感谢解答🌹


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

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






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


[GitHub] [echarts] xianchenxy removed a comment on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy removed a comment on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-890668663


   > Please use 5.1.2
   


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


[GitHub] [echarts] susiwen8 commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-890323244


   Please use 5.1.2


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


[GitHub] [echarts] Ovilia commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-912225304


   实测 5.2.0 能复现问题。但是需要注意的是,即使在修复后,仍然需要将 tooltip.trigger 指定为 `'axis'` 才能生效,因为需要对齐手动触发 tooltip 的效果。


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


[GitHub] [echarts] xianchenxy commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-896459302


   @susiwen8 Is there a way to solve the problem? thanks a lot!


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


[GitHub] [echarts] xianchenxy commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-890668663


   > Please use 5.1.2
   


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


[GitHub] [echarts] xianchenxy commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-890671617


   > Please use 5.1.2
   
   I‘ve updated echarts, but it still doesn't work.


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


[GitHub] [echarts] xianchenxy commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-919665509


   > 实测 5.2.0 能复现问题。但是需要注意的是,即使在修复后,仍然需要将 tooltip.trigger 指定为 `'axis'` 才能生效,因为需要对齐手动触发 tooltip 的效果。
   
   好的。请问这个bug是将在 V5.3中修复吗?
   如果是,那低版本(我的版本是V3.8.5)是否有其他方式可以不升级版本而解决这个问题呢?


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


[GitHub] [echarts] Ovilia commented on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-956105358


   @xianchenxy 是的,3 是很早的版本了,建议还是升级到最新版本。如果不准备升级,可以根据到时候的 pr,自己调整 ECharts 源码并打包一个版本。


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


[GitHub] [echarts] xianchenxy closed issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy closed issue #15446:
URL: https://github.com/apache/echarts/issues/15446


   


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


[GitHub] [echarts] xianchenxy edited a comment on issue #15446: showTip无法打开 series' value为 '-'对应的 tooltip

Posted by GitBox <gi...@apache.org>.
xianchenxy edited a comment on issue #15446:
URL: https://github.com/apache/echarts/issues/15446#issuecomment-890671617


   > Please use 5.1.2
   
   @susiwen8  I‘ve updated echarts, but it still doesn't work.


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