[Bug] Treemap's upperLabel gets incorrect series color
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.6
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=treemap-disk&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzOQqUEkAawRwYjRggBWSVISkAaUQDMAroQDGcfBdGltOgCKbyogG9qUVFQSFhECHxcRmw8IjIqYNEnCyQ4O1QYYAUAVVcAG1EAXlFGJ2h4JARbLJy4GhCHZ1d3JjhMRgA3RgL2AAdWwgpA5JDDOHsYQlEAbTGQ0cXl0Xw4RmAAZTgQAsYALiWV5YAjLJiYAHVouAhDgAYrBePiKH7r3FvDgFZnxYBfP7_J7HILHEJrDbbXYHI7g0Svd43O6iACMfxCgOOwL-YPBqQKWU2CimCjchEOs3uCAAzN8bNTvgBdEHgyFbHZ7Q54-GIj5fNGs-FnGAXMCoQkwYmTGBkiwPBAANgxoixKzVISZjVVyTClUQajgAyGpAWpFQg3JJThi1ccC5NuW6wAHnBDlJvPhdKJckgoExrCq9rY3dInIxCOsYFIgULbagJa5-tyVbVsgoo4dmi4raQiLV_DzwV1YKISwV7IxrfnUAhy5XtfCSzBRAYjHwFBAAJKEWrV3u1tuMDu3Hu1RvF0tDkcQa2zLUqppZDzN1bW1GUNcAHlbhmHnbHtb2JFum_w4nEhcXtr3M4Q_XsKFI04PA9m-CZCEIUGAjCS8Mxa8JimGZ5gAxYpC3AguhSAoVCQYoACI4ATAokwAWjtPZEIAPikCRr2WNN6nyfACgQCNUhiYQuAAWUwZ9b07UxUCIUhZCkch_HEQiIK3OR8C6PC43hD0vR0H0_SYd0JEydM4FI8i8FwcVgByJBSHrP9ZPwgBpAAhQNwL46DRHSGFigAHUQgksn2KRJBrBBbJbcQpGsvC3M2RgYHwRgkBSCUsnwnjjL4gShJjcDPxMVjhikTiJ2WDUAREv41F8_zKRVItjm_X93U9b1fX9RgjIAnZ-lhKQhxyfpyqbL18BOPZaKIQ4aXuR5rzgk5ehTMKUAwQ4DErETwWIjMfPdAITn-KKAOBURr3sfoqpgTAoD6goBuMob0BGmAxuvHFwPZaEHVy8ERTFIKYHdABiWxnoW-FToAvYegKJBDnaTovuNckKHG5Z5EUQ4vF8RQVRSzUFn-chkiSBHKCAA&lang=js
### Steps to Reproduce
1. Add upperLabel show:true in the echart options series attribute.
2. Display the seriesInfo.color attribute in the tooltip formatter set at the option's root level.
3. On tooltip render when hovering a label, the serie's color is the default blue one, whichever label or series is being hovered.
### Current Behavior
When overing a label and rendering its tooltip, the parameters passed to the formatter do not carry the correct series color, instead the default blue color is being passed.
### Expected Behavior
When overing a label and rendering its tooltip, the parameters passed to the formatter should carry the correct series color (the one used for the underlying rectangle).
### Environment
```markdown
- OS: Windows 11
- Browser: Google Chrome 135.0.7049.96
- Framework: React.js
```
### Any additional comments?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.