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/04/28 08:41:26 UTC

[GitHub] [echarts] Rainy-Bear opened a new issue #14832: report a problem, that is the tooltip of type map.

Rainy-Bear opened a new issue #14832:
URL: https://github.com/apache/echarts/issues/14832


   ### Version
   5.0.2
   
   ### Steps to reproduce
   option.tooltip = {
     trigger: 'item',
     confine: true,
     formatter: function () {
       const item = mapData[param.dataIndex];
         // TODO echarts 5 bug 会显示上次 tip
         // 没有数据则不展示 tooltip
         if (!item) return null;
     }
   }
   ``` ```
   Tooltip will show last content. I hope is not displayed. tips: 4.9.0 is ok. 
   ![image](https://user-images.githubusercontent.com/31062861/116370732-4213d700-a83d-11eb-877a-77f5b8f87668.png)
   
   ### What is expected?
   return null will not display last tooltip
   
   ### What is actually happening?
   return null will display last 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] [echarts] Rainy-Bear commented on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear commented on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828911632


   那是另一个问题。我用dispatchAction 触发 mapSelect 后,他高亮的颜色是 黄色。但是鼠标出发的高亮要色是 那个灰色


-- 
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] [echarts] echarts-bot[bot] commented on issue #14832: report a problem, that is the tooltip of type map.

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


   @Rainy-Bear Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


-- 
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] [echarts] Rainy-Bear edited a comment on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear edited a comment on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828911632


   那是另一个问题。我用dispatchAction 触发 mapSelect 后,他高亮的颜色是黄色。但是鼠标触发的高亮颜色是那个灰色。而且我已经在 itemStyle 设置 emphasis 的 areaColor 了


-- 
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] [echarts] Rainy-Bear edited a comment on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear edited a comment on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828902636


   As shown in the picture, there is no data in Xinjiang. If there is no data, I will return null. But when the mouse hovers over it, it shows the data of Tibet. I was floating in Tibet before, and Tibet has data


-- 
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] [echarts] pissang commented on issue #14832: report a problem, that is the tooltip of type map.

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


   But the screenshot shows Tibet is the highlighted area.


-- 
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] [echarts] Rainy-Bear commented on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear commented on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828983250


   https://codesandbox.io/s/cocky-knuth-hd27z?file=/src/index.js


-- 
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] [echarts] Rainy-Bear edited a comment on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear edited a comment on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828911632


   那是另一个问题。我用dispatchAction 触发 mapSelect 后,他高亮的颜色是黄色。但是鼠标触发的高亮颜色是那个灰色。而且我已经在 itemStyle 设置 areaColor 了


-- 
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] [echarts] Rainy-Bear edited a comment on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear edited a comment on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828911632


   那是另一个问题。我用dispatchAction 触发 mapSelect 后,他高亮的颜色是黄色。但是鼠标触发的高亮颜色是那个灰色


-- 
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] [echarts] pissang closed issue #14832: report a problem, that is the tooltip of type map.

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


   


-- 
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] Rainy-Bear commented on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear commented on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-863708405


   这个问题在 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.

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] Rainy-Bear commented on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear commented on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828902636


   As shown in the picture, there is no data in Xinjiang. If there is no data, I will return null. But the data table shows the data of Tibet. And I was suspended in Tibet before.


-- 
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] [echarts] pissang commented on issue #14832: report a problem, that is the tooltip of type map.

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


   @Rainy-Bear 发个可以复现的 demo 给我们吧


-- 
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] [echarts] echarts-bot[bot] commented on issue #14832: report a problem, that is the tooltip of type map.

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


   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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   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 question.
   
   If you are interested in the project, you may also subscribe our [mailing 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] [echarts] echarts-bot[bot] commented on issue #14832: report a problem, that is the tooltip of type map.

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






-- 
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] [echarts] Rainy-Bear edited a comment on issue #14832: report a problem, that is the tooltip of type map.

Posted by GitBox <gi...@apache.org>.
Rainy-Bear edited a comment on issue #14832:
URL: https://github.com/apache/echarts/issues/14832#issuecomment-828902636


   As shown in the picture, there is no data in Xinjiang. If there is no data, I will return null. But when the mouse hovers over it, it shows the data of Tibet. I was floating in Tibet before


-- 
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] [echarts] pissang commented on issue #14832: report a problem, that is the tooltip of type map.

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


   I don't understand what do you mean by "show last content"


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