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 2019/11/20 03:11:26 UTC

[GitHub] [incubator-echarts] Ricardozhang opened a new issue #11682: 折线图中 tooltip formatter使用异步callback(ticket, html),同时使用了echarts.connect联动多个图表,tooltip显示不正确

Ricardozhang opened a new issue #11682: 折线图中 tooltip  formatter使用异步callback(ticket, html),同时使用了echarts.connect联动多个图表,tooltip显示不正确
URL: https://github.com/apache/incubator-echarts/issues/11682
 
 
   ### Version
   4.5.0
   
   ### Steps to reproduce
   1. 使用折线图
   2. 为了使用异步加载tooltip,使用了如下配置
   
   tooltip: {
       trigger:'axis',
       formatter: (params, ticket, cb) => {
           setTimeout(() => {
                cb(ticket, 'loaded');
           }, 100);
           return 'loading';
       }
   }
   3. 配合echarts.connect使多个图表联动时,其他的图表的tooltip  callback失效,tooltip无法正确显示
   
   ### What is expected?
   多个图表的tooltip 使用formatter  callback时,能正常使用
   
   ### What is actually happening?
   为了使用异步加载tooltip,我使用了如下配置
   tooltip: {
       trigger:'axis',
       formatter: (params, ticket, cb) => {
           setTimeout(() => {
                cb(ticket, 'loaded');
           }, 100);
           return 'loading';
       }
   }
   在单图表中是可以正常显示的,但是配合echarts.connect使多个图表联动时,其他的图表的tooltip  callback失效,tooltip无法正确显示
   
   <!-- 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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