[Bug] Tooltip options does not work for specific data regions
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
- Create chart.
- Register map.
- Add geo options.
- Add series with type "map".
- 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.