apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.23k stars 19.61k forks source link

地图轮播显示tooptip,获取tooptip信息错误 #15071

Closed Erin-mm closed 1 year ago

Erin-mm commented 3 years ago

Version

5.1.1

Steps to reproduce

项目涉及到江西省南昌市的地图数据,要求使用tooptip轮播南昌市下每个县级单位的数据。所以用定时器如下代码来控制

 this.echartRef.getEchartsInstance().dispatchAction({
      type: 'showTip', //控制提示框出现
      seriesIndex: 0,
      dataIndex: count,
    });

南昌市地图如下所示: image 其中青山湖区在新建区的中心,东湖区在青山湖区中心,所以tooptip在轮播到青山湖区的时候会显示成东湖区的数据,到新建区则会显示青山湖区的数据

What is expected?

能正确显示tooptip信息

What is actually happening?

tooptip信息读取错误

echarts-bot[bot] commented 3 years ago

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

Have a nice day! 🍵

echarts-bot[bot] commented 3 years ago

@Erin-mm It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** Map carousel shows tooptip, and error to get tooptip information **BODY** ### Version 5.1.1 ### Steps to reproduce The project involves the map data of Nanchang City, Jiangxi Province, and requires the use of tooptip to rotate the data of each county-level unit in Nanchang City. So use the timer to control the following code ``` this.echartRef.getEchartsInstance().dispatchAction({ type:'showTip', //The control prompt box appears seriesIndex: 0, dataIndex: count, }); ``` The map of Nanchang City is as follows: ![image](https://user-images.githubusercontent.com/10559515/120438568-1fcd2600-c3b4-11eb-978e-a08048f737c0.png) Among them, the Qingshan Lake District is in the center of the newly built area, and the East Lake District is in the center of the Qingshan Lake District. Therefore, tooptip will display the data of the Donghu District when it is rotated to the Qingshan Lake District, and the data of the Qingshan Lake District will be displayed in the newly built area. ### What is expected? Can display tooptip information correctly ### What is actually happening? tooptip information read error
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!