apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser

Home Page:https://echarts.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Tooltip options does not work for specific data regions

jgoncab-arte opened this issue · comments

Version

5.4.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=map-usa&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzGU1QyAqgGUBCAFZJUhKQBpRAMwCuhAMZx8p0aRtIoAKROFyogN7UoqKgkLCIEPi4jNh4RGRUQaKM9tDwSAgwjMT4SHCMMACyUAAOpFJ6Ahai7l4-icGoJU4uALwBScFwqKgANk4lAFwdwaOicDD4xEwww1L4-cBSnaIAvuYrAG65NlC9xUMjY-MgJYxzJfgpjOi5jMtj6yuaw4HHIaVzlRYrwVk5piQwwA2r9Rm93qNCFBgOdpAJeioANZQH6Q0bdPoDV6iFAYYZWPZqSyMAAeEygYFUXDJcGGACICEgSoiQMNCKZGJR6WswcFVmCALorJ5jNSTRhA0Sg94Q95wU5wqTAUpoyGaACShGipOGAAYNuj5IoQf5RNDYXMEcjUZZNnsbHCAOwAZgAjAAWD0ATlWwveArG_rWNGCoTSiDUcHYzWchFITRavhoqyoQA&version=5.4.3

Steps to Reproduce

  1. Create chart.
  2. Register map.
  3. Add geo options.
  4. Add series with type "map".
  5. Add regions in the geo options with;
tooltip: { show: false, extraCssText: "display: none;" }

Current Behavior

Tooltip options for an specfic region are not working. They are ignored.

Expected Behavior

I expect tooltip options for an specfic region to work. (https://echarts.apache.org/en/option.html#geo.regions.tooltip)

Environment

No response

Any additional comments?

If I remove the series the tooltip options work as expected.

If I remove the series the tooltip options work as expected.

yes, geo and map series are two layers on top of each other. When hovering Alaska you activate the map series tooltip, not the geo region tooltip. Use map.data.tooltip - Demo.
📌 please close issue if problem solved.