Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

series中的tooltip不生效,无法显示 #13375

Closed
Lyle666 opened this issue Sep 30, 2020 · 5 comments
Closed

series中的tooltip不生效,无法显示 #13375

Lyle666 opened this issue Sep 30, 2020 · 5 comments

Comments

@Lyle666
Copy link

Lyle666 commented Sep 30, 2020

Version

5.0.0-beta.0

Steps to reproduce

{
            type: 'scatter',
            coordinateSystem: 'geo',
            name: 'USA',
            symbol: `image://${svg}`,
            symbolSize: 15,
            tooltip: {
              trigger: 'item',
              triggerOn: 'mousemove',
              showContent: true,
              confine: false,
              position: 'right',
              formatter: function(params) {
                console.log(params);
                let imgUrl = params.data.thumbnail;
                let htmlStr = `<img style=width:20px;height:15px; src= ${imgUrl}/>`;
                return htmlStr;
              }
            },
            itemStyle: {
              color: '#ddb926'
            },
            data: this.mapData
          },

What is expected?

提供一些解决方案

What is actually happening?

tooltip无法显示

@echarts-bot
Copy link

echarts-bot bot commented Sep 30, 2020

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 and chart option 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 [email protected]. 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.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Sep 30, 2020
@susiwen8
Copy link
Contributor

susiwen8 commented Oct 7, 2020

Does this work with 4.9?

@plainheart plainheart added waiting-for: author and removed waiting-for: community en This issue is in English labels Oct 9, 2020
@mmm2006
Copy link

mmm2006 commented Nov 19, 2020

我测试了也不能工作,包括在data下面设置也不行。不知道哪里设置的不对,我的版本就是4.9

@susiwen8
Copy link
Contributor

@mmm2006 麻烦提供一个完整的case 吧

@susiwen8 susiwen8 removed the pending We are not sure about whether this is a bug/new feature. label Nov 19, 2020
@mmm2006
Copy link

mmm2006 commented Nov 19, 2020

@susiwen8 ,我从网上查了下,这个问题解决,事需要在option下面series 同级别也加一个空的tooltip就可以生效了:
tooltip: {},

我自己的问题其实是这个:
#13630

如果可以,帮忙看下,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants